770710c0b26a3eddd100e6a58617b57852610368
[gnulib.git] / ChangeLog
1 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
2
3         pmccabe2html: escaping of special characters
4         Escape all '<', '>', and '&' in HTML output.
5         * build-aux/pmccabe2html (html_fnc): Call gsub()
6         instead of sub() to capture all '<', '>', and '&'.
7         Neither of '<' and '>' is special in a regexp,
8         so first arguments to gsub() are corrected. Also,
9         in replacement strings, ampersand must be escaped.
10         Finally, '&' must be handled first, then '<' and '>'.
11
12 2013-09-24  Eric Blake  <eblake@redhat.com>
13
14         manywarnings: enable nicer gcc warning messages
15         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
16         some -f options for optimal warnings.
17
18 2013-09-21  Jim Meyering  <meyering@fb.com>
19
20         timespec: use the new TIMESPEC_RESOLUTION in a few more places
21         * lib/timespec-add.c (timespec_add): Also replace 999999999
22         with TIMESPEC_RESOLUTION - 1.
23         * lib/timespec-sub.c (timespec_sub): Likewise.
24
25 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26
27         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
28         Problem reported by Dagobert Michelsen via Eric Blake in
29         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
30         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
31         not AC_COMPILE_IFELSE.
32
33 2013-09-23  Eric Blake  <eblake@redhat.com>
34
35         configmake: support new --runstatedir option
36         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
37         even if autoconf was too old to provide the command line option.
38         * modules/configmake (Makefile.am): Propagate it to .h file.
39
40 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
41
42         ctype, string: depend on extern-inline
43         This is needed to complete the recent OS X fixes.
44         Also, fix related documentation as suggested by Eric Blake.
45         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
46         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
47         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
48         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
49         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
50         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
51         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
52         * doc/posix-functions/toupper.texi:
53         List the 'ctype' gnulib module.
54         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
55         * doc/posix-functions/strncpy.texi:
56         List the 'string' gnulib module.
57         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
58         Add string.
59         * modules/ctype, modules/string (Depends-on): Add extern-inline.
60
61 2013-09-19  Pádraig Brady  <P@draigBrady.com>
62
63         userspec: support optional parameters to parse_user_spec()
64         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
65         then avoid group processing and treat the full spec as a user.
66         (parse_with_separator): Allow the USERNAME and GROUPNAME to
67         be optional params (NULL), in which case they're ignored.
68
69 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
70
71         timespec: new function make_timespec, and new constants
72         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
73         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
74         (make_timespec): New function.
75         * lib/dtotimespec.c (dtotimespec):
76         * lib/timespec-add.c (timespec_add):
77         * lib/timespec-sub.c (timespec_sub):
78         * lib/utimens.c (validate_timespec):
79         * lib/utimensat.c (rpl_utimensat):
80         Use these new constants and functions.
81
82         stdio: OS X port of putc_unlocked + extern inline
83         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
84         * doc/posix-functions/putc_unlocked.texi:
85         * doc/posix-functions/putchar_unlocked.texi:
86         Document this portability problem.
87
88         signal: OS X port of sigaddset etc. + extern inline
89         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
90         (sigismember): #undef on problematic Apple platforms.
91         * doc/posix-functions/sigaddset.texi:
92         * doc/posix-functions/sigdelset.texi:
93         * doc/posix-functions/sigemptyset.texi:
94         * doc/posix-functions/sigfillset.texi:
95         * doc/posix-functions/sigismember.texi:
96         Document this portability problem.
97
98         extern-inline: do not always suppress extern inline on OS X
99         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
100         extern inline on Apple only if the particular compile-time
101         configuration is known to have the problem.
102         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
103         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
104         other Gnulib modules.
105
106         extern-inline: document fixes for ctype and wctype macros
107         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
108         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
109         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
110         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
111         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
112         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
113         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
114         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
115         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
116         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
117         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
118         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
119         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
120         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
121         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
122         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
123         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
124         * doc/posix-functions/strncpy.texi:
125         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
126         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
127         Document that Gnulib fixes portability problems with these
128         functions on OS X 10.8 and earlier when called from plain inline
129         or extern inline functions.
130
131 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
132
133         fflush, freadahead, fseeko: Fix for Android
134         Suggested by Bruno Haible in:
135         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
136         * lib/stdio-impl.h: Use local __sfileext definition.
137
138 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
139
140         pmccabe2html: Portability to other awk versions.
141         The functions systime() and strftime() are available
142         in Gawk only.  Properly close two HTML-tags 'style'
143         and 'span'.
144         * build-aux/pmccabe2html (BEGIN): Store timing
145         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
146         systime() in HTML_COMMENT.
147         (html_header): Correctly close tag 'style'.
148         (END): Replace strftime() by CHRONOS_TIME.  Close
149         tag 'span' correctly, not as 'div'.
150
151 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
152
153         getgroups: statement without effect
154         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
155         Change equality conditional to expected assignment.
156
157 2013-09-09  Eric Blake  <eblake@redhat.com>
158
159         glob: fix compilation
160         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
161
162 2013-09-07  Eric Blake  <eblake@redhat.com>
163
164         glob: fix build for platforms without __THROW
165         * lib/glob.in.h (__THROW): Add definition again.
166
167 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
168
169         regex-quote: fix buffer access out of bounds
170         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
171         * lib/regex-quote.c (regex_quote_spec_pcre):
172         Fix typo that resulted in an out-of-bounds read.
173
174 2013-09-04  Eric Blake  <eblake@redhat.com>
175
176         glob: avoid -Wattribute warnings on glibc
177         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
178         __THROWNL, not __THROW, on static functions.
179         * lib/glob.in.h (__THROW): Adjust...
180         (__THROWNL): ...accordingly.
181
182 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
183
184         headers: check that _GL_INLINE_HEADER_BEGIN is defined
185         Suggested by Bruce Korb in:
186         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
187         * doc/extern-inline.texi (extern inline):
188         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
189         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
190         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
191         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
192         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
193         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
194         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
195         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
196         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
197         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
198         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
199         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
200         * lib/xtime.h:
201         Check that _GL_INLINE_HEADER_BEGIN is defined.
202
203 2013-08-29  Pádraig Brady  <P@draigBrady.com>
204
205         bootstrap: remove the --version requirement from ancillary tools
206         * build-aux/bootstrap (check_exists): A new refactored function to
207         determine if a command exists.
208         (find_tool): Use the new function which does not require the
209         --version option to be supported.
210         (check_versions): Use the new function.
211
212 2013-08-26  Simon Josefsson  <simon@josefsson.org>
213
214         gc: support HMAC-SHA256 and HMAC-SHA512.
215         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
216         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
217         functions.
218         (gc_hmac_md5): Use symbolic constant.
219         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
220         (gc_hmac_sha256, gc_hmac_sha512): New functions.
221         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
222         * m4/sha256.m4: Protect against empty expansion.
223         * m4/sha512.m4: Likewise.
224         * lib/hmac-sha256.c: New file.
225         * lib/hmac-sha512.c: Likewise.
226         * m4/gc-hmac-sha256.m4: Likewise.
227         * m4/gc-hmac-sha512.m4: Likewise.
228         * m4/gc-sha256.m4: Likewise.
229         * m4/gc-sha512.m4: Likewise.
230         * modules/crypto/gc-hmac-sha256: Likewise.
231         * modules/crypto/gc-hmac-sha256-tests: Likewise.
232         * modules/crypto/gc-hmac-sha512: Likewise.
233         * modules/crypto/gc-hmac-sha512-tests: Likewise.
234         * modules/crypto/hmac-sha256: Likewise.
235         * modules/crypto/hmac-sha256-tests: Likewise.
236         * modules/crypto/hmac-sha512: Likewise.
237         * modules/crypto/hmac-sha512-tests: Likewise.
238         * tests/test-gc-hmac-sha256.c: Likewise.
239         * tests/test-gc-hmac-sha512.c: Likewise
240         * tests/test-hmac-sha256.c: Likewise.
241         * tests/test-hmac-sha512.c: Likewise
242
243 2013-08-24  Daiki Ueno  <ueno@gnu.org>
244
245         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
246         of AC_CHECK_DECLS.
247
248 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
249
250         selinux-at: omit unnecessary include
251         * lib/selinux-at.c: Don't include dosname.h; not needed, since
252         this source file doesn't use its macros, and subsidiary files that
253         use the macros already include it.
254
255 2013-08-21  Eric Blake  <eblake@redhat.com>
256
257         d-ino: avoid false negative on symlink
258         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
259         Reported by Stephane Chazelas.
260
261 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
262
263         bootstrap: port to OpenBSD sed
264         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
265         does not interpret `-' as a file argument to mean stdin.
266
267 2013-08-15  Eric Blake  <eblake@redhat.com>
268
269         warnings: minor optimization
270         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
271
272         warnings: check -Wfoo rather than -Wno-foo
273         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
274         -Wno-, test if the compiler recognizes the positive form instead.
275
276 2013-08-15  Karl Berry  <karl@gnu.org>
277
278         * config/srclist-update: add option "doclicense" to placate
279         pulling *.texi files from Emacs.  Write terse usage
280         documentation at the top.
281
282 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
283
284         xvasprintf-tests: port to GCC with hardening flags
285         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
286         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
287         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
288
289 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
290
291         fpending: port to recent Cygwin change to stdio_ext.h
292         Reported by LRN in
293         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
294         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
295         just declare __fpending unless it's a macro.
296         A duplicate decl shouldn't hurt.
297         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
298         call compiles and links, instead of separately checking for
299         decl and lib function.
300         * modules/fpending (configure-ac):
301         Adjust to fpending.m4's renaming of shell variable.
302
303 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
304
305         sys_time: port to OpenBSD
306         * lib/sys_time.in.h: Simply delegate to the system's header
307         in the BSDish cases as well.  Problem reported by Mike Miller in
308         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
309         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
310         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
311         wider than time_t.
312
313 2013-08-09  Pádraig Brady <P@draigBrady.com>
314
315         bootstrap: support checksum utils having -c but not --status
316         * build-aux/bootstrap: Only look for sha1sum if updating po files.
317         Add sha1 to the list of supported checksum utils since it's now
318         supported through adjustments below.
319         (update_po_files): Remove the use of --status
320         in a way that will suppress all error messages, but since this is
321         only used to minimize updates, it shouldn't cause an issue.
322         Exit early if there is a problem updating the po file checksums.
323         (find_tool): Remove the check for --version support as this
324         is optional as per commit 86186b17.  Don't even check for the
325         presence of the command as if that is needed, it's supported
326         through configuring prerequisites in bootstrap.conf.
327         Prompt that when a tool isn't found, one can define an environment
328         variable to add to the hardcoded search list.
329
330 2013-08-05  Jim Meyering  <meyering@fb.com>
331
332         regex: port to non-glibc/lock-using systems
333         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
334         system with GNULIB_LOCK would fail due to absence of the
335         included "glthread/lock.h".  This would affect any package
336         for which the "lock" module is used only by the regex module,
337         and not explicitly used.
338         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
339         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
340         Add a dependency on the "lock" module.
341
342 2013-07-20  Daiki Ueno  <ueno@gnu.org>
343
344         localecharset: make locale_charset thread-safe on Mac OS X
345         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
346         instead of MB_CUR_MAX.
347
348 2013-07-20  Daiki Ueno  <ueno@gnu.org>
349
350         gettext: update to version 0.18.3
351         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
352         require AC_PROG_SED to allow user to specify custom sed command when
353         generating en@quot PO file.
354
355 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
356
357         bootstrap: use correct source when copying build-aux files
358         * build-aux/bootstrap (gnulib_extra_files): This variable is
359         relative to upstream gnulib layout, not downstream.
360
361 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
362
363         tmpdir: fix bug in VMS port
364         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
365         See Steven M. Schweda in
366         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
367
368 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
369
370         tmpdir: port to VMS, to // != /, and to long dirs
371         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
372         __secure_getenv, so that we're more like the glibc version.
373         All uses changed.
374         (path_search): Don't put slash after directory if __VMS.
375         Problem reported by Steven M. Schweda in
376         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
377         Simplify code to add slash; no need for a loop.
378         Do not remove trailing slash from "//".
379         Do not assume dlen <= INT_MAX.
380
381 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
382
383         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
384         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
385         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
386         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
387
388         accept4, dup3, pipe2: port to Cygwin
389         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
390         * lib/accept4.c (accept4) [O_BINARY]:
391         * lib/dup3.c (dup3) [O_BINARY]:
392         * lib/pipe2.c (pipe2) [O_BINARY]:
393         Use set_binary_mode, not setmode.
394         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
395         * modules/binary-io (Depends-on): Remove module indicator.
396         These last two bits undo the previous change to pipe2 and binary-io.
397
398 2013-07-09  Pádraig Brady  <P@draigBrady.com>
399
400         mountlist: add support for deallocating returned list entries
401         * lib/mountlist.c (free_mount_entry): A new exported function
402         to deallocate a mount list entry.
403         (read_file_system_list): Refactor to use the new deallocation function.
404         Suggested by Anton Ovchinnikov.
405
406 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
407
408         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
409         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
410         * lib/stdalign.in.h (_Alignas, _Alignof):
411         Port to FreeBSD 9.1, and to C11 and C++11.
412         (_Alignas): Also support ICC.
413         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
414         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
415
416 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
417
418         fnmatch: don't goto over declaration
419         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
420         undefined behavior for goto over a declaration.
421         Problem reported by Charlie Brown in
422         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
423
424         pipe2: decouple from binary-io a bit
425         This is for Emacs, which needs pipe2 but not binary-io.
426         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
427         * modules/binary-io (Depends-on): Add module indicator.
428
429 2013-07-03  Eric Blake  <eblake@redhat.com>
430
431         mgetgroups: relax license to LGPLv2+
432         * modules/getugroups (License): Change from GPLv3+.
433         * modules/mgetgroups (License): Likewise.
434         * modules/getgroups (License): Change from LGPLv3+.
435
436         xalloc-oversized: relax license to LGPLv2+
437         * modules/xalloc-oversized (License): Change from GPLv3+.
438
439         nproc: relax license to LGPLv2+
440         * modules/nproc (License): Change from LGPLv3+.
441
442         bootstrap: honor --no-git
443         * build-aux/bootstrap: Don't even try to use git when user is
444         pointing to a static checkout.
445
446 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
447
448         ignore-value: port to gcc -pedantic
449         * lib/ignore-value.h (ignore_value):
450         Port to gcc -pedantic, by using __extension__.
451         Reindent as per usual gnulib style nowadays.
452         Simplify GCC version check.
453
454 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
455
456         extern-inline: port to gcc -std=c89
457         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
458         Do not use __gnu_inline__ if pedantic and pre-C99.
459
460 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
461
462         doc: document extern-inline
463         * doc/extern-inline.texi: New file.
464         * doc/gnulib.texi (alloca-opt): Include it.
465         * m4/extern-inline.m4: Move some comments to documentation,
466         and others closer to what they describe.
467
468         doc: chatter less
469         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
470         (updated-stamp): Use it.  This causes 'make' to output just
471         one file name rather than zillions.
472
473         fflush, fseeko: port to musl cross-compiles
474         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
475         on some implementation that (1) is not known to be buggy,
476         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
477         cross-compiled to so we can't easily check for lack of
478         conformance.  This is for cross-compiling to musl.
479         Reported by Rich Felker in
480         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
481         * m4/fclose.m4 (gl_FUNC_FCLOSE):
482         * m4/fflush.m4 (gl_FUNC_FFLUSH):
483         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
484         Adjust to above change.
485         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
486         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
487         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
488         known not to work, or unknown.
489
490 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
491
492         msvc-inval: port to mingw-w64
493         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
494         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
495         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
496
497 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
498
499         getcwd-lgpl: port to Tru64
500         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
501         Problem reported by Steven M. Schweda in
502         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
503
504         tests: port large-fd POSIX spawn tests to OS X
505         Problem reported by Daiki Ueno in
506         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
507         * tests/test-posix_spawn_file_actions_addclose.c:
508         * tests/test-posix_spawn_file_actions_adddup2.c:
509         * tests/test-posix_spawn_file_actions_addopen.c:
510         Include <limits.h>, for OPEN_MAX, if available.
511         (big_fd): New static function.
512         (main): Use it.
513
514 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
515
516         tests/nap.h: use an adaptive delay to avoid ctime update issues
517         The recent change in nap.h (5191133e) decreased the probability of lost
518         races to about a third, however such problems could still be observed
519         in virtual machines and openSUSE's OBS.
520         Before, nap() detected the needed time once empirically and then used
521         that delay (together with a small correction multiplier) in further
522         calls.  This problem has been reported and discussed several times,
523         including guesses about possible kernel issues:
524         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
525         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
526         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
527         http://bugs.gnu.org/12820
528         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
529         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
530         Now, nap() avoids the race alltogether by verifying on a reference
531         file whether a timestamp difference has happened.
532         * tests/nap.h (nap_fd): Define file descriptor variable for the
533         witness file.
534         (nap_works): Change return value to bool.  Change passing
535         the old file's status by value instead of by reference as this function
536         does no longer update that timestamp; rename the function argument from
537         st to old_st.  Remove the local variables cdiff and mdiff because that
538         function now returns true/false instead of the precise delay.
539         (guess_delay): Remove function.
540         (clear_tmp_file): Add new function to close and unlink the witness file.
541         (nap): Instead of re-using the delay which has been calculated during
542         the first call, avoid the race by actually verifying that a timestamp
543         difference can be observed on the current file system.  Use an adaptive
544         approach for the delay to minimize execution time.  Assert that the
545         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
546         = 2^31 - 1 = 2.1s.
547         Use atexit to call clear_tmp_file when the process terminates.
548
549 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
550
551         sig2str: port to C++
552         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
553         Reported by Daniel J Sebald in
554         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
555
556 2013-05-30  Eric Blake  <eblake@redhat.com>
557
558         docs: mention cygwin shortcoming in <sys/un.h>
559         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
560
561         vasnprintf: silence mingw compiler warning
562         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
563
564 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
565
566         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
567         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
568         This fixes a porting bug I recently reintroduced in regex, and
569         some other instances that I discovered while testing the fix.
570         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
571         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
572         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
573         with an empty argument if this is a pedantic pre-C99 GCC.
574         * lib/verify.h: Do not use _Static_assert if this is a pedantic
575         pre-C11 GCC.
576
577         regex: adapt to locking regime instead of depending on pthread
578         Instead of depending on pthread, adapt to whatever thread
579         modules are in use.  Problem reported by Ludovic Courtès in
580         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
581         and by Mats Erik Andersson in
582         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
583         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
584         Support either the 'lock' module, or the 'pthread' module, or
585         no module.
586         (lock_lock, lock_unlock): New macros.
587         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
588         * modules/lock, modules/pthread (configure.ac): Add module indicator.
589         * modules/regex (Depends-on): Remove pthread.
590
591 2013-05-22  Eric Blake  <eblake@redhat.com>
592
593         getgroups: document portability issues
594         * doc/glibc-functions/initgroups.texi (initgroups): Mention
595         multithread safety.
596         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
597         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
598         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
599         getugroups.
600         * doc/posix-functions/getgroups.texi (getgroups): Mention
601         multithread safety and mgetgroups.
602
603 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
604
605         test-lchown, test-chown: also skip test if chown fails with EPERM
606         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
607         skip this test, to handle FAT file systems.
608         * tests/test-chown.h (test_chown): Likewise.
609
610 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
611
612         regex: fix dfa race in multithreaded uses
613         Problem reported by Ludovic Courtès in
614         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
615         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
616         New macros.  All uses of __libc_lock_define, __libc_lock_init
617         changed to use the first two of these.
618         (__libc_lock_lock, __libc_lock_unlock): New macros, for
619         non-glibc platforms.
620         (struct re_dfa_t): Define the lock unconditionally.
621         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
622         '#ifdef _LIBC"s.
623         * modules/regex (Depends-on): Add pthread, if we use the
624         included regex.
625
626         * lib/regcomp.c: Do actions that are not needed for glibc,
627         but may be needed elsewhere.
628         (regfree, re_compile_internal): Destroy the lock.
629         (re_compile_internal): Check for lock-initialization failure.
630
631         malloca: port to compilers that reject size-zero arrays
632         This fixes a bug introduced in my previous patch.
633         * lib/malloca.c (struct preliminary_header): Use an int
634         rather than a character array of size int; that's simpler.
635         (struct header): Remove, replacing with ...
636         (union header): New type.  This avoids the need for declaring a
637         character array of size zero, which is not allowed on some platforms.
638         All uses changed.
639
640 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
641
642         parse-datetime, tests: don't use "string" + int
643         Recent versions of 'clang' complain about C source code that
644         uses expressions of the form '"string literal" + integer',
645         I guess on the theory that it's confusing for readers who are
646         used to C++.  On those grounds I suppose it's OK to make this
647         minor style change.
648         * lib/parse-datetime.y (parse_datetime):
649         * tests/test-fchdir.c (main):
650         * tests/test-snprintf-posix.h (test_function):
651         * tests/test-snprintf.c (main):
652         * tests/test-vasnprintf-posix.c (test_function):
653         * tests/test-vasnprintf.c (test_function):
654         * tests/test-vsnprintf.c (main):
655         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
656         Rewrite '"str" + E' to '&"str"[E]'.
657
658 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
659
660         argmatch: port to C++
661         * lib/argmatch.h [__cplusplus]: Add extern "C".
662
663         argp: typo fix
664         * lib/argp-help.c: Typo in comment.
665
666 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
667
668         manywarnings: update for GCC 4.8.0
669         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
670         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
671         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
672         -Wmissing-noreturn, as they are duplicates of other warnings.
673         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
674         was documented to be flaky in earlier versions of GCC.
675
676         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
677         * tests/test-spawn.c (main):
678         * tests/test-sys_socket.c (main):
679         * tests/test-sys_wait.c (main):
680         Don't have a switch value that isn't covered by a case.
681
682         getaddrinfo-tests: port --enable-gcc-warnings to clang
683         * tests/test-getaddrinfo.c (simple):
684         Avoid casts from looser to stricter-aligned pointers.
685
686         thread: port --enable-gcc-warnings to clang
687         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
688         Include <signal.h>, to pacify a warning about pthread_sigmask.
689
690         stdio: use __REDIRECT for fwrite, fwrite_unlocked
691         * lib/stdio.in.h (fwrite):
692         When working around bug 11959, use __REDIRECT rather than '#define
693         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
694         fix the -Wunused-value issue with clang, and it works with GCC too.
695         Problem with targeting reported by Eric Blake in
696         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
697         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
698         debugging the fwrite issue.
699
700         stdio: port --enable-gcc-warnings to clang
701         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
702         since the GCC workaround for fwrite does not pacify clang.
703
704         sig2str: port --enable-gcc-warnings to clang
705         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
706
707         obstack: port --enable-gcc-warnings to clang
708         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
709         Avoid casts from looser to stricter-aligned pointers.
710
711         memchr2: port --enable-gcc-warnings to clang
712         * lib/memchr2.c (memchr2):
713         Avoid casts from looser to stricter-aligned pointers.
714
715         mbsstr: port --enable-gcc-warnings to clang
716         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
717         Avoid casts from looser to stricter-aligned pointers.
718
719         malloca: port --enable-gcc-warnings to clang
720         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
721         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
722
723         inttostr: port --enable-gcc-warnings to clang
724         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
725
726         warnings: port to clang
727         Problem reported by Daniel P. Berrange via Eric Blake in
728         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
729         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
730         (gl_WARN_ADD): Use it.
731
732 2013-05-11  Jim Meyering  <meyering@fb.com>
733
734         quotearg: do not read beyond end of buffer
735         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
736         end of an ARG for which no length was specified.  With an N-byte
737         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
738         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
739         via coreutils' misc/sort-debug-keys.sh test and detected by running
740         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
741         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
742         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
743         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
744         characters correctly."
745
746 2013-05-11  Daiki Ueno  <ueno@gnu.org>
747
748         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
749         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
750         compilation target is Mac OS X 10.6.
751         Problem reported by parafin and Andoni Morales in
752         <http://savannah.gnu.org/bugs/?37844> and
753         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
754
755 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
756
757         mkdir-p: remove assumptions about umask and mode
758         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
759         umask is 0, or that MODE is a subset of MODE_BITS.
760
761 2013-05-10  Eric Blake  <eblake@redhat.com>
762
763         maint.mk: catch more abuse of HAVE_DECL in syntax-check
764         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
765
766 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
767
768         deps: require Automake >= 1.9.6 in generated Makefile fragments
769
770         That is the same minimal version required in the DEPENDENCIES file.
771         Moreover, the old code generated a requirement of Automake >= 1.5,
772         and that is an insanely outdated version.
773
774         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
775         * tests/havelib/rpathlx/Makefile.am: Likewise.
776         * tests/havelib/rpathly/Makefile.am: Likewise.
777         * tests/havelib/rpathlyx/Makefile.am: Likewise.
778         * tests/havelib/rpathlz/Makefile.am: Likewise.
779         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
780         * tests/havelib/rpathx/Makefile.am: Likewise.
781         * tests/havelib/rpathy/Makefile.am: Likewise.
782         * tests/havelib/rpathz/Makefile.am: Likewise.
783
784 2013-05-08  Eric Blake  <eblake@redhat.com>
785
786         bootstrap: AC_INIT may have more than four parameters
787         * build-aux/bootstrap (extract_package_name): Correctly extract
788         non-empty tarname field.  Avoid range in regex.
789         Based on a report by Sami Kerola <kerolasa@iki.fi>.
790
791 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
792
793         qacl: port to MS-Windows port of GNU Emacs
794         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
795         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
796         port of GNU Emacs.  Problem reported by Eli Zaretskii in
797         <http://bugs.gnu.org/14295#14>.
798
799 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
800
801         acl: include quote.h
802         * lib/copy-acl.c: Include quote.h.
803         * lib/set-acl.c: Likewise.
804
805 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
806
807         fchownat, renameat, unlinkat: update statat dependencies
808         These modules use statat and lstatat, not fstatat; so depend on
809         the statat module, which was split out recently from fstatat.
810         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
811         * modules/renameat: Likewise.  Also delete fstat.
812         URL: http://bugs.gentoo.org/468790
813
814 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
815
816         Assume gnulib is checked out from Git, not CVS
817
818         In fact, access to the gnulib repository through CVS has been
819         disabled, or more precisely, got broken and was never restored; see:
820         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
821
822         Note that support for CVS is not removed completely and unthinkingly
823         by this change: only support for CVS checkouts of gnulib itself is
824         removed.  For example, the 'bootstrap' script still cater to .cvsingore
825         files and CVS directories, for the benefit of those poor gnulib clients
826         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
827
828         * gnulib-tool: Simplify accordingly.
829         * posix-modules: Likewise.
830         * MODULES.html.sh: Likewise.
831         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
832         repository.
833         * doc/gnulib-intro.texi: Likewise.
834         * doc/gnulib-readme.texi: Likewise.
835         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
836         sample '.gitignore' file rather than a sample '.cvsignore'.
837         * NEWS: Update.
838         * m4/extensions.m4: While at it, remove a comment mistakenly referring
839         to "CVS Autoconf" rather than "git Autoconf".
840
841 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
842
843         utimensat-tests, etc.: try to fix some races
844         Problem reported by Bernhard Voelker in
845         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
846         I don't know whether this patch fixes that race condition, but it
847         fixes *some* race conditions, so it should be a win.
848         * modules/chown-tests (Depends-on):
849         * modules/fchownat-tests (Depends-on):
850         * modules/fdutimensat-tests (Depends-on):
851         * modules/futimens-tests (Depends-on):
852         * modules/lchown-tests (Depends-on):
853         * modules/stat-time-tests (Depends-on):
854         * modules/utimens-tests (Depends-on):
855         * modules/utimensat-tests (Depends-on):
856         Depend on nanosleep, not usleep.
857         * modules/chown-tests (test_chown_LDADD):
858         * modules/lchown-tests (test_lchown_LDADD):
859         * modules/stat-time-tests (test_stat_time_LDADD):
860         New macro.
861         * modules/fchownat-tests (test_fchownat_LDADD):
862         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
863         * modules/futimens-tests (test_futimens_LDADD):
864         * modules/utimens-tests (test_utimens_LDADD):
865         * modules/utimensat-tests (test_utimensat_LDADD):
866         Add $(LIB_NANOSLEEP).
867         * modules/stat-time-tests (Files): Add tests/nap.h.
868         * tests/nap.h: Include <limits.h>, for INT_MAX.
869         (lt_mtime): Remove.
870         (diff_timespec): New function.
871         (get_stat): Rename from get_mtime.  All callers changed.
872         (nap_works): Determine the needed delay by inspecting the
873         file system's timestamp jumps; this should be more reliable.
874         Look at both mtime and ctime, and take the maximum of the two jumps.
875         (nap_works, guess_delay):
876         Return a nanosecond cound, not a microsecond count.
877         All callers changed.
878         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
879         failure.
880         (nap): Multiply the guess by 1.125, to accommodate the case where
881         the file system's clock is a bit slower than nanosleep's clock.
882         * tests/test-stat-time.c (BASE): New macro.
883         Include nap.h.
884         (nap): Remove; nap.h now defines this.  This removes a duplicate
885         implementation of 'nap'.
886
887         utimens, utimensat: work around Solaris UTIME_OMIT bug
888         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
889         Linux kernel 2.6.32 does.  Work around it in the same way.
890         * doc/posix-functions/futimens.texi (futimens):
891         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
892         * lib/utimens.c (fdutimens, lutimens):
893         * lib/utimensat.c (rpl_utimensat): Work around the bug.
894
895         gettext: now it's your responsibility to add -I$(top_builddir)/intl
896         Formerly, it was your responsibility to do this for all Makefile.ams
897         other than Gnulib's.  Now it's your responsibility to do it for
898         Gnulib's Makefile.am, too.
899         * NEWS: Document this.
900         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
901
902         acl: include errno.h to get errno
903         Reported by Daiki Ueno in
904         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
905         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
906
907 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
908
909         tests: don't assume getdtablesize () <= 10000000
910         * modules/cloexec-tests:
911         * modules/dup2-tests:
912         * modules/dup3-tests:
913         * modules/nonblocking-tests:
914         * modules/posix_spawn_file_actions_addclose-tests:
915         * modules/posix_spawn_file_actions_adddup2-tests:
916         * modules/posix_spawn_file_actions_addopen-tests:
917         * modules/unistd-safer-tests:
918         Depend on the getdtablesize module.
919         * tests/test-cloexec.c:
920         * tests/test-dup-safer.c:
921         * tests/test-dup2.c:
922         * tests/test-dup3.c:
923         * tests/test-fcntl.c:
924         * tests/test-nonblocking.c:
925         * tests/test-posix_spawn_file_actions_addclose.c:
926         * tests/test-posix_spawn_file_actions_adddup2.c:
927         * tests/test-posix_spawn_file_actions_addopen.c:
928         Don't assume getdtablesize () <= 10000000.
929
930 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
931
932         extern-inline: work around bug in Sun c99
933         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
934         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
935
936 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
937
938         qacl: new module, broken out from the acl module
939         This is for GNU Emacs, which wants the acl functions but does
940         not want 'error' invoked when they fail.
941         * lib/acl-internal.h: Do not include error.h, quote.h.
942         (ENOSYS, ENOTSUP): Remove; no longer needed.
943         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
944         * lib/acl.h: Include <stdbool.h>.
945         (acl_errno_valid): New function.
946         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
947         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
948         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
949         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
950         (ACL_INTERNAL_INLINE): Remove; no longer needed.
951         * lib/file-has-acl.c (file_has_acl):
952         * lib/qcopy-acl.c (qcopy_acl):
953         * lib/qset-acl.c (qset_acl):
954         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
955         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
956         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
957         lib/file-has-acl.c, m4/acl.m4 to qacl module.
958         Add lib/set-acl.c.
959         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
960         Add qacl.
961         (configure.ac): Move gl_FUNC_ACL to qacl module.
962         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
963         Rename set-mode-acl.c to set-acl.c.
964         * lib/acl-errno-valid.c: New file.
965         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
966         copy_acl function remains in copy-acl.c.
967         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
968         (_): Remove; not needed.
969         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
970         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
971         * modules/qacl: New file, moved from the old modules/acl.
972         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
973         Remove set-mode-acl.c, copy-acl.c.
974         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
975
976         alignof, intprops, malloca: port better to IBM's C compiler
977         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
978         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
979         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
980
981 2013-04-25  Daiki Ueno  <ueno@gnu.org>
982
983         wctype-h: fix gettext link error on mingw
984         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
985         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
986         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
987         rpl_towupper and rpl_towupper.
988
989 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
990
991         regex-tests, regex: allow glibc re_search behavior
992         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
993         re_search input data to make the multi-character collating element
994         in it clearly visible, and treat re_search return code 0 as valid.
995         * m4/regex.m4 (gl_REGEX): Likewise.
996
997 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
998
999         stdalign: doc fix
1000         * doc/posix-headers/stdalign.texi (stdalign.h):
1001         Gnulib doesn't support '_Alignof expr'.
1002
1003 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1004
1005         stdalign: port to stricter ISO C11
1006         ISO C11 says that _Alignof's operand must be a parenthesized type.
1007         Problem reported by Eli Zaretskii in
1008         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1009         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1010         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1011
1012 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1013
1014         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1015         Problem reported by Marco Atzeri in
1016         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1017         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1018         Simply delegate to the system <sys/select.h> in this case too.
1019         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1020         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1021         be needed on Solaris either.
1022         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1023         Simply delegate to the system <sys/time.h> in this case.
1024
1025 2013-03-19  Karl Berry  <karl@gnu.org>
1026
1027         * build-aux/gnupload: check for erroneous (with gnupload) use of
1028         ftp-upload.gnu.org, tweak help.
1029
1030 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1031
1032         copy-file, rpmatch: fix problems found by cppcheck
1033         Reported by Arno Onken in
1034         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1035         * lib/rpmatch.c (try): Fix memory leak.
1036         * lib/copy-file.c: Include "ignore-value.h".
1037         (qcopy_file_preserving): Ignore chown value.
1038         * modules/copy-file (Depends-on): Add ignore-value.
1039
1040 2013-01-27  Jim Meyering  <jim@meyering.net>
1041
1042         prefix-gnulib-mk: give better diagnostics
1043         * build-aux/prefix-gnulib-mk: Don't just "die".
1044         Give better diagnostics upon failure.
1045
1046 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1047
1048         putenv: port to Solaris 10
1049         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1050         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1051         is not what is wanted here.
1052         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1053         declaration, not for its existence.
1054
1055 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1056
1057         mktime: fix configure typo
1058         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1059
1060 2013-03-12  Eric Blake  <eblake@redhat.com>
1061
1062         regex-tests: skip UTF-8 test on mingw
1063         * modules/regex-tests (Depends-on): Add localcharset.
1064         * tests/test-regex.c (main): Use it to skip test on mingw.
1065
1066 2013-03-11  Eric Blake  <eblake@redhat.com>
1067
1068         tests: make it easier to bypass alarm time in debugger
1069         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1070         * tests/test-memmem.c (main): Likewise.
1071         * tests/test-passfd.c (main): Likewise.
1072         * tests/test-ptsname.c (main): Likewise.
1073         * tests/test-ptsname_r.c (main): Likewise.
1074         * tests/test-strcasestr.c (main): Likewise.
1075         * tests/test-strstr.c (main): Likewise.
1076
1077         regex: port to mingw's recent addition of undeclared alarm
1078         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1079         exists but still doesn't work in newer mingw.
1080         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1081         not existence.  Ensure SIGALRM is not trapped.
1082         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1083         * m4/regex.m4 (gl_REGEX): Likewise.
1084         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1085         * tests/test-regex.c (main): Use correct probe for alarm.
1086
1087         putenv: avoid compilation warning on mingw
1088         * lib/putenv.c (_unsetenv): Protect variable declaration.
1089         (putenv): Fix indentation.
1090
1091 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1092
1093         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1094         * lib/unistd.in.h: be careful not to include un-needed system
1095         stdlib.h from here, because that prevents gnulib stdlib.h from
1096         defining rpl_strtod correctly.
1097
1098 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1099
1100         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1101         changesets, but for the 'precision 0' test.
1102         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1103         round-to-even, since POSIX says rounding is implementation-defined
1104         and OS X 10.8.2 rounds 1.51 to 1 here.
1105
1106         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1107         changeset.
1108         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1109         round-to-even, since POSIX says rounding is implementation-defined
1110         and OS X 10.8.2 rounds 1.5 to 1 here.
1111
1112 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1113
1114         vasnprintf-posix-tests: allow rounding 1.5 to 1
1115         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1116         round-to-even, since POSIX says rounding is implementation-defined
1117         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1118         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1119
1120         bootstrap: port to FreeBSD
1121         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1122         that treat '--' differently.  Reported by Mats Erik Andersson in
1123         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1124
1125 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1126
1127         regex: rename remaining __attribute calls to __attribute__.
1128         2012-02-25 changed definition of __attribute, but left some uses
1129         unchanged, preventing compilation of regex module on most non-gcc
1130         environments.
1131         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1132         (lookup_collation_sequence_value, build_range_exp)
1133         (build_collating_symbol): Set attributes with newly renamed
1134         __attribute__ decorator.
1135         * lib/regex_internal.c (re_string_peek_byte_case)
1136         (re_node_set_compare, re_node_set_contains): Likewise.
1137         * lib/regexec.c (acquire_init_state_context): Likewise.
1138
1139 2013-03-06  Bruno Haible  <bruno@clisp.org>
1140
1141         execute: Revert last change, but use a different condition.
1142         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1143         on Windows.
1144
1145 2013-03-05  Eric Blake  <eblake@redhat.com>
1146
1147         execute: drop dead code
1148         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1149
1150 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1151
1152         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1153         * m4/non-recursive-gnulib-prefix-hack.m4
1154         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1155         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1156         <http://bugs.gnu.org/10305#237>.
1157
1158 2013-03-04  Eric Blake  <eblake@redhat.com>
1159
1160         test-getsockopt: avoid compiler warning
1161         * tests/test-getsockopt.c (includes): Ensure close is declared.
1162
1163 2013-03-02  Bruno Haible  <bruno@clisp.org>
1164
1165         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1166         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1167
1168 2013-03-02  Bruno Haible  <bruno@clisp.org>
1169
1170         gettext: Update to version 0.18.2.
1171         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1172         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1173                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1174
1175 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1176
1177         regex: merge patches from libc
1178
1179         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1180         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1181         All uses changed.
1182         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1183         (re_string_wchar_at, re_string_elem_size_at):
1184         Mark function as possibly unused.
1185
1186         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1187         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1188         elements compare against the byte sequence of it, not its name.
1189
1190 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1191
1192         putenv: port better to native Windows
1193         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1194         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1195         (_unsetenv): Use _putenv if available.
1196         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1197         a bit less likely to cause damage.
1198         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1199         Fix the wrong value with SetEnvironmentVariable.
1200         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1201         code better.
1202
1203 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1204
1205         regex: ignore old-style-definition warnings
1206         * lib/regex.c: Add pragma to ignore these warnings.
1207         Problem reported for GNU tar by Pavel Raiskup.
1208
1209 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1210
1211         getcwd: support coreutils better
1212         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1213         but this might not be correct in coreutils, which disables
1214         the raw decl checks.  Problem reported by Nagendra in
1215         <http://bugs.gnu.org/10305#192>.
1216         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1217         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1218         Test the getcwd function, not any macro, since getcwd.c wants the
1219         function.
1220         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1221         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1222         compile, as might happen if there's a macro but no function.
1223
1224         strtod: support coreutils better
1225         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1226         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1227         disables the raw decl checks.  This assumes there is an underlying
1228         strtod, but that's a safe assumption these days.
1229         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1230
1231         mountlist: port to HP NonStop
1232         Reported by Joachim Schmitz in
1233         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1234         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1235         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1236
1237 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1238
1239         extern-inline: avoid compilation error with HP-UX cc
1240         Reported by Richard Lloyd in
1241         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1242         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1243         Suppress extern inline with HP-UX cc.  This should be safe,
1244         though it may hurt performance.  Perhaps someone with some HP-UX
1245         experience can come up with a higher-performance fix.
1246
1247 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1248
1249         putenv: fix heap corruption with mixed putenv/_putenv
1250         Problem reported by Michael Goffioul in
1251         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1252         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1253         Rely on _putenv to allocate the new environment.
1254         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1255         * modules/putenv (configure.ac): Use it.
1256
1257 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1258
1259         unsetenv etc.: port to Solaris 11 + GNU Emacs
1260         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1261         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1262         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1263         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1264         idea but is too painful to fix right now), and without this gnulib
1265         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1266         compiling unsetenv.c on Solaris 11.  Fix the problem for
1267         unsetenv.c, and fix other similar occurrences.
1268
1269 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1270
1271         secure_getenv: fix C++ declaration typo
1272         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1273         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1274         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1275
1276 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1277
1278         careadlinkat: stop exporting careadlinkatcwd
1279         Only Emacs used it directly, and Emacs no longer needs it.
1280         * NEWS: Document this simplification.
1281         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1282         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1283         for readlink.
1284         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1285         Don't include stdlib.h; no longer needed.
1286         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1287         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1288         * modules/areadlink (Depends-on): Add readlink.
1289         (Maintainer): Add self.
1290         * modules/careadlinkat (Depends-on): Remove readlink.
1291
1292         extensions: port better to HP-UX
1293         This is merged from git Autoconf.
1294         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1295         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1296         so that it's compatible with the value used when compiling.
1297
1298         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1299         Problem reported by Mats Erik Andersson in
1300         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1301         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1302         openpty function exists, not merely when we intend to replace it.
1303         This corrects the 2013-01-31 patch, which mistakenly defined
1304         HAVE_OPENPTY even on hosts that lacked it.
1305
1306 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1307
1308         secure_getenv: fix include typo
1309         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1310
1311         secure_getenv: port better to FreeBSD and Solaris
1312         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1313         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1314         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1315         This works better on BSDish platforms.
1316         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1317         Test for issetugid if __secure_getenv is missing.
1318
1319 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1320
1321         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1322         Some of these changes are merged in from git Autoconf.
1323         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1324         When deciding whether to define _XOPEN_SOURCE, inspect the
1325         preprocessor macro __hpux instead of the more-heavyweight
1326         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1327         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1328         as the key for __EXTENSIONS__.
1329
1330         unistd: avoid namespace pollution on non-glibc systems
1331         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1332         This avoids namespace pollution on non-glibc systems, by causing
1333         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1334         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1335         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1336
1337 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1338
1339         tmpdir: use secure_getenv
1340         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1341         Define to secure_getenv, not getenv.
1342         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1343         as that's now secure_getenv's job.
1344         * modules/tmpdir (Depends-on): Add secure_getenv.
1345
1346         tempname: use secure_getenv
1347         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1348         Define to secure_getenv, not getenv.
1349         * modules/tempname (Depends-on):
1350         Add secure_getenv.
1351
1352         secure_getenv: new module
1353         * MODULES.html.sh (Extra functions based on ANSI C 89):
1354         Add secure_getenv.
1355         * doc/glibc-functions/secure_getenv.texi: New file.
1356         * doc/gnulib.texi: Include it.
1357         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1358         New files.
1359         * lib/stdlib.in.h (secure_getenv): New decl.
1360         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1361         * modules/stdlib (stdlib.h):
1362         Add secure_getenv checks.
1363
1364 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1365
1366         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1367         Reported for OS X 10.8.2 by Assaf Gordon in
1368         <http://bugs.gnu.org/13516>.
1369         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1370         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1371         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1372         so that they can be kept in sync more easily.  Avoid PATH_MAX
1373         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1374         mkdir or chdir failure.
1375         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1376         lib/getcwd.c.
1377         (test_abort_bug): Do not test for the deep directory bug unless we
1378         have openat support.  Avoid PATH_MAX test on the Hurd.
1379
1380         regex-tests, regex: fix bug: memset undeclared
1381         * tests/test-regex.c: Don't include regex.h twice.  Include
1382         string.h, to declare memset.  Christensen's report also mentioned
1383         this issue.
1384         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1385         test-regex.c, to avoid future problems like this.  Remove
1386         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1387         twice.
1388
1389         regex-tests: fix link errors on older Solaris
1390         These need to link with @LIBINTL@ to get libintl_gettext.
1391         Problem reported by Tom G. Christensen in
1392         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1393         * modules/regex-tests (test_regex_LDADD): New macro.
1394
1395 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1396
1397         regex-tests: new module
1398         * modules/regex-tests, tests/test-regex.c: New files.
1399
1400         regex: fix off-by-one error in configure test
1401         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1402
1403 2013-01-31  Eric Blake  <eblake@redhat.com>
1404
1405         regex: avoid infinite configure test
1406         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1407
1408 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1409
1410         openpty: fix bug where HAVE_OPENPTY wasn't defined
1411         See the thread starting at:
1412         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1413         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1414         openpty function exists, not merely when we intend to replace it.
1415
1416 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1417
1418         sys_time: port to Solaris 2.6
1419         There is a circularity problem on Solaris 2.6, where <time.h> includes
1420         <sys/time.h> for struct timespec.  The include nesting is gnulib
1421         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1422         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1423         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1424         <sys/siginfo.h>; the last, innermost file needs struct
1425         timestruc_t, which is defined in <sys/time.h>, which has not been
1426         fully parsed.  Problem reported by Tom G. Christensen in
1427         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1428         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1429         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1430         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1431         uses split double-inclusion guards.
1432
1433 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1434
1435         regex: test for buffer overrun
1436         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1437         for the just-fixed regex bug.
1438
1439 2013-01-29  Andreas Schwab  <schwab@suse.de>
1440
1441         regex: fix buffer overrun in regexp matcher [BZ #15078]
1442         * lib/regexec.c (extend_buffers): Add parameter min_len.
1443         (check_matching): Pass minimum needed length.
1444         (clean_state_log_if_needed): Likewise.
1445         (get_subexp): Likewise.
1446
1447 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1448
1449         mountlist: don't consider "devtmpfs" as dummy
1450         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1451         as there is storage associcated with it.
1452
1453 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1454
1455         futimens-tests, utimens-tests: Depend on gettext.
1456         This works around a problem introduced in my 2013-01-12 patch,
1457         which added @LIBINTL@ to these modules.
1458         * modules/futimens-tests (Depends-on):
1459         * modules/utimens-tests (Depends-on): Add gettext.
1460
1461 2013-01-26  Eric Blake  <eblake@redhat.com>
1462
1463         test-getpeername: fix typo
1464         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1465
1466 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1467
1468         bootstrap: remove the need for a sorted .gitignore file
1469         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1470         rename to insert_if_absent(), so that we don't need or generate
1471         a sorted .gitignore file.  We do require a .gitignore with no
1472         existing duplicate entries and enforce that.
1473         (sort_patterns): Remove this function as we now use the simpler
1474         technigue of inserting blacklist entries at the top of the file,
1475         assuming gnulib won't be inserting !whitelist entries.
1476
1477 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1478
1479         readlinkat: don't depend on gl_FUNC_OPENAT
1480         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1481         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1482         renameat.m4, symlinkat.m4; but one thing at a time.
1483
1484         statat: new module, split out from fstatat
1485         GNU Emacs needs the POSIX-specified fstatat, but not the
1486         gnulib-specified statat and lstat.  Split the latter two into a
1487         new module 'statat'.
1488         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1489         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1490         Rename from FSTATAT_INLINE. All uses changed.
1491         * modules/fstatat (Files): Remove lib/statat.c.
1492         (gl_MODULE_INDICATOR([fstatat])): Remove.
1493         (lib_SOURCES): Remove.
1494         (Maintainer): Add self.
1495         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1496         * tests/test-fstatat.c (BASE): Don't define if already defined.
1497         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1498
1499 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1500
1501         tests: don't assume fd 99 is closed
1502         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1503         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1504         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1505         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1506         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1507         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1508         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1509         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1510         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1511         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1512         * tests/test-fwrite.c, tests/test-getpeername.c:
1513         * tests/test-getsockname.c, tests/test-getsockopt.c:
1514         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1515         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1516         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1517         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1518         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1519         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1520         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1521         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1522         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1523         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1524         Close file descriptor 99, instead of assuming it's already closed.
1525
1526 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1527
1528         stpncpy: port to OS X 10.8
1529         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1530         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1531
1532 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1533
1534         unistd: port to recent mingw
1535         * lib/unistd.in.h: Remove special invocation convention for mingw,
1536         which breaks for the latest mingw version.  See John W. Eaton in
1537         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1538
1539         largefile: port better to Mac OS X 10.5
1540         This patch is backported from Autoconf git.
1541         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1542         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1543         with ino_t size being different for configuration time versus
1544         build/run time.  Problem reported by PHO in
1545         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1546
1547 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1548
1549         doc: clarify -Werror
1550         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1551         clarify that it's intended for developers, not for ordinary builds,
1552         and mention --enable-gcc-warnings as one possible use.
1553
1554 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1555
1556         stdint: fix build with Android's Bionic fox x86
1557         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1558         was already included as _SSIZE_T_DEFINED_ might also be defined
1559         in include/machine/_types.h, which is included by stdio.h
1560
1561 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1562
1563         net_if-tests: port to Solaris 7 + GCC 3.4.6
1564         Problem reported by Tom G. Christensen in
1565         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1566         * tests/test-net_if.c (ni): Move to next the code that uses it,
1567         so that it's declared only if needed.
1568
1569 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1570
1571         net_if-tests: port to older Solaris
1572         Problem reported by Tom G. Christensen in
1573         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1574         * modules/net_if-tests (NET_IF_LIB): New substitution.
1575         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1576         (HAVE_IF_NAMEINDEX): New C macro.
1577         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1578
1579         system-quote-tests: port to older Solaris
1580         Problem reported by Tom G. Christensen in
1581         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1582         * tests/test-system-quote-child.c (fopen, fread): Undef.
1583
1584         c-xvasprintf etc.: fix link errors on older Solaris
1585         These need to link with @LIBINTL@ to get libintl_gettext.
1586         Problem reported by Tom G. Christensen in
1587         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1588         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1589         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1590         * modules/futimens-tests (test_futimens_LDADD):
1591         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1592
1593 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1594
1595         locale: port to Solaris 2.6 and 7 + GNU gettext
1596         * lib/locale.in.h: Just include_next <locale.h> when
1597         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1598         when combining the localename module with GNU gettext 0.18.2.
1599         Problem reported by Tom G. Christensen in
1600         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1601
1602 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1603
1604         stdlib: port to Solaris 2.6
1605         Also, the code worked on Solaris 7 through 9 only by accident.
1606         Problem reported by Tom G. Christensen in
1607         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1608         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1609         simply include the system stdlib.h.
1610         * lib/getopt.in.h (__need_system_stdlib_h):
1611         * lib/pthread.in.h (__need_system_stdlib_h):
1612         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1613         Define when including <stdlib.h>, to avoid problems at least for
1614         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1615         with the system stdlib.h.
1616
1617 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1618
1619         doc: update main copyright year
1620         * doc/gnulib.texi: Update copyright date.
1621
1622         doc: improve ISO 8601 discussion
1623         * doc/parse-datetime.texi (Combined date and time of day items):
1624         Specify more carefully what formats are supported and what is
1625         done with excess precision.
1626
1627 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1628
1629         doc: avoid small caps
1630         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1631         they're more trouble than they're worth.  Suggested by Karl Berry
1632         in <http://bugs.gnu.org/13360>.
1633
1634         regex: conform to strict C
1635         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1636         From Aharon Robbins.
1637
1638         gnulib-tool: fix incompatibility with autopoint 0.18.2
1639         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1640         Problem reported by Tom G. Christensen in
1641         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1642
1643 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1644
1645         fprintftime: bring back and reword fwrite comment
1646         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1647
1648         stdio: remove now-unnecessary stdio.c
1649         Since stdio.in.h no longer uses inline functions, we no longer
1650         need to compile the extern versions.
1651         * lib/stdio.c: Remove.
1652         * modules/stdio (Files): Remove lib/stdio.c.
1653         (lib_SOURCES): Remove.
1654
1655         unicodeio: depend on stdio, not ignore-value
1656         * lib/unicodeio.c: Do not include ignore-value.h.
1657         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1658         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1659
1660         fprintftime: depend on stdio, not ignore-value
1661         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1662         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1663         since the stdio module arranges to silence that warning now.
1664         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1665
1666 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1667
1668         stdint-tests: Fix expanded-before-required-warning.
1669         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1670
1671 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1672
1673         fwrite: silence __wur only for older glibc versions
1674         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1675         This will help us remove this workaround some time in the far future.
1676
1677 2013-01-03  Eric Blake  <eblake@redhat.com>
1678
1679         fwrite: silence __wur without using inline
1680         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1681         just gcc, and in a way that avoids inline issues.
1682         * modules/stdio (Depends-on): Drop extern-inline.
1683
1684 2013-01-03  Jim Meyering  <jim@meyering.net>
1685
1686         update-copyright: avoid copyright notice date corruption
1687         Given a sequence of copyright year numbers in which the final
1688         one was a two-digit number that happened to be a substring of
1689         a preceding four-digit year number, we would mistakenly update
1690         the substring (from two- to four-digit) rather than the two-digit
1691         number at the end, which, combined with the addition of the current
1692         4-digit year number would yield two 5-digit year numbers, e.g.,
1693         here, it would convert the first "99" to "1999, 2013" rather than
1694         the final one:
1695           1991, 99
1696           11999, 20131, 1999
1697         * build-aux/update-copyright: Tighten a regexp.
1698         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1699         Reported by Joseph Myers in
1700         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1701
1702 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1703
1704         regex: omit needless signed-pointer casts
1705         * lib/regcomp.c (build_charclass, build_charclass_op):
1706         Use char *, not unsigned char *, for class name and extra.
1707         The char values are always nonnegative so there's no need to
1708         insist on unsigned char * here, and using char * removes the need
1709         for casts.  Reported by Aharon Robbins in
1710         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1711
1712         regex: support Gawk, which never uses alloca
1713         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1714         Do not include in this case.  Gawk doesn't supply a substitute
1715         alloca.h and doesn't need one.
1716
1717         regex: port __libc_lock_define usage to C89
1718         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1719         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1720         does not conform to C89, as it has an empty macro argument.
1721         Reported by Aharon Robbins in
1722         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1723
1724 2013-01-01  Eric Blake  <eblake@redhat.com>
1725
1726         maint: update all copyright year number ranges
1727         Run "make update-copyright".
1728
1729         version-etc: bump copyright year reported in --version
1730         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1731
1732 2012-12-31  Eric Blake  <eblake@redhat.com>
1733
1734         sigprocmask-tests: skip test if pid is unexpectedly large
1735         * tests/test-sigprocmask.c (main): Add range check.
1736
1737         git-version-gen: avoid test -z portability glitch
1738         * build-aux/git-version-gen: Prefer portable test spelling, since
1739         git-version-gen is run on more than just developer machines.
1740
1741 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1742
1743         git-version-gen: add --fallback option to use if git is not present
1744         * build-aux/git-version-gen: Add support for the new option --fallback,
1745         which comes into play when there is no $tarball_version_file and
1746         git is not working.
1747         (scriptversion): Update.
1748
1749         maint.mk: handle missing git with more grace
1750         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1751         Quietly proceed if git is not present.
1752
1753 2012-12-31  Eric Blake  <eblake@redhat.com>
1754
1755         dup2: work around cygwin bug
1756         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1757         * lib/dup2.c (rpl_dup2): Work around it.
1758         * doc/posix-functions/dup2.texi (dup2): Document it.
1759
1760 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1761
1762         regex: remove unnecessary dependency on localcharset.h
1763         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1764         hasn't been needed for years.
1765         * modules/regex (Depends-on): Remove localcharset.
1766
1767         regex: revert single-byte change
1768         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1769         to this function.  This was alredy fixed in a different way, at
1770         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1771         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1772         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1773
1774         regex: simplify based on Gawk version
1775         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1776         Reported by Aharon Robbins in
1777         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1778
1779 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1780
1781         regex: check that pattern char is single-byte
1782         Reported by Aharon Robbins in
1783         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1784         * lib/regexec.c (check_node_accept_bytes):
1785         Return 0 if the pattern string has a multibyte character here.
1786
1787         regex: implement rational ranges
1788         Reported by Aharon Robbins in
1789         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1790         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1791         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1792         Implement rational ranges.
1793
1794         regex: avoid redefining __wctype
1795         Reported by Aharon Robbins in
1796         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1797         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1798         #undef before defining.
1799
1800         regex: port to hosts where malloc (0) == NULL
1801         Reported by Aharon Robbins in
1802         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1803         * lib/regex_internal.c (re_node_set_alloc):
1804         Don't assume that malloc (0) yields nonnull.
1805         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1806         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1807         * modules/regex (Files): Add m4/eealloc.m4.
1808
1809         regex: port to C89
1810         Reported by Aharon Robbins in
1811         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1812         * lib/regcomp.c (init_word_char): Declaration before statement.
1813
1814         regex: merge glibc changes
1815         Also, copy the license wording from glibc.  This simplifies
1816         merging changes.  gnulib-tool will change the wording to GPL as
1817         appropriate, when importing it to other packages.  The only
1818         glibc change made since the last merge, which needs merging, is:
1819         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1820         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1821
1822         * users.txt: Add Emacs.
1823
1824         doc: omit mention of version when not needed
1825         * doc/gnulib-intro.texi (Portability and Application Code):
1826         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1827         Don't mention particular dates or versions when not necessary, so
1828         that the documentation won't go out of date so quickly.
1829
1830         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1831
1832 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1833
1834         bootstrap: pass --force to autoreconf.
1835         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1836         Add "--force" so that Automake's ylwrap and other such tools
1837         be updated at each bootstrap invocation.
1838         Use it.
1839
1840 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1841
1842         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1843         The earlier patch forgot to update one of the #if conditions, causing
1844         a problem on Debian testing i386 reported by Mats Erik Andersson
1845         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1846         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1847         (__argp_fmtstream_puts, argp_fmtstream_puts)
1848         (__argp_fmtstream_write, argp_fmtstream_write)
1849         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1850
1851         * doc/gnulib-readme.texi: Minor fixups.
1852         (Portability guidelines): Modernize URLs.  Remove some repetition.
1853         (Indent with spaces not TABs): Reword to avoid too-long lines.
1854         Remove some '@ifset standalone' stuff that isn't used.
1855
1856         * doc/gnulib-readme.texi (Portability guidelines):
1857         ctype.h, not ctime.h.
1858
1859         Correct name of POSIX.1-2001.
1860         * doc/posix-functions/fgetc.texi (fgetc):
1861         * doc/posix-functions/fgets.texi (fgets):
1862         * doc/posix-functions/fread.texi (fread):
1863         * doc/posix-functions/fscanf.texi (fscanf):
1864         * doc/posix-functions/getc.texi (getc):
1865         * doc/posix-functions/getchar.texi (getchar):
1866         * doc/posix-functions/scanf.texi (scanf):
1867         POSIX.1-2001, not POSIX-2001.
1868
1869         doc: move README into manual
1870         * README: Move contents to new file doc/gnulib-readme.texi.
1871         Replace with a one-line summary.
1872         * doc/gnulib.texi (Brief Overview): New section,
1873         with old intro preface.  Include gnulib-readme.texi for contents.
1874         (Philosophy): Rename from "Introduction", since this
1875         section no longer introduces the rest.  Write a new preface.
1876         * doc/gnulib-readme.texi: New file, with the old contents of
1877         README texinfo-ized.  This way, the README info appears
1878         in the online and printed manual.
1879
1880 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1881
1882         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1883         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1884         c_vasprintf() prototype.
1885
1886 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1887
1888         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1889         * lib/c-vasprintf.h: Remove stray semicolon.
1890
1891 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1892
1893         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1894         It is obsolete and is planned to be removed from Automake 1.14; see
1895         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1896         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1897         (installdirs-data, installdirs-data-yes):
1898         Use $(MKDIR_P), not $(mkdir_p).
1899         * m4/intl.m4 (AM_INTL_SUBDIR):
1900         * m4/po.m4 (AM_PO_SUBDIRS):
1901         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1902
1903 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1904
1905         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1906         On this platform, we are not optimizing but we are using
1907         the substitute for extern inlines, so compile as if
1908         C99-style extern inline, or a substitute, is available.
1909         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1910         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1911         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1912         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1913         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1914         Declare as ARGP_FS_EI, not as extern.
1915         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1916         (__option_is_short, _option_is_end, __option_is_end)
1917         [!_LIBC && __USE_EXTERN_INLINES]:
1918         Declare as ARGP_EI, not as extern.
1919
1920 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1921
1922         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1923         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1924         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1925         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1926         ...), as the latter is fatal with older Autoconfs.
1927         Problem reported and fix suggested by Eric Blake in thread starting at
1928         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1929
1930 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1931
1932         AC_PROG_MKDIR_P: don't workaround if not buggy
1933         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1934         Define only for Autoconf versions before 2.62.
1935         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1936         undocumented m4_PACKAGE_VERSION, for consistency with the
1937         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1938         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1939         was introduced in 2.62.
1940
1941 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1942
1943         New 'c-*printf' modules for formatted output in C locale.
1944
1945         New module 'c-vasnprintf'.
1946         * modules/c-vasnprintf: New file.
1947         * lib/c-vasnprintf.c: New file.
1948         * lib/c-vasnprintf.h: New file.
1949
1950         New module 'c-snprintf'.
1951         * modules/c-snprintf: New file.
1952         * modules/c-snprintf-tests: New file.
1953         * lib/c-snprintf.c: New file.
1954         * lib/c-snprintf.h: New file.
1955         * tests/test-c-snprintf.c: New file.
1956         * tests/test-c-snprintf.sh: New file.
1957
1958         New module 'c-vsnprintf'.
1959         * modules/c-vsnprintf: New file.
1960         * modules/c-vsnprintf-tests: New file.
1961         * lib/c-vsnprintf.c: New file.
1962         * lib/c-vsnprintf.h: New file.
1963         * tests/test-c-vsnprintf.c: New file.
1964         * tests/test-c-vsnprintf.sh: New file.
1965
1966         New module 'c-vasprintf'.
1967         * modules/c-vasprintf: New file.
1968         * modules/c-vasprintf-tests: New file.
1969         * lib/c-asprintf.c: New file.
1970         * lib/c-vasprintf.c: New file.
1971         * lib/c-vasprintf.h: New file.
1972         * tests/test-c-vasprintf.c  +: New file.
1973         * tests/test-c-vasprintf.sh: New file.
1974
1975         New module 'c-xvasprintf'.
1976         * modules/c-xvasprintf: New file.
1977         * modules/c-xvasprintf-tests: New file.
1978         * lib/c-xasprintf.c: New file.
1979         * lib/c-xvasprintf.c: New file.
1980         * lib/c-xvasprintf.h: New file.
1981         * tests/test-c-xvasprintf.c: New file.
1982         * tests/test-c-xvasprintf.sh: New file.
1983
1984 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1985
1986         argp: better 'inline'
1987         Use extern-inline module to declare extern inline functions.
1988         This avoids some bogus warning diagnostics.  Problem discovered
1989         when modifying GNU tar to use the manywarnings module.
1990         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1991         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1992         Define based on extern-inline.
1993         * modules/argp (Depends-on): Add extern-inline.
1994
1995 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1996
1997         filemode, sys_stat: Handle MPX files a la AIX.
1998         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1999         * lib/sys_stat.in.h (S_ISMPX): New macro.
2000         * tests/test-sys_stat.c: Add tests for MPX files.
2001
2002 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2003
2004         x-to-1: honor $PERL
2005         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2006         a chance to use his preferred version of Perl.  This is typically
2007         required by Darwin users whose default /usr/bin/perl does not have all
2008         the libraries required by help2man, and who need to use their MacPorts
2009         installation of Perl instead.
2010
2011 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2012
2013         gnu-web-doc-update: add all the new files, even in new directories
2014         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2015         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2016         Use it.
2017         (main): Don't use cvsutils to get the list of unknown files,
2018         just add all the existing files and directories.
2019
2020 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2021
2022         gnu-web-doc-update: improve --help
2023         * build-aux/gnu-web-doc-update: Move comments into --help.
2024
2025 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2026
2027         mountlist: recognize more "dummy" file systems
2028         * lib/mountlist.c (ME_DUMMY_0):
2029         Add these dummy FS names to the list:
2030         - "debugfs" virtual filesystem for kernel debugging
2031         - "devpts" PTY slave filesystem
2032         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2033         - "fusectl" control filesystem for FUSE
2034         - "mqueue" enumerates POSIX message queues
2035         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2036         - "sysfs" is for exporting kernel objects
2037         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2038
2039 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2040
2041         extern-inline: avoid incompatibility with Darwin Libc
2042         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2043         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2044         Problem reported by Akim Demaille in
2045         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2046
2047 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2048
2049         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2050         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2051         let it handle password prompting.
2052
2053 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2054
2055         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2056         * lib/canonicalize.c (canonicalize_filename_mode):
2057         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2058         fetching the current directory.  Don't overrun the beginning of
2059         rpath if there's no slashes after the MS-Windows drive letter.
2060
2061 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2062
2063         maint.mk: avoid extra forks
2064         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2065         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2066         So use that instead of "$(shell test -f FILE && echo FILE)".
2067
2068 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2069
2070         vasnprintf: fix ASCII_ONLY typo
2071         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2072         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2073         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2074         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2075         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2076
2077 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2078
2079         list, oset, xlist, xoset: fix extern inline issue with C99
2080         This was introduced by my recent changes for 'inline'.
2081         Problem reported for gettext by Daiki Ueno in
2082         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2083         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2084         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2085         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2086         (gl_list_previous_node, gl_list_get_at)
2087         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2088         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2089         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2090         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2091         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2092         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2093         (gl_list_iterator_free, gl_sortedlist_search)
2094         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2095         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2096         (gl_sortedlist_remove):
2097         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2098         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2099         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2100         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2101         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2102         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2103         (gl_list_add_at, gl_sortedlist_add):
2104         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2105         Wrap these extern decls inside "#if 0", because they are implemented
2106         as inline functions, and extern inline is not what's wanted here.
2107         It would simplify these .h files to remove the extern decls entirely,
2108         although a downside would be less-clear separation between
2109         specification and implementation.
2110
2111 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2112
2113         sys_stat: no 'static inline'
2114         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2115         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2116
2117         extern-inline: no 'static inline'
2118         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2119         Do not require AC_C_INLINE.
2120         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2121         'static inline', for older compilers.
2122
2123         snippet/warn-on-use: no 'static inline'
2124         * build-aux/snippet/warn-on-use.h:
2125         Remove unnecessary 'inline' in comment.
2126
2127         rbtree-list, rbtreehash-list: no 'static inline'
2128         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2129         * lib/gl_anytree_list2.h (node_at):
2130         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2131         (gl_oset_first, add_nodes_to_buckets):
2132         Now static, not static inline.
2133
2134         regex: no 'static inline'
2135         * lib/regex_internal.c (calc_state_hash):
2136         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2137         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2138         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2139         Now static, not static inline.
2140         (inline) [__GNUC__ < 3 && _LIBC]:
2141         Remove macro; no longer needed.
2142
2143         xvasprintf: no 'static inline'
2144         * lib/xvasprintf.c (xstrcat):
2145         Now static, not static inline.
2146         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2147         Do not require AC_C_INLINE.
2148
2149         parse-datetime, parse-duration: no 'static inline'
2150         * lib/parse-datetime.y (to_uchar):
2151         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2152         (scale_n_add):
2153         Now static, not static inline.
2154         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2155         * modules/parse-duration (configure.ac):
2156         Do not require AC_C_INLINE.
2157
2158         getaddrinfo: no 'static inline'
2159         * lib/getaddrinfo.c (validate_family):
2160         Now static, not static inline.
2161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2162         Do not require AC_C_INLINE.
2163
2164         ftruncate, fts, lstat, openat, raise: no 'static inline'
2165         * lib/ftruncate.c (chsize_nothrow):
2166         * lib/fts.c (opendirat, diropen):
2167         * lib/lstat.c (orig_lstat):
2168         * lib/openat.c (orig_openat):
2169         * lib/raise.c (raise_nothrow):
2170         Now static, not static inline.
2171         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2172         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2173         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2174         * m4/openat.m4 (gl_PREREQ_OPENAT):
2175         * m4/raise.m4 (gl_PREREQ_RAISE):
2176         Do not require AC_C_INLINE.
2177
2178         fflush, stat: no 'static inline'
2179         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2180         (clear_ungetc_buffer, disable_seek_optimization)
2181         (restore_seek_optimization, update_fpos_cache):
2182         * lib/stat.c (orig_stat):
2183         Now static, not static inline.
2184         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2185         (update_fpos_cache):
2186         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2187         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2188         * m4/stat.m4 (gl_PREREQ_STAT):
2189         Do not require AC_C_INLINE.
2190
2191         error, filevercmp: no 'static inline'
2192         * lib/error.c (is_open, flush_stdout):
2193         * lib/filevercmp.c (order):
2194         Now static, not static inline.
2195         * m4/error.m4 (gl_PREREQ_ERROR):
2196         * modules/filevercmp (configure.ac):
2197         Do not require AC_C_INLINE.
2198
2199         dup, execute, fatal-signal, etc.: no 'static inline'
2200         * lib/dup.c (dup_nothrow):
2201         * lib/execute.c (nonintr_close, nonintr_open):
2202         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2203         * lib/fopen.c (orig_fopen):
2204         * lib/freadseek.c (freadptrinc):
2205         * lib/freopen.c (orig_freopen):
2206         * lib/fstat.c (orig_fstat, fstat_nothrow):
2207         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2208         (get_rusage_as_via_iterator):
2209         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2210         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2211         * lib/isatty.c (_isatty_nothrow):
2212         * lib/open.c (orig_open):
2213         * lib/read.c (read_nothrow):
2214         * lib/sigprocmask.c (signal_nothrow):
2215         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2216         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2217         * lib/wait-process.c (unregister_slave_subprocess):
2218         * lib/write.c (write_nothrow):
2219         Now static, not static inline.
2220         * lib/spawn-pipe.c (nonintr_open): Define only if
2221         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2222         * m4/dup.m4 (gl_PREREQ_DUP):
2223         * m4/execute.m4 (gl_EXECUTE):
2224         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2225         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2226         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2227         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2228         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2229         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2230         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2231         * m4/open.m4 (gl_PREREQ_OPEN):
2232         * m4/read.m4 (gl_PREREQ_READ):
2233         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2234         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2236         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2237         * m4/write.m4 (gl_PREREQ_WRITE):
2238         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2239         Do not require AC_C_INLINE.
2240
2241         c-strtod, memcoll, readutmp: no 'static inline'
2242         * lib/c-strtod.c (c_locale):
2243         * lib/memcoll.c (strcoll_loop):
2244         * lib/readutmp.c (desirable_utmp_entry):
2245         Now static, not static inline.
2246         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2247         * m4/memcoll.m4 (gl_MEMCOLL):
2248         * m4/readutmp.m4 (gl_READUTMP):
2249         Do not require AC_C_INLINE.
2250
2251         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2252         * lib/arctwo.c (to_uchar):
2253         * lib/md4.c (set_uint32):
2254         * lib/md5.c (set_uint32):
2255         * lib/sha1.c (set_uint32):
2256         * lib/sha256.c (set_uint32):
2257         * lib/sha512.c (set_uint64):
2258         Now static, not static inline.  This is a bit simpler, and doesn't
2259         affect performance with GCC and default optimization.
2260         * m4/arctwo.m4 (gl_ARCTWO):
2261         * m4/md4.m4 (gl_MD4):
2262         * m4/md5.m4 (gl_MD5):
2263         * m4/sha1.m4 (gl_SHA1):
2264         * m4/sha256.m4 (gl_SHA256):
2265         * m4/sha512.m4 (gl_SHA512):
2266         Do not require AC_C_INLINE.
2267
2268         cond, lock, thread: better 'inline'
2269         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2270         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2271         New macros.  Use them instead of static inline, for header functions.
2272         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2273         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2274         * lib/glthread/lock.c (gl_waitqueue_init)
2275         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2276         * lib/glthread/thread.c (get_current_thread_handle):
2277         Change 'static inline' to 'inline'.
2278         * lib/glthread/cond.h, lib/glthread/thread.h:
2279         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2280         * m4/cond.m4 (gl_COND):
2281         * m4/lock.m4 (gl_PREREQ_LOCK):
2282         * m4/thread.m4 (gl_THREAD):
2283         Do not require AC_C_INLINE.
2284         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2285
2286         chdir-long, cycle-check, savewd: better 'inline'
2287         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2288         (find_non_slash):
2289         * lib/cycle-check.c (is_zero_or_power_of_two):
2290         * lib/savewd.c (savewd_delegating):
2291         Change 'static inline' to 'inline'.
2292         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2293         Replace all remaining uses of 'static inline' with it.
2294         * lib/savewd.h:
2295         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2296         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2297         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2298         * m4/savewd.m4 (gl_SAVEWD):
2299         Do not require AC_C_INLINE.
2300         * modules/savewd (Depends-on): Add extern-inline.
2301
2302         base32, base64: no need for 'inline'
2303         * lib/base32.c (to_uchar, get_8, decode_8):
2304         * lib/base64.c (to_uchar, get_4, decode_4):
2305         Change 'static inline' to 'inline'.
2306         * m4/base32.m4 (gl_PREREQ_BASE32):
2307         * m4/base64.m4 (gl_PREREQ_BASE64):
2308         Do not require AC_C_INLINE.
2309
2310         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2311         * lib/gl_array_oset.c (gl_array_nx_add_at):
2312         (gl_array_remove_at):
2313         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2314         (add_to_bucket, remove_from_bucket):
2315         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2316         Change 'static inline' to 'static', as it's simpler to omit
2317         'inline' unless there's a significant performance advantage.
2318
2319         list, oset, xlist, xoset, xsublist: simplify via extern inline
2320         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2321         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2322         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2323         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2324         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2325         New macro.  Replace all uses of 'static inline' with it.
2326         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2327         instead of as macros FOO that are defined to static inline
2328         functions FOO_inline.
2329         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2330         * lib/gl_xsublist.c:
2331         Reimplement from scratch, by defining the corresponding *_INLINE
2332         macro and including the corresponding .h file.  This is simpler.
2333         * modules/list, modules/oset, modules/xlist, modules/xoset:
2334         (Files): Remove m4/gl_list.m4.
2335         (configure.ac): Remove gl_LIST.
2336         * m4/gl_list.m4: Remove.
2337         * modules/list, modules/oset, modules/xlist, modules/xoset:
2338         * modules/xsublist:
2339         (Depends-on): Depend on extern-inline, not inline.
2340
2341         xalloc: better 'inline'
2342         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2343         New macro.  Replace all uses of 'static inline' with it.
2344         (static_inline): Remove.
2345         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2346         Let 'extern inline' do the work automatically, instead of doing
2347         it by hand.
2348         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2349         Remove.  All uses removed.
2350         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2351
2352         gethrxtime: better 'inline'
2353         * lib/xtime.c: New file.
2354         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2355         * lib/xtime.h (XTIME_INCLUDE):
2356         New macros.  Replace all uses of 'static inline' with them.
2357         * lib/gethrxtime.c (gethrxtime): Define only if
2358         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2359         this source file is now always compiled, because of the extern inline.
2360         * lib/gethrxtime.h, lib/xtime.h:
2361         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2362         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2363         if gethrtime works, as they're not needed in that case.
2364         (gl_XTIME): Do not require AC_C_INLINE.
2365         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2366         compiled now.  Move the check into gl_GETHRXTIME.
2367         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2368         (Depends-on): Add extern-inline.
2369         (configure.ac): gethrxtime is always compiled now.
2370         (lib_SOURCES): Add gethrxtime.c.
2371
2372         wctype-h: better 'inline'
2373         * lib/wctype-h.c: New file.
2374         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2375         New macro.  Replace all uses of 'static inline' with it.
2376         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2377         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2378         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2379         (Depends-on): Add extern-inline.
2380
2381         unistd: better 'inline'
2382         * lib/unistd.c: New file.
2383         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2384         New macro.  Replace all uses of 'static inline' with it.
2385         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2386         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2387         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2388         (Depends-on): Add extern-inline.
2389
2390         sys_socket: better 'inline'
2391         * lib/sys_socket.c: New file.
2392         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2393         New macro.  Replace all uses of 'static inline' with it.
2394         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2395         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2396         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2397         (Depends-on): Add extern-inline.
2398
2399         stdio: better 'inline'
2400         * lib/stdio.c: New file.
2401         * lib/stdio.in.h (_GL_STDIO_INLINE):
2402         New macro.  Replace all uses of 'static inline' with it.
2403         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2404         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2405         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2406         (Depends-on): Add extern-inline.
2407
2408         sigaction: better 'inline'
2409         * lib/sig-handler.c: New file.
2410         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2411         New macro.  Replace all uses of 'static inline' with it.
2412         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2413         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2414         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2415         (Depends-on): Add extern-inline.
2416
2417         selinux-h: better 'inline'
2418         * lib/se-context.c, lib/se-selinux.c: New files.
2419         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2420         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2421         New macro.  Replace all uses of 'static inline' with it.
2422         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2423         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2424         New macro.  Replace all uses of 'static inline' with it.
2425         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2426         * modules/selinux-h (Files, lib_SOURCES):
2427         Add lib/se-context.c, lib/se-selinux.c.
2428         (Depends-on): Add extern-inline.
2429         (configure.ac): Do not require AC_C_INLINE.
2430
2431         pthread: better 'inline'
2432         * lib/pthread.c: New file.
2433         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2434         New macro.  Replace all uses of 'static inline' with it.
2435         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2436         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2437         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2438         * modules/pthread (Files): Add lib/pthread.c.
2439         (Depends-on): Add extern-inline.
2440
2441         math: better 'inline'
2442         * lib/math.c: New file.
2443         * lib/math.in.h (_GL_MATH_INLINE):
2444         New macro.  Replace all uses of 'static inline' with it.
2445         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2446         * m4/math_h.m4 (gl_MATH_H):
2447         Do not require AC_C_INLINE.
2448         * modules/math (Files, lib_SOURCES):
2449         Add lib/math.c.
2450         (Depends-on): Add extern-inline.
2451
2452         count-one-bits: better 'inline'
2453         * lib/count-one-bits.c: New file.
2454         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2455         New macro.  Replace all uses of 'static inline' with it.
2456         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2457         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2458         Do not require AC_C_INLINE.
2459         * modules/count-one-bits (Files, lib_SOURCES):
2460         Add lib/count-one-bits.c.
2461         (Depends-on): Add extern-inline.
2462
2463         count-leading-zeros: better 'inline'
2464         * lib/count-leading-zeros.c: New file.
2465         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2466         New macro.  Replace all uses of 'static inline' with it.
2467         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2468         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2469         Do not require AC_C_INLINE.
2470         * modules/count-leading-zeros (Files, lib_SOURCES):
2471         Add lib/count-leading-zeros.c.
2472         (Depends-on): Add extern-inline.
2473
2474         bitrotate: better 'inline'
2475         * lib/bitrotate.c: New file.
2476         * lib/bitrotate.h (BITROTATE_INLINE):
2477         New macros.
2478         Replace all uses of 'static inline' with them.
2479         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2480         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2481         (Depends-on): Add extern-inline.
2482         (configure.ac): Do not require AC_C_INLINE.
2483
2484 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2485
2486         maint.mk: avoid gratuitous failure
2487         Reported by Stefano Lattarini in
2488         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2489         * top/maint.mk (public-submodule-commit): Quote more safely.
2490
2491 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2492
2493         canonicalize, canonicalize-lgpl: support MS-Windows file names
2494         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2495         for test cases, which it'd be nice to add at some point.
2496         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2497         * lib/canonicalize.c (canonicalize_filename_mode):
2498         * lib/canonicalize-lgpl.c (__realpath):
2499         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2500         slash is at the beginning of the file name.  Use ISSLASH, instead
2501         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2502         the first character with '/'.  Test for
2503         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2504         with a drive letter.
2505         * lib/canonicalize.c (SLASHES): New macro.
2506         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2507
2508 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2509
2510         fts: introduce FTS_VERBATIM
2511         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2512         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2513         * lib/fts.c (fts_open): Honor it.
2514
2515 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2516
2517         getlogin-tests: allow errno == ENXIO
2518         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2519         with errno == ENXIO (No controlling tty).
2520         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2521         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2522         with errno == ENOENT.  This was reported to happen in various
2523         situations on GNU/Linux.
2524
2525 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2526
2527         getlogin-tests: allow errno == ENOENT
2528         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2529         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2530         when running a test in an Emacs shell buffer.
2531
2532 2012-11-08  Jim Meyering  <jim@meyering.net>
2533
2534         tests/nap.h: avoid warning about unused variable
2535         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2536
2537         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2538         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2539         white space before each of the special-cased file names, to avoid
2540         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2541         in http://bugs.gnu.org/12830.
2542
2543 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2544
2545         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2546         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2547         fails with errno == EBADF when fd is opened with O_PATH.
2548         Reported by Jim Meyering in
2549         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2550         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2551         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2552
2553 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2554
2555         test-utimens: speed up by taking shorter naps
2556         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2557         New functions.
2558         (nap): Use them, to do a better job of guessing the delay.
2559         On Fedora 17 with ext4 atop md atop hard disks, this made
2560         test-utimens run 10x faster, because the test napped for
2561         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2562         <http://bugs.gnu.org/12820#11>.
2563
2564 2012-11-07  Jim Meyering  <jim@meyering.net>
2565
2566         mountlist.c: fix a compilation failure
2567         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2568         I introduced while transforming commit v0.0-7683-g613bcb6
2569
2570 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2571
2572         errno: port to LynxOS 178 2.2.2
2573         Problem reported by Joel Brobecker in
2574         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2575         * doc/posix-headers/errno.texi (errno.h): Document this.
2576         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2577         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2578         Supply a string for EILSEQ.
2579         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2580
2581 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2582
2583         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2584         Linux kernel 2.6.39 introduced O_PATH (see
2585         <http://lwn.net/Articles/433854/>) and this is a better fallback
2586         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2587         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2588         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2589         * lib/fcntl.in.h (O_ACCMODE):
2590         * tests/test-fcntl-h.c (main):
2591         Do not reject O_ACCMODE merely because it has more than the
2592         minimal number of bits, as POSIX allows extensions here.
2593
2594 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2595
2596         mountlist: do not classify a bind-mounted dir entry as "dummy"
2597         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2598         the "none"-testing clause.
2599         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2600         exception for bind-mounted directories.
2601
2602 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2603
2604         quote: provide a means to escape strings with nul characters
2605         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2606         (quote, quote_n): Rename formal arguments for consistency with
2607         quotearg.
2608
2609 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2610
2611         test-raise: don't assume 199 is an invalid signal
2612         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2613
2614         sh-quote-tests: port to Solaris 9
2615         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2616         Problem reported by Dagobert Michelsen in
2617         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2618
2619 2012-10-28  Jim Meyering  <jim@meyering.net>
2620
2621         maint.mk: rename a new configurable variable
2622         * top/maint.mk (_gl_translatable_string_re): Rename from
2623         translation-markers: _gl_ prefix to insulate from user Makefile code,
2624         and the _re suffix to inform that it's a regular expression.
2625
2626 2012-10-26  Eric Blake  <eblake@redhat.com>
2627
2628         maint.mk: let packages tweak sc_po_check pattern
2629         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2630         finding files with other translation markers.
2631
2632 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2633
2634         euidaccess: speed up 'configure' on GNU hosts
2635         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2636         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2637         it's needed only in this case.  Use AC_CHECK_DECLS, not
2638         AC_CHECK_DECLS_ONCE.
2639         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2640         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2641
2642         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2643
2644 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2645
2646         fchmodat, fchownat, fstatat: port to non-inlining compilers
2647         Problem reported for FreeBSD 9 by Jim Meyering in
2648         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2649         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2650         New files, which define FCHMODAT_INLINE etc.
2651         * lib/fchmodat.c (FCHMODAT_INLINE):
2652         * lib/fchownat.c (FCHOWNAT_INLINE):
2653         * lib/fstatat.c (FSTATAT_INLINE):
2654         Remove, as chmodat.c etc. now do this.
2655         * modules/fchmodat (Files): Add lib/chmodat.c.
2656         * modules/fchownat (Files): Add lib/chownat.c.
2657         * modules/fstatat (Files): Add lib/statat.c.
2658
2659 2012-10-15  Jim Meyering  <jim@meyering.net>
2660
2661         fchmodat.c, fchownat.c: compile-impeding typos
2662         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2663         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2664         Introduced in commit v0.0-7636-gd202279.
2665
2666 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2667
2668         fcntl-h: support GNU flags like O_IGNORE_CTTY
2669         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2670         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2671         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2672         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2673         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2674         Define to 0 if not already defined.
2675         * tests/test-fcntl-h.c: Test these new flags.
2676
2677 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2678
2679         faccessat, etc.: support AT_FDCWD-only use
2680         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2681         this function only if its first argument is AT_FDCWD.
2682         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2683         values other than AT_FDCWD, so it doesn't want all the openat
2684         machinery with fchdir etc.
2685         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2686         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2687         * modules/unlinkat (Files):
2688         Remove lib/openat-priv.h, as at-internal supplies this file.
2689         Removing this file here allows us to support programs like Emacs
2690         that avoid at-internal.
2691
2692         faccessat: speed up 'configure' on mainstream hosts
2693         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2694         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2695         since it's only on unusual platforms that we need to check for
2696         'access', and it's better not to slow 'configure' down on all
2697         platforms.
2698
2699         faccessat: port to Solaris 10
2700         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2701         Needed on Solaris 10, which doesn't have AT_EACCESS,
2702         so we need the Gnulib fcntl.h, which defines it.
2703
2704 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2705         canonicalize: fix C89 compilation
2706         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2707         declarations so C89 is supported.  Also remove the comment
2708         referencing memorty allocation as the suggested feature could
2709         not be implemented as suggested.
2710         Reported by Michael Goffioul.
2711
2712 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2713
2714         group-member: omit unnecessary dependencies
2715         This is for Emacs, which has its own allocator and where we
2716         don't want to use xalloc.
2717         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2718         since we no longer use xmalloc.  Do not include stdbool.h, since
2719         the changes below happen to remove the only use of bool.
2720         (GROUPBUF_SIZE): New constant.
2721         (struct group_info): Remove n_groups member.  Add groupbuf member.
2722         This lets us get the groups without using malloc, usually.
2723         (free_group_info, get_group_info): Adjust to this.
2724         (get_group_info): Return the number of groups found, or -1 on error.
2725         Use plain malloc not xmalloc, and treat its failure as if there
2726         are no groups, as the user already loses in case of error.
2727         (group_member): Simplify, based on changes to get_group_info.
2728         * modules/group-member (Depends-on): Remove dependencies on
2729         xalloc and stdbool.  Add dependency on xalloc-oversized.
2730
2731 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2732
2733         gethrxtime: port to C++
2734         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2735
2736 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2737
2738         ptsname: fix macro-name typo
2739         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2740
2741 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2742
2743         inttostr: Relax license.
2744         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2745
2746 2012-10-03  Eric Blake  <eblake@redhat.com>
2747
2748         ptsname_r: support ptys returned by FreeBSD posix_openpt
2749         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2750         lives in /dev/pts/.
2751
2752 2012-10-02  Eric Blake  <eblake@redhat.com>
2753
2754         pselect: reject invalid file descriptors
2755         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2756         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2757         * modules/pselect (Depends-on): Add dup2.
2758         * doc/posix-functions/pselect.texi (pselect): Document this.
2759
2760         select: reject invalid file descriptors
2761         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2762         * lib/select.c (rpl_select) [!win32]: Work around it.
2763         * modules/select (Depends-on): Add dup2.
2764         * doc/posix-functions/select.texi (select): Document this.
2765
2766         select: enhance test
2767         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2768         New functions.
2769         (test_function): Enhance test.
2770         (do_select_bad_fd): Avoid any stale errno values.
2771
2772         ptsname: reject invalid file descriptors
2773         http://www.austingroupbugs.net/view.php?id=503
2774         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2776         * modules/stdlib (Makefile.am): Replace witness.
2777         * lib/stdlib.in.h (ptsname): Allow for replacement.
2778         * modules/ptsname (configure.ac): Trigger replacement.
2779         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2780
2781 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2782
2783         hash-pjw-bare: new module
2784         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2785         * lib/hash-pjw-bare.h: Likewise.
2786         * modules/hash-pjw-bare: New file.
2787         * MODULES.html.sh (Misc): Add it.
2788
2789 2012-10-02  Eric Blake  <eblake@redhat.com>
2790
2791         manywarnings: cater to more gcc infelicities
2792         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2793         -Wuninitialized without -O.
2794
2795 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2796
2797         select, poll tests: Make setsockopt invocation effective.
2798         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2799         the bind() call.
2800         * tests/test-select.h (open_server_socket): Likewise.
2801
2802 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2803
2804         sockets, sys_stat: restore AC_C_INLINE
2805         This undoes the 2012-09-22 patch.
2806         * m4/sockets.m4 (gl_SOCKETS):
2807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2808         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2809         and does not support plain 'inline'.  Reported by Bruno Haible in
2810         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2811
2812 2012-09-30  Bruno Haible  <bruno@clisp.org>
2813
2814         localeconv tests: Avoid test failure on OpenIndiana.
2815         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2816         skip the 'grouping' and 'mon_grouping' tests.
2817         Reported by Jim Meyering.
2818
2819 2012-09-30  Bruno Haible  <bruno@clisp.org>
2820
2821         havelib: Follow libtool developments.
2822         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2823         Suggested by Simon Josefsson.
2824
2825 2012-09-29  Jim Meyering  <meyering@redhat.com>
2826
2827         fstatat.c: fix a compile-impeding typo
2828         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2829         Introduced in commit v0.0-7636-gd202279.
2830         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2831
2832 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2833
2834         extern-inline: provide a -Wundef safe config.h
2835         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2836         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2837         to produce a -Wundef warning free config.h.
2838
2839 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2840
2841         hash-pjw: relax license to LGPLv2+
2842         * modules/hash-pjw (License): Relax, with consent of author.
2843
2844 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2845
2846         maint.mk: fix strict vs. lazy variable issues with RELEASE
2847         * top/maint.mk (_equal): New function.
2848         (member_check): Strip the result to avoid spurious spaces.
2849         (url_dir_list): Do not use ifeq, which is strict, as it will
2850         require RELEASE_TYPE to be defined.
2851         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2852         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2853         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2854         (announcement_Cc_beta,announcement_mail_headers_beta)
2855         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2856         (release): Do not depend on $(release-type), as it forces its
2857         evaluation.  Bounce to it.
2858
2859 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2860
2861         maint.mk: formatting changes
2862         * top/maint.mk: Indent bodies of if's.
2863
2864 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2865
2866         maint.mk: factor the validation of RELEASE_TYPE
2867         With help from Jim Meyering.
2868         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2869         * top/maint.mk (_empty, _sp): Move their definition earlier.
2870         (member-check, release-type): New.
2871         Use the latter instead of $(RELEASE_TYPE).
2872         Remove now useless local checks.
2873
2874 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2875
2876         maint.mk: provide "make upload" to ease uploading
2877         See
2878         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2879         Do not depend simply on the current $(VERSION), as there may have been
2880         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2881         as "make release-commit" already does.
2882
2883         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2884         "make TYPE".
2885
2886         * top/maint.mk (upload_command, upload, release): New.
2887         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2888         (VERSION): first word of $(RELEASE) is always right.
2889         (emit_upload_commands): Adjust.
2890         * top/README-release: Update.
2891
2892 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2893
2894         maint.mk: silent rules
2895         With help from Stefano Lattarini.
2896         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2897         (announcement): Use $(AM_V_at).
2898
2899 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2900
2901         localename: port gl_locale_name_thread_unsafe to FreeBSD
2902         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2903         and use the simpler FreeBSD implementation on Mac OS X as well.
2904         Original idea suggested by Ed Maste in
2905         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2906
2907 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2908
2909         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2910         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2911         * lib/mbuiter.c, lib/xsize.c: New files.
2912         * lib/binary-io.h (BINARY_IO_INLINE):
2913         * lib/eealloc.h (EEALLOC_INLINE):
2914         * lib/mbfile.h (MBFILE_INLINE):
2915         * lib/mbiter.h (MBITER_INLINE):
2916         * lib/mbuiter.h (MBUITER_INLINE):
2917         * lib/xsize.h (XSIZE_INLINE):
2918         New macros.
2919         Replace all uses of 'static inline' with them.
2920         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2921         * m4/eealloc.m4 (gl_EEALLOC):
2922         * m4/mbfile.m4 (gl_MBFILE):
2923         * m4/mbiter.m4 (gl_MBITER):
2924         * m4/xsize.m4 (gl_XSIZE):
2925         Do not require AC_C_INLINE.
2926         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2927         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2928         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2929         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2930         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2931         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2932         * modules/binary-io, modules/eealloc, modules/mbfile:
2933         * modules/mbiter, modules/mbuiter:
2934         (Depends-on): Add extern-inline.
2935
2936         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2937         * lib/pipe-filter-aux.c: New file.
2938         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2939         Replace all uses of 'static inline' with it.
2940         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2941         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2942         (filter_retcode): No real need for inline here.
2943         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2944         (Files): Add lib/pipe-filter-aux.c.
2945         (Depends-on): Add extern-inline.
2946         (configure.ac): Do not require AC_C_INLINE.
2947         (lib_SOURCES): Add pipe-filter-aux.c.
2948
2949         fdutimensat: omit unnecessary AC_C_INLINE
2950         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2951
2952         fchmodat, fchownat, fstatat: use extern-inline
2953         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2954         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2955         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2956         New macros.
2957         * lib/openat.h:
2958         Replace all uses of 'static inline' with them.
2959         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2960         * modules/fchmodat, modules/fchownat, modules/fstatat:
2961         * modules/openat-h:
2962         (Depends-on):
2963         Add extern-inline.
2964         (configure.ac): Remove AC_C_INLINE.
2965
2966         acl, mbchar, priv-set: use extern-inline
2967         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2968         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2969         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2970         New macros.
2971         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2972         Replace all uses of 'static inline' with it.
2973         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2974         * m4/acl.m4 (gl_FUNC_ACL):
2975         * m4/mbchar.m4 (gl_MBCHAR):
2976         * m4/priv-set.m4 (gl_PRIV_SET):
2977         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2978         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2979         Add extern-inline.
2980
2981         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2982         * m4/sockets.m4 (gl_SOCKETS):
2983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2984         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2985         environments where it's already guaranteed to work, so we needn't
2986         check for it at 'configure'-time.
2987
2988         tls-tests: omit unnecessary 'inline'
2989         * tests/test-tls.c (perhaps_yield): No longer inline.
2990         Simplicity and portability trump efficiency in test cases.
2991
2992         utimens-tests: avoid unnecessary 'inline'
2993         * modules/fdutimensat-tests (configure.ac):
2994         * modules/futimens-tests (configure.ac):
2995         * modules/utimens-tests (configure.ac):
2996         * modules/utimensat-tests (configure.ac):
2997         Remove AC_C_INLINE.
2998         * tests/test-utimens-common.h (ctime_compare):
2999         No longer inline.  Simplicity and portability trump efficiency here.
3000
3001         misc: don't limit commentary to inline functions
3002         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3003         * lib/xalloc-oversized.h, lib/xsize.h:
3004         Contrast macros to functions in general, not just to inline functions,
3005         when the commentary does not apply only to inline functions.
3006
3007 2012-09-20  Jim Meyering  <meyering@redhat.com>
3008
3009         non-recursive-gnulib-prefix-hack: new module
3010         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3011         the file that originated in Bison.
3012         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3013         largely copied from a snippet that resided in bison's configure.ac.
3014         * modules/non-recursive-gnulib-prefix-hack: New file.
3015         * MODULES.html.sh (Support for maintaining and releasing projects):
3016         Add it.
3017
3018 2012-09-18  Jim Meyering  <meyering@redhat.com>
3019
3020         maint.mk: generalize _gl_tight_scope for non-recursive make
3021         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3022         that *.h would describe additional .h files in the directory
3023         specified by $(_gl_TS_dir).  I.e., add this...
3024         (_gl_TS_other_headers): New variable.
3025
3026         maint.mk: exempt trailing blanks found in "binary" files
3027         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3028         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3029         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3030
3031 2012-09-17  Jim Meyering  <meyering@redhat.com>
3032
3033         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3034         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3035         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3036         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3037
3038 2012-09-17  Jim Meyering  <meyering@redhat.com>
3039
3040         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3041         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3042         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3043         It is not in the same category as "exit (0)" or "exit (1)", and
3044         besides, I know of no symbolic name for that 77.  Reported by
3045         Richard W.M. Jones in
3046         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3047
3048 2012-09-17  Jim Meyering  <meyering@redhat.com>
3049
3050         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3051         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3052         all uses of #define, not just those that start in column 1.
3053         Richard W.M. Jones reported a false positive in
3054         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3055
3056 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3057
3058         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3059         * lib/localcharset.c (locale_charset) [DARWIN7]:
3060         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3061         as these two values are incompatible.  Problem reported by Max Horn.
3062         For more discussion, please see
3063         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3064
3065         doc: document sticky-EOF issue
3066         * doc/posix-functions/fgetc.texi (fgetc):
3067         * doc/posix-functions/fgets.texi (fgets):
3068         * doc/posix-functions/fread.texi (fread):
3069         * doc/posix-functions/fscanf.texi (fscanf):
3070         * doc/posix-functions/getc.texi (getc):
3071         * doc/posix-functions/getchar.texi (getchar):
3072         * doc/posix-functions/scanf.texi (scanf):
3073         Mention that glibc and default Solaris do not conform to
3074         C99 and POSIX-2001 or later, with respect to how getchar
3075         etc. behave when feof reports nonzero.
3076
3077 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3078
3079         poll: fix poll(0, NULL, msec)
3080         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3081         but nfd is 0.  In that case poll should behave like select.
3082
3083 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3084             Paolo Bonzini <bonzini@gnu.org>
3085
3086         poll: fix for systems that can't recv() on a non-socket
3087         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3088         is readable.  In this case POLLHUP will not be supported.
3089         * doc/posix-functions/poll.texi: Document this.
3090
3091 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3092
3093         poll/select: document portability problems not fixed by Gnulib.
3094         * doc/posix-functions/poll.texi: poll does not work well on
3095         pipes under Windows.  It has the same limitations as select on
3096         BeOS.
3097         * doc/posix-functions/select.texi: select does not work well
3098         on pipes under Windows.
3099
3100 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3101
3102         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3103         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3104         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3105         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3106
3107 2012-09-06  Eric Blake  <eblake@redhat.com>
3108
3109         net_if: give more details about the bug being fixed
3110         * doc/posix-headers/net_if.texi: Add clarification.
3111
3112 2012-09-05  Eric Blake  <eblake@redhat.com>
3113
3114         net_if: new module
3115         * modules/net_if: New module, borrowing ideas from netinet_in.
3116         * m4/net_if_h.m4: New file.
3117         * lib/net_if.in.h: Likewise.
3118         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3119         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3120         * tests/test-net_if.c: Make function checks conditional.
3121         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3122
3123 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3124
3125         readutmp: fix non-portable UT_PID use
3126         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3127         Use `UT_PID (u) > 0' as absolute condition.
3128
3129 2012-09-04  Jim Meyering  <meyering@redhat.com>
3130
3131         fts: reduce two or more trailing spaces to just one, usually
3132         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3133         or more slashes, trim all but the final one.  But if a name consists
3134         solely of two slashes, don't modify it.  If it consists solely of
3135         three or more slashes, strip all but one.
3136
3137         This is part of the solution to a minor problem with rm:
3138         it would print a bogus ELOOP diagnostic when failing to remove
3139         the slash-decorated name of a symlink-to-directory:
3140
3141             $ mkdir d && ln -s d s && env rm -r s/
3142             rm: cannot remove 's': Too many levels of symbolic links
3143
3144         With the change below and a trivial don't-trim-trailing-slashes
3145         adjustment to remove.c, it does this:
3146
3147             $ env rm -r s/
3148             rm: cannot remove 's/': Not a directory
3149
3150         Improved by: Eric Blake
3151
3152         fts: when there is no risk of overlap, use memcpy, not memmove
3153         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3154
3155 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3156
3157         stdbool: be more compatible with mixed C/C++ compiles
3158         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3159         Define to bool, true, false, respectively, as GCC's builtin
3160         stdbool.h does.  Problem reported by Michael Goffioul in
3161         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3162
3163 2012-08-28  Jim Meyering  <meyering@redhat.com>
3164
3165         revert last change: it was not needed
3166         * tests/test-vc-list-files-git.sh: There's already a test for
3167         a working git, just below.
3168
3169 2012-08-28  Jim Meyering  <meyering@redhat.com>
3170
3171         tests: test-vc-list-files-git.sh: skip if git is not available
3172         * tests/test-vc-list-files-git.sh: Skip this test when git is
3173         not available.
3174
3175 2012-08-26  Bruno Haible  <bruno@clisp.org>
3176
3177         gnulib-tool: Remove no-op option --no-changelog.
3178         * gnulib-tool (func_usage): Don't mention --no-changelog.
3179         (do_changelog): Remove variable.
3180         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3181
3182 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3183
3184         doc: remove fdl-1.2.texi
3185         It is no longer used or maintained, and its use of @acronym
3186         is problematic.  See the thread containing
3187         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3188         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3189         * doc/old-licenses/fdl-1.2.texi: Remove.
3190
3191         execinfo: port to FreeBSD
3192         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3193         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3194         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3195         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3196
3197 2012-08-23  Jim Meyering  <meyering@redhat.com>
3198
3199         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3200         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3201         to placate gcc's -Wold-style-declaration.
3202
3203 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3204
3205         doc: do not use @acronym
3206         * doc/inet_ntoa.texi (inet_ntoa):
3207         * doc/parse-datetime.texi (Seconds since the Epoch)
3208         (Specifying time zone rules):
3209         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3210         Don't use @acronym.  Problem reported by John Darlington in
3211         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3212
3213 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3214
3215         stdnoreturn: port to newer GCCs
3216         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3217         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3218         Problem reported by Jim Meyering in
3219         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3220         Also, rename the 'test' function to a void a clash with the
3221         already-supplied 'main' function; this fixes a bug that incorrectly
3222         rejected GCC 4.7.1's <stdnoreturn.h>.
3223         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3224         Document GCC problem.
3225
3226 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3227
3228         pipe-filter: fix comment typo
3229         * lib/pipe-filter.h: Mention correct function.
3230
3231 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3232
3233         execinfo: new module
3234         This is for Emacs.  Currently, it provides a no-effect stub
3235         on all platforms where it does not already work.
3236         It already works on glibc-based systems, and on Solaris 11.
3237         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3238         New files.
3239         * doc/glibc-headers/execinfo.texi (execinfo.h):
3240         * MODULES.html.sh (Misc): Document it.
3241
3242 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3243
3244         extern-inline: support old GCC 'inline'
3245         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3246         if available.  This applies to GCC versions 2.7 through 4.2, or
3247         when newer GCC is using -fgnu89-inline.  The goal is to address
3248         some of the performance issues mentioned by Bruno Haible in
3249         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3250
3251 2012-08-20  Eric Blake  <eblake@redhat.com>
3252
3253         maint.mk: avoid redundant file name in message
3254         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3255         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3256         (sc_makefile_path_separator_check): Remove bogus $(ME).
3257
3258 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3259
3260         timer-time: fix link order when static linking on glibc
3261         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3262         _after_ -lrt so that it's significant.
3263
3264 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3265
3266         timespec: omit unnecessary AC_C_INLINE
3267         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3268
3269         stat-time: omit unnecessary AC_C_INLINE
3270         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3271         Do not require AC_C_INLINE.
3272
3273         ignore-value: omit unnecessary AC_C_INLINE
3274         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3275
3276         sys_select: avoid 'static inline'
3277         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3278
3279         mktime: avoid 'static inline'
3280         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3281         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3282
3283 2012-08-19  Bruno Haible  <bruno@clisp.org>
3284
3285         gnulib-tool: Improve coding style.
3286         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3287         func_emit_lib_Makefile_am.
3288         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3289
3290 2012-08-19  Bruno Haible  <bruno@clisp.org>
3291
3292         gnulib-tool: Fix indentation.
3293         * gnulib-tool (func_import): Fix indentation.
3294
3295 2012-08-19  Bruno Haible  <bruno@clisp.org>
3296
3297         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3298         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3299         on the list of removed files.
3300
3301 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3302
3303         test-parse-datetime: avoid glibc leap-second glitch
3304         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3305         with the 2012 rules.  Problem reported by Bruce Dubbs in
3306         <http://bugs.gnu.org/12206>.
3307
3308 2012-08-14  Bruno Haible  <bruno@clisp.org>
3309
3310         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3311         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3312         from argument.
3313         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3314
3315 2012-08-14  Eric Blake  <eblake@redhat.com>
3316
3317         ldexp: relax license
3318         * modules/ldexp (License): Trivial relax, since the module only
3319         provides a permissively licensed m4 file.
3320
3321 2012-08-13  Bruno Haible  <bruno@clisp.org>
3322
3323         gnulib-tool: Fix persistence of --witness-c-macro option.
3324         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3325         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3326
3327 2012-08-11  Eric Blake  <eblake@redhat.com>
3328
3329         count-leading-zeros: use a lookup table on non-gcc compilers
3330         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3331         alternate implementation, suggested by Jim Meyering.
3332
3333 2012-08-10  Eric Blake  <eblake@redhat.com>
3334
3335         count-leading-zeros: new module
3336         * modules/count-leading-zeros: New module.
3337         * m4/count-leading-zeros.m4: New file.
3338         * lib/count-leading-zeros.h: Likewise.
3339         * modules/count-leading-zeros-tests: New test.
3340         * tests/test-count-leading-zeros.c: New file.
3341         * MODULES.html.sh (Integer arithmetic functions): Document it.
3342
3343 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3344             Jim Meyering  <meyering@redhat.com>
3345
3346         maintainer-makefile: Fix syntax error with dash.
3347         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3348         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3349
3350 2012-08-05  Jim Meyering  <meyering@redhat.com>
3351
3352         extern-inline: also ignore -Wmissing-declarations
3353         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3354         required with gcc-4.8.0-to-be.
3355
3356         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3357         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3358         for /error ?([^,]*)/.  This avoids false-positives for strings like
3359         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3360
3361 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3362
3363         gnumakefile: better interaction with Automake-NG
3364         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3365         Automake-NG always contain a definition of VPATH, even in non-VPATH
3366         builds (its value being simply '.' in that case).  So, in the
3367         'clean-GNUmakefile' rule, to determine whether running under a
3368         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3369         '$(VPATH)' expands to the empty string.
3370
3371 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3372
3373         base64: Use extern C scope in header file, for C++.
3374         * lib/base64.h: Add C++ namespace protection.
3375
3376 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3377
3378         stat-time, timespec, u64: support naive out-of-dir builds
3379         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3380         Use '#include "foo.h"', not '#include <foo.h>', when including
3381         one's own interface.  This works better when configuring with
3382         out-of-directory builds, since packages need not add an
3383         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3384
3385 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3386
3387         utimens: use extern-inline
3388         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3389         * lib/utimens.h: Add copyright notice, since this is now large enough
3390         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3391         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3392         * modules/utimens (Depends-on): Add extern-inline.
3393
3394         u64: use extern-inline
3395         * lib/u64.c: New file.
3396         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3397         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3398         * modules/u64 (Files): Add lib/u64.c.
3399         (Depends-on): Add extern-inline.
3400         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3401         does that now.
3402         (lib_SOURCES): Add u64.c.
3403
3404         timespec: use extern-inline
3405         * lib/timespec.c: New file.
3406         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3407         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3408         * modules/timespec (Files): Add lib/timespec.c.
3409         (Depends-on): Add extern-inline.
3410         (lib_SOURCES): Add timespec.c.
3411
3412         stat-time: use extern-inline
3413         * lib/stat-time.c: New file.
3414         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3415         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3416         * modules/stat-time (Files): Add lib/stat-time.c.
3417         (Depends-on): Add extern-inline.
3418         (lib_SOURCES): Add stat-time.c.
3419
3420         extern-inline: new module
3421         * modules/extern-inline, m4/extern-inline.m4: New files.
3422         This is for better support of 'extern inline' a la ISO C99,
3423         with a portable alternative on compilers that do not support
3424         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3425         of the Emacs executable, when compiled with debugging disabled,
3426         which is a typical way that Emacs is built while developing.
3427
3428 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3429
3430         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3431         * build-aux/do-release-commit-and-tag: Move variable definitions
3432         together.
3433         ($branch): Instead of defaulting to "master", default to the current
3434         branch (as gnu-web-doc-update does).
3435         (help): Display the current values of the option arguments.
3436         * top/maint.mk (release-commit): New.
3437         * top/README-release: Simplify the corresponding step.
3438
3439 2012-07-30  Eric Blake  <eblake@redhat.com>
3440
3441         passfd: fix comment on recvfd
3442         * lib/passfd.c (recvfd): Fix comment.
3443         Reported by Jann Horn <jannhorn@googlemail.com>.
3444
3445 2012-07-30  Jim Meyering  <meyering@redhat.com>
3446
3447         maint.mk: avoid a sub-shell
3448         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3449
3450 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3451
3452         maint.mk: use silent-rules support from Automake
3453         * top/maint.mk (news-check, vc-diff-check, announcement)
3454         (no-submodule-changes, alpha beta stable, release-prep)
3455         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3456
3457 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3458
3459         maint.mk: provide a web-manual-update target
3460         * top/maint.mk: here.
3461         * top/README-release: Use it to simplify the web manual update step.
3462
3463 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3464
3465         README-release: shorten the circuit to post a news
3466         * top/README-release: Point directly to the news submission form.
3467
3468 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3469
3470         gnu-web-doc-update: fix --help
3471         * build-aux/gnu-web-doc-update: The information "top level" was written
3472         twice.
3473
3474 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3475
3476         maint.mk: absolute VPATH issue
3477         * top/maint.mk (release-prep): Help Git find .git/.
3478         From Jim Meyering.
3479
3480 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3481
3482         gitlog-to-changelog: fix previous change
3483         * build-aux/gitlog-to-changelog: Fix condition.
3484         Add missing ";".
3485
3486 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3487
3488         gitlog-to-changelog: don't expect .git to be in $srcdir
3489         Reported by Bruno Haible.
3490         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3491         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3492         Use it.
3493
3494 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3495
3496         maint.mk: absolute VPATH build fix
3497         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3498         $(srcdir) is not a parent of $(builddir).
3499
3500 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3501
3502         clean-temp: Fix memory leak.
3503         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3504         'files' members of tmpdir.
3505
3506 2012-07-27  Jim Meyering  <meyering@redhat.com>
3507
3508         maint.mk: new rule: refresh-gnulib-patches
3509         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3510         Use this rule to refresh them.
3511         * top/maint.mk (refresh-gnulib-patches): New rule.
3512
3513 2012-07-24  Bruno Haible  <bruno@clisp.org>
3514
3515         gnulib-tool: Fix handling of inctests variable.
3516         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3517         Reported by Nick Bowler <nbowler@elliptictech.com>.
3518
3519 2012-07-22  Bruno Haible  <bruno@clisp.org>
3520
3521         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3522         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3523         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3524         Remove exemption for getpass.h.
3525         Suggested by Eric Blake.
3526
3527 2012-07-20  Eric Blake  <eblake@redhat.com>
3528
3529         verify: document conflict with -Wnested-externs
3530         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3531
3532         maint.mk: forbid exit(-1)
3533         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3534
3535 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3536
3537         fsusage: port back to Solaris
3538         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3539         error (fsd not declared) on Solaris 10.  Reported privately by
3540         Andrew Borodin.
3541
3542 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3543
3544         gnu-web-doc-update: fix error messages
3545         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3546
3547         gnu-web-doc-update: check the requirements.
3548         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3549         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3550         * build-aux/bootstrap (find_tool): Comment change.
3551
3552 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3553
3554         maint.mk: minor simplication.
3555         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3556         for default values.
3557
3558 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3559
3560         gitlog-to-changelog: VPATH build issues
3561         If builddir is not a subdirectory of srcdir, running git from it will
3562         fail.
3563         * build-aux/gitlog-to-changelog (--srcdir): New option.
3564
3565 2012-07-15  Bruno Haible  <bruno@clisp.org>
3566
3567         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3568         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3569         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3570         Remove exemption for fpending.h.
3571         Suggested by Eric Blake.
3572
3573 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3574
3575         pthread_sigmask: fix bug on FreeBSD 9
3576         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3577         Include string.h.
3578         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3579         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3580         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3581         but pthread_sigmask (1729, NULL, NULL) returns zero.
3582         See <http://bugs.gnu.org/11884>.
3583         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3584         by inspecting whether the main call changed the old mask.
3585
3586 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3587
3588         README-release: make it more legible
3589         * top/README-release: Improve typography slightly.
3590
3591 2012-07-15  Jim Meyering  <meyering@redhat.com>
3592
3593         maint: require that each sc_... command start with "@"
3594         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3595         "make sc_maint" helps us avoid this nit.
3596
3597 2012-07-15  Jim Meyering  <meyering@redhat.com>
3598
3599         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3600         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3601
3602 2012-07-13  Eric Blake  <eblake@redhat.com>
3603
3604         maint.mk: new syntax check for HAVE_DECL checks
3605         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3606         * cfg.mk
3607         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3608         Exempt some false positives.
3609         Based on a report by Karel Zak.
3610
3611         argp: make HAVE_DECL usage consistent
3612         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3613         macros, not whether they are defined.
3614         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3615         convention with other declaration checks.
3616         Reported by Karel Zak, with suggestions from Paul Eggert.
3617
3618         stat-time: relax license to LGPLv2+
3619         * modules/stat-time (License): Relax, with consent of all authors.
3620
3621         strndup: fix m4 usage error
3622         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3623         defined, to either 0 or 1.
3624         Reported by Karel Zak.
3625
3626 2012-07-11  Jim Meyering  <meyering@redhat.com>
3627
3628         maint: enable the sc_avoid_if_before_free syntax-check rule
3629         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3630         (if_before_free_offenders_): Define.
3631         (if_before_free_basename_re_): Define.
3632         Exempt current files with useless if-before-free.
3633
3634 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3635
3636         gettext: do not assume '#define ... defined ...' behavior
3637         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3638         Do not use '#define FOO ... defined BAR ...', as the C standard says
3639         it's not portable to expect that this works after macro expansion.
3640         Problem reported for gzip by Steven M. Schweda in
3641         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3642
3643 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3644
3645         getloadavg: clean out old Emacs and Autoconf cruft
3646         See Glenn Morris in <http://bugs.gnu.org/11905>.
3647         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3648         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3649         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3650         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3651
3652 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3653
3654         bootstrap: let warn be like tests/init.sh's warn_
3655         Reported by Jim Meyering.
3656         * build-aux/bootstrap (warn): Remove, replaced by...
3657         (warnf_, warn_): these.
3658         Adjust callers.
3659         Shorten messages that no longer fit in 80 columns.
3660
3661 2012-07-09  Bruno Haible  <bruno@clisp.org>
3662
3663         getopt: Simplify after Emacs changed.
3664         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3665         (gl_GETOPT_IFELSE): Remove macro.
3666
3667 2012-07-09  Jim Meyering  <meyering@redhat.com>
3668
3669         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3670         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3671
3672         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3673         Bugs in both of those conspired to make the
3674         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3675         _sc_search_regexp's handling of non-empty $in_files would filter
3676         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3677         choice of in_files value meant there would be no match in most
3678         projects, due to the presence of two or more Makefile.in files.
3679         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3680         Fix a bug in how a non-empty $$in_files was processed:
3681         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3682         in spite of the name, it's a regexp, not a list of file names.
3683
3684 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3685
3686         getloadavg, getopt: fix commentary re configure.in
3687         Autoconf is deprecating the name 'configure.in', so change it to
3688         to the new name 'configure.ac' in a couple of places.
3689         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3690         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3691         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3692         Emacs has renamed it to configure.ac, and it no longer refers
3693         to these macros anyway.
3694
3695         timespec: mark functions with const attributes
3696         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3697         Mark with _GL_ATTRIBUTE_CONST.
3698
3699 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3700
3701         canonicalize[-lgpl]: handle "guessing" values when cross-building
3702         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3703         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3704         matches "*yes" instead of just "yes".  Regression introduced in commit
3705         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3706
3707 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3708             Bruno Haible  <bruno@clisp.org>
3709
3710         canonicalize: make the right guess when cross-compiling to GNU
3711         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3712         determine whether cross-compiling to glibc systems, so as to
3713         include GNU/Hurd.
3714
3715 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3716
3717         timespec-sub: avoid duplicate include
3718         * lib/timespec-sub.c: Do not include <config.h> twice.
3719         Reported by Juanma Barranquero.
3720
3721 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3722
3723         bootstrap: use a more consistent error reporting scheme
3724         * build-aux/bootstrap (warn, die): New.
3725         Use them.
3726
3727 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3728
3729         sys_time: allow too-wide tv_sec
3730         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3731         timeval even if tv_sec is wider than time_t.  This allows
3732         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3733         as without this patch gnulib replaces struct timeval
3734         and OpenBSD futimes therefore has a type mismatch.
3735         * doc/posix-headers/sys_time.texi: Mention this.
3736
3737         pthread: check for both pthread_create and pthread_join
3738         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3739         alter the check so that it tests for both pthread_create and
3740         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3741         Suggested by Bruno Haible and Richard Yao in
3742         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3743
3744         parse-datetime: doc tuneup
3745         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3746         spacing issues.
3747
3748 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3749
3750         do-release-commit-and-tag: fix the previous commit
3751         * build-aux/do-release-commit-and-tag: Actually the test was right,
3752         but the comment and the error message were misleading.
3753         Fix comment, and improve error message.
3754         Perform check first, so that NEWS is not modified uselessly.
3755
3756         do-release-commit-and-tag: fix typo
3757         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3758         _not_ start with a stub.
3759
3760 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3761
3762         pthread: check for pthread_create, not pthread_join
3763         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3764         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3765         pthread_join in libc.  I hope this removes the need for all the
3766         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3767         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3768
3769 2012-07-04  Jim Meyering  <meyering@redhat.com>
3770
3771         parse-datetime: fix failure to diagnose invalid input
3772         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3773         rather than diagnosing the invalid input.  Now it reports this:
3774         date: invalid date '\260'
3775         * lib/parse-datetime.y (to_uchar): Define.
3776         (yylex): Don't sign-extend "other" bytes.
3777         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3778         Thanks to Bruno Haible for the patch to this file.
3779         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3780         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3781
3782 2012-07-03  Jim Meyering  <meyering@redhat.com>
3783
3784         bootstrap: do not require now-removed build-aux/missing
3785         Now that build-aux/missing is, er, missing, bootstrap would
3786         silently fail.
3787         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3788         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3789         no longer part of gnulib.
3790         Diagnose the failure.
3791
3792 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3793
3794         alloca: add support for HP NonStop TNS/E native
3795         * lib/alloca.in.h (alloca): Support the new host.
3796         From a suggestion by Joachim Schmitz in
3797         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3798
3799 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3800
3801         fsusage: remove code not needed on non GNU/Linux systems.
3802
3803         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3804         Don't include headers no longer needed in this case.
3805         * lib/fsusage.c [STAT_STATVFS &&
3806         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3807         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3808
3809 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3810
3811         fsusage: include files needed for glibc 2.6 fallback
3812         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3813         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3814         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3815         Problem reported by Ludovic Courtès in
3816         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3817
3818         fsusage: avoid needless check on GNU/Linux
3819         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3820         on GNU/Linux systems, since it can't possibly work.
3821
3822 2012-07-01  Bruno Haible  <bruno@clisp.org>
3823
3824         log: Fix an autoconf >= 2.64 warning.
3825         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3826         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3827
3828 2012-06-28  Bruno Haible  <bruno@clisp.org>
3829
3830         log10f: Fix possible configuration problem.
3831         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3832         $LOGF_LIBM.
3833         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3834
3835 2012-06-28  Bruno Haible  <bruno@clisp.org>
3836
3837         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3838         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3839         not gl_cv_func_unlink_works.
3840         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3841
3842 2012-06-27  Eric Blake  <eblake@redhat.com>
3843
3844         config: drop scripts that automake says are not independent
3845         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3846         * build-aux/elisp-comp: Delete.
3847         * build-aux/missing: Likewise.
3848         * build-aux/ylwrap: Likewise.
3849         * modules/elisp-comp: Likewise.
3850         * MODULES.html.sh: Drop mention of elisp-comp.
3851         * NEWS: Mention this.
3852
3853 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3854
3855         root-uid: new module
3856         This is for portability to Tandem's NonStop Kernel.
3857         * lib/root-uid.h, modules/root-uid: New files.
3858         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3859         * lib/write-any-file.c, tests/test-sethostname2.c:
3860         Include "root-uid.h".
3861         * lib/euidaccess.c (euidaccess):
3862         * lib/pt_chown.c (main):
3863         * lib/unlinkdir.c (cannot_unlink_dir):
3864         * lib/write-any-file.c (can_write_any_file):
3865         * m4/mknod.m4 (gl_FUNC_MKNOD):
3866         * tests/test-sethostname2.c (geteuid, main):
3867         Don't assume ROOT_UID == 0.
3868         * modules/euidaccess (Depends-on):
3869         * modules/pt_chown (Depends-on):
3870         * modules/sethostname-tests (Depends-on):
3871         * modules/unlinkdir (Depends-on):
3872         * modules/write-any-file (Depends-on):
3873         Add root-uid.
3874
3875         regex: use locale-independent comparison for codeset name
3876         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3877         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3878         for codeset name.
3879         * lib/regex_internal.h: Do not include <strings.h>, since we
3880         no longer use strcasecmp.
3881         * modules/regex (Depends-on): Remove strcase.
3882
3883 2012-06-23  Bruno Haible  <bruno@clisp.org>
3884
3885         getopt-posix: No longer guarantee that option processing is resettable.
3886         * doc/posix-functions/getopt.texi: Drop description of problem with
3887         internal state. Fix info about mingw and msvc9.
3888         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3889         option processing by getopt(). Run three test programs instead of one.
3890         Simplify cross-compilation guess.
3891         * NEWS: Mention the change.
3892         Reported by Rich Felker <dalias@aerifal.cx>.
3893
3894 2012-06-26  Bruno Haible  <bruno@clisp.org>
3895
3896         argp, regex: Ensure strcasecmp gets declared.
3897         * lib/argp-help.c: Include <strings.h>.
3898         * lib/regex_internal.h: Likewise.
3899         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3900
3901 2012-06-24  Bruno Haible  <bruno@clisp.org>
3902
3903         ptsname_r: Make it consistent with ptsname on AIX.
3904         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3905         implementation as for OSF/1.
3906         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3907         a pty master.
3908
3909         ptsname_r: Make it consistent with ptsname on OSF/1.
3910         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3911         OSF/1.
3912
3913 2012-06-24  Bruno Haible  <bruno@clisp.org>
3914
3915         ttyname_r: Fix result on OSF/1, Solaris.
3916         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3917
3918 2012-06-24  Bruno Haible  <bruno@clisp.org>
3919
3920         ptsname_r: Add support for Solaris.
3921         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3922         Solaris.
3923
3924         ptsname_r: Fix test failure on native Windows.
3925         * modules/ptsname_r (Depends-on): Add isatty.
3926
3927         ptsname_r: Fix test failures on IRIX, Solaris.
3928         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3929         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3930         accordingly.
3931         * lib/ptsname_r.c: Include <fcntl.h>.
3932         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3933         set errno if fd is invalid.
3934         * tests/test-isatty.c (main): Update comments.
3935
3936 2012-06-24  Bruno Haible  <bruno@clisp.org>
3937
3938         ptsname test: Extend test.
3939         * tests/test-ptsname.c: Include <errno.h>.
3940         (main): Test behaviour with invalid file descriptor.
3941
3942 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3943
3944         time: fix obsolete comment
3945         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3946         reference to HAVE_STRUCT_TIMESPEC in comment.
3947
3948 2012-06-23  Bruno Haible  <bruno@clisp.org>
3949
3950         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3952         does not handle abbreviated long options with equivalent
3953         disambiguations, set gl_replace_getopt to yes.
3954         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3955
3956 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3957
3958         time_r: fix typo that always overrode localtime_r decl
3959         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3960         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3961         not in a standard include.
3962
3963 2012-06-22  Bruno Haible  <bruno@clisp.org>
3964
3965         Write "Mac OS X" instead of "MacOS X".
3966         * README: Write "Mac OS X" instead of "MacOS X".
3967         * build-aux/bootstrap: Likewise.
3968         * build-aux/install-reloc: Likewise.
3969         * lib/acl-internal.h: Likewise.
3970         * lib/acl_entries.c: Likewise.
3971         * lib/argp-ba.c: Likewise.
3972         * lib/argp-pv.c: Likewise.
3973         * lib/config.charset: Likewise.
3974         * lib/copy-acl.c: Likewise.
3975         * lib/csharpexec.c: Likewise.
3976         * lib/euidaccess.c: Likewise.
3977         * lib/fbufmode.c: Likewise.
3978         * lib/fflush.c: Likewise.
3979         * lib/file-has-acl.c: Likewise.
3980         * lib/filemode.h: Likewise.
3981         * lib/fpurge.c: Likewise.
3982         * lib/freadable.c: Likewise.
3983         * lib/freadahead.c: Likewise.
3984         * lib/freading.c: Likewise.
3985         * lib/freadptr.c: Likewise.
3986         * lib/freadseek.c: Likewise.
3987         * lib/fseeko.c: Likewise.
3988         * lib/fseterr.c: Likewise.
3989         * lib/fsusage.c: Likewise.
3990         * lib/fwritable.c: Likewise.
3991         * lib/fwriting.c: Likewise.
3992         * lib/get-rusage-as.c: Likewise.
3993         * lib/get-rusage-data.c: Likewise.
3994         * lib/getdomainname.c: Likewise.
3995         * lib/idpriv-drop.c: Likewise.
3996         * lib/idpriv-droptemp.c: Likewise.
3997         * lib/localcharset.c: Likewise.
3998         * lib/locale.in.h: Likewise.
3999         * lib/localename.c: Likewise.
4000         * lib/mbsrtowcs-state.c: Likewise.
4001         * lib/nproc.c: Likewise.
4002         * lib/passfd.c: Likewise.
4003         * lib/posix_openpt.c: Likewise.
4004         * lib/printf-parse.c: Likewise.
4005         * lib/progreloc.c: Likewise.
4006         * lib/safe-read.h: Likewise.
4007         * lib/safe-write.h: Likewise.
4008         * lib/sched.in.h: Likewise.
4009         * lib/set-mode-acl.c: Likewise.
4010         * lib/signal.in.h: Likewise.
4011         * lib/stdint.in.h: Likewise.
4012         * lib/stdio-impl.h: Likewise.
4013         * lib/stdlib.in.h: Likewise.
4014         * lib/strtod.c: Likewise.
4015         * lib/sys_select.in.h: Likewise.
4016         * lib/tcgetsid.c: Likewise.
4017         * lib/unistd.in.h: Likewise.
4018         * lib/unlockpt.c: Likewise.
4019         * lib/vasnprintf.c: Likewise.
4020         * lib/vma-iter.c: Likewise.
4021         * lib/wcsrtombs-state.c: Likewise.
4022         * m4/acl.m4: Likewise.
4023         * m4/acosl.m4: Likewise.
4024         * m4/asinl.m4: Likewise.
4025         * m4/atanl.m4: Likewise.
4026         * m4/c-stack.m4: Likewise.
4027         * m4/cosl.m4: Likewise.
4028         * m4/expl.m4: Likewise.
4029         * m4/extensions.m4: Likewise.
4030         * m4/fdatasync.m4: Likewise.
4031         * m4/fmal.m4: Likewise.
4032         * m4/frexp.m4: Likewise.
4033         * m4/frexpf.m4: Likewise.
4034         * m4/frexpl.m4: Likewise.
4035         * m4/fsusage.m4: Likewise.
4036         * m4/getdomainname.m4: Likewise.
4037         * m4/getloadavg.m4: Likewise.
4038         * m4/getopt.m4: Likewise.
4039         * m4/gettext.m4: Likewise.
4040         * m4/gnulib-common.m4: Likewise.
4041         * m4/intdiv0.m4: Likewise.
4042         * m4/intlmacosx.m4: Likewise.
4043         * m4/largefile.m4: Likewise.
4044         * m4/ldexpl.m4: Likewise.
4045         * m4/link-follow.m4: Likewise.
4046         * m4/locale-ar.m4: Likewise.
4047         * m4/locale-fr.m4: Likewise.
4048         * m4/locale-ja.m4: Likewise.
4049         * m4/locale-tr.m4: Likewise.
4050         * m4/locale-zh.m4: Likewise.
4051         * m4/locale_h.m4: Likewise.
4052         * m4/lock.m4: Likewise.
4053         * m4/logl.m4: Likewise.
4054         * m4/mathfunc.m4: Likewise.
4055         * m4/minus-zero.m4: Likewise.
4056         * m4/mktime.m4: Likewise.
4057         * m4/mmap-anon.m4: Likewise.
4058         * m4/multiarch.m4: Likewise.
4059         * m4/nanosleep.m4: Likewise.
4060         * m4/nocrash.m4: Likewise.
4061         * m4/poll.m4: Likewise.
4062         * m4/printf-frexpl.m4: Likewise.
4063         * m4/printf.m4: Likewise.
4064         * m4/signbit.m4: Likewise.
4065         * m4/sinl.m4: Likewise.
4066         * m4/sqrtl.m4: Likewise.
4067         * m4/strerror_r.m4: Likewise.
4068         * m4/tanl.m4: Likewise.
4069         * m4/threadlib.m4: Likewise.
4070         * m4/ttyname_r.m4: Likewise.
4071         * m4/unlink.m4: Likewise.
4072         * m4/visibility.m4: Likewise.
4073         * m4/wcwidth.m4: Likewise.
4074         * tests/minus-zero.h: Likewise.
4075         * tests/test-alloca-opt.c: Likewise.
4076         * tests/test-copy-acl.sh: Likewise.
4077         * tests/test-copy-file.sh: Likewise.
4078         * tests/test-fdatasync.c: Likewise.
4079         * tests/test-file-has-acl.sh: Likewise.
4080         * tests/test-flock.c: Likewise.
4081         * tests/test-fsync.c: Likewise.
4082         * tests/test-localename.c: Likewise.
4083         * tests/test-malloca.c: Likewise.
4084         * tests/test-nonblocking-pipe.h: Likewise.
4085         * tests/test-nonblocking-socket.h: Likewise.
4086         * tests/test-openpty.c: Likewise.
4087         * tests/test-posix_openpt.c: Likewise.
4088         * tests/test-ptsname.c: Likewise.
4089         * tests/test-ptsname_r.c: Likewise.
4090         * tests/test-sameacls.c: Likewise.
4091         * tests/test-select.h: Likewise.
4092         * tests/test-set-mode-acl.sh: Likewise.
4093         * tests/test-snprintf-posix.h: Likewise.
4094         * tests/test-sprintf-posix.h: Likewise.
4095         * tests/test-strtod.c: Likewise.
4096         * tests/test-time.c: Likewise.
4097         * tests/test-vasnprintf-posix.c: Likewise.
4098         * tests/test-vasprintf-posix.c: Likewise.
4099         * doc/acl-resources.txt: Likewise.
4100         * doc/**/*.texi: Likewise.
4101         Reported by Max Horn <max@quendi.de>.
4102
4103 2012-06-22  Bruno Haible  <bruno@clisp.org>
4104
4105         grantpt: Relax requirement regarding invalid file descriptors.
4106         * lib/grantpt.c: Don't include <fcntl.h>.
4107         (grantpt): Don't verify the validity of the file descriptor.
4108         * modules/grantpt (Depends-on): Remove fcntl-h.
4109         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4110         file descriptors.
4111         * doc/posix-functions/grantpt.texi: Document more platforms on which
4112         grantpt succeeds for invalid file descriptors.
4113         Reported by Rich Felker <dalias@aerifal.cx>.
4114
4115 2012-06-22  Bruno Haible  <bruno@clisp.org>
4116
4117         fbufmode test: Don't test unportable behaviour.
4118         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4119         (main): Invoke it three times.
4120         Reported by Szabolcs Nagy <nsz@port70.net>
4121         and Rich Felker <dalias@aerifal.cx>.
4122
4123 2012-06-21  Bruno Haible  <bruno@clisp.org>
4124
4125         gnulib-tool: Refactor inctests variable.
4126         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4127         (func_modules_transitive_closure,
4128         func_modules_transitive_closure_separately,
4129         func_import, func_create_testdir): Update.
4130
4131         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4132         * gnulib-tool: Accept option --without-tests.
4133         (func_usage): Document --without-tests option. Rearrange.
4134         (inctests): Normalize according to the mode.
4135         * NEWS: Mention the change.
4136         Suggested by Simon Josefsson.
4137
4138 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4139
4140         parse-duration test: Avoid spurious output.
4141         * tests/test-parse-duration.sh: Reindent with leading tabs.
4142
4143 2012-06-21  Jim Meyering  <meyering@redhat.com>
4144
4145         maint: disable the strncpy prohibition
4146         * cfg.mk: Do not prohibit strncpy here.
4147
4148 2012-06-21  Bruno Haible  <bruno@clisp.org>
4149
4150         nonblocking: Avoid compilation error on mingw64.
4151         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4152         fscanf.
4153         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4154         * modules/vfscanf (configure.ac): Likewise.
4155         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4156         definition only if stdio.h has prepared it.
4157         Reported by Daniel P. Berrange <berrange@redhat.com>.
4158
4159 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4160
4161         gnulib-tool: Use readlink if it is available.
4162         * gnulib-tool (func_readlink): Choose function more appropriately.
4163
4164 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4165
4166         posixtm-tests: port to buggy compiler
4167         Problem reported by Simon Josefsson in
4168         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4169         * modules/posixtm-tests (Depends-on): Add stdint.
4170         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4171         Now of type int_least64_t, not int64_t, both because that's
4172         what INT64_C returns and because int_least64_t works even
4173         on 72-bit hosts.
4174         (T): Use INT64_C on constants outside the traditional int range,
4175         to work around compiler bug noted by Simon.
4176
4177         mktime: fix integer overflow in 'configure'-time test
4178         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4179         after integer overflow.  Problem reported by Rich Felker in
4180         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4181         Also, don't look for further instances of a bug if we've already
4182         found one instance; this helps 'configure' run faster.
4183
4184 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4185
4186         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4187         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4188         GetVersionEx correctly.
4189         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4190
4191 2012-06-20  Bruno Haible  <bruno@clisp.org>
4192
4193         fdopen: Allow implementations that don't reject invalid fd arguments.
4194         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4195         succeeds.
4196         Reported by Rich Felker <dalias@aerifal.cx>.
4197
4198 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4199
4200         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4201         bring in LIBINTL.
4202
4203 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4204
4205         init.sh: do not rely on autoupated PWD
4206         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4207         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4208         Although Nelson's bug was not necessarily fixed by this patch,
4209         it seems wise to make the change for safety.
4210         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4211         automagically after 'cd'; this is not reliable on older shells.
4212         (setup_): Fail if we cannot cd to temporary directory.
4213
4214 2012-06-19  Bruno Haible  <bruno@clisp.org>
4215
4216         stat, fstat: Avoid warnings on mingw64.
4217         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4218         redefining.
4219         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4220         Reported by Daniel P. Berrange <berrange@redhat.com>.
4221
4222 2012-06-19  Bruno Haible  <bruno@clisp.org>
4223
4224         stdioext: Add support for musl libc.
4225
4226         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4227         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4228
4229         * m4/fseterr.m4: New file.
4230         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4231         function exists.
4232         * modules/fseterr (Files): Add m4/fseterr.m4.
4233         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4234         __fseterr does not exist.
4235         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4236
4237         * lib/freadable.h: Update comment.
4238
4239         * lib/fwritable.h: Update comment.
4240
4241         * lib/freading.h: Update comment.
4242
4243         * lib/fwriting.h: Update comment.
4244
4245         * m4/freadahead.m4: New file.
4246         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4247         that function exists.
4248         * modules/freadahead (Files): Add m4/freadahead.m4.
4249         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4250         __freadahead does not exist.
4251         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4252
4253         * m4/freadptr.m4: New file.
4254         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4255         function exists.
4256         * modules/freadptr (Files): Add m4/freadptr.m4.
4257         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4258         __freadptr does not exist.
4259         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4260
4261         * m4/freadseek.m4: New file.
4262         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4263         exists.
4264         * modules/freadseek (Files): Add m4/freadseek.m4.
4265         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4266
4267         * lib/fpurge.c (fpurge): Update comment.
4268
4269         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4270
4271 2012-06-19  Bruno Haible  <bruno@clisp.org>
4272
4273         *printf-posix: Put more info into config.log.
4274         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4275         exit code into config.log.
4276
4277 2012-06-19  Bruno Haible  <bruno@clisp.org>
4278
4279         getopt-gnu: Fix exit code overflow in autoconf test.
4280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4281         to keep them below < 128.
4282
4283 2012-06-17  Jim Meyering  <meyering@redhat.com>
4284
4285         maint.mk: fix typo in code to derive GPG key at release time
4286         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4287
4288 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4289
4290         regex: avoid warning when pointers are not long
4291         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4292         and uintptr_t, not long, for portability to hosts where pointers and
4293         long have different sizes.  Issue noted by Daniel P. Berrange in
4294         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4295         and fix suggested by Bruno Haible in
4296         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4297
4298 2012-06-17  Bruno Haible  <bruno@clisp.org>
4299
4300         dummy: Relicense into the public domain.
4301         * modules/dummy (License): Set to "public domain".
4302         Suggested by Reuben Thomas.
4303
4304 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4305
4306         announce-gen: VPATH issues
4307         * build-aux/announce-gen (--srcdir): New option, used to trim the
4308         $srcdir part of the path from $builddir to NEWS.
4309         * top/maint.mk (announcement): Adjust.
4310
4311 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4312
4313         gnu-web-doc-update: VPATH builds
4314         * build-aux/gnu-web-doc-update (--builddir): New option.
4315         Revamp the handling of options.
4316         Prefer $(...) to `...`.
4317         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4318         the template, and it is GNU mktemp specific.
4319         Prefer set -e to long series of &&.
4320         Restore the initial git branch, not "master".
4321         Properly initialize submodules (don't rely only on bootstrap).
4322         Do not reconfigure blindly, use config.status.
4323         * top/README-release: Update instructions for gnu-web-doc-update.
4324
4325 2012-06-11  Jim Meyering  <meyering@redhat.com>
4326
4327         maint.mk: revert most of the previous change re "all these"
4328         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4329         For rationale, see the discussion at
4330         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4331
4332 2012-06-10  Karl Berry  <karl@gnu.org>
4333
4334         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4335
4336         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4337
4338 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4339
4340         parse-duration: Relicense under LGPLv2+.
4341         * modules/parse-duration (License): Change to LGPLv2+.
4342
4343 2012-06-10  Jim Meyering  <meyering@redhat.com>
4344
4345         maint.mk: prohibit common grammar error: "all these"
4346         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4347         the list of prohibited word sequences.  It should be "all of these".
4348         * lib/tempname.c (__gen_tempname): Fix one of them.
4349
4350 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4351
4352         do-release-commit-and-tag: support VPATH builds
4353         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4354         (noteworthy): Defined earlier to factor its value.
4355         (noteworthy_stub): New.
4356         Use it to factor.
4357         (help_version): Split into...
4358         (help, version): these.
4359         Adjust the option processing part.
4360         Support "--option=value" in addition to "--option value".
4361         (builddir): New.
4362         (--builddir): New option.
4363         * top/README-release: Document this.
4364         Reword slightly so that the reader cannot understand that he
4365         has to do these steps before calling do-release-commit-and-tag.
4366
4367 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4368
4369         readme-release: also require announce-gen and maintainer-makefile
4370         * modules/readme-release (Depends-on): here.
4371         * modules/announce-gen, modules/do-release-commit-and-tag,
4372         modules/gnu-web-doc-update, modules/maintainer-makefile
4373         (Description): Point to readme-release.
4374
4375 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4376
4377         maint.mk: fix VPATH issues.
4378         * top/maint.mk (news-check): GNU Make understand $< very well.
4379         (release-prep): NEWS is in $(srcdir).
4380
4381 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4382
4383         readme-release: require the promoted modules.
4384         * modules/readme-release (Depends-on): Add
4385         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4386         in this text.
4387
4388 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4389             Bruno Haible  <bruno@clisp.org>
4390
4391         error, strerror-override: Support mingw64 from Fedora 17.
4392         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4393         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4394         EINPROGRESS.
4395         * lib/strerror-override.h (strerror_override): Test it.
4396         * lib/strerror-override.c (strerror_override): Likewise.
4397         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4398
4399 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4400             Bruno Haible  <bruno@clisp.org>
4401
4402         error, strerror-override: Support mingw64 from Fedora 17.
4403         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4404         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4405         * lib/strerror-override.h (strerror_override): Test it.
4406         * lib/strerror-override.c (strerror_override): Likewise.
4407
4408 2012-06-03  Bruno Haible  <bruno@clisp.org>
4409
4410         error, strerror-override: Support new errno values from POSIX:2008.
4411         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4412         ENOTRECOVERABLE.
4413         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4414         platforms.
4415         * lib/strerror-override.c (strerror_override): Conditionalize the
4416         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4417         * lib/strerror-override.h (strerror_override): Declare also if
4418         GNULIB_defined_EOWNERDEAD is defined.
4419         * tests/test-errno.c (e130, e131): New variables.
4420         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4421         ENOTRECOVERABLE.
4422         Reported by Paolo Bonzini.
4423
4424 2012-05-31  Jim Meyering  <meyering@redhat.com>
4425
4426         savewd: add missing dependency on sys_wait module
4427         * modules/savewd (Depends-on): Add sys_wait, needed at least
4428         for MSVC.  Report and suggested change by Michael Goffioul.
4429
4430 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4431
4432         system-quote-tests: port to CentOS 5
4433         Problem reported by Tom G. Christensen in
4434         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4435         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4436
4437 2012-05-29  Jim Meyering  <meyering@redhat.com>
4438
4439         maint: fix typos in comments and ChangeLog
4440         Culprits identified and fixed mostly automatically using these commands:
4441         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4442         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4443         using http://github.com/lyda/misspell-check
4444         * ChangeLog: Fix typos.
4445         * doc/solaris-versions: Likewise.
4446         * lib/regexec.c (re_search_stub): Likewise.
4447         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4448
4449 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4450
4451         manywarnings: remove duplicate -Wmultichar entry
4452         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4453         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4454         so keep the entry marked as documented.
4455
4456 2012-05-27  Karl Berry  <karl@gnu.org>
4457
4458         * config/srclist.txt (mktime.c): remove last libc sync,
4459         perhaps just temporarily.
4460
4461 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4462
4463         regex: don't assume uint64_t or uint32_t
4464         * lib/regcomp.c (init_word_char): Don't assume that the types
4465         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4466         them, and on some 32-bit compilers there is no uint64_t.
4467         Problem reported by Gianluigi Tiesi in
4468         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4469
4470 2012-05-25  Jim Meyering  <meyering@redhat.com>
4471
4472         maint.mk: add strncpy-prohibiting syntax-check rule
4473         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4474
4475 2012-05-24  Jim Meyering  <meyering@redhat.com>
4476
4477         maint.mk: compute $(gpg_key_ID) more portably
4478         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4479         That use of sed is not portable to some fringe systems.
4480         Reported by Paul Eggert in
4481         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4482
4483 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4484
4485         mktime: sync from glibc
4486         * config/srclist.txt: Uncomment mktime.c.
4487         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4488         First, indent with tabs, since glibc uses tabs and doesn't want to
4489         change and we'd rather be identical to glibc.  Also, two small
4490         coding changes:
4491         (isdst_differ): Use &&, not &, as && is the usual style.
4492         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4493         for clarity.
4494
4495 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4496
4497         announce-gen: du -h is more portable than du --human
4498         * build-aux/announce-gen (sizes): Invoke du with -h instead
4499         of --human.  Accept leading white space in its output.
4500
4501 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4502
4503         announce-gen: Improve diagnostics.
4504         * build-aux/announce-gen: When parsing command line options,
4505         prefer "announce-gen: option --release-type requires an argument"
4506         to "Option release-type requires an argument".
4507
4508 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4509
4510         maint.mk: gpg_key_ID: use sed more portably
4511         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4512         the closing brace.
4513         (refresh-po): Fuse two sed invocations into one.
4514
4515 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4516
4517         gitlog-to-changelog: support the log message format used in Bison.
4518         * build-aux/gitlog-to-changelog: Support --strip-tab and
4519         --strip-cherry-picked.
4520
4521 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4522
4523         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4524         the rest of the current time slice to another thread in the current
4525         process. So if the thread that feeds the file decscriptor we're
4526         polling is not in the current process, we get busy-waiting.
4527         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4528         Patch from Theodore Leblond.
4529         * lib/select.c: Split polling out of the loop that sets the output
4530         fd_sets.  Check for zero result and loop if the wait timeout is
4531         infinite.
4532
4533 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4534
4535         select: Fix build error on IRIX 6.5.
4536         * lib/select.c: Include stddef.h for NULL.
4537
4538 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4539
4540         gc: fix libgcrypt detection on older machines.
4541         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4542         copyright years because the file has been distributed every year
4543         since it was created.
4544
4545 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4546
4547         crypto: fix bug in large buffer handling
4548         Problem reported by Serge Belyshev for glibc in
4549         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4550         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4551         * lib/md4.c (md4_process_block):
4552         * lib/md5.c (md5_process_block):
4553         * lib/sha1.c (sha1_process_block):
4554         * lib/sha256.c (sha256_process_block):
4555         Don't assume the buffer length is less than 2**32.
4556         * lib/sha512.c (sha512_process_block): Likewise.
4557         Here, the bug is present only in the rare case where the host does
4558         not support uint64_t or where size_t is wider than 64 bits.
4559         Use u64size to work around the problems.
4560         * lib/u64.h (u64size): New macro.
4561
4562 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4563
4564         fsusage: fix block size returned on older Linux 2.6
4565
4566         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4567         which is available since Linux 2.6.
4568         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4569         when the member is available so it can be used as a fallback.
4570         * doc/posix-functions/statvfs.texi: Mention the hang issue
4571         on Linux < 2.6.36.
4572
4573 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4574
4575         bootstrap: suppress stderr chatter
4576         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4577         Omit unnecessary chatter to stderr.  The main program chatter
4578         was there only inadvertantly.
4579
4580         bootstrap: .gitignore files created by autopoint, libtool
4581         I ran into this problem when bootstrapping the latest diffutils.
4582         After './bootstrap', 'git status' reported lots of untracked files
4583         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4584         autopoint and do not need to be version-controlled.
4585         * build-aux/bootstrap: Put into .gitignore the files that
4586         autopoint and libtool create, by keeping track of files that exist
4587         after but not before these programs are run.
4588         (version_controlled_file): Move up.  2nd arg is now full file
4589         name, not base name; this is more convenient.  Put CVS at the end,
4590         as it's now somewhat deprecated.
4591
4592 2012-05-14  Jim Meyering  <meyering@redhat.com>
4593
4594         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4595         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4596         definition.  Reported by Bruno Haible.
4597
4598 2012-05-13  Bruno Haible  <bruno@clisp.org>
4599             Paul Eggert  <eggert@cs.ucla.edu>
4600
4601         binary-io: Define set_binary_mode function.
4602         * lib/binary-io.h (set_binary_mode): New function.
4603         (SET_BINARY): Define in terms of set_binary_mode.
4604         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4605         * tests/test-binary-io.c (main): Accept an argument, and test either
4606         set_binary_mode or SET_BINARY depending on the argument.
4607         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4608         argument. Clean up also t-bin-out0.tmp.
4609
4610 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4611
4612         bootstrap: take advantage of POSIX shell features
4613
4614         The 'bootstrap' script offered by Gnulib script already uses POSIX
4615         shell features (like $((...)) arithmetic expansions) that are not
4616         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4617         means that bootstrap must already be run using a proper POSIX shell,
4618         which will thus provide more features, like ${var#pattern} parameter
4619         expansion or inversion of a command exit status with '!'.  We can
4620         thus use these features to improve the clarity and the performances
4621         of the bootstrap script.
4622
4623         Suggested by Eric Blake.
4624
4625         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4626         of sed/expr plus command substitutions, to save some forks.  While
4627         we are at it, prefer the POSIX $(...) form of command substitution,
4628         rather than the legacy form `...` (since the former is visually
4629         clearer and interacts better with quoting), and prefer the idiom:
4630           "if ! CMD; then ACTION ..."
4631         over the idiom:
4632           "if CMD; then :; else ACTION ..."
4633         which was required by legacy Bourne shells not supporting '!'.
4634
4635 2012-05-12  Bruno Haible  <bruno@clisp.org>
4636
4637         system-quote: Add more comments.
4638         * lib/system-quote.h: Add more comments about wilcards and limitations.
4639         Suggested by Eli Zaretskii <eliz@gnu.org>.
4640
4641         sh-quote, system-quote: Add comments about wildcards.
4642         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4643         * lib/system-quote.h: Likewise.
4644         Reported by Eli Zaretskii <eliz@gnu.org>.
4645
4646 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4647
4648         fsusage: check for GNU/Linux statvfs problem dynamically
4649         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4650         Define STAT_STATFS2_BSIZE too, since in this case the code now
4651         checks dynamically whether statvfs is reliable, falling back on
4652         Linux-style statfs otherwise.
4653         (statvfs_works): New function, for dynamically testing statvfs.
4654         (get_fs_usage) [STAT_STATVFS]: Use it.
4655         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4656         statvfs on GNU/Linux hosts, since it's now done dynamically.
4657
4658 2012-05-10  Bruno Haible  <bruno@clisp.org>
4659
4660         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4661         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4662         '?' character.
4663         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4664         * tests/test-system-quote-main.c (check_all): Check also strings like
4665         "??????????".
4666         Reported by Eli Zaretskii <eliz@gnu.org>.
4667
4668 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4669
4670         _Noreturn: port config.h to gcc -Wundef
4671         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4672         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4673         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4674
4675 2012-05-10  Bruno Haible  <bruno@clisp.org>
4676
4677         system-quote: Refactor.
4678         * lib/system-quote.h (system_quote_copy): Fix comment.
4679         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4680         New functions, extracted from system_quote_copy.
4681         (system_quote_length, system_quote_copy): Use these functions.
4682         Reported by Paul Eggert.
4683
4684 2012-05-08  Bruno Haible  <bruno@clisp.org>
4685
4686         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4687         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4688
4689 2012-05-08  Bruno Haible  <bruno@clisp.org>
4690
4691         Tests for module 'system-quote'.
4692         * modules/system-quote-tests: New file.
4693         * tests/test-system-quote.sh: New file.
4694         * tests/test-system-quote-main.c: New file.
4695         * tests/test-system-quote-child.c: New file.
4696
4697         New module 'system-quote'.
4698         * lib/system-quote.h: New file.
4699         * lib/system-quote.c: New file.
4700         * modules/system-quote: New file.
4701
4702 2012-05-08  Bruno Haible  <bruno@clisp.org>
4703
4704         sh-quote: Make C++ safe and allow multiple inclusion.
4705         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4706         declarations in extern "C".
4707
4708 2012-05-08  Bruno Haible  <bruno@clisp.org>
4709
4710         sh-quote tests: Make tests stricter.
4711         * tests/test-sh-quote.c (check_one): Check the return value of
4712         shell_quote_copy.
4713         (main): Check a string with a CR character. Check a string that
4714         contains UCHAR_MAX.
4715
4716 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4717
4718         warnings.m4: provide a means to specify the program to compile.
4719         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4720         (gl_WARN_ADD): here.
4721         Use gl_AS_VAR_APPEND.
4722         Support an argument to specify the program to compile.
4723         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4724         AC_SUBST the WARN_CFLAGS when they are used.
4725         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4726         leave this to gl_WARN_ADD.
4727
4728 2012-05-08  Eric Blake  <eblake@redhat.com>
4729
4730         doc: recommendations on gettext version
4731         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4732         choice between versions.
4733         * DEPENDENCIES (gettext): Cover both approaches.
4734
4735 2012-05-08  Jim Meyering  <meyering@redhat.com>
4736
4737         init.sh: explain why EXEEXT support uses aliases rather than functions
4738         * tests/init.sh: Add a comment.
4739
4740         init.sh: don't let bash aliases interfere with tests
4741         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4742         is bash.  This avoids problems for those who alias standard commands to
4743         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4744         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4745
4746 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4747
4748         stdint: be more consistent with glibc, SunOS libc
4749         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4750         (gl_int_fast16_t, gl_uint_fast16_t)
4751         (gl_int_fast32_t, gl_uint_fast32_t)
4752         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4753         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4754         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4755         Be consistent with glibc by default, and with SunOS 5.10 and later
4756         if __sun is defined.  This lessens the likelihood of clashes if
4757         code compiled for older hosts is combined with code compiled for
4758         newer ones.  Problem reported by Niels Möller in
4759         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4760
4761 2012-05-07  Eric Blake  <eblake@redhat.com>
4762
4763         isatty: relax license to LGPLv2+
4764         * modules/isatty (License): Relax license.
4765
4766 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4767
4768         stat-size: comment fix
4769         * lib/stat-size.h: Remove obsolete comment about indenting.
4770
4771 2012-05-06  Bruno Haible  <bruno@clisp.org>
4772
4773         Tests for module 'sh-quote'.
4774         * modules/sh-quote-tests: New file.
4775         * tests/test-sh-quote.c: New file.
4776
4777 2012-05-06  Bruno Haible  <bruno@clisp.org>
4778
4779         sh-quote: Improve shell_quote_argv's signature.
4780         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4781         * lib/sh-quote.c (shell_quote_argv): Likewise.
4782
4783 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4784
4785         stdint: document issues with int_fast8_t etc.
4786         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4787         stdint.h substitutes may define these types differently.  See
4788         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4789
4790 2012-05-05  Bruno Haible  <bruno@clisp.org>
4791
4792         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4794         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4795         or 'guessing no (mishandles large arguments)'.
4796
4797 2012-05-05  Bruno Haible  <bruno@clisp.org>
4798
4799         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4800         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4801         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4802         set gl_cv_func_link_follows_symlink to "guessing no".
4803
4804 2012-05-05  Bruno Haible  <bruno@clisp.org>
4805
4806         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4807         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4808         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4809         "guessing no".
4810         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4811
4812 2012-05-05  Bruno Haible  <bruno@clisp.org>
4813
4814         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4815         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4816         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4817         set gl_cv_struct_dirent_d_ino to "guessing yes".
4818
4819 2012-05-05  Bruno Haible  <bruno@clisp.org>
4820
4821         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4822         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4823         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4824         "guessing yes".
4825
4826 2012-05-05  Bruno Haible  <bruno@clisp.org>
4827
4828         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4829         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4830         compiling to a glibc system, set gl_cv_func_signbit and
4831         gl_cv_func_signbit_gcc to "guessing yes".
4832
4833 2012-05-05  Bruno Haible  <bruno@clisp.org>
4834
4835         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4836         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4837         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4838         to "guessing yes".
4839         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4840         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4841
4842 2012-05-05  Bruno Haible  <bruno@clisp.org>
4843
4844         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4845         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4846         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4847         gl_cv_func_realpath_works to "guessing yes".
4848
4849 2012-05-05  Bruno Haible  <bruno@clisp.org>
4850
4851         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4852         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4853         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4854
4855 2012-05-04  Bruno Haible  <bruno@clisp.org>
4856
4857         Tweak last commit.
4858         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4859         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4860
4861 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4862
4863         unistd_h: make it easier to avoid sys_types_h
4864         This is useful for Emacs, which has its own method of porting to
4865         Windows, and which therefore does not need the sys_types_h module.
4866         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4867         code moved here from gl_SYS_TYPES_H.
4868         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4869         using the code directly.
4870         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4871         gl_SYS_TYPES_H.
4872         * modules/sys_types (Files):
4873         * modules/unistd (Files): Add m4/off_t.m4.
4874
4875 2012-05-03  Bruno Haible  <bruno@clisp.org>
4876
4877         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4878         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4879         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4880         "guessing yes" or "guessing no".
4881         (gl_FUNC_LSTAT): Update.
4882         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4883         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4884         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4885
4886 2012-05-03  Bruno Haible  <bruno@clisp.org>
4887
4888         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4889         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4890         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4891         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4892         cross-compiling, choose the first alternative on glibc systems.
4893         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4894
4895 2012-05-03  Bruno Haible  <bruno@clisp.org>
4896
4897         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4898         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4899         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4900
4901 2012-05-03  Bruno Haible  <bruno@clisp.org>
4902
4903         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4904         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4905
4906 2012-05-03  Bruno Haible  <bruno@clisp.org>
4907
4908         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4909         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4910         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4911         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4912         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4913         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4914         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4915         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4916         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4917         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4918         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4919         gl_cv_func_chown_ctime_works to "guessing yes".
4920         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4921         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4922         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4923         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4924         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4926         compiling to glibc systems, set gl_cv_func_open_directory_works to
4927         "guessing yes".
4928         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4929         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4930         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4931         "guessing yes".
4932         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4933         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4934         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4935         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4936         "guessing yes".
4937         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4938         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4939         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4940         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4941         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4942         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4943         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4944         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4945         "guessing yes".
4946         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4947         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4948         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4949         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4950         "guessing yes".
4951         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4952         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4953         "guessing yes".
4954         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4955         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4956         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4957         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4958         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4959         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4960         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4961         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4962         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4963         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4964         "guessing yes".
4965         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4966         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4967         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4968         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4969         "guessing yes".
4970         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4971         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4972         "guessing yes".
4973         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4974         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4975         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4976         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4977         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4978         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4979         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4980         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4981         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4982         "guessing yes".
4983         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4984         compiling to glibc systems, set gl_cv_func_mknod_works to
4985         "guessing yes".
4986         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4987         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4988         "guessing yes".
4989         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4990         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4991         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4992         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4993         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4994         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4995         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4996         compiling to glibc systems, set gl_cv_func_svid_putenv to
4997         "guessing yes".
4998         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4999         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5000         "guessing yes".
5001         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5002         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5003         "guessing yes".
5004         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5005         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5006         to "guessing yes".
5007         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5008         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5009         to "guessing yes".
5010         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5011         compiling to glibc systems, set gl_cv_func_rmdir_works to
5012         "guessing yes".
5013         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5014         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5015         gl_cv_func_unlink_parent_fails to "guessing yes".
5016         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5017         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5018         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5019         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5020         gl_cv_func_rename_dest_works to "guessing yes".
5021         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5022         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5023         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5024         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5025         "guessing yes".
5026         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5027         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5028         "guessing yes".
5029         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5030         compiling to glibc systems, set gl_cv_func_setenv_works to
5031         "guessing yes".
5032         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5033         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5034         "guessing yes".
5035         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5036         compiling to glibc systems, set gl_cv_func_sleep_works to
5037         "guessing yes".
5038         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5039         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5040         "guessing yes".
5041         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5042         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5043         "guessing yes".
5044         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5045         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5046         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5047         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5048         "guessing yes".
5049         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5050         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5051         "guessing yes".
5052         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5053         compiling to glibc systems, set gl_cv_func_usleep_works to
5054         "guessing yes".
5055         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5056         compiling to glibc systems, set gl_cv_func_futimesat_works to
5057         "guessing yes".
5058
5059 2012-05-03  Bruno Haible  <bruno@clisp.org>
5060
5061         Say "guessing yes" or "guessing no" when cross-compiling.
5062         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5063         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5064         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5065         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5066         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5067         am_cv_func_working_getline to "guessing yes" or "guessing no".
5068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5069         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5070         (gl_FUNC_MEMMEM): When cross-compiling, set
5071         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5073         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5075         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5076         "guessing no".
5077         (gl_FUNC_STRCASESTR): When cross-compiling, set
5078         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5079         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5080         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5081         (gl_FUNC_STRSTR): When cross-compiling, set
5082         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5083         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5084         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5085         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5086         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5087
5088 2012-05-01  Bruno Haible  <bruno@clisp.org>
5089
5090         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5091         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5092         * build-aux/reloc-ldflags: Likewise.
5093         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5094
5095 2012-05-01  Bruno Haible  <bruno@clisp.org>
5096
5097         gnulib-tool: Remove transitional code.
5098         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5099         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5100
5101 2012-05-01  Bruno Haible  <bruno@clisp.org>
5102
5103         getcwd: Fix misindentation.
5104         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5105
5106 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5107
5108         exclude: process exclude and include directives in order
5109         This restores the pre-2009 behavior, and is part of a fix of a
5110         grep bug reported by Quentin Arce in
5111         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5112         * lib/exclude.c (struct exclude): Remove 'tail' member.
5113         (new_exclude_segment): Prepend the new segment instead of appending.
5114         Return void, since that's now more convenient.
5115         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5116         (file_name_matches): Renamed from excluded_file_name_p.
5117         (file_pattern_matches, file_name_matches):
5118         Return true if the pattern matches, not if it excludes.
5119         All callers changed.
5120         (excluded_file_name): Process the list in reverse order;
5121         since the list is now reversed this restores the pre-2009 behavior.
5122         (add_exclude): Adjust to new reversed-order list.  Use local var
5123         rather than macro, for clarity.
5124         * tests/test-exclude7.sh: Adjust to corrected behavior.
5125
5126         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5127         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5128         it's not possible here.  Handle the case of \ at end of pattern
5129         without dumping core.
5130         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5131
5132         _Noreturn: future-proof non-GNU and non-MSVC compilers
5133         * build-aux/snippet/_Noreturn.h (_Noreturn):
5134         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5135         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5136         C11 or later.  This is more likely to work with random future C
5137         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5138         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5139
5140         exclude: handle wildcards with FNM_EXTMATCH
5141         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5142         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5143         comment that "has wildcards" really means "has or may have
5144         wildcards".  Simplify by avoiding the need to call strcspn.
5145
5146 2012-04-29  Bruno Haible  <bruno@clisp.org>
5147
5148         gnulib-tool: Fix list of authors.
5149         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5150
5151 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5152
5153         bootstrap: support Automake-NG in $buildreq
5154         * bootstrap (check_versions): Handle automake and aclocal from
5155         Automake-NG specially.  They can be specified as respectively
5156         the "automake-ng" and "aclocal-ng" requirements.
5157
5158 2012-04-25  Eric Blake  <eblake@redhat.com>
5159
5160         bootstrap: only force latest Makefile.in.in for gettext module
5161         * build-aux/bootstrap (with_gettext): Only install latest
5162         Makefile.in.in for projects requesting bleeding edge gettext.
5163
5164 2012-04-22  Bruno Haible  <bruno@clisp.org>
5165
5166         doc: Mention reason for replacement on glibc/Linux systems.
5167         * doc/posix-functions/dprintf.texi: Mention the problem with special
5168         'long double' values.
5169         * doc/posix-functions/fprintf.texi: Likewise.
5170         * doc/posix-functions/printf.texi: Likewise.
5171         * doc/posix-functions/snprintf.texi: Likewise.
5172         * doc/posix-functions/sprintf.texi: Likewise.
5173         * doc/posix-functions/vdprintf.texi: Likewise.
5174         * doc/posix-functions/vfprintf.texi: Likewise.
5175         * doc/posix-functions/vprintf.texi: Likewise.
5176         * doc/posix-functions/vsnprintf.texi: Likewise.
5177         * doc/posix-functions/vsprintf.texi: Likewise.
5178         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5179         platforms with F_DUPFD_CLOEXEC problems.
5180         * doc/posix-functions/glob.texi: Mention which platforms are affected
5181         by the problem with symbolic links.
5182         * doc/posix-functions/linkat.texi: Mention the problem with
5183         AT_SYMLINK_FOLLOW on Linux.
5184
5185 2012-04-22  Bruno Haible  <bruno@clisp.org>
5186
5187         pwrite: Don't replace on all platforms.
5188         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5189
5190 2012-04-22  Bruno Haible  <bruno@clisp.org>
5191
5192         rint* tests: Avoid gcc warnings.
5193         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5194         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5195         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5196
5197 2012-04-21  Bruno Haible  <bruno@clisp.org>
5198
5199         users.txt: Update.
5200         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5201         switched from CVS to git, bzr, or svn.
5202
5203 2012-04-21  Bruno Haible  <bruno@clisp.org>
5204
5205         Large File Support for native Windows platforms.
5206
5207         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5208         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5209
5210         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5211         type.
5212         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5213         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5214         * doc/posix-headers/sys_types.texi: Mention the effect of the
5215         'largefile' module.
5216
5217         * lib/fcntl.in.h: Add comments about off_t.
5218         * modules/fcntl-h (Depends-on): Add sys_types.
5219
5220         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5221         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5222         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5223         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5224         * modules/unistd (Depends-on): Add sys_types.
5225         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5226
5227         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5228         instead of lseek.
5229         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5230         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5231         * modules/lseek (Depends-on): Add sys_types.
5232
5233         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5234         msvc-nothrow.h.
5235         (SetFileSize): New function.
5236         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5237         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5238         if Large File Support is requested.
5239         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5240         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5241
5242         * lib/stdio.in.h: Add comments about off_t.
5243         * modules/stdio (Depends-on): Add sys_types.
5244
5245         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5246         instead of ftello.
5247         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5248         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5249         (gl_PREREQ_FTELLO): New macro.
5250         * modules/ftello (Depends-on): Add sys_types.
5251         (configure.ac): Incoke gl_PREREQ_FTELLO.
5252
5253         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5254         instead of fseeko.
5255         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5256         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5257         (gl_PREREQ_FSEEKO): New macro.
5258         * modules/fseeko (Depends-on): Add sys_types.
5259         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5260
5261         * lib/sys_stat.in.h: Add comments about off_t.
5262         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5263         64-bit integer for st_size in 'struct stat'.
5264         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5265         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5266         * modules/sys_stat (Depends-on): Add sys_types.
5267         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5268
5269         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5270         instead of stat or _stat.
5271
5272         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5273         'struct _stati64' instead of fstat and 'struct stat'.
5274         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5275         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5276
5277         Reported by Ray Satiro <raysatiro@yahoo.com>.
5278
5279 2012-04-19  Eric Blake  <eblake@redhat.com>
5280
5281         bootstrap: accommodate older libtool
5282         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5283         Reported by Daniel P. Berrange.
5284
5285 2012-04-19  Jim Meyering  <meyering@redhat.com>
5286
5287         announce-gen: avoid failure due to lack of Digest::SHA1
5288         Even with the preferred Digest::SHA available, this script
5289         would fail when the backup module, Digest::SHA1, was not installed.
5290         * build-aux/announce-gen: Quote the conditional use of "use".
5291         Reported by Reuben Thomas in:
5292         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5293
5294         bootstrap: don't let a user's CDPATH setting affect this script
5295         When CDPATH is set, cd will sometimes generate output.
5296         When "cd" is run in a subshell whose output matters, that
5297         surprising-to-some output can cause malfunction.
5298         Unsetting CDPATH turns off this shell "feature."
5299         * build-aux/bootstrap (CDPATH): Unset.
5300         Reported by Reuben Thomas in:
5301         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5302         and inspired by his patch here:
5303         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5304
5305 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5306         and Jim Meyering  <meyering@redhat.com>
5307
5308         maint.mk: catch "see @xref{}" and similar
5309         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5310         prohibit "See also @xref{", "Also see @pxref{", and similar.
5311
5312 2012-04-16  Jim Meyering  <meyering@redhat.com>
5313
5314         bootstrap: really use gnulib's po/Makefile.in.in
5315         * build-aux/bootstrap: Correct the source file name in previous change.
5316         Reported by Akim Demaille.
5317
5318         configmake: correct minor inconsistency in Makefile rule
5319         * modules/configmake (Makefile.am): All other rules like this one
5320         run the final "mv -f ..." in the same backslash-continued command
5321         as the one that does everything else.  This one put the mv -f ...
5322         command on a separate, non-backslash-continued line.
5323         Make it like the others.
5324
5325         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5326         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5327         the one from gettext.  Reported by Akim Demaille.
5328
5329 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5330
5331         Fix recursion of install-* into po directories.
5332         Bison's install-pdf bug reported by Hans Aberg at
5333         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5334         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5335         (install-info, install-pdf, install-ps): New targets.
5336
5337 2012-04-16  Jim Meyering  <meyering@redhat.com>
5338
5339         maint: avoid spurious "make sc_maint" failure
5340         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5341         exempt all *.class file names, for lib/javaversion.class.
5342
5343 2012-04-15  Bruno Haible  <bruno@clisp.org>
5344
5345         lseek: Make configure test independent of environment.
5346         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5347         Windows, we know that lseek() on pipes is broken; skip the runtime
5348         test.
5349
5350 2012-04-14  Bruno Haible  <bruno@clisp.org>
5351
5352         stat: Bypass buggy override in mingw64.
5353         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5354         * lib/stat.c (stat) [mingw64]: Define to _stat.
5355         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5356
5357 2012-04-14  Bruno Haible  <bruno@clisp.org>
5358
5359         pathmax: Fix compilation error on MSVC 9.
5360         * modules/pathmax (Depends-on): Add unistd.
5361
5362 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5363
5364         README: document pointer comparison assumption
5365         * README (Portability guidelines): Document assumption about
5366         pointer comparisons, in response to a recent bug-gnulib comment by
5367         Jeffrey Kegler.
5368
5369 2012-04-12  Bruno Haible  <bruno@clisp.org>
5370
5371         Tests for module 'getrusage'.
5372         * modules/getrusage-tests: New file.
5373         * tests/test-getrusage.c: New file.
5374
5375         New module 'getrusage'.
5376         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5377         warn-on-use.h.
5378         (getrusage): New declaration.
5379         * lib/getrusage.c: New file.
5380         * m4/getrusage.m4: New file.
5381         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5382         is declared.
5383         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5384         HAVE_GETRUSAGE.
5385         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5386         snippet/c++defs, snippet/warn-on-use.
5387         (Makefile.am): Update generation of sys/resource.h. Substitute
5388         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5389         * modules/getrusage: New file.
5390         * doc/posix-functions/getrusage.texi: Mention the new module.
5391
5392 2012-04-12  Bruno Haible  <bruno@clisp.org>
5393
5394         Tests for module 'sys_resource'.
5395         * modules/sys_resource-tests: New file.
5396         * tests/test-sys_resource.c: New file.
5397
5398         New module 'sys_resource'.
5399         * lib/sys_resource.in.h: New file.
5400         * m4/sys_resource_h.m4: New file.
5401         * modules/sys_resource: New file.
5402         * doc/posix-headers/sys_resource.texi: Mention the new module.
5403
5404 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5405
5406         ioctl: Fix compilation error on mingw.
5407         * lib/ioctl.c: Include <windows.h>.
5408         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5409
5410 2012-04-04  Jim Meyering  <meyering@redhat.com>
5411
5412         regex: correct #pragma guard expression
5413         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5414         not 4.3.  Correct its cpp guard expression.
5415
5416 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5417
5418         regex: remove unnecessary type punning
5419         Problem reported by Vladimir Serbinenko in
5420         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5421         * lib/regex.h (struct re_pattern_buffer): Change the type of
5422         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5423         Fix comment to match code.
5424         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5425         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5426         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5427         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5428         (set_regs):
5429         Omit no-longer-necessary casts.
5430
5431 2012-04-03  Bruno Haible  <bruno@clisp.org>
5432
5433         Tests for module 'ilogbl'.
5434         * modules/ilogbl-tests: New file.
5435         * tests/test-ilogbl.c: New file.
5436
5437         New module 'ilogbl'.
5438         * lib/math.in.h (ilogbl): New declaration.
5439         * lib/ilogbl.c: New file.
5440         * m4/ilogbl.m4: New file.
5441         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5442         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5443         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5444         Split sed invocation, to avoid the limit of 100 substitutions of
5445         HP-UX 'sed'.
5446         * modules/ilogbl: New file.
5447         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5448         * doc/posix-functions/ilogbl.texi: Mention the new module.
5449
5450 2012-04-03  Bruno Haible  <bruno@clisp.org>
5451
5452         Tests for module 'ilogbf'.
5453         * modules/ilogbf-tests: New file.
5454         * tests/test-ilogbf.c: New file.
5455
5456         New module 'ilogbf'.
5457         * lib/math.in.h (ilogbf): New declaration.
5458         * lib/ilogbf.c: New file.
5459         * m4/ilogbf.m4: New file.
5460         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5462         REPLACE_ILOGBF.
5463         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5464         REPLACE_ILOGBF.
5465         * modules/ilogbf: New file.
5466         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5467         * doc/posix-functions/ilogbf.texi: Mention the new module.
5468
5469 2012-04-03  Bruno Haible  <bruno@clisp.org>
5470
5471         Tests for module 'ilogb'.
5472         * modules/ilogb-tests: New file.
5473         * tests/test-ilogb.c: New file.
5474         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5475         tests/test-logb-ieee.h.
5476
5477         New module 'ilogb'.
5478         * lib/math.in.h (ilogb): New declaration.
5479         * lib/ilogb.c: New file.
5480         * m4/ilogb.m4: New file.
5481         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5483         REPLACE_ILOGB.
5484         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5485         REPLACE_ILOGB.
5486         * modules/ilogb: New file.
5487         * tests/test-math-c++.cc: Check the declaration of ilogb.
5488         * doc/posix-functions/ilogb.texi: Mention the new module.
5489
5490 2012-04-03  Bruno Haible  <bruno@clisp.org>
5491
5492         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5493         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5494         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5495         (main): Check their values.
5496         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5497         problem.
5498
5499 2012-04-03  Bruno Haible  <bruno@clisp.org>
5500
5501         Tests for module 'logbl-ieee'.
5502         * modules/logbl-ieee-tests: New file.
5503         * tests/test-logbl-ieee.c: New file.
5504
5505         New module 'logbl-ieee'.
5506         * modules/logbl-ieee: New file.
5507
5508         Tests for module 'logb-ieee'.
5509         * modules/logb-ieee-tests: New file.
5510         * tests/test-logb-ieee.c: New file.
5511
5512         New module 'logb-ieee'.
5513         * modules/logb-ieee: New file.
5514
5515         Tests for module 'logbf-ieee'.
5516         * modules/logbf-ieee-tests: New file.
5517         * tests/test-logbf-ieee.c: New file.
5518         * tests/test-logb-ieee.h: New file.
5519
5520         New module 'logbf-ieee'.
5521         * modules/logbf-ieee: New file.
5522
5523 2012-04-03  Bruno Haible  <bruno@clisp.org>
5524
5525         Tests for module 'logbl'.
5526         * modules/logbl-tests: New file.
5527         * tests/test-logbl.c: New file.
5528
5529         New module 'logbl'.
5530         * lib/math.in.h (logbl): New declaration.
5531         * lib/logbl.c: New file.
5532         * m4/logbl.m4: New file.
5533         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5535         REPLACE_LOGBL.
5536         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5537         REPLACE_LOGBL.
5538         * modules/logbl: New file.
5539         * tests/test-math-c++.cc: Check the declaration of logbl.
5540         * doc/posix-functions/logbl.texi: Mention the new module.
5541
5542 2012-04-02  Bruno Haible  <bruno@clisp.org>
5543
5544         Tests for module 'logbf'.
5545         * modules/logbf-tests: New file.
5546         * tests/test-logbf.c: New file.
5547
5548         New module 'logbf'.
5549         * lib/math.in.h (logbf): New declaration.
5550         * lib/logbf.c: New file.
5551         * m4/logbf.m4: New file.
5552         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5554         REPLACE_LOGBF.
5555         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5556         REPLACE_LOGBF.
5557         * modules/logbf: New file.
5558         * tests/test-math-c++.cc: Check the declaration of logbf.
5559         * doc/posix-functions/logbf.texi: Mention the new module.
5560
5561 2012-04-02  Bruno Haible  <bruno@clisp.org>
5562
5563         logb tests: More tests.
5564         * tests/test-logb.h: New file, based on tests/test-logb.c and
5565         tests/test-frexp.h.
5566         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5567         (main): Just invoke test_function.
5568         * modules/logb-tests (Files): Add tests/test-logb.h,
5569         tests/minus-zero.h, tests/randomd.c.
5570         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5571
5572         logb: Provide replacement and workarounds.
5573         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5574         is 1.
5575         * lib/logb.c: New file.
5576         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5577         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5579         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5580         * modules/logb (Files): Add lib/logb.c.
5581         (Depends-on): Add isfinite, frexp, isnand.
5582         (configure.ac): Compile the replacement code logb.c if needed.
5583         * tests/test-math-c++.cc: Check the declaration of logb.
5584         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5585         with subnormal numbers.
5586
5587 2012-04-02  Bruno Haible  <bruno@clisp.org>
5588
5589         log10* tests: Speed up.
5590         * tests/test-log10.h (test_function): Reduce amount of random numbers
5591         to test.
5592
5593 2012-04-01  Bruno Haible  <bruno@clisp.org>
5594
5595         logf-ieee: Fix test whether logf works.
5596         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5597
5598 2012-04-01  Bruno Haible  <bruno@clisp.org>
5599
5600         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5601         * lib/log10l.c: Include <float.h>
5602         (log10l): On IRIX, normalize the +Infinity value.
5603         * modules/log10l (Depends-on): Add 'float'.
5604         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5605         +Infinity.
5606
5607         log10f-ieee: Work around test failure on NetBSD 5.1.
5608         * m4/log10f-ieee.m4: New file.
5609         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5610         test whether log10f works with a negative argument. Replace it if not.
5611         * lib/log10f.c (log10f): For negative arguments, return NaN.
5612         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5613         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5614         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5615
5616         log10f-ieee: Work around test failure on Solaris 9.
5617         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5618         (configure.ac): Require gl_FUNC_LOG10F.
5619
5620         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5621         * m4/log10-ieee.m4: New file.
5622         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5623         whether log10 works with a negative argument. Replace it if not.
5624         * lib/log10.c (log10): For negative arguments, return NaN.
5625         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5626         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5627         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5628
5629         Tests for module 'log10l-ieee'.
5630         * modules/log10l-ieee-tests: New file.
5631         * tests/test-log10l-ieee.c: New file.
5632
5633         New module 'log10l-ieee'.
5634         * modules/log10l-ieee: New file.
5635
5636         Tests for module 'log10-ieee'.
5637         * modules/log10-ieee-tests: New file.
5638         * tests/test-log10-ieee.c: New file.
5639
5640         New module 'log10-ieee'.
5641         * modules/log10-ieee: New file.
5642
5643         Tests for module 'log10f-ieee'.
5644         * modules/log10f-ieee-tests: New file.
5645         * tests/test-log10f-ieee.c: New file.
5646         * tests/test-log10-ieee.h: New file.
5647
5648         New module 'log10f-ieee'.
5649         * modules/log10f-ieee: New file.
5650
5651 2012-04-01  Bruno Haible  <bruno@clisp.org>
5652
5653         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5654         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5655         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5656         workaround.
5657         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5658         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5660         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5661         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5662         (Depends-on): Update conditions.
5663         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5664         IRIX 6.5, OSF/1 5.1 problems.
5665
5666 2012-04-01  Bruno Haible  <bruno@clisp.org>
5667
5668         log10f: Work around OSF/1 5.1 bug.
5669         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5670         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5671         workaround.
5672         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5673         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5675         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5676         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5677         (Depends-on): Update conditions.
5678         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5679
5680 2012-04-01  Bruno Haible  <bruno@clisp.org>
5681
5682         log10: Work around OSF/1 5.1 bug.
5683         * lib/math.in.h (log10): New declaration.
5684         * lib/log10.c: New file.
5685         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5686         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5687         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5689         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5690         * modules/log10 (Files): Add lib/log10.c.
5691         (Depends-on): Add math.
5692         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5693         * tests/test-math-c++.cc: Check the declaration of log10.
5694         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5695
5696 2012-03-31  Bruno Haible  <bruno@clisp.org>
5697
5698         log10l tests: More tests.
5699         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5700         tests/minus-zero.h, tests/randoml.c.
5701         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5702         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5703         (main): Invoke test_function.
5704
5705         log10f tests: More tests.
5706         * modules/log10f-tests (Files): Add tests/test-log10.h,
5707         tests/minus-zero.h, tests/randomf.c.
5708         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5709         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5710         (main): Invoke test_function.
5711
5712         log10 tests: More tests.
5713         * tests/test-log10.h: New file.
5714         * modules/log10-tests (Files): Add tests/test-log10.h,
5715         tests/minus-zero.h, tests/randomd.c.
5716         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5717         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5718         (main): Invoke test_function.
5719
5720 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5721
5722         fflush: Fix syntax error.
5723         * lib/fflush.c: Include unused-parameter.h, needed for
5724         _GL_UNUSED_PARAMETER.
5725         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5726
5727 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5728
5729         regex: pacify GCC when compiling GRUB
5730         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5731         a diagnostic.  Reported by Vladimir Serbinenko in
5732         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5733
5734 2012-03-29  Eric Blake  <eblake@redhat.com>
5735
5736         stdio: don't assume gets any more
5737         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5738         support.
5739         * modules/stdio (Makefile.am): Likewise.
5740         * lib/stdio-read.c (gets): Likewise.
5741         * tests/test-stdio-c++.cc: Likewise.
5742         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5743         * lib/stdio.in.h (gets): Make warning occur in more places.
5744         * doc/posix-functions/gets.texi (gets): Update documentation.
5745         Reported by Christer Solskogen.
5746
5747         maint.mk: fix syntax checks without exclusions
5748         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5749         Reported by Daniel P. Berrange.
5750
5751         strerror_r: avoid compiler warning
5752         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5753         level.
5754
5755         fflush: avoid compiler warning
5756         * lib/fflush.c (update_fpos_cache): Mark variables that are
5757         potentially unused.
5758
5759 2012-03-25  Bruno Haible  <bruno@clisp.org>
5760
5761         Tests for module 'localeconv'.
5762         * modules/localeconv-tests: New file.
5763         * tests/test-localeconv.c: New file.
5764
5765         New module 'localeconv'.
5766         * lib/locale.in.h (localeconv): New declaration.
5767         * lib/localeconv.c: New file.
5768         * m4/localeconv.m4: New file.
5769         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5770         REPLACE_LOCALECONV.
5771         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5772         REPLACE_LOCALECONV.
5773         * modules/localeconv: New file.
5774         * modules/nl_langinfo (Depends-on): Add localeconv.
5775         * modules/human (Depends-on): Likewise.
5776         * doc/posix-functions/localeconv.texi: Mention the new module.
5777
5778 2012-03-25  Bruno Haible  <bruno@clisp.org>
5779
5780         locale: Provide a complete 'struct lconv'.
5781         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5782         'struct lconv' does not contain int_p_cs_precedes.
5783         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5784         * doc/posix-headers/locale.texi: Update.
5785
5786         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5787         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5788         * doc/posix-headers/locale.texi: Update.
5789
5790         locale: Provide a working 'struct lconv'.
5791         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5792         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5793         'struct lconv' does not even contain decimal_point.
5794         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5795         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5796         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5797         * doc/posix-headers/locale.texi: Mention the problems with
5798         'struct lconv'.
5799         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5800
5801 2012-03-24  Bruno Haible  <bruno@clisp.org>
5802
5803         Enable common subexpression optimization in GCC.
5804         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5805         macros.
5806         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5807         GCC attribute 'const'.
5808         (uc_locale_language): Declare with GCC attribute 'pure'.
5809         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5810         with GCC attribute 'const'.
5811         * lib/unictype.in.h (uc_is_general_category_withtable,
5812         uc_combining_class, uc_combining_class_name,
5813         uc_combining_class_long_name, uc_bidi_class_name,
5814         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5815         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5816         uc_decimal_value, uc_digit_value, uc_numeric_value,
5817         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5818         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5819         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5820         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5821         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5822         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5823         Declare with GCC attribute 'const'.
5824         (uc_general_category_name, uc_general_category_long_name,
5825         uc_general_category_byname, uc_general_category,
5826         uc_is_general_category, uc_combining_class_byname,
5827         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5828         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5829         Declare with GCC attribute 'pure'.
5830         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5831         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5832         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5833         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5834         with GCC attribute 'pure'.
5835         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5836         'const'.
5837         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5838         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5839         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5840         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5841         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5842         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5843         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5844         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5845         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5846         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5847         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5848         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5849         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5850         GCC attribute 'pure'.
5851         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5852         'const'.
5853         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5854         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5855         u32_strwidth): Declare with GCC attribute 'pure'.
5856
5857         Enable common subexpression optimization in GCC.
5858         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5859         (alphasort): Declare with GCC attribute 'pure'.
5860         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5861         (atoll): Declare with GCC attribute 'pure'.
5862         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5863         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5864         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5865         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5866         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5867         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5868         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5869
5870 2012-03-24  Bruno Haible  <bruno@clisp.org>
5871
5872         gnulib-tool: Avoid unintended error output from 'cmp'.
5873         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5874         "cmp -s", not "cmp > /dev/null".
5875
5876 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5877
5878         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5879
5880         It's not just Automake versions < 1.9b that creates an empty
5881         pkgdatadir at installation time if pkgdata_DATA is specified
5882         to empty; modern automake versions do this as well, at least
5883         until automake 1.11.4 (not yet released at the moment of writing,
5884         but soon to appear).  That behaviour was generally considered a
5885         feature rather than a bug, at least until this discussion:
5886         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5887
5888         See also automake bugs #10997 and #11030.
5889
5890         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5891         reference to relevant automake bug numbers.
5892         (func_emit_tests_Makefile_am): Likewise.
5893
5894 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5895
5896         announce-gen: use Digest::SHA when possible
5897         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5898         back to Digest::SHA1 if necessary.
5899
5900 2012-03-20  Jim Meyering  <meyering@redhat.com>
5901
5902         tests: avoid gcc warnings about argv vs. const initializers
5903         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5904         warnings about discarding 'const' qualifier from pointer target type.
5905         * tests/test-posix_spawn2.c (main): Likewise.
5906
5907 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5908
5909         README-release: simplify slightly
5910         * top/README-release: Run "git checkout master" only once.
5911
5912 2012-03-15  Mark Wielaard  <mark@klomp.org>
5913
5914         git-merge-changelog: add specific example on how to use with hg.
5915         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5916
5917 2012-03-18  Mark Wielaard  <mark@klomp.org>
5918
5919         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5920
5921 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5922
5923         git-version-gen: don't let "prefix" envvar cause trouble
5924         * build-aux/git-version-gen (prefix): Initialize properly,
5925         so as not to use a value specified via the environment.
5926         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5927
5928 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5929
5930         regex: diagnose too-large repeat counts in EREs
5931         Previously, the code did not diagnose the too-large repeat count
5932         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5933         as if it were 'b\{1000000000}', which is unexpected.
5934         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5935         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5936         is a reasonable one for this problem.  Another option would be to
5937         create a new REG_OVERFLOW error for repeat counts that are too large.
5938         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5939         count is too large, so that the caller can distinguish the two cases.
5940         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5941         "Too large" return code, and that repeat counts are one example of this.
5942
5943 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5944
5945         doc: some glibc x32 integer width issues
5946         * doc/posix-headers/sys_types.texi (sys/types.h):
5947         * doc/posix-headers/time.texi (time.h):
5948         Mention that glibc x32 does not conform to POSIX in a couple of
5949         areas related to integer widths.
5950
5951 2012-03-15  Bruno Haible  <bruno@clisp.org>
5952
5953         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5954         * lib/fma.c (VOLATILE): New macro.
5955         (FUNC): Use it to work around a GCC compiler bug.
5956
5957 2012-03-13  Bruno Haible  <bruno@clisp.org>
5958
5959         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5960         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5961         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5962         REPLACE_HYPOTL to 1.
5963         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5964
5965 2012-03-13  Bruno Haible  <bruno@clisp.org>
5966
5967         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5968         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5969         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5970         REPLACE_REMAINDERL to 1.
5971         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5972         bug.
5973
5974 2012-03-13  Bruno Haible  <bruno@clisp.org>
5975
5976         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5977         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5978         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5979         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5980         too big rounding errors.
5981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5982         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5983         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5984         (Depends-on): Update conditions.
5985         * tests/test-sqrtl.c (my_ldexpl): New function.
5986         (main): Add test of a particular value.
5987         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5988
5989 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5990
5991         doc: Update timer_* platform portability notes.
5992         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5993         that always return ENOSYS.
5994         * doc/posix-functions/timer_delete.texi: Likewise.
5995         * doc/posix-functions/timer_gettime.texi: Likewise.
5996         * doc/posix-functions/timer_settime.texi: Likewise.
5997
5998 2012-03-13  Bruno Haible  <bruno@clisp.org>
5999
6000         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6001         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6002         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6003         REPLACE_CBRTL to 1.
6004         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6005
6006 2012-03-13  Bruno Haible  <bruno@clisp.org>
6007
6008         remainderl: Avoid compilation error on AIX >= 5.2.
6009         * lib/math.in.h (remainderl): Undefine macro from the system header.
6010
6011 2012-03-13  Bruno Haible  <bruno@clisp.org>
6012
6013         Avoid compilation errors with MSVC option -fp:strict.
6014         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6015         * lib/cbrtf.c: Likewise.
6016         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6017
6018 2012-03-12  Bruno Haible  <bruno@clisp.org>
6019
6020         uninorm: Don't crash in out-of-memory conditions.
6021         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6022         gracefully.
6023         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6024         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6025
6026 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6027
6028         quote: fix syntax-check
6029         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6030         also exports quote_quoting_options.
6031
6032 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6033
6034         Collapse list of copyright years to ranges.  See
6035         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6036         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6037         build-aux/csharpexec.sh.in, build-aux/gnupload,
6038         build-aux/install-reloc, build-aux/javacomp.sh.in,
6039         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6040         build-aux/move-if-change, build-aux/reloc-ldflags,
6041         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6042
6043 2012-03-11  Bruno Haible  <bruno@clisp.org>
6044
6045         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6046         * m4/log2f-ieee.m4: New file.
6047         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6048         whether log2f works with a minus zero argument. Replace it if not.
6049         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6050         (Depends-on): Add log2-ieee.
6051         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6052         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6053
6054         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6055         * m4/log2-ieee.m4: New file.
6056         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6057         whether log2 works with a minus zero argument. Replace it if not.
6058         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6059         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6060         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6061
6062         Tests for module 'log2l-ieee'.
6063         * modules/log2l-ieee-tests: New file.
6064         * tests/test-log2l-ieee.c: New file.
6065
6066         New module 'log2l-ieee'.
6067         * modules/log2l-ieee: New file.
6068
6069         Tests for module 'log2-ieee'.
6070         * modules/log2-ieee-tests: New file.
6071         * tests/test-log2-ieee.c: New file.
6072
6073         New module 'log2-ieee'.
6074         * modules/log2-ieee: New file.
6075
6076         Tests for module 'log2f-ieee'.
6077         * modules/log2f-ieee-tests: New file.
6078         * tests/test-log2f-ieee.c: New file.
6079         * tests/test-log2-ieee.h: New file.
6080
6081         New module 'log2f-ieee'.
6082         * modules/log2f-ieee: New file.
6083
6084 2012-03-11  Bruno Haible  <bruno@clisp.org>
6085
6086         Tests for module 'log2l'.
6087         * modules/log2l-tests: New file.
6088         * tests/test-log2l.c: New file.
6089
6090         New module 'log2l'.
6091         * lib/math.in.h (log2l): New declaration.
6092         * lib/log2l.c: New file.
6093         * m4/log2l.m4: New file.
6094         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6096         REPLACE_LOG2L.
6097         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6098         REPLACE_LOG2L.
6099         * modules/log2l: New file.
6100         * tests/test-math-c++.cc: Check the declaration of log2l.
6101         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6102         and OSF/1 problems.
6103
6104 2012-03-11  Bruno Haible  <bruno@clisp.org>
6105
6106         Tests for module 'log2f'.
6107         * modules/log2f-tests: New file.
6108         * tests/test-log2f.c: New file.
6109
6110         New module 'log2f'.
6111         * lib/math.in.h (log2f): New declaration.
6112         * lib/log2f.c: New file.
6113         * m4/log2f.m4: New file.
6114         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6116         REPLACE_LOG2F.
6117         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6118         REPLACE_LOG2F.
6119         * modules/log2f: New file.
6120         * tests/test-math-c++.cc: Check the declaration of log2f.
6121         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6122         and OSF/1 and Cygwin problems.
6123
6124 2012-03-11  Bruno Haible  <bruno@clisp.org>
6125
6126         Tests for module 'log2'.
6127         * modules/log2-tests: New file.
6128         * tests/test-log2.c: New file.
6129         * tests/test-log2.h: New file.
6130
6131         New module 'log2'.
6132         * lib/math.in.h (log2): New declaration.
6133         * lib/log2.c: New file.
6134         * m4/log2.m4: New file.
6135         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6137         REPLACE_LOG2.
6138         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6139         REPLACE_LOG2.
6140         * modules/log2: New file.
6141         * tests/test-math-c++.cc: Check the declaration of log2.
6142         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6143         and OSF/1 and Cygwin problems.
6144
6145 2012-03-11  Bruno Haible  <bruno@clisp.org>
6146
6147         exp2* tests: More tests.
6148         * tests/test-exp2.h (test_function): Test all integral arguments that
6149         don't need to overflow or denormalized numbers.
6150         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6151         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6152         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6153
6154 2012-03-10  Bruno Haible  <bruno@clisp.org>
6155
6156         log1pl-ieee: Work around test failure on AIX 7.1.
6157         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6158
6159         log1pl-ieee: Work around test failure on IRIX 6.5.
6160         * m4/log1pl-ieee.m4: New file.
6161         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6162         test whether log1pl works with a minus zero argument. Replace it if
6163         not.
6164         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6166         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6167         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6168         (Depends-on): Update conditions.
6169         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6170         m4/signbit.m4.
6171         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6172         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6173
6174         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6175         * m4/log1pf-ieee.m4: New file.
6176         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6177         test whether log1pf works with a minus zero argument. Replace it if
6178         not.
6179         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6180         m4/signbit.m4.
6181         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6182         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6183
6184         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6185         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6186         (configure.ac): Require gl_FUNC_LOG1PF.
6187
6188         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6189         * m4/log1p-ieee.m4: New file.
6190         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6191         whether log1p works with a minus zero argument. Replace it if not.
6192         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6194         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6195         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6196         (Depends-on): Update conditions.
6197         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6198         m4/signbit.m4.
6199         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6200         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6201
6202         Tests for module 'log1pl-ieee'.
6203         * modules/log1pl-ieee-tests: New file.
6204         * tests/test-log1pl-ieee.c: New file.
6205
6206         New module 'log1pl-ieee'.
6207         * modules/log1pl-ieee: New file.
6208
6209         Tests for module 'log1p-ieee'.
6210         * modules/log1p-ieee-tests: New file.
6211         * tests/test-log1p-ieee.c: New file.
6212
6213         New module 'log1p-ieee'.
6214         * modules/log1p-ieee: New file.
6215
6216         Tests for module 'log1pf-ieee'.
6217         * modules/log1pf-ieee-tests: New file.
6218         * tests/test-log1pf-ieee.c: New file.
6219         * tests/test-log1p-ieee.h: New file.
6220
6221         New module 'log1pf-ieee'.
6222         * modules/log1pf-ieee: New file.
6223
6224 2012-03-10  Bruno Haible  <bruno@clisp.org>
6225
6226         Tests for module 'log1pl'.
6227         * modules/log1pl-tests: New file.
6228         * tests/test-log1pl.c: New file.
6229
6230         New module 'log1pl'.
6231         * lib/math.in.h (log1pl): New declaration.
6232         * lib/log1pl.c: New file.
6233         * m4/log1pl.m4: New file.
6234         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6236         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6237         * modules/log1pl: New file.
6238         * tests/test-math-c++.cc: Check the declaration of log1pl.
6239         * doc/posix-functions/log1pl.texi: Mention the new module.
6240
6241 2012-03-10  Bruno Haible  <bruno@clisp.org>
6242
6243         Tests for module 'log1pf'.
6244         * modules/log1pf-tests: New file.
6245         * tests/test-log1pf.c: New file.
6246
6247         New module 'log1pf'.
6248         * lib/math.in.h (log1pf): New declaration.
6249         * lib/log1pf.c: New file.
6250         * m4/log1pf.m4: New file.
6251         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6253         REPLACE_LOG1PF.
6254         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6255         REPLACE_LOG1PF.
6256         * modules/log1pf: New file.
6257         * tests/test-math-c++.cc: Check the declaration of log1pf.
6258         * doc/posix-functions/log1pf.texi: Mention the new module.
6259
6260 2012-03-10  Bruno Haible  <bruno@clisp.org>
6261
6262         log1p tests: More tests.
6263         * tests/test-log1p.h: New file.
6264         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6265         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6266         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6267         (main): Invoke test_function.
6268
6269         log1p: Provide replacement for Minix and MSVC.
6270         * lib/math.in.h (log1p): New declaration.
6271         * lib/log1p.c: New file.
6272         * m4/log1p.m4: New file.
6273         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6275         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6276         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6277         (Depends-on): Add math, isnand, log, round.
6278         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6279         HAVE_LOG1P is 0.
6280         * tests/test-math-c++.cc: Check the declaration of log1p.
6281         * doc/posix-functions/log1p.texi: Mention the replacement.
6282
6283 2012-03-10  Bruno Haible  <bruno@clisp.org>
6284
6285         math tests: Small simplification.
6286         * tests/test-exp.h (test_function): Use the same err_bound for
6287         'double' on platforms with sizeof (long double) == sizeof (double)
6288         than on platforms with sizeof (long double) > sizeof (double).
6289         * tests/test-exp2.h (test_function): Likewise.
6290         * tests/test-expm1.h (test_function): Likewise.
6291         * tests/test-log.h (test_function): Likewise.
6292
6293 2012-03-10  Bruno Haible  <bruno@clisp.org>
6294
6295         Fix some comments.
6296         * lib/expl.c: Fix an ambiguous comment.
6297         * lib/expm1.c: Likewise.
6298         * lib/expm1l.c: Likewise.
6299         * lib/exp2.c: Likewise.
6300         * lib/exp2l.c: Likewise.
6301
6302 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6303
6304         regex: allow inclusion of <regex.h> before <limits.h>
6305         Without this patch, portable programs had to include <limits.h> before
6306         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6307         I ran into this problem with a test version of GNU grep on Solaris 8.
6308         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6309         This is done conditionally so that this change can be merged
6310         back to glibc.
6311         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6312         using the included regex.
6313
6314         fts: depend on fdopendir
6315         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6316         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6317         problem was introduced when fdopendir was split out.
6318
6319 2012-03-10  Bruno Haible  <bruno@clisp.org>
6320
6321         Remove unused variables.
6322         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6323         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6324
6325 2012-03-10  Bruno Haible  <bruno@clisp.org>
6326
6327         isnanf-nolibm: Fix last commit.
6328         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6329
6330         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6331         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6332
6333 2012-03-10  Bruno Haible  <bruno@clisp.org>
6334
6335         logf-ieee: Work around test failure on NetBSD 5.1.
6336         * m4/logf-ieee.m4: New file.
6337         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6338         whether logf works with a negative argument. Replace it if not.
6339         * lib/logf.c (logf): For negative arguments, return NaN.
6340         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6341         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6342         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6343
6344         logf-ieee: Work around test failure on Solaris 9.
6345         * modules/logf-ieee (Depends-on): Add log-ieee.
6346         (configure.ac): Require gl_FUNC_LOGF.
6347
6348         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6349         * m4/log-ieee.m4: New file.
6350         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6351         log works with a negative argument. Replace it if not.
6352         * lib/log.c (log): For negative arguments, return NaN.
6353         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6354         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6355         * doc/posix-functions/log.texi: Mention the log-ieee module.
6356
6357         Tests for module 'logl-ieee'.
6358         * modules/logl-ieee-tests: New file.
6359         * tests/test-logl-ieee.c: New file.
6360
6361         New module 'logl-ieee'.
6362         * modules/logl-ieee: New file.
6363
6364         Tests for module 'log-ieee'.
6365         * modules/log-ieee-tests: New file.
6366         * tests/test-log-ieee.c: New file.
6367
6368         New module 'log-ieee'.
6369         * modules/log-ieee: New file.
6370
6371         Tests for module 'logf-ieee'.
6372         * modules/logf-ieee-tests: New file.
6373         * tests/test-logf-ieee.c: New file.
6374         * tests/test-log-ieee.h: New file.
6375
6376         New module 'logf-ieee'.
6377         * modules/logf-ieee: New file.
6378
6379 2012-03-10  Bruno Haible  <bruno@clisp.org>
6380
6381         log: Fix bug introduced on 2012-03-09.
6382         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6383
6384 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6385
6386         timer-time: link explicitly with pthreads on glibc
6387         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6388         to support static linking, when newer glibc is
6389         detected, as that contains pthread emulation of
6390         POSIX timer functions where required.
6391         * modules/timer-time: Depend on threadlib to
6392         pull in the appropriate library to link.
6393
6394 2012-03-10  Bruno Haible  <bruno@clisp.org>
6395
6396         log* tests: More tests.
6397         * tests/test-log.h: New file.
6398         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6399         (main): Invoke test_function.
6400         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6401         (main): Invoke test_function.
6402         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6403         (main): Invoke test_function.
6404         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6405         tests/randomd.c.
6406         (Makefile.am): Add randomd.c to test_log_SOURCES.
6407         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6408         tests/randomf.c.
6409         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6410         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6411         tests/randoml.c.
6412         (Depends-on): Add 'float'.
6413         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6414
6415 2012-03-09  Bruno Haible  <bruno@clisp.org>
6416
6417         logl: Work around OSF/1 5.1 bug.
6418         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6419         * lib/logl.c (logl): If logl exists, use it and provide just the
6420         workaround.
6421         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6422         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6424         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6425         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6426         (Depends-on): Update conditions.
6427         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6428
6429 2012-03-09  Bruno Haible  <bruno@clisp.org>
6430
6431         logf: Work around OSF/1 5.1 bug.
6432         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6433         * lib/logf.c (logf): If logf exists, use it and provide just the
6434         workaround.
6435         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6436         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6438         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6439         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6440         (Depends-on): Update conditions.
6441         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6442
6443 2012-03-09  Bruno Haible  <bruno@clisp.org>
6444
6445         log: Work around OSF/1 5.1 bug.
6446         * lib/math.in.h (log): New declaration.
6447         * lib/log.c: New file.
6448         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6449         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6450         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6452         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6453         * modules/log (Files): Add lib/log.c.
6454         (Depends-on): Add math.
6455         (configure.ac): If REPLACE_LOG is 1, compile an override.
6456         * tests/test-math-c++.cc: Check the declaration of log.
6457         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6458
6459 2012-03-09  Jim Meyering  <meyering@redhat.com>
6460
6461         readtokens.c: adjust wording in a comment
6462         * lib/readtokens.c: Insert omitted "that" in a comment.
6463
6464 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6465
6466         modechange: add notations +40, 00440, etc.
6467         * lib/modechange.c (mode_compile): Support new notations
6468         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6469
6470 2012-03-08  Bruno Haible  <bruno@clisp.org>
6471
6472         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6473         * m4/exp2l-ieee.m4: New file.
6474         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6475         test whether exp2l works with a NaN argument and with a negative
6476         infinity argument. Replace it if not.
6477         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6479         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6480         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6481         (Depends-on): Update conditions.
6482         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6483         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6484         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6485
6486         Tests for module 'exp2l-ieee'.
6487         * modules/exp2l-ieee-tests: New file.
6488         * tests/test-exp2l-ieee.c: New file.
6489
6490         New module 'exp2l-ieee'.
6491         * modules/exp2l-ieee: New file.
6492
6493         Tests for module 'exp2-ieee'.
6494         * modules/exp2-ieee-tests: New file.
6495         * tests/test-exp2-ieee.c: New file.
6496
6497         New module 'exp2-ieee'.
6498         * modules/exp2-ieee: New file.
6499
6500         Tests for module 'exp2f-ieee'.
6501         * modules/exp2f-ieee-tests: New file.
6502         * tests/test-exp2f-ieee.c: New file.
6503         * tests/test-exp2-ieee.h: New file.
6504
6505         New module 'exp2f-ieee'.
6506         * modules/exp2f-ieee: New file.
6507
6508 2012-03-08  Bruno Haible  <bruno@clisp.org>
6509
6510         Tests for module 'exp2l'.
6511         * modules/exp2l-tests: New file.
6512         * tests/test-exp2l.c: New file.
6513
6514         New module 'exp2l'.
6515         * lib/math.in.h (exp2l): New declaration.
6516         * lib/exp2l.c: New file.
6517         * lib/expl-table.c: New file, extracted from lib/expl.c.
6518         * lib/expl.c (gl_expl_table): New declaration.
6519         (expl): Remove expl_table. Update reference.
6520         * m4/exp2l.m4: New file.
6521         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6523         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6524         * modules/exp2l: New file.
6525         * modules/expl (Files): Add lib/expl-table.c.
6526         (configure.ac): Compile also expl-table.c.
6527         * tests/test-math-c++.cc: Check the declaration of exp2l.
6528         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6529         problem.
6530
6531 2012-03-08  Bruno Haible  <bruno@clisp.org>
6532
6533         Tests for module 'exp2f'.
6534         * modules/exp2f-tests: New file.
6535         * tests/test-exp2f.c: New file.
6536
6537         New module 'exp2f'.
6538         * lib/math.in.h (exp2f): New declaration.
6539         * lib/exp2f.c: New file.
6540         * m4/exp2f.m4: New file.
6541         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6543         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6544         * modules/exp2f: New file.
6545         * tests/test-math-c++.cc: Check the declaration of exp2f.
6546         * doc/posix-functions/exp2f.texi: Mention the new module and the
6547         IRIX problem.
6548
6549 2012-03-08  Bruno Haible  <bruno@clisp.org>
6550
6551         Tests for module 'exp2'.
6552         * modules/exp2-tests: New file.
6553         * tests/test-exp2.c: New file.
6554         * tests/test-exp2.h: New file.
6555
6556         New module 'exp2'.
6557         * lib/math.in.h (exp2): New declaration.
6558         * lib/exp2.c: New file.
6559         * m4/exp2.m4: New file.
6560         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6562         REPLACE_EXP2.
6563         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6564         REPLACE_EXP2.
6565         * modules/exp2: New file.
6566         * tests/test-math-c++.cc: Check the declaration of exp2.
6567         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6568         and OpenBSD problems.
6569
6570 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6571
6572         savedir: fix comment typo
6573         * lib/savedir.c (savedirstream): Fix typo in comment.
6574
6575 2012-03-08  Bruno Haible  <bruno@clisp.org>
6576
6577         test-readtokens.c: use const; remove unwarranted cast
6578         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6579
6580 2012-03-08  Bruno Haible  <bruno@clisp.org>
6581
6582         fmal: Avoid compilation error on AIX.
6583         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6584         AIX 5.2..7.1.
6585
6586 2012-03-08  Bruno Haible  <bruno@clisp.org>
6587
6588         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6589         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6590         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6591         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6592         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6593         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6594         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6595
6596 2012-03-08  Bruno Haible  <bruno@clisp.org>
6597
6598         remainderf: Override buggy system function on IRIX 6.5.
6599         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6600         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6601         when it exists.
6602         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6603
6604 2012-03-08  Jim Meyering  <meyering@redhat.com>
6605
6606         test-readtokens.c: avoid const-related compilation warnings
6607         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6608
6609 2012-03-07  Jim Meyering  <meyering@redhat.com>
6610             Bruno Haible  <bruno@clisp.org>
6611
6612         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6613         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6614         tests/randomd.c.
6615         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6616         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6617         tests/randoml.c.
6618         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6619
6620 2012-03-07  Bruno Haible  <bruno@clisp.org>
6621
6622         expm1l: Avoid compilation error on AIX.
6623         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6624         AIX 5.2..7.1.
6625
6626 2012-03-07  Bruno Haible  <bruno@clisp.org>
6627
6628         expm1l: Don't override undeclared system function on IRIX 6.5.
6629         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6630         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6631         it exists. Set HAVE_DECL_EXPM1L.
6632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6633         HAVE_EXPM1L.
6634         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6635         HAVE_EXPM1L.
6636         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6637
6638 2012-03-07  Bruno Haible  <bruno@clisp.org>
6639
6640         remainderl: Don't override undeclared system function on IRIX 6.5.
6641         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6642         HAVE_REMAINDERL.
6643         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6644         declared when it exists. Set HAVE_DECL_REMAINDERL.
6645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6646         not HAVE_REMAINDERL.
6647         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6648         HAVE_REMAINDERL.
6649         * doc/posix-functions/remainderl.texi: Mention missing declaration
6650         problem.
6651
6652 2012-03-07  Bruno Haible  <bruno@clisp.org>
6653
6654         rintf: Don't override undeclared system function on IRIX 6.5.
6655         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6656         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6657         exists. Set HAVE_DECL_RINTF.
6658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6659         HAVE_RINTF.
6660         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6661         HAVE_RINTF.
6662         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6663
6664 2012-03-07  Bruno Haible  <bruno@clisp.org>
6665
6666         roundl: Avoid compilation error on AIX.
6667         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6668         AIX 5.2..7.1.
6669
6670 2012-03-07  Bruno Haible  <bruno@clisp.org>
6671
6672         roundl: Don't override undeclared system function on IRIX 6.5.
6673         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6674         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6675         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6676         * modules/roundl (configure.ac): For replacement code, test
6677         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6678         (Depends-on): Update conditions.
6679         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6680
6681 2012-03-07  Bruno Haible  <bruno@clisp.org>
6682
6683         roundf: Don't override undeclared system function on IRIX 6.5.
6684         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6685         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6686         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6687         * modules/roundf (configure.ac): For replacement code, test
6688         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6689         (Depends-on): Update conditions.
6690         * modules/roundf-ieee (Depends-on): Update conditions.
6691         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6692
6693 2012-03-07  Bruno Haible  <bruno@clisp.org>
6694
6695         round: Don't override undeclared system function on IRIX 6.5.
6696         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6697         argument.
6698         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6699         also when it is not declared. Set HAVE_ROUND. For replacement code,
6700         test HAVE_ROUND, not HAVE_DECL_ROUND.
6701         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6702         not HAVE_DECL_ROUND.
6703         (Depends-on): Update conditions.
6704         * modules/round-ieee (Depends-on): Update conditions.
6705         * doc/posix-functions/round.texi: Mention the IRIX problem.
6706
6707 2012-03-07  Bruno Haible  <bruno@clisp.org>
6708
6709         copysignf: Don't override undeclared system function on IRIX 6.5.
6710         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6711         HAVE_COPYSIGNF.
6712         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6713         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6715         not HAVE_COPYSIGNF.
6716         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6717         HAVE_COPYSIGNF.
6718         * doc/posix-functions/copysignf.texi: Mention missing declaration
6719         problem.
6720
6721 2012-03-07  Jim Meyering  <meyering@redhat.com>
6722
6723         readtokens: add tests
6724         * modules/readtokens-tests: New file.
6725         * tests/test-readtokens.c: New file.
6726
6727 2012-03-07  Jim Meyering  <meyering@redhat.com>
6728
6729         quotearg: the module must now include quote.h
6730         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6731         So must the module.
6732         * modules/quotearg (Files): Add quote.h.
6733
6734 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6735
6736         readtokens: avoid core dumps with unusual calling patterns
6737         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6738         * lib/readtokens.c: Include limits.h.
6739         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6740         (readtoken): Don't cache the delimiters; the cache code was buggy
6741         if !delim && saved_delim, or if the new n_delim differs from the old.
6742         Also, it wasn't thread-safe.
6743
6744 2012-03-07  Bruno Haible  <bruno@clisp.org>
6745
6746         quote: Adhere to common module description layout.
6747         * modules/quote (Makefile.am): Add back empty section.
6748
6749 2012-03-06  Akim Demaille  <demaille@gostai.com>
6750
6751         quote: fuse into quotearg
6752         This patch is made for the benefit of Bison.
6753         quote does not leave the choice of the quoting style to the user.
6754         quoting_style provides poor customizability, yet quoting_options,
6755         which is very rich, is hidden inside quotearg.c.  So in order to
6756         allow quote customization, move its implementation to quotearg.c.
6757         * lib/quote.c: Remove.
6758         * modules/quote: Adjust.
6759         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6760         warning: provide all the members of literal structs.
6761         (quote_quoting_options): New.
6762         (quote, quote_n): Import implementation from quote.c.
6763         * lib/quote.h: Import the comments from quote.c.
6764         (quote_quoting_options): New.
6765
6766 2012-03-06  Bruno Haible  <bruno@clisp.org>
6767
6768         Tests for module 'expm1l-ieee'.
6769         * modules/expm1l-ieee-tests: New file.
6770         * tests/test-expm1l-ieee.c: New file.
6771
6772         New module 'expm1l-ieee'.
6773         * modules/expm1l-ieee: New file.
6774
6775         Tests for module 'expm1f-ieee'.
6776         * modules/expm1f-ieee-tests: New file.
6777         * tests/test-expm1f-ieee.c: New file.
6778
6779         New module 'expm1f-ieee'.
6780         * modules/expm1f-ieee: New file.
6781
6782         Tests for module 'expm1-ieee'.
6783         * modules/expm1-ieee-tests: New file.
6784         * tests/test-expm1-ieee.c: New file.
6785         * tests/test-expm1-ieee.h: New file.
6786
6787         New module 'expm1-ieee'.
6788         * modules/expm1-ieee: New file.
6789         * m4/expm1-ieee.m4: New file.
6790         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6791         whether expm1 works with a minus zero argument. Replace it if not.
6792         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6794         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6795         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6796         (Depends-on): Update conditions.
6797         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6798         AIX problem.
6799
6800 2012-03-06  Bruno Haible  <bruno@clisp.org>
6801
6802         Work around expm1f bug on IRIX 6.5.
6803         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6804         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6805         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6806         not work.
6807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6808         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6809         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6810         (Depends-on): Update conditions.
6811         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6812
6813 2012-03-06  Bruno Haible  <bruno@clisp.org>
6814
6815         Tests for module 'expm1l'.
6816         * modules/expm1l-tests: New file.
6817         * tests/test-expm1l.c: New file.
6818
6819         New module 'expm1l'.
6820         * lib/math.in.h (expm1l): New declaration.
6821         * lib/expm1l.c: New file.
6822         * m4/expm1l.m4: New file.
6823         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6825         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6826         * modules/expm1l: New file.
6827         * tests/test-math-c++.cc: Check the declaration of expm1l.
6828         * doc/posix-functions/expm1l.texi: Mention the new module.
6829
6830 2012-03-06  Bruno Haible  <bruno@clisp.org>
6831
6832         Tests for module 'expm1f'.
6833         * modules/expm1f-tests: New file.
6834         * tests/test-expm1f.c: New file.
6835
6836         New module 'expm1f'.
6837         * lib/math.in.h (expm1f): New declaration.
6838         * lib/expm1f.c: New file.
6839         * m4/expm1f.m4: New file.
6840         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6842         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6843         * modules/expm1f: New file.
6844         * tests/test-math-c++.cc: Check the declaration of expm1f.
6845         * doc/posix-functions/expm1f.texi: Mention the new module.
6846
6847 2012-03-06  Bruno Haible  <bruno@clisp.org>
6848
6849         Tests for module 'expm1'.
6850         * modules/expm1-tests: New file.
6851         * tests/test-expm1.c: New file.
6852         * tests/test-expm1.h: New file.
6853
6854         New module 'expm1'.
6855         * lib/math.in.h (expm1): New declaration.
6856         * lib/expm1.c: New file.
6857         * m4/expm1.m4: New file.
6858         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6860         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6861         * modules/expm1: New file.
6862         * tests/test-math-c++.cc: Check the declaration of expm1.
6863         * doc/posix-functions/expm1.texi: Mention the new module.
6864
6865 2012-03-06  Bruno Haible  <bruno@clisp.org>
6866
6867         math: Ensure declarations of math functions.
6868         * modules/acosf (Depends-on): Add 'extensions'.
6869         * modules/asinf (Depends-on): Likewise.
6870         * modules/atan2f (Depends-on): Likewise.
6871         * modules/atanf (Depends-on): Likewise.
6872         * modules/cbrt (Depends-on): Likewise.
6873         * modules/cbrtf (Depends-on): Likewise.
6874         * modules/cbrtl (Depends-on): Likewise.
6875         * modules/copysignf (Depends-on): Likewise.
6876         * modules/copysignl (Depends-on): Likewise.
6877         * modules/cosf (Depends-on): Likewise.
6878         * modules/coshf (Depends-on): Likewise.
6879         * modules/expf (Depends-on): Likewise.
6880         * modules/fabsf (Depends-on): Likewise.
6881         * modules/fabsl (Depends-on): Likewise.
6882         * modules/fmaf (Depends-on): Likewise.
6883         * modules/fmal (Depends-on): Likewise.
6884         * modules/fmodf (Depends-on): Likewise.
6885         * modules/fmodl (Depends-on): Likewise.
6886         * modules/frexpf (Depends-on): Likewise.
6887         * modules/frexpl (Depends-on): Likewise.
6888         * modules/hypot (Depends-on): Likewise.
6889         * modules/hypotf (Depends-on): Likewise.
6890         * modules/hypotl (Depends-on): Likewise.
6891         * modules/ldexpf (Depends-on): Likewise.
6892         * modules/ldexpl (Depends-on): Likewise.
6893         * modules/log10f (Depends-on): Likewise.
6894         * modules/log10l (Depends-on): Likewise.
6895         * modules/log1p (Depends-on): Likewise.
6896         * modules/logb (Depends-on): Likewise.
6897         * modules/logf (Depends-on): Likewise.
6898         * modules/modff (Depends-on): Likewise.
6899         * modules/modfl (Depends-on): Likewise.
6900         * modules/powf (Depends-on): Likewise.
6901         * modules/remainderf (Depends-on): Likewise.
6902         * modules/remainderl (Depends-on): Likewise.
6903         * modules/rintf (Depends-on): Likewise.
6904         * modules/rintl (Depends-on): Likewise.
6905         * modules/sinf (Depends-on): Likewise.
6906         * modules/sinhf (Depends-on): Likewise.
6907         * modules/sqrtf (Depends-on): Likewise.
6908         * modules/tanf (Depends-on): Likewise.
6909         * modules/tanhf (Depends-on): Likewise.
6910         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6911         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6912         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6913         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6914         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6915         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6916         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6917         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6918         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6919         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6920         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6921         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6922         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6923         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6924         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6925         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6926         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6927         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6928         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6929         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6930         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6931         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6932         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6933         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6934         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6935         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6936         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6937         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6938         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6939         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6940         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6941         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6942         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6943         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6944         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6945         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6946         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6947         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6948         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6949         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6950         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6951
6952 2012-03-06  Bruno Haible  <bruno@clisp.org>
6953
6954         math: Update module names in warnings.
6955         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6956         tanl): Use specific module name in warn-on-use warning.
6957
6958 2012-03-06  Bruno Haible  <bruno@clisp.org>
6959
6960         expl: Simplify computation.
6961         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6962
6963 2012-03-05  Bruno Haible  <bruno@clisp.org>
6964
6965         exp* tests: More tests.
6966         * tests/test-exp.h: New file.
6967         * tests/test-exp.c: Include <float.h> and test-exp.h.
6968         (main): Invoke test_function.
6969         * tests/test-expf.c: Include <float.h> and test-exp.h.
6970         (main): Invoke test_function.
6971         * tests/test-expl.c: Include <float.h> and test-exp.h.
6972         (main): Invoke test_function.
6973         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6974         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6975         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6976         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6977         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6978         (Depends-on): Add 'float'.
6979         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6980
6981         expl: Fix precision of computed result.
6982         * lib/expl.c: Completely rewritten.
6983         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6984         (Maintainer): Add me.
6985         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6986
6987 2012-03-05  Bruno Haible  <bruno@clisp.org>
6988
6989         cbrt* tests: More tests.
6990         * tests/test-cbrt.h: New file.
6991         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6992         (main): Invoke test_function.
6993         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6994         (main): Invoke test_function.
6995         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6996         (main): Invoke test_function.
6997         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6998         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6999         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7000         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7001         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7002         (Depends-on): Add 'float'.
7003         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7004
7005 2012-03-05  Bruno Haible  <bruno@clisp.org>
7006
7007         hypot* tests: More tests.
7008         * tests/test-hypot.h: New file, partially extracted from
7009         tests/test-hypotl.c.
7010         * tests/test-hypot.c: Include test-hypot.h.
7011         (main): Invoke test_function.
7012         * tests/test-hypotf.c: Include test-hypot.h.
7013         (main): Invoke test_function.
7014         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7015         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7016         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7017         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7018         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7019         tests/randomf.c.
7020         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7021         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7022         tests/randoml.c.
7023         (Depends-on): Add 'fpucw', 'float'.
7024         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7025
7026 2012-03-05  Bruno Haible  <bruno@clisp.org>
7027
7028         fpucw: Doc about FreeBSD.
7029         * lib/fpucw.h: Mention FreeBSD in comments.
7030
7031 2012-03-04  Bruno Haible  <bruno@clisp.org>
7032
7033         sqrt* tests: More tests.
7034         * tests/test-sqrt.h: New file.
7035         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7036         (main): Invoke test_function.
7037         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7038         (main): Invoke test_function.
7039         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7040         (main): Invoke test_function.
7041         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7042         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7043         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7044         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7045         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7046         (Depends-on): Add 'float'.
7047         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7048
7049 2012-03-04  Bruno Haible  <bruno@clisp.org>
7050
7051         remainder* tests: More tests.
7052         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7053         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7054         (main): Invoke test_function.
7055         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7056         (main): Invoke test_function.
7057         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7058         (main): Invoke test_function.
7059         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7060         tests/randomd.c.
7061         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7062         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7063         tests/randomf.c.
7064         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7065         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7066         tests/randoml.c.
7067         (Depends-on): Add 'float'.
7068         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7069
7070 2012-03-04  Bruno Haible  <bruno@clisp.org>
7071
7072         remainder, remainderf, remainderl: Fix computation for large quotients.
7073         * lib/remainder.c: Completely rewritten.
7074         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7075         USE_FLOAT.
7076         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7077         USE_LONG_DOUBLE.
7078         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7079         isnand, isinf. Remove round, fma.
7080         * modules/remainderf (Files): Add lib/remainder.c.
7081         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7082         Remove roundf, fmaf.
7083         * modules/remainderl (Files): Add lib/remainder.c.
7084         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7085         isinf. Remove roundl, fmal.
7086         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7087         REMAINDER_LIBM.
7088         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7089         REMAINDERF_LIBM.
7090         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7091         REMAINDERL_LIBM.
7092
7093 2012-03-04  Bruno Haible  <bruno@clisp.org>
7094
7095         fmod* tests: More tests.
7096         * tests/test-fmod.h (my_ldexp): New function.
7097         (test_function): Reduce amount of random numbers to test. Add tests
7098         of very large quotients x / y.
7099         * tests/test-fmod.c (MAX_EXP): New macro.
7100         * tests/test-fmodf.c (MAX_EXP): Likewise.
7101         * tests/test-fmodl.c (MAX_EXP): Likewise.
7102
7103 2012-03-04  Bruno Haible  <bruno@clisp.org>
7104
7105         fmod, fmodl: Fix computation for large quotients x / y.
7106         * lib/fmod.c: Completely rewritten.
7107         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7108         USE_LONG_DOUBLE.
7109         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7110         isnand. Remove fma.
7111         * modules/fmodl (Files): Add lib/fmod.c.
7112         (Depends-on): Add float, isfinite, signbit, fabsl,
7113         frexpl, ldexpl, isnanl. Remove fma.
7114         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7115         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7116
7117 2012-03-03  Bruno Haible  <bruno@clisp.org>
7118
7119         fmod* tests: More tests.
7120         * tests/test-fmod.h: New file.
7121         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7122         (main): Invoke test_function.
7123         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7124         (main): Invoke test_function.
7125         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7126         (main): Invoke test_function.
7127         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7128         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7129         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7130         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7131         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7132         (Depends-on): Add 'float'.
7133         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7134
7135 2012-03-03  Bruno Haible  <bruno@clisp.org>
7136
7137         rint* tests: More tests.
7138         * tests/test-rint.h: New file, partially extracted from
7139         tests/test-rintl.c.
7140         * tests/test-rint.c: Include test-rint.h.
7141         (main): Invoke test_function.
7142         * tests/test-rintf.c: Include test-rint.h.
7143         (main): Invoke test_function.
7144         * tests/test-rintl.c: Include test-rint.h.
7145         (main): Invoke test_function.
7146         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7147         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7148         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7149         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7150         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7151         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7152
7153 2012-03-03  Bruno Haible  <bruno@clisp.org>
7154
7155         modf* tests: More tests.
7156         * tests/test-modf.h: New file.
7157         * tests/test-modf.c: Include <float.h> and test-modf.h.
7158         (main): Invoke test_function.
7159         * tests/test-modff.c: Include <float.h> and test-modf.h.
7160         (main): Invoke test_function.
7161         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7162         (main): Invoke test_function.
7163         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7164         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7165         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7166         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7167         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7168         (Depends-on): Add 'float'.
7169         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7170
7171 2012-03-03  Bruno Haible  <bruno@clisp.org>
7172
7173         fabs* tests: More tests.
7174         * tests/test-fabs.h: New file, partially extracted from
7175         tests/test-fabsl.c.
7176         * tests/test-fabs.c (RANDOM): New macro.
7177         * tests/test-fabsf.c (RANDOM): New macro.
7178         * tests/test-fabsl.c (RANDOM): New macro.
7179         * modules/fabs-tests (Files): Add tests/randomd.c.
7180         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7181         * modules/fabsf-tests (Files): Add tests/randomf.c.
7182         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7183         * modules/fabsl-tests (Files): Add tests/randoml.c.
7184         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7185
7186 2012-03-03  Bruno Haible  <bruno@clisp.org>
7187
7188         ldexp* tests: More tests.
7189         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7190         * tests/test-ldexp.c (RANDOM): New macro.
7191         * tests/test-ldexpf.c (RANDOM): New macro.
7192         * tests/test-ldexpl.c (RANDOM): New macro.
7193         * modules/ldexp-tests (Files): Add tests/randomd.c.
7194         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7195         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7196         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7197         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7198         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7199
7200 2012-03-03  Bruno Haible  <bruno@clisp.org>
7201
7202         frexp* tests: More tests.
7203         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7204         * tests/test-frexp.c (RANDOM): New macro.
7205         * tests/test-frexpf.c (RANDOM): New macro.
7206         * tests/test-frexpl.c (RANDOM): New macro.
7207         * modules/frexp-tests (Files): Add tests/randomd.c.
7208         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7209         * modules/frexpf-tests (Files): Add tests/randomf.c.
7210         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7211         * modules/frexpl-tests (Files): Add tests/randoml.c.
7212         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7213
7214 2012-03-03  Bruno Haible  <bruno@clisp.org>
7215
7216         Support for pseudo-random numbers in tests.
7217         * tests/randomf.c: New file.
7218         * tests/randomd.c: New file.
7219         * tests/randoml.c: New file.
7220         * tests/macros.h (randomf, randomd, randoml): New declarations.
7221
7222 2012-03-03  Bruno Haible  <bruno@clisp.org>
7223
7224         frexp* tests: Refactor.
7225         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7226         * tests/test-frexp.c: Include and use it.
7227         * tests/test-frexpf.c: Likewise.
7228         * tests/test-frexpl.c: Likewise.
7229         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7230         * modules/frexpf-tests (Files): Likewise.
7231         * modules/frexpl-tests (Files): Likewise.
7232
7233 2012-03-02  Jim Meyering  <meyering@redhat.com>
7234
7235         maint: don't specify XZ_OPT=-9ev in dist-related rule
7236         Using xz's -9 option is warranted only if you have a very large
7237         tarball (see xz's documentation for the sizes vs. presets), and
7238         requires 64MiB of memory at decompression time.
7239         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7240         Automake's default of just "-e" is fine.  Override on a
7241         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7242
7243 2012-03-01  Eric Blake  <eblake@redhat.com>
7244
7245         maint.mk: allow announcement for non-gnulib project
7246         * maint.mk (announcement): Skip gnulib version if not used.
7247
7248 2012-03-01  Jim Meyering  <meyering@redhat.com>
7249
7250         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7251         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7252         envvar settings cannot interfere.  Otherwise, setting envvars like
7253         prohibit=foo require=bar, etc. would cause spurious test failures.
7254
7255 2012-03-01  Eric Blake  <eblake@redhat.com>
7256
7257         maint.mk: add per-line exclusions to prohibitions
7258         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7259         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7260         (sc_const_long_option): Use it.
7261
7262 2012-03-01  Bruno Haible  <bruno@clisp.org>
7263
7264         Tests for module 'expl-ieee'.
7265         * modules/expl-ieee-tests: New file.
7266         * tests/test-expl-ieee.c: New file.
7267
7268         New module 'expl-ieee'.
7269         * modules/expl-ieee: New file.
7270
7271         Tests for module 'exp-ieee'.
7272         * modules/exp-ieee-tests: New file.
7273         * tests/test-exp-ieee.c: New file.
7274
7275         New module 'exp-ieee'.
7276         * modules/exp-ieee: New file.
7277
7278         Tests for module 'expf-ieee'.
7279         * modules/expf-ieee-tests: New file.
7280         * tests/test-expf-ieee.c: New file.
7281         * tests/test-exp-ieee.h: New file.
7282
7283         New module 'expf-ieee'.
7284         * modules/expf-ieee: New file.
7285
7286 2012-02-29  Bruno Haible  <bruno@clisp.org>
7287
7288         cbrtl-ieee: Work around test failure on IRIX 6.5.
7289         * m4/cbrtl-ieee.m4: New file.
7290         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7291         test whether cbrtl works with a minus zero argument. Replace it if not.
7292         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7294         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7295         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7296         (Depends-on): Update conditions.
7297         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7298         m4/signbit.m4.
7299         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7300         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7301         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7302
7303         Tests for module 'cbrtl-ieee'.
7304         * modules/cbrtl-ieee-tests: New file.
7305         * tests/test-cbrtl-ieee.c: New file.
7306
7307         New module 'cbrtl-ieee'.
7308         * modules/cbrtl-ieee: New file.
7309
7310         Tests for module 'cbrt-ieee'.
7311         * modules/cbrt-ieee-tests: New file.
7312         * tests/test-cbrt-ieee.c: New file.
7313
7314         New module 'cbrt-ieee'.
7315         * modules/cbrt-ieee: New file.
7316
7317         Tests for module 'cbrtf-ieee'.
7318         * modules/cbrtf-ieee-tests: New file.
7319         * tests/test-cbrtf-ieee.c: New file.
7320         * tests/test-cbrt-ieee.h: New file.
7321
7322         New module 'cbrtf-ieee'.
7323         * modules/cbrtf-ieee: New file.
7324
7325 2012-02-29  Bruno Haible  <bruno@clisp.org>
7326
7327         cbrtf: Work around bug in IRIX 6.5 system function.
7328         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7329         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7330         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7331         work.
7332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7333         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7334         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7335         (Depends-on): Update conditions.
7336         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7337
7338 2012-02-29  Bruno Haible  <bruno@clisp.org>
7339
7340         Tests for module 'cbrtl'.
7341         * modules/cbrtl-tests: New file.
7342         * tests/test-cbrtl.c: New file.
7343
7344         New module 'cbrtl'.
7345         * lib/math.in.h (cbrtl): New declaration.
7346         * lib/cbrtl.c: New file.
7347         * m4/cbrtl.m4: New file.
7348         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7350         HAVE_DECL_CBRTL.
7351         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7352         HAVE_DECL_CBRTL.
7353         * modules/cbrtl: New file.
7354         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7355         * doc/posix-functions/cbrtl.texi: Mention the new module.
7356
7357 2012-02-29  Bruno Haible  <bruno@clisp.org>
7358
7359         Tests for module 'cbrtf'.
7360         * modules/cbrtf-tests: New file.
7361         * tests/test-cbrtf.c: New file.
7362
7363         New module 'cbrtf'.
7364         * lib/math.in.h (cbrtf): New declaration.
7365         * lib/cbrtf.c: New file.
7366         * m4/cbrtf.m4: New file.
7367         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7369         HAVE_DECL_CBRTF.
7370         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7371         HAVE_DECL_CBRTF.
7372         * modules/cbrtf: New file.
7373         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7374         * doc/posix-functions/cbrtf.texi: Mention the new module.
7375
7376 2012-02-29  Bruno Haible  <bruno@clisp.org>
7377
7378         cbrt: Provide replacement on MSVC and Minix.
7379         * lib/math.in.h (cbrt): New declaration.
7380         * lib/cbrt.c: New file.
7381         * m4/cbrt.m4: New file.
7382         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7383         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7384         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7385         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7386         (Depends-on): Add dependencies.
7387         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7388         * tests/test-math-c++.cc: Check the declaration of cbrt.
7389         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7390         replacement.
7391
7392 2012-02-29  Bruno Haible  <bruno@clisp.org>
7393
7394         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7395         * m4/hypotl-ieee.m4: New file.
7396         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7397         test whether hypotl works with mixed NaN and Infinity arguments.
7398         Replace it if not.
7399         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7401         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7402         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7403         (Depends-on): Update conditions.
7404         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7405         (Depends-on): Add hypot-ieee.
7406         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7407         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7408
7409         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7410         * m4/hypotf-ieee.m4: New file.
7411         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7412         test whether hypotf works with mixed NaN and Infinity arguments.
7413         Replace it if not.
7414         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7415         (Depends-on): Add hypot-ieee.
7416         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7417         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7418
7419         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7420         * lib/math.in.h (hypot): New declaration.
7421         * lib/hypot.c: New file.
7422         * m4/hypot-ieee.m4: New file.
7423         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7424         whether hypot works with mixed NaN and Infinity arguments. Replace it
7425         if not.
7426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7427         REPLACE_HYPOT.
7428         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7429         * modules/hypot (Files): Add lib/hypot.c.
7430         (Depends-on): Add dependencies.
7431         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7432         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7433         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7434         * tests/test-math-c++.cc: Check the declaration of hypot.
7435         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7436
7437         Tests for module 'hypotl-ieee'.
7438         * modules/hypotl-ieee-tests: New file.
7439         * tests/test-hypotl-ieee.c: New file.
7440
7441         New module 'hypotl-ieee'.
7442         * modules/hypotl-ieee: New file.
7443
7444         Tests for module 'hypot-ieee'.
7445         * modules/hypot-ieee-tests: New file.
7446         * tests/test-hypot-ieee.c: New file.
7447
7448         New module 'hypot-ieee'.
7449         * modules/hypot-ieee: New file.
7450
7451         Tests for module 'hypotf-ieee'.
7452         * modules/hypotf-ieee-tests: New file.
7453         * tests/test-hypotf-ieee.c: New file.
7454         * tests/test-hypot-ieee.h: New file.
7455
7456         New module 'hypotf-ieee'.
7457         * modules/hypotf-ieee: New file.
7458
7459 2012-02-29  Bruno Haible  <bruno@clisp.org>
7460
7461         Remove unused variables.
7462         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7463         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7464         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7465         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7466
7467 2012-02-29  Eric Blake  <eblake@redhat.com>
7468
7469         termios: fix pid_t always, not just for tcgetsid
7470         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7471         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7472         just when building tcgetsid.
7473
7474 2012-02-29  Bruno Haible  <bruno@clisp.org>
7475
7476         Tests for module 'hypotl'.
7477         * modules/hypotl-tests: New file.
7478         * tests/test-hypotl.c: New file.
7479
7480         New module 'hypotl'.
7481         * lib/math.in.h (hypotl): New declaration.
7482         * lib/hypotl.c: New file.
7483         * m4/hypotl.m4: New file.
7484         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7486         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7487         * modules/hypotl: New file.
7488         * tests/test-math-c++.cc: Check the hypotl declaration.
7489         * doc/posix-functions/hypotl.texi: Mention the new module.
7490
7491 2012-02-29  Eric Blake  <eblake@redhat.com>
7492
7493         tcgetsid: fix cygwin header bug
7494         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7495
7496         docs: update cygwin progress
7497         * doc/posix-functions/llround.texi (llround): Added in cygwin
7498         1.7.8.
7499         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7500         * doc/glibc-functions/program_invocation_name.texi
7501         (program_invocation_name): Likewise.
7502         * doc/glibc-functions/program_invocation_short_name.texi
7503         (program_invocation_short_name): Likewise.
7504         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7505         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7506         Likewise.
7507         * doc/posix-functions/pthread_spin_destroy.texi
7508         (pthread_spin_destroy): Added in cygwin 1.7.10.
7509         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7510         Likewise.
7511         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7512         Likewise.
7513         * doc/posix-functions/pthread_spin_trylock.texi
7514         (pthread_spin_trylock): Likewise.
7515         * doc/posix-functions/pthread_spin_unlock.texi
7516         (pthread_spin_unlock): Likewise.
7517         * doc/posix-functions/pthread_setschedprio.texi
7518         (pthread_setschedprio): Likewise.
7519         * doc/posix-functions/pthread_attr_getstack.texi
7520         (pthread_attr_getstack): Likewise.
7521         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7522         (pthread_attr_getstackaddr): Likewise.
7523         * doc/glibc-functions/pthread_getattr_np.texi
7524         (pthread_getattr_np): Likewise.
7525         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7526         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7527         * doc/posix-functions/clock_settime.texi (clock_settime):
7528         Likewise.
7529         * doc/posix-functions/pthread_attr_getguardsize.texi
7530         (pthread_attr_getguardsize): Likewise.
7531         * doc/posix-functions/pthread_attr_setguardsize.texi
7532         (pthread_attr_setguardsize): Likewise.
7533         * doc/posix-functions/pthread_attr_setstack.texi
7534         (pthread_attr_setstack): Likewise.
7535         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7536         (pthread_attr_setstackaddr): Likewise.
7537         * doc/posix-functions/clock_getcpuclockid.texi
7538         (clock_getcpuclockid): Likewise.
7539         * doc/posix-functions/pthread_getcpuclockid.texi
7540         (pthread_getcpuclockid): Likewise.
7541         * doc/glibc-functions/error.texi (error): Likewise.
7542         * doc/glibc-functions/error_at_line.texi (error_at_line):
7543         Likewise.
7544         * doc/glibc-functions/error_message_count.texi
7545         (error_message_count): Likewise.
7546         * doc/glibc-functions/error_one_per_line.texi
7547         (error_one_per_line): Likewise.
7548         * doc/glibc-functions/error_print_progname.texi
7549         (error_print_progname): Likewise.
7550         * doc/posix-functions/pthread_condattr_getclock.texi
7551         (pthread_condattr_getclock): Likewise.
7552         * doc/posix-functions/pthread_condattr_setclock.texi
7553         (pthread_condattr_setclock): Likewise.
7554         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7555         Likewise.
7556         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7557         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7558         * doc/glibc-functions/get_current_dir_name.texi
7559         (get_current_dir_name): Likewise.
7560         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7561         Likewise.
7562         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7563         wrong return type.
7564         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7565         1.7.11.
7566
7567 2012-02-29  Bruno Haible  <bruno@clisp.org>
7568
7569         Tests for module 'hypotf'.
7570         * modules/hypotf-tests: New file.
7571         * tests/test-hypotf.c: New file.
7572
7573         New module 'hypotf'.
7574         * lib/math.in.h (hypotf): New declaration.
7575         * lib/hypotf.c: New file.
7576         * m4/hypotf.m4: New file.
7577         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7579         REPLACE_HYPOTF.
7580         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7581         REPLACE_HYPOTF.
7582         * modules/hypotf: New file.
7583         * tests/test-math-c++.cc: Check the hypotf declaration.
7584         * doc/posix-functions/hypotf.texi: Mention the new module.
7585
7586         hypot: Prepare for hypotf module.
7587         * m4/hypot.m4: New file.
7588         * modules/hypot (Files): Add m4/hypot.m4.
7589         (configure.ac): Invoke gl_FUNC_HYPOT.
7590
7591 2012-02-29  Bruno Haible  <bruno@clisp.org>
7592
7593         hypot tests: More tests.
7594         * tests/test-hypot.c: Include <float.h>.
7595         (main): Add tests about overflow and underflow.
7596
7597 2012-02-29  Bruno Haible  <bruno@clisp.org>
7598
7599         math code: Add comments.
7600         * lib/acosl.c: Add comment about related glibc source files.
7601         * lib/asinl.c: Likewise.
7602         * lib/atanl.c: Likewise.
7603         * lib/expl.c: Likewise.
7604         * lib/logl.c: Likewise.
7605         * lib/sincosl.c: Likewise.
7606         * lib/sinl.c: Likewise.
7607         * lib/tanl.c: Likewise.
7608         * lib/trigl.c: Likewise.
7609         * lib/cosl.c: Likewise. Fix comments.
7610
7611 2012-02-28  Bruno Haible  <bruno@clisp.org>
7612
7613         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7614         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7615         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7616         HUGE_VALL are defined.
7617         (numeric_equald): Renamed from numeric_equal.
7618         (numeric_equalf, numeric_equall): New functions.
7619         (main): Check also HUGE_VALF, HUGE_VALL.
7620         * modules/math-tests (Files): Add tests/macros.h.
7621         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7622         HUGE_VALL.
7623
7624 2012-02-28  Bruno Haible  <bruno@clisp.org>
7625
7626         doc: Move ISO C11 feature notes into POSIX chapters.
7627         * doc/posix-functions/aligned_alloc.texi: Renamed from
7628         doc/glibc-functions/aligned_alloc.texi.
7629         * doc/posix-functions/quick_exit.texi: Renamed from
7630         doc/glibc-functions/quick_exit.texi.
7631         * doc/posix-headers/uchar.texi: Renamed from
7632         doc/glibc-headers/uchar.texi.
7633         * doc/posix-functions/c16rtomb.texi: Renamed from
7634         doc/glibc-functions/c16rtomb.texi.
7635         * doc/posix-functions/c32rtomb.texi: Renamed from
7636         doc/glibc-functions/c32rtomb.texi.
7637         * doc/posix-functions/mbrtoc16.texi: Renamed from
7638         doc/glibc-functions/mbrtoc16.texi.
7639         * doc/posix-functions/mbrtoc32.texi: Renamed from
7640         doc/glibc-functions/mbrtoc32.texi.
7641         * doc/gnulib.texi: Update.
7642         (Glibc uchar.h): Remove section.
7643         Suggested by Eric Blake.
7644
7645 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7646
7647         stdnoreturn: port to MSVC better
7648         MSVC standard headers use __declspec(noreturn), so #define noreturn
7649         to empty on that platform.  Reported by Bruno Haible in
7650         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7651         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7652         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7653
7654 2012-02-28  Bruno Haible  <bruno@clisp.org>
7655
7656         doc: Mention new glibc headers and functions.
7657         * doc/glibc-headers/uchar.texi: New file.
7658         * doc/glibc-functions/aligned_alloc.texi: New file.
7659         * doc/glibc-functions/c16rtomb.texi: New file.
7660         * doc/glibc-functions/c32rtomb.texi: New file.
7661         * doc/glibc-functions/clock_adjtime.texi: New file.
7662         * doc/glibc-functions/fanotify_init.texi: New file.
7663         * doc/glibc-functions/fanotify_mark.texi: New file.
7664         * doc/glibc-functions/inet6_opt_append.texi: New file.
7665         * doc/glibc-functions/inet6_opt_find.texi: New file.
7666         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7667         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7668         * doc/glibc-functions/inet6_opt_init.texi: New file.
7669         * doc/glibc-functions/inet6_opt_next.texi: New file.
7670         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7671         * doc/glibc-functions/inet6_rth_add.texi: New file.
7672         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7673         * doc/glibc-functions/inet6_rth_init.texi: New file.
7674         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7675         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7676         * doc/glibc-functions/inet6_rth_space.texi: New file.
7677         * doc/glibc-functions/login.texi: New file.
7678         * doc/glibc-functions/mbrtoc16.texi: New file.
7679         * doc/glibc-functions/mbrtoc32.texi: New file.
7680         * doc/glibc-functions/name_to_handle_at.texi: New file.
7681         * doc/glibc-functions/ntp_gettimex.texi: New file.
7682         * doc/glibc-functions/open_by_handle_at.texi: New file.
7683         * doc/glibc-functions/prlimit.texi: New file.
7684         * doc/glibc-functions/process_vm_readv.texi: New file.
7685         * doc/glibc-functions/process_vm_writev.texi: New file.
7686         * doc/glibc-functions/recvmmsg.texi: New file.
7687         * doc/glibc-functions/scandirat.texi: New file.
7688         * doc/glibc-functions/sendmmsg.texi: New file.
7689         * doc/glibc-functions/setns.texi: New file.
7690         * doc/glibc-functions/timespec_get.texi: New file.
7691         * doc/gnulib.texi: Include them.
7692         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7693         sections.
7694         Reported by Eric Blake.
7695
7696 2012-02-28  Bruno Haible  <bruno@clisp.org>
7697
7698         Avoid compilation errors with MSVC option -fp:strict.
7699         * lib/floor.c: Use MSVC specific pragma fenv_access.
7700         * lib/ceil.c: Likewise.
7701         * lib/trunc.c: Likewise.
7702         * lib/round.c: Likewise.
7703         * lib/rint.c: Likewise.
7704         * lib/fma.c: Likewise.
7705         * lib/integer_length.c: Likewise.
7706         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7707         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7708         * tests/test-floor2.c: Likewise.
7709         * tests/test-floorf2.c: Likewise.
7710         * tests/test-ceil2.c: Likewise.
7711         * tests/test-ceilf2.c: Likewise.
7712         * tests/test-trunc2.c: Likewise.
7713         * tests/test-truncf2.c: Likewise.
7714         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7715
7716 2012-02-27  Bruno Haible  <bruno@clisp.org>
7717
7718         Tests for module 'sqrtl-ieee'.
7719         * modules/sqrtl-ieee-tests: New file.
7720         * tests/test-sqrtl-ieee.c: New file.
7721
7722         New module 'sqrtl-ieee'.
7723         * modules/sqrtl-ieee: New file.
7724
7725         Tests for module 'sqrt-ieee'.
7726         * modules/sqrt-ieee-tests: New file.
7727         * tests/test-sqrt-ieee.c: New file.
7728
7729         New module 'sqrt-ieee'.
7730         * modules/sqrt-ieee: New file.
7731
7732         Tests for module 'sqrtf-ieee'.
7733         * modules/sqrtf-ieee-tests: New file.
7734         * tests/test-sqrtf-ieee.c: New file.
7735         * tests/test-sqrt-ieee.h: New file.
7736
7737         New module 'sqrtf-ieee'.
7738         * modules/sqrtf-ieee: New file.
7739
7740 2012-02-27  Bruno Haible  <bruno@clisp.org>
7741
7742         remainderl-ieee: Work around test failure on OSF/1.
7743         * m4/remainderl-ieee.m4: New file.
7744         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7745         present, test whether remainderl works with a zero second argument.
7746         Replace it if not.
7747         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7749         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7750         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7751         (Depends-on): Update conditions.
7752         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7753         (Depends-on): Add remainder-ieee.
7754         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7755         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7756         module.
7757
7758         remainderf-ieee: Work around test failure on OSF/1.
7759         * m4/remainderf-ieee.m4: New file.
7760         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7761         present, test whether remainderf works with a zero second argument.
7762         Replace it if not.
7763         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7765         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7766         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7767         (Depends-on): Update conditions.
7768         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7769         (Depends-on): Add remainder-ieee.
7770         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7771         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7772         module.
7773
7774         remainder-ieee: Work around test failure on OSF/1.
7775         * m4/remainder-ieee.m4: New file.
7776         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7777         present, test whether remainder works with a zero second argument.
7778         Replace it if not.
7779         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7781         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7782         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7783         (Depends-on): Update dependencies.
7784         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7785         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7786         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7787
7788         Tests for module 'remainderl-ieee'.
7789         * modules/remainderl-ieee-tests: New file.
7790         * tests/test-remainderl-ieee.c: New file.
7791
7792         New module 'remainderl-ieee'.
7793         * modules/remainderl-ieee: New file.
7794
7795         Tests for module 'remainder-ieee'.
7796         * modules/remainder-ieee-tests: New file.
7797         * tests/test-remainder-ieee.c: New file.
7798
7799         New module 'remainder-ieee'.
7800         * modules/remainder-ieee: New file.
7801
7802         Tests for module 'remainderf-ieee'.
7803         * modules/remainderf-ieee-tests: New file.
7804         * tests/test-remainderf-ieee.c: New file.
7805         * tests/test-remainder-ieee.h: New file.
7806
7807         New module 'remainderf-ieee'.
7808         * modules/remainderf-ieee: New file.
7809
7810 2012-02-27  Bruno Haible  <bruno@clisp.org>
7811
7812         modff, modfl: Fix configure syntax error.
7813         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7814         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7815
7816 2012-02-27  Bruno Haible  <bruno@clisp.org>
7817
7818         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7819         * m4/fmodl-ieee.m4: New file.
7820         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7821         whether fmodl works with zero arguments. Replace it if not.
7822         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7823         (Depends-on): Add fmod-ieee.
7824         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7825         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7826
7827         fmodf-ieee: Work around test failure on OSF/1.
7828         * m4/fmodf-ieee.m4: New file.
7829         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7830         whether fmodf works with zero arguments. Replace it if not.
7831         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7833         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7834         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7835         (Depends-on): Update dependencies.
7836         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7837         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7838         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7839
7840         fmodf-ieee: Work around test failure on MSVC 9.
7841         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7842         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7843
7844         fmod-ieee: Work around test failures on OSF/1, mingw.
7845         * m4/fmod-ieee.m4: New file.
7846         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7847         whether fmod works with zero arguments. Replace it if not.
7848         * lib/math.in.h (fmod): New declaration.
7849         * lib/fmod.c: New file.
7850         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7852         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7853         * modules/fmod (Files): Add lib/fmod.c.
7854         (Depends-on): Add math, isinf, trunc, fma.
7855         (configure.ac): Arrange to compile lib/fmod.c if needed.
7856         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7857         m4/signbit.m4.
7858         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7859         * tests/test-math-c++.cc: Check the declaration of fmod.
7860         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7861
7862         fmodl-ieee: Fix test failures.
7863         * lib/fmodl.c (fmodl): Treat Inf specially.
7864         * modules/fmodl (Depends-on): Add isinf.
7865
7866         Tests for module 'fmodl-ieee'.
7867         * modules/fmodl-ieee-tests: New file.
7868         * tests/test-fmodl-ieee.c: New file.
7869
7870         New module 'fmodl-ieee'.
7871         * modules/fmodl-ieee: New file.
7872
7873         Tests for module 'fmod-ieee'.
7874         * modules/fmod-ieee-tests: New file.
7875         * tests/test-fmod-ieee.c: New file.
7876
7877         New module 'fmod-ieee'.
7878         * modules/fmod-ieee: New file.
7879
7880         Tests for module 'fmodf-ieee'.
7881         * modules/fmodf-ieee-tests: New file.
7882         * tests/test-fmodf-ieee.c: New file.
7883         * tests/test-fmod-ieee.h: New file.
7884
7885         New module 'fmodf-ieee'.
7886         * modules/fmodf-ieee: New file.
7887
7888 2012-02-27  Bruno Haible  <bruno@clisp.org>
7889
7890         Tests for module 'rintl-ieee'.
7891         * modules/rintl-ieee-tests: New file.
7892         * tests/test-rintl-ieee.c: New file.
7893
7894         New module 'rintl-ieee'.
7895         * modules/rintl-ieee: New file.
7896
7897         Tests for module 'rint-ieee'.
7898         * modules/rint-ieee-tests: New file.
7899         * tests/test-rint-ieee.c: New file.
7900
7901         New module 'rint-ieee'.
7902         * modules/rint-ieee: New file.
7903
7904         Tests for module 'rintf-ieee'.
7905         * modules/rintf-ieee-tests: New file.
7906         * tests/test-rintf-ieee.c: New file.
7907         * tests/test-rint-ieee.h: New file.
7908
7909         New module 'rintf-ieee'.
7910         * modules/rintf-ieee: New file.
7911
7912 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7913
7914         regex: re_search etc. should return -2 when memory exhausted
7915         This bug was uncovered when testing 'grep'.  Without the fix,
7916         re_search and friends return -1 when memory is exhausted, but -1
7917         means no match, and this causes grep to falsely report no-match
7918         instead of memory-exhaustion.  See
7919         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7920         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7921         trouble; this can occur if re_search_internal ran out of memory.
7922
7923 2012-02-26  Bruno Haible  <bruno@clisp.org>
7924
7925         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7926         * m4/modfl-ieee.m4: New file.
7927         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7928         whether modfl works with Inf. Replace it if not.
7929         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7931         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7932         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7933         (Depends-on): Update dependencies.
7934         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7935         m4/signbit.m4.
7936         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7937         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7938
7939         modfl-ieee: Fix dependencies.
7940         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7941
7942         modfl-ieee: Fix test failures.
7943         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7944         * modules/modfl (Depends-on): Add isfinite, isinf.
7945
7946         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7947         * m4/modff-ieee.m4: New file.
7948         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7949         whether modff works with NaN and Inf. Replace it if not.
7950         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7952         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7953         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7954         (Depends-on): Update dependencies.
7955         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7956         m4/signbit.m4.
7957         (Depends-on): Add modf-ieee.
7958         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7959         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7960
7961         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7962         * m4/modf-ieee.m4: New file.
7963         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7964         whether modf works with NaN and Inf. Replace it if not.
7965         * lib/math.in.h (modf): New declaration.
7966         * lib/modf.c: New file.
7967         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7969         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7970         * modules/modf (Files): Add lib/modf.c.
7971         (Depends-on): Add math, isfinite, trunc, isinf.
7972         (configure.ac): Addrange to compile lib/modf.c if needed.
7973         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7974         m4/signbit.m4.
7975         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7976         * tests/test-math-c++.cc: Check the declaration of modf.
7977         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7978
7979         Tests for module 'modfl-ieee'.
7980         * modules/modfl-ieee-tests: New file.
7981         * tests/test-modfl-ieee.c: New file.
7982
7983         New module 'modfl-ieee'.
7984         * modules/modfl-ieee: New file.
7985
7986         Tests for module 'modf-ieee'.
7987         * modules/modf-ieee-tests: New file.
7988         * tests/test-modf-ieee.c: New file.
7989
7990         New module 'modf-ieee'.
7991         * modules/modf-ieee: New file.
7992
7993         Tests for module 'modff-ieee'.
7994         * modules/modff-ieee-tests: New file.
7995         * tests/test-modff-ieee.c: New file.
7996         * tests/test-modf-ieee.h: New file.
7997
7998         New module 'modff-ieee'.
7999         * modules/modff-ieee: New file.
8000
8001 2012-02-26  Bruno Haible  <bruno@clisp.org>
8002
8003         Tests for module 'fabsl-ieee'.
8004         * modules/fabsl-ieee-tests: New file.
8005         * tests/test-fabsl-ieee.c: New file.
8006
8007         New module 'fabsl-ieee'.
8008         * modules/fabsl-ieee: New file.
8009
8010         Tests for module 'fabs-ieee'.
8011         * modules/fabs-ieee-tests: New file.
8012         * tests/test-fabs-ieee.c: New file.
8013
8014         New module 'fabs-ieee'.
8015         * modules/fabs-ieee: New file.
8016
8017         Tests for module 'fabsf-ieee'.
8018         * modules/fabsf-ieee-tests: New file.
8019         * tests/test-fabsf-ieee.c: New file.
8020         * tests/test-fabs-ieee.h: New file.
8021
8022         New module 'fabsf-ieee'.
8023         * modules/fabsf-ieee: New file.
8024
8025 2012-02-26  Bruno Haible  <bruno@clisp.org>
8026
8027         Tests for module 'fmal-ieee'.
8028         * modules/fmal-ieee-tests: New file.
8029         * tests/test-fmal-ieee.c: New file.
8030
8031         New module 'fmal-ieee'.
8032         * modules/fmal-ieee: New file.
8033
8034         Tests for module 'fma-ieee'.
8035         * modules/fma-ieee-tests: New file.
8036         * tests/test-fma-ieee.c: New file.
8037
8038         New module 'fma-ieee'.
8039         * modules/fma-ieee: New file.
8040
8041         Tests for module 'fmaf-ieee'.
8042         * modules/fmaf-ieee-tests: New file.
8043         * tests/test-fmaf-ieee.c: New file.
8044         * tests/test-fma-ieee.h: New file.
8045
8046         New module 'fmaf-ieee'.
8047         * modules/fmaf-ieee: New file.
8048
8049 2012-02-26  Bruno Haible  <bruno@clisp.org>
8050
8051         Tests for module 'ldexpl-ieee'.
8052         * modules/ldexpl-ieee-tests: New file.
8053         * tests/test-ldexpl-ieee.c: New file.
8054
8055         New module 'ldexpl-ieee'.
8056         * modules/ldexpl-ieee: New file.
8057
8058         Tests for module 'ldexp-ieee'.
8059         * modules/ldexp-ieee-tests: New file.
8060         * tests/test-ldexp-ieee.c: New file.
8061
8062         New module 'ldexp-ieee'.
8063         * modules/ldexp-ieee: New file.
8064
8065         Tests for module 'ldexpf-ieee'.
8066         * modules/ldexpf-ieee-tests: New file.
8067         * tests/test-ldexpf-ieee.c: New file.
8068         * tests/test-ldexp-ieee.h: New file.
8069
8070         New module 'ldexpf-ieee'.
8071         * modules/ldexpf-ieee: New file.
8072
8073 2012-02-26  Bruno Haible  <bruno@clisp.org>
8074
8075         Refactor frexp*-ieee tests.
8076         * tests/test-frexp-ieee.h: New file.
8077         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8078         (main): Just call test_function.
8079         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8080         (main): Just call test_function.
8081         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8082         (main): Just call test_function.
8083         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8084         * modules/frexp-ieee-tests (Files): Likewise.
8085         * modules/frexpl-ieee-tests (Files): Likewise.
8086
8087         Tests for module 'frexpl-ieee'.
8088         * modules/frexpl-ieee-tests: New file.
8089         * tests/test-frexpl-ieee.c: New file.
8090
8091         New module 'frexpl-ieee'.
8092         * modules/frexpl-ieee: New file.
8093
8094         Tests for module 'frexp-ieee'.
8095         * modules/frexp-ieee-tests: New file.
8096         * tests/test-frexp-ieee.c: New file.
8097
8098         New module 'frexp-ieee'.
8099         * modules/frexp-ieee: New file.
8100
8101         Tests for module 'frexpf-ieee'.
8102         * modules/frexpf-ieee-tests: New file.
8103         * tests/test-frexpf-ieee.c: New file.
8104
8105         New module 'frexpf-ieee'.
8106         * modules/frexpf-ieee: New file.
8107
8108 2012-02-26  Bruno Haible  <bruno@clisp.org>
8109
8110         roundl-ieee tests: More tests.
8111         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8112         (main): Add tests for [MX] shaded specification in POSIX.
8113         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8114         (Depends-on): Add isnanl-nolibm.
8115
8116         round-ieee tests: More tests.
8117         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8118         (main): Add tests for [MX] shaded specification in POSIX.
8119         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8120         (Depends-on): Add isnand-nolibm.
8121
8122         roundf-ieee tests: More tests.
8123         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8124         (main): Add tests for [MX] shaded specification in POSIX.
8125         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8126         (Depends-on): Add isnanf-nolibm.
8127
8128         truncl-ieee tests: More tests.
8129         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8130         (main): Add tests for [MX] shaded specification in POSIX.
8131         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8132         (Depends-on): Add isnanl-nolibm.
8133
8134         trunc-ieee tests: More tests.
8135         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8136         (main): Add tests for [MX] shaded specification in POSIX.
8137         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8138         (Depends-on): Add isnand-nolibm.
8139
8140         truncf-ieee tests: More tests.
8141         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8142         (main): Add tests for [MX] shaded specification in POSIX.
8143         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8144         (Depends-on): Add isnanf-nolibm.
8145
8146         ceill-ieee tests: More tests.
8147         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8148         (main): Add tests for [MX] shaded specification in POSIX.
8149         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8150         (Depends-on): Add isnanl-nolibm.
8151
8152         ceil-ieee tests: More tests.
8153         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8154         (main): Add tests for [MX] shaded specification in POSIX.
8155         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8156         (Depends-on): Add isnand-nolibm.
8157
8158         ceilf-ieee tests: More tests.
8159         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8160         (main): Add tests for [MX] shaded specification in POSIX.
8161         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8162         (Depends-on): Add isnanf-nolibm.
8163
8164         floorl-ieee tests: More tests.
8165         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8166         (main): Add tests for [MX] shaded specification in POSIX.
8167         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8168         (Depends-on): Add isnanl-nolibm.
8169
8170         floor-ieee tests: More tests.
8171         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8172         (main): Add tests for [MX] shaded specification in POSIX.
8173         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8174         (Depends-on): Add isnand-nolibm.
8175
8176         floorf-ieee tests: More tests.
8177         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8178         (main): Add tests for [MX] shaded specification in POSIX.
8179         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8180         (Depends-on): Add isnanf-nolibm.
8181
8182 2012-02-26  Bruno Haible  <bruno@clisp.org>
8183
8184         fpieee: More comments.
8185         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8186
8187 2012-02-25  Bruno Haible  <bruno@clisp.org>
8188
8189         Tests for module 'log10l'.
8190         * modules/log10l-tests: New file.
8191         * tests/test-log10l.c: New file.
8192         * tests/test-math-c++.cc: Check the declaration of log10l.
8193
8194         New module 'log10l'.
8195         * lib/math.in.h (log10l): New declaration.
8196         * lib/log10l.c: New file.
8197         * m4/log10l.m4: New file.
8198         * modules/log10l: New file.
8199         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8201         HAVE_DECL_LOG10L.
8202         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8203         HAVE_DECL_LOG10L.
8204         * doc/posix-functions/log10l.texi: Mention the new module.
8205
8206 2012-02-25  Bruno Haible  <bruno@clisp.org>
8207
8208         fmodl, remainder*: Avoid wrong results due to rounding errors.
8209         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8210         expected bounds.
8211         * lib/remainderf.c (remainderf): Likewise.
8212         * lib/remainder.c (remainder): Likewise.
8213         * lib/remainderl.c (remainderl): Likewise.
8214
8215 2012-02-25  Bruno Haible  <bruno@clisp.org>
8216
8217         Tests for module 'remainderl'.
8218         * modules/remainderl-tests: New file.
8219         * tests/test-remainderl.c: New file.
8220         * tests/test-math-c++.cc: Check the declaration of remainderl.
8221
8222         New module 'remainderl'.
8223         * lib/math.in.h (remainderl): New declaration.
8224         * lib/remainderl.c: New file.
8225         * m4/remainderl.m4: New file.
8226         * modules/remainderl: New file.
8227         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8229         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8230         HAVE_REMAINDERL.
8231         * doc/posix-functions/remainderl.texi: Mention the new module.
8232
8233 2012-02-25  Bruno Haible  <bruno@clisp.org>
8234
8235         Tests for module 'remainderf'.
8236         * modules/remainderf-tests: New file.
8237         * tests/test-remainderf.c: New file.
8238         * tests/test-math-c++.cc: Check the declaration of remainderf.
8239
8240         New module 'remainderf'.
8241         * lib/math.in.h (remainderf): New declaration.
8242         * lib/remainderf.c: New file.
8243         * m4/remainderf.m4: New file.
8244         * modules/remainderf: New file.
8245         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8247         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8248         HAVE_REMAINDERF.
8249         * doc/posix-functions/remainderf.texi: Mention the new module.
8250
8251 2012-02-25  Bruno Haible  <bruno@clisp.org>
8252
8253         remainder: Support for MSVC.
8254         * lib/math.in.h (remainder): New declaration.
8255         * lib/remainder.c: New file.
8256         * m4/remainder.m4: New file.
8257         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8258         (Depends-on): Add math, round, fma.
8259         (configure.ac): Use results of gl_FUNC_REMAINDER.
8260         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8262         HAVE_DECL_REMAINDER.
8263         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8264         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8265         * tests/test-math-c++.cc: Check the declaration of remainder.
8266         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8267         problems are fixed.
8268
8269 2012-02-25  Bruno Haible  <bruno@clisp.org>
8270
8271         Tests for module 'fmodl'.
8272         * modules/fmodl-tests: New file.
8273         * tests/test-fmodl.c: New file.
8274         * tests/test-math-c++.cc: Check the declaration of fmodl.
8275
8276         New module 'fmodl'.
8277         * lib/math.in.h (fmodl): New declaration.
8278         * lib/fmodl.c: New file.
8279         * m4/fmodl.m4: New file.
8280         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8282         REPLACE_FMODL.
8283         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8284         REPLACE_FMODL.
8285         * modules/fmodl: New file.
8286         * doc/posix-functions/fmodl.texi: Mention the new module.
8287
8288 2012-02-25  Bruno Haible  <bruno@clisp.org>
8289
8290         Tests for module 'modfl'.
8291         * modules/modfl-tests: New file.
8292         * tests/test-modfl.c: New file.
8293         * tests/test-math-c++.cc: Check the declaration of modfl.
8294
8295         New module 'modfl'.
8296         * lib/math.in.h (modfl): New declaration.
8297         * lib/modfl.c: New file.
8298         * m4/modfl.m4: New file.
8299         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8301         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8302         * modules/modfl: New file.
8303         * doc/posix-functions/modfl.texi: Mention the new module.
8304
8305 2012-02-25  Bruno Haible  <bruno@clisp.org>
8306
8307         Tests for module 'fabsl'.
8308         * modules/fabsl-tests: New file.
8309         * tests/test-fabsl.c: New file.
8310         * tests/test-math-c++.cc: Check the declaration of fabsl.
8311
8312         New module 'fabsl'.
8313         * lib/math.in.h (fabsl): New declaration.
8314         * lib/fabsl.c: New file.
8315         * m4/fabsl.m4: New file.
8316         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8318         REPLACE_FABSL.
8319         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8320         REPLACE_FABSL.
8321         * modules/fabsl: New file.
8322         * doc/posix-functions/fabsl.texi: Mention the new module.
8323
8324 2012-02-25  Bruno Haible  <bruno@clisp.org>
8325
8326         fabs tests: More tests.
8327         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8328         (zero): New variable.
8329         (main): Add tests for signed zero.
8330         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8331
8332         fabsf tests: More tests.
8333         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8334         (zero): New variable.
8335         (main): Add tests for signed zero.
8336         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8337
8338 2012-02-24  Bruno Haible  <bruno@clisp.org>
8339
8340         atanl: Provide function definition on MSVC.
8341         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8342         function pointer.
8343         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8344
8345 2012-02-24  Bruno Haible  <bruno@clisp.org>
8346
8347         acosl: Provide function definition on MSVC.
8348         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8349         function pointer.
8350         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8351
8352 2012-02-24  Bruno Haible  <bruno@clisp.org>
8353
8354         asinl: Provide function definition on MSVC.
8355         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8356         function pointer.
8357         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8358
8359 2012-02-24  Bruno Haible  <bruno@clisp.org>
8360
8361         tanl: Provide function definition on MSVC.
8362         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8363         function pointer.
8364         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8365
8366 2012-02-24  Bruno Haible  <bruno@clisp.org>
8367
8368         cosl: Provide function definition on MSVC.
8369         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8370         function pointer.
8371         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8372
8373 2012-02-24  Bruno Haible  <bruno@clisp.org>
8374
8375         sinl: Provide function definition on MSVC.
8376         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8377         function pointer.
8378         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8379
8380 2012-02-24  Bruno Haible  <bruno@clisp.org>
8381
8382         logl: Provide function definition on MSVC.
8383         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8384         function pointer.
8385         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8386
8387 2012-02-24  Bruno Haible  <bruno@clisp.org>
8388
8389         expl: Provide function definition on MSVC.
8390         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8391         function pointer.
8392         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8393
8394 2012-02-24  Bruno Haible  <bruno@clisp.org>
8395
8396         sqrtl: Provide function definition on MSVC.
8397         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8398         a function pointer.
8399         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8400
8401 2012-02-24  Bruno Haible  <bruno@clisp.org>
8402
8403         ceill: Provide function definition on MSVC.
8404         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8405         used as a function pointer.
8406         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8407
8408 2012-02-24  Bruno Haible  <bruno@clisp.org>
8409
8410         floorl: Provide function definition on MSVC.
8411         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8412         used as a function pointer.
8413         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8414
8415 2012-02-24  Bruno Haible  <bruno@clisp.org>
8416
8417         ceilf: Provide function definition on MSVC.
8418         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8419         used as a function pointer.
8420         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8421
8422 2012-02-24  Bruno Haible  <bruno@clisp.org>
8423
8424         floorf: Provide function definition on MSVC.
8425         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8426         used as a function pointer.
8427         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8428
8429 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8430
8431         stdnoreturn: new module
8432         This implements a replacement for C11's <stdnoreturn.h>.
8433         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8434         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8435         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8436         * tests/test-stdnoreturn.c: New files.
8437
8438 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8439
8440         regex: fix false multibyte matches in some regular expressions
8441         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8442         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8443         * lib/regex_internal.c (re_string_skip_chars):
8444         Fix miscomputation of remain_len that may cause incomplete
8445         multi-byte character and false match.
8446
8447 2012-02-24  Jim Meyering  <meyering@redhat.com>
8448
8449         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8450         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8451         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8452         Remove now-unnecessary str''cmp obfuscation.
8453         Suggested by Akim Demaille.
8454
8455 2012-02-24  Bruno Haible  <bruno@clisp.org>
8456
8457         streq: Rename macro.
8458         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8459         * NEWS: Mention the change.
8460         * lib/mbrtowc.c (mbrtowc): Update.
8461         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8462         * lib/wcwidth.c (wcwidth): Update.
8463         Suggested by Akim Demaille and Jim Meyering.
8464
8465 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8466
8467         regex: fix typo in definition of MIN
8468         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8469         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8470
8471 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8472             Bruno Haible  <bruno@clisp.org>
8473
8474         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8475         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8476         entries into a stack-allocated buffer directly.
8477         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8478
8479 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8480             Bruno Haible  <bruno@clisp.org>
8481
8482         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8483
8484          - There were several instances of this pattern:
8485
8486              for (;;) {
8487                n = acl (f, GETACLCNT, 0, NULL);
8488                [ allocate an array A of size N ]
8489                if (acl (f, GETACL, n, a) == n)
8490                  break;
8491              }
8492
8493            This loop might never terminate if some other process is constantly
8494            manipulating the file's ACL.  The loop should be rewritten to
8495            terminate.
8496
8497          - The acl (... GETACLNT ...) call is merely an optimization; its value
8498            is merely a hint as to how big to make the array.  A better
8499            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8500            and just guess a reasonably-big size, growing the size and trying
8501            again if it's not large enough.  This guarantees termination, and
8502            saves a system call.
8503
8504         * lib/acl-internal.h: Include <limits.h>.
8505         (MIN, SIZE_MAX): New macros.
8506         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8507         a stack-allocated buffer, and use malloc if it does not fit. Don't
8508         use GETACLCNT.
8509         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8510
8511 2012-02-19  Bruno Haible  <bruno@clisp.org>
8512
8513         acl: Fix endless loop on Solaris with vxfs.
8514         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8515         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8516         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8517         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8518         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8519         Reported by Bill Jones in
8520         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8521
8522 2012-02-19  Bruno Haible  <bruno@clisp.org>
8523
8524         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8525         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8526         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8527         that this function returns 0 in some more cases.
8528
8529 2012-02-19  Bruno Haible  <bruno@clisp.org>
8530
8531         acl: Update doc references.
8532         * doc/acl-resources.txt: Update links to Solaris documentation.
8533
8534 2012-02-19  Bruno Haible  <bruno@clisp.org>
8535
8536         Fix test failure in many locales on Solaris 11.
8537         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8538         'tr' arguments.
8539         * tests/test-pipe-filter-ii1.c (main): Likewise.
8540         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8541         expressions in the C locale.
8542         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8543         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8544
8545 2012-02-19  Bruno Haible  <bruno@clisp.org>
8546
8547         gnulib-tool: Improve usage message.
8548         * gnulib-tool (func_usage): Move doc of --help and --version to the
8549         section "Operation modes".
8550
8551 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8552
8553         README-release: make it easier to execute commands
8554         * top/README-release: break commands out on to separate lines.
8555
8556 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8557
8558         GNUmakefile: simplify detection of unconfigured trees
8559         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8560         whether the tree make is being run from is already configured or
8561         not.  Related simplifications.
8562
8563 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8564
8565         * gnulib-tool (func_usage): Document --help and --version.
8566
8567 2012-02-11  Jim Meyering  <meyering@redhat.com>
8568
8569         bootstrap: don't exit 0 upon gnulib-tool failure
8570         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8571         its exit status, not 0.
8572
8573 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8574
8575         README-release: various improvements
8576         * top/README-release: Give a command to push changes for the
8577         release.  Add "distcheck" to list of other pre-release checks.
8578         Fix instance of "make stable" which should be "make TYPE".
8579
8580 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8581
8582         maint: replace FSF snail-mail addresses with URLs
8583         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8584         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8585         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8586         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8587         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8588         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8589         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8590         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8591         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8592         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8593         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8594         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8595         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8596         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8597         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8598         * lib/glthread/thread.c, lib/glthread/thread.h:
8599         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8600         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8601         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8602         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8603         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8604         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8605         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8606         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8607         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8608         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8609         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8610         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8611         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8612         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8613         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8614         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8615         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8616         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8617         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8618         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8619         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8620         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8621         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8622         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8623         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8624         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8625         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8626         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8627         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8628         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8629         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8630         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8631         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8632         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8633         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8634         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8635         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8636         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8637         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8638         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8639         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8640         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8641         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8642         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8643         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8644         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8645         * tests/test-poll.c, tests/test-quotearg-simple.c:
8646         * tests/test-quotearg.c, tests/test-quotearg.h:
8647         * tests/test-round-ieee.c, tests/test-round1.c:
8648         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8649         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8650         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8651         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8652         * tests/test-strerror.c, tests/test-strerror_r.c:
8653         * tests/test-strsignal.c, tests/test-strverscmp.c:
8654         * tests/test-xmemdup0.c:
8655         Replace FSF snail mail addresses with URLs, as per GNU coding
8656         standards.  See glibc bug
8657         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8658
8659 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8660
8661         README-release: capitalize a word and split a line
8662         * top/README-release: Fix punctuation and spacing.
8663
8664 2012-02-08  Akim Demaille  <demaille@gostai.com>
8665
8666         fatal-signal: use C prototypes (with explicit void).
8667         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8668         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8669
8670 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8671
8672         regex: spelling fix
8673         * lib/regexec.c: spelling fix
8674
8675         regex: rely on stdint.h for SIZE_MAX
8676         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8677
8678 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8679
8680         regex: merge glibc changes
8681
8682         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8683         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8684         (init_word_char): Work even if bitset words are not exactly 32 or
8685         64 bits wide.  Don't assume there are no padding bits.
8686         * lib/regex.c [_LIBC]: Do not include <config.h>.
8687         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8688         and -Wtype-limits.
8689         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8690         needless disagreement with glibc.  All uses changed.  Define it to
8691         1 only if _GNU_SOURCE, to match glibc.
8692         (_REG_RM_NAME): Remove; no longer needed, since the names in
8693         question are now all protected by __USE_GNU.
8694         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8695         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8696         * lib/regex_internal.h (MIN): New macro.
8697
8698         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8699         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8700
8701         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8702         * lib/regex_internal.c (re_string_fetch_byte_case):
8703         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8704         is miscompiled, and it turns out it is because of an incorrect
8705         attribute on re_string_fetch_byte_case.  Unlike
8706         re_string_peek_byte_case, this one is really not pure, it modifies
8707         memory (increments pstr->cur_idx), and with the pure attribute GCC
8708         assumed it doesn't and it cached the presumed value of
8709         regexp->cur_idx in a variable across the
8710          for (;; ++i)
8711            {
8712              if (i >= BRACKET_NAME_BUF_SIZE)
8713                return REG_EBRACK;
8714              if (token->type == OP_OPEN_CHAR_CLASS)
8715                ch = re_string_fetch_byte_case (regexp);
8716              else
8717                ch = re_string_fetch_byte (regexp);
8718              if (re_string_eoi(regexp))
8719                return REG_EBRACK;
8720              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8721                break;
8722              elem->opr.name[i] = ch;
8723            }
8724
8725         2011-11-29 Andreas Schwab <schwab@redhat.com>
8726         * lib/regcomp.c (build_equiv_class):
8727         Fix access after end of search string in regex matcher.
8728
8729         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8730         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8731
8732         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8733         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8734
8735         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8736         * lib/regcomp.c (parse_branch, parse_sub_exp):
8737         More regex memory leak fixes and tests.
8738         (parse_sub_exp, parse_bracket_exp):
8739         Fix memory leak for some invalid regular expressions.
8740
8741         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8742         * lib/regex_internal.c, lib/regexec.c:
8743         Fix unnecessary overallocation due to incomplete character.  When
8744         incomplete characters are found at the end of a string the code
8745         ran amok and allocated lots of memory.  Stricter limits are now in
8746         place.
8747
8748         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8749         * lib/regex.h: Update documentation.
8750
8751         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8752         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8753
8754         2010-05-05 Andreas Schwab <schwab@redhat.com>
8755         * lib/regexec.c (find_collation_sequence_value):
8756         Fix lookup of collation sequence value during regexp matching.
8757
8758         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8759         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8760
8761         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8762         * lib/regex.h: Cleanup namespace.
8763
8764         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8765         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8766
8767         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8768         * lib/regex_internal.h: Prevent some declarations and definitions
8769         to be seen when used in tests.
8770
8771         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8772         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8773         __libc_lock_* macros if not _LIBC.
8774         (struct re_dfa_t): Add lock.
8775
8776 2012-02-07  Eric Blake  <eblake@redhat.com>
8777
8778         maint.mk: also prohibit lower-case @var@
8779         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8780         lower case, like @top_srcdir@.
8781
8782 2012-02-04  Eric Blake  <eblake@redhat.com>
8783
8784         canonicalize: avoid uninitialized memory use
8785         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8786         random '/' left in dest.
8787         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8788
8789 2012-02-04  Bruno Haible  <bruno@clisp.org>
8790
8791         isatty: Fix test failure of ptsname_r on native Windows.
8792         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8793         and don't set errno.
8794         (isatty): Test first whether fd is valid. Set errno when returning 0.
8795
8796 2012-02-04  Bruno Haible  <bruno@clisp.org>
8797
8798         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8799         * tests/test-spawn-pipe-main.c: Include progname.h.
8800         (main): Invoke set_program_name.
8801         * modules/spawn-pipe-tests (Depends-on): Add progname.
8802
8803         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8804         * tests/test-nonblocking-socket-main.c: Include progname.h.
8805         (main): Invoke set_program_name.
8806         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8807
8808         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8809         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8810         (main): Invoke set_program_name.
8811         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8812
8813 2012-02-04  Eric Blake  <eblake@redhat.com>
8814
8815         canonicalize-lgpl: fix // handling
8816         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8817
8818         canonicalize: fix // handling
8819         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8820         /// to //, since only // is special.
8821
8822 2012-02-04  Bruno Haible  <bruno@clisp.org>
8823
8824         ioctl: Fix test failure on native Windows.
8825         * lib/ioctl.c: Include msvc-nothrow.h.
8826         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8827
8828 2012-02-04  Bruno Haible  <bruno@clisp.org>
8829
8830         fsync: Avoid test failure on native Windows.
8831         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8832         read-only.
8833
8834 2012-02-04  Bruno Haible  <bruno@clisp.org>
8835
8836         sys_select: Avoid syntax error on OpenBSD 5.0.
8837         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8838         currently being included, just include the system's <sys/select.h>.
8839
8840 2012-02-04  Bruno Haible  <bruno@clisp.org>
8841
8842         sys_select: Avoid syntax error on OpenBSD 5.0.
8843         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8844         <sys/select.h>, not before.
8845         Reported by Jiri B <jirib@devio.us>.
8846
8847 2012-02-04  Bruno Haible  <bruno@clisp.org>
8848
8849         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8850         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8851         global variables.
8852         * tests/test-get-rusage-data.c (main): Likewise.
8853         Reported by Jim Meyering.
8854
8855 2012-02-04  Bruno Haible  <bruno@clisp.org>
8856
8857         stdioext: Fix last commit.
8858         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8859
8860 2012-02-03  Bruno Haible  <bruno@clisp.org>
8861
8862         stdioext: Add tentative support for Plan9.
8863         * lib/stdio-impl.h: Include <errno.h>.
8864         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8865         * lib/freadable.c (freadable): Likewise.
8866         * lib/fwritable.c (fwritable): Likewise.
8867         * lib/fbufmode.c (fbufmode): Likewise.
8868         * lib/freading.c (freading): Likewise.
8869         * lib/fwriting.c (fwriting): Likewise.
8870         * lib/freadptr.c (freadptr): Likewise.
8871         * lib/freadseek.c (freadptrinc): Likewise.
8872         * lib/freadahead.c (freadahead): Likewise.
8873         * lib/fpurge.c (fpurge): Likewise.
8874         * lib/fseeko.c (rpl_fseeko): Likewise.
8875         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8876         Reported by Jens Staal <staal1978@gmail.com>.
8877
8878 2012-02-02  Jim Meyering  <meyering@redhat.com>
8879
8880         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8881         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8882         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8883         not even to try to add the attribute.  Instead, add a pragma to suppress
8884         the suggestion/warning.
8885
8886 2012-01-31  Karl Berry  <karl@gnu.org>
8887
8888         setstate doc: typo.
8889         * doc/posix-functions/setstate.texi (setstate): { not (.
8890
8891 2012-01-31  Bruno Haible  <bruno@clisp.org>
8892
8893         popen: Make more robust on Windows.
8894         * lib/popen.c: On native Windows, use the _popen based code even if
8895         HAVE_POPEN is set.
8896         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8897         environment variable on native Windows.
8898
8899 2012-01-30  Bruno Haible  <bruno@clisp.org>
8900
8901         pclose: Fix typo.
8902         * lib/stdio.in.h (pclose): Fix typo in warning message.
8903
8904 2012-01-30  Bruno Haible  <bruno@clisp.org>
8905
8906         doc about getlogin_r, setstate.
8907         * doc/posix-functions/getlogin_r.texi: List the incompatible
8908         declaration problem under "not fixed by gnulib".
8909         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8910         problem on Solaris 11 and other platforms.
8911
8912 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8913             Bruno Haible  <bruno@clisp.org>
8914
8915         poll tests: Make test more robust.
8916         * tests/test-poll.c: Include macros.h.
8917         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8918         return value of various I/O operations.
8919         * modules/poll-tests (Files): Add tests/macros.h.
8920
8921 2012-01-30  Bruno Haible  <bruno@clisp.org>
8922
8923         sys_stat: Fix support for mingw64 and MSVC.
8924         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8925         header files already do it.
8926         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8927         stat itself.
8928         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8929
8930 2012-01-30  Bruno Haible  <bruno@clisp.org>
8931
8932         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8934         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8935
8936 2012-01-29  Bruno Haible  <bruno@clisp.org>
8937
8938         quotearg: Fix test failure on MacOS X 10.5.
8939         * tests/test-quotearg-simple.c: Include localcharset.h.
8940         (main): If the locale encoding is not ASCII, bypass the tests of
8941         locale_quoting_style and clocale_quoting_style.
8942         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8943
8944 2012-01-29  Jim Meyering  <meyering@redhat.com>
8945
8946         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8947         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8948         detect uses of canonicalize_file_name.
8949
8950 2012-01-28  Bruno Haible  <bruno@clisp.org>
8951
8952         test-framework-sh: Fix test failure with AIX 7.1 diff.
8953         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8954         in column 1, like 'diff -c' does.
8955         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8956         whether 'diff -u' is used. Instead, test whether the output contains
8957         some '@' character.
8958
8959 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8960
8961         strtoimax: eliminate need for stdint.h, inttypes.h checks
8962         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8963         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8964         the prerequisites for a recently-introduced strtoimax test.
8965         I guess this might cause strtoimax to be replaced when not
8966         strictly necessary on older hosts, but this shouldn't introduce
8967         any bugs and it should make Emacs 'configure' faster on typical
8968         modern hosts.  Problem discovered when importing the latest gnulib
8969         to an Emacs test version.
8970         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8971
8972 2012-01-28  Bruno Haible  <bruno@clisp.org>
8973
8974         sys_time: Override 'struct timeval' on some native Windows platforms.
8975         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8976         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8977         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8978         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8979         needs to be overridden.
8980         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8981         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8982         * tests/test-sys_select.c: Check that the tv_sec member has the same
8983         size as a 'time_t'.
8984         * tests/test-sys_time.c: Likewise.
8985         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8986         is set, set also REPLACE_GETTIMEOFDAY.
8987         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8988         convert the resulting 'struct timeval' before returning.
8989         * lib/select.c: Include <sys/time.h>.
8990         (select, timeval): Undefine at the right place.
8991         * modules/select (Depends-on): Add sys_time.
8992         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8993         some Windows platforms.
8994         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8995
8996 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8997
8998         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8999         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9000         an integer.
9001         * lib/fcntl.c (dupfd): Likewise.
9002         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9003
9004 2012-01-28  Bruno Haible  <bruno@clisp.org>
9005
9006         fcntl: Avoid compilation error on native Windows.
9007         * modules/fcntl (Depends-on): Add 'close'.
9008
9009 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9010
9011         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9012         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9013         pointer to an integer.
9014         * lib/poll.c (IsConsoleHandle): Likewise.
9015         * lib/isatty.c (IsConsoleHandle): Likewise.
9016
9017 2012-01-28  Jim Meyering  <meyering@redhat.com>
9018
9019         doc: clarify README-release
9020         * top/README-release: Clarify: you should make a point to have
9021         the latest stable versions of build tools in your PATH, and the
9022         reference to buildreq is solely for its list of tool names, not
9023         for its minimal-functional version numbers.
9024         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9025
9026         maint.mk: use more readable (yet functionally equivalent) quoting
9027         It is common to quote a single quote in a single quoted string like
9028         this:  '...'\''...'.  Unless you know the idiom, that looks like
9029         gibberish, so prefer to double-quote the string when possible.
9030         Then you can use a more readable, lone single quote: "...'..."
9031         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9032         "don't" is more readable than the equivalent 'don'\''t'.
9033         (sc_cast_of_x_alloc_return_value): Likewise.
9034         (sc_cast_of_alloca_return_value): Likewise.
9035         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9036         rather than '\'':'\''.
9037
9038 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9039
9040         stdalign: relax _Alignof and tighten _Alignas test
9041         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9042         as it was too strict: alignof must divide offsetof, but it need
9043         not equal offsetof.  Inspired by Joseph S. Myers's comment
9044         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9045         Conversely, tighten the _Alignas test a bit, as the resulting
9046         alignment must be exactly 8.
9047
9048 2012-01-27  Bruno Haible  <bruno@clisp.org>
9049
9050         stdalign: Document the last change.
9051         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9052
9053 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9054
9055         stdalign: check that alignof and offsetof are consistent
9056         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9057         Problem reported for gnulib by Richard W.M. Jones in
9058         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9059
9060 2012-01-27  Jim Meyering  <meyering@redhat.com>
9061
9062         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9063         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9064         convert a sequence with gaps to the minimal containing range.
9065         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9066         * tests/test-update-copyright.sh: Test for this.
9067         The FSF confirmed it is ok to do this, assuming there is at
9068         least one significant change per year in the affected range:
9069         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9070
9071 2012-01-26  Bruno Haible  <bruno@clisp.org>
9072
9073         pipe2: refine doc about thread-safety
9074         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9075         multithread-safety problem.
9076         * doc/glibc-functions/accept4.texi: Likewise.
9077
9078 2012-01-26  Bruno Haible  <bruno@clisp.org>
9079
9080         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9081         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9082         In the test program, include <fcntl.h>, for O_RDONLY.
9083
9084 2012-01-26  Eric Blake  <eblake@redhat.com>
9085
9086         pipe2: document lack of thread-safety in replacement
9087         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9088         issue in replacement.
9089         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9090         Based on a report by Eric Wong.
9091
9092 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9093             Bruno Haible  <bruno@clisp.org>
9094
9095         malloca: Avoid warnings on x86_64 mingw64.
9096         * lib/malloca.c: Include <stdint.h>.
9097         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9098         * modules/malloca (Depends-on): Add stdint.
9099         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9100
9101 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9102
9103         obstack: remove __STDC__ conditionals
9104         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9105         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9106         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9107         m4/include_next.m4 as the only gnulib-maintained places that still
9108         refer to __STDC__.
9109
9110 2012-01-24  Bruno Haible  <bruno@clisp.org>
9111
9112         havelib: Modern quoting.
9113         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9114         the recent change to the GNU coding standards.
9115
9116 2012-01-24  Bruno Haible  <bruno@clisp.org>
9117
9118         stdint: Improve support for Android.
9119         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9120         Reported by Simon Josefsson <simon@josefsson.org>.
9121
9122 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9123
9124         doc: omit trailing empty lines from INSTALL etc.
9125         * doc/Makefile (INSTALL): Omit trailing empty lines.
9126         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9127         omit trailing empty lines.  This simplifies the build procedure.
9128
9129 2012-01-23  Jim Meyering  <meyering@redhat.com>
9130
9131         tests: avoid spurious warnings about gl_sockets_startup
9132         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9133         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9134         reporting a "statement with no effect".
9135         * tests/test-accept.c (main): Mark as "(void)".
9136         * tests/test-accept4.c (main): Likewise.
9137         * tests/test-bind.c (main): Likewise.
9138         * tests/test-connect.c (main): Likewise.
9139         * tests/test-getpeername.c (main): Likewise.
9140         * tests/test-getsockname.c (main): Likewise.
9141         * tests/test-getsockopt.c (main): Likewise.
9142         * tests/test-listen.c (main): Likewise.
9143         * tests/test-recv.c (main): Likewise.
9144         * tests/test-recvfrom.c (main): Likewise.
9145         * tests/test-send.c (main): Likewise.
9146         * tests/test-sendto.c (main): Likewise.
9147         * tests/test-setsockopt.c (main): Likewise.
9148         * tests/test-shutdown.c (main): Likewise.
9149
9150 2012-01-21  Bruno Haible  <bruno@clisp.org>
9151
9152         locale-fr.m4: Fix for Android.
9153         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9154         failure of the test program on Bionic libc.
9155
9156 2012-01-21  Jim Meyering  <meyering@redhat.com>
9157
9158         bootstrap: fail when bootstrap_post_import_hook fails
9159         Otherwise, it's far too easy to miss diagnostics emitted
9160         between gnulib-tool's output and that of running configure.
9161         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9162
9163 2012-01-17  Jim Meyering  <meyering@redhat.com>
9164
9165         maint: enable sc_trailing_blank
9166         * build-aux/pmccabe.css: Remove trailing blanks.
9167         * doc/acl-cygwin.txt: Likewise.
9168         * doc/gnu-oids.texi: Likewise
9169         * cfg.mk: Enable sc_trailing_blank.
9170         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9171
9172 2012-01-17  Jim Meyering  <meyering@redhat.com>
9173
9174         maint: enable sc_prohibit_openat_without_use
9175         * cfg.mk: Enable sc_prohibit_openat_without_use.
9176         Exempt lib/selinux-at.c.
9177
9178 2012-01-17  Jim Meyering  <meyering@redhat.com>
9179
9180         maint: enable sc_prohibit_cloexec_without_use
9181         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9182         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9183
9184 2012-01-17  Jim Meyering  <meyering@redhat.com>
9185
9186         maint: enable sc_prohibit_intprops_without_use
9187         * cfg.mk: Enable sc_prohibit_intprops_without_use
9188         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9189
9190 2012-01-17  Jim Meyering  <meyering@redhat.com>
9191
9192         maint: enable sc_prohibit_hash_pjw_without_use
9193         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9194         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9195         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9196         following " (".
9197
9198 2012-01-17  Jim Meyering  <meyering@redhat.com>
9199
9200         maint: enable double-word-prohibiting rule
9201         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9202         Exempt three files.
9203
9204 2012-01-17  Jim Meyering  <meyering@redhat.com>
9205
9206         maint: remove empty lines at EOF, but excluding modules/*
9207         Apply syntax rules at home as well as abroad.  Most changes
9208         were induced by running this:
9209           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9210             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9211             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9212         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9213         Exempt modules/* and two binary files.
9214         Also exempt doc/INSTALL*, per request from Bruno Haible.
9215         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9216         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9217         * doc/Copyright/request-assign.future: Likewise.
9218         * doc/Copyright/request-disclaim.changes: Likewise.
9219         * doc/INSTALL: Likewise.
9220         * doc/INSTALL.ISO: Likewise.
9221         * doc/INSTALL.UTF-8: Likewise.
9222         * doc/acl-cygwin.txt: Likewise.
9223         * doc/acl-resources.txt: Likewise.
9224         * doc/fdl-1.2.texi: Likewise.
9225         * doc/fdl-1.3.texi: Likewise.
9226         * doc/fdl.texi: Likewise.
9227         * lib/argp-pin.c: Likewise.
9228         * lib/round.c: Likewise.
9229         * lib/unicase/u16-totitle.c: Likewise.
9230         * lib/unictype/block_test.c: Likewise.
9231         * lib/uninorm/canonical-decomposition.c: Likewise.
9232         * m4/README: Likewise.
9233         * m4/relocatable-lib.m4: Likewise.
9234         * tests/test-isnand-nolibm.c: Likewise.
9235         * tests/test-isnand.c: Likewise.
9236         * tests/uninorm/NormalizationTest.txt: Likewise.
9237
9238 2012-01-17  Jim Meyering  <meyering@redhat.com>
9239
9240         maint: add framework to run syntax-check rules against gnulib sources
9241         * cfg.mk: New file, to disable all currently-failing tests.
9242         We'll enable them one by one, as they are made to pass.
9243         * Makefile (sc_maint): New rule.
9244
9245 2012-01-21  Bruno Haible  <bruno@clisp.org>
9246
9247         stdint: Add support for Android.
9248         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9249         include the system's <stdint.h>.
9250         Reported by Simon Josefsson <simon@josefsson.org>.
9251
9252 2012-01-19  Jim Meyering  <meyering@redhat.com>
9253
9254         bootstrap: add bootstrap_post_import_hook
9255         Bison does still need something like the gnulib_mk_hook whose
9256         invocation I had to remove along with slurp in commit 767ccd40.
9257         Technically, we could get along without it, but doing so would
9258         have required living with a warning and a mandatory post-bootstrap
9259         automake rerun.
9260         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9261         (bootstrap_post_import_hook): New function.
9262         Invoke it after gnulib-tool --import and before autoreconf.
9263
9264 2012-01-18  Jim Meyering  <meyering@redhat.com>
9265
9266         gitlog-to-changelog: don't use "no_"-prefixed variable name
9267         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9268         to enable both --cluster and --no-cluster.  Change variable name,
9269         s/\$no_cluster/$cluster/, and reverse usage to match.
9270
9271         gitlog-to-changelog: use "||", not "or" in expressions
9272         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9273         expressions.
9274
9275 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9276
9277         gitlog-to-changelog: new option --no-cluster
9278         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9279         clustering of adjacent commit messages.
9280
9281 2012-01-17  Jim Meyering  <meyering@redhat.com>
9282
9283         maint: spell file systems with two words, not one
9284         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9285         two words, not one.
9286
9287 2012-01-16  Jim Meyering  <meyering@redhat.com>
9288
9289         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9290         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9291
9292 2012-01-16  Eric Blake  <eblake@redhat.com>
9293
9294         bootstrap: cater to autoconf 2.59
9295         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9296         is not available.
9297
9298         bootstrap: properly check for libtool
9299         * build-aux/bootstrap (libtoolize): Also run libtool when older
9300         usage is detected.
9301
9302 2012-01-15  Bruno Haible  <bruno@clisp.org>
9303
9304         Improve support for MSVC 9.
9305         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9306         clashes on MSVC.
9307         * lib/fcntl.in.h: Likewise.
9308         * lib/stdlib.in.h: Likewise.
9309         * lib/sys_stat.in.h: Likewise.
9310
9311 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9312
9313         gnupload: we hold the master copy of this script now
9314         For motivation and more information, see:
9315         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9316         * build-aux/gnupload: Make it clear in the heading comments that the
9317         master copy of this file is maintained by gnulib.  Since we are at
9318         it, bump its copyright year and ...
9319         ($scriptversion): ... the date in its version.
9320         ($usage): Patches and bug reports should be sent to the gnulib list,
9321         not the automake one.
9322         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9323         anymore.
9324
9325 2012-01-15  Bruno Haible  <bruno@clisp.org>
9326
9327         Fix module 'random'.
9328         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9329         initstate, setstate are declared.
9330
9331 2012-01-14  Bruno Haible  <bruno@clisp.org>
9332
9333         Tests for module 'random'.
9334         * modules/random-tests: New file.
9335         * tests/test-random.c: New file, based on tests/test-random_r.c.
9336
9337         New module 'random'.
9338         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9339         declarations.
9340         * lib/random.c: New file, based on glibc/stdlib/random.c.
9341         * m4/random.m4: New file.
9342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9343         HAVE_RANDOM.
9344         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9345         * modules/random: New file.
9346         * config/srclist.txt: Add an entry for random.c.
9347         * doc/posix-functions/random.texi: Mention the 'random' module.
9348         * doc/posix-functions/initstate.texi: Likewise.
9349         * doc/posix-functions/setstate.texi: Likewise.
9350         * doc/posix-functions/srandom.texi: Likewise.
9351
9352 2012-01-12  Bruno Haible  <bruno@clisp.org>
9353
9354         random_r: Use common idioms.
9355         * lib/random_r.c: Include <stdlib.h> first.
9356
9357         random_r: Override incompatible API on AIX, OSF/1.
9358         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9359         Override the system function if REPLACE_RANDOM_R is 1.
9360         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9361         and OSF/1, set REPLACE_RANDOM_R.
9362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9363         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9364         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9365         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9366         * doc/glibc-functions/random_r.texi: Likewise.
9367         * doc/glibc-functions/setstate_r.texi: Likewise.
9368
9369         random_r: Support for MSVC 9.
9370         * lib/random_r.c: Include stdint.h, not inttypes.h.
9371
9372 2012-01-12  Eric Blake  <eblake@redhat.com>
9373
9374         inet_ntop: guard extra work by IF_LINT
9375         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9376         better code generation when not checking for warnings.
9377         Suggested by Paul Eggert and Jim Meyering.
9378
9379         strptime: fix regression on mingw
9380         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9381         Fix regression.  Reported by Bruno Haible.
9382
9383 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9384             Bruno Haible  <bruno@clisp.org>
9385
9386         copy-file: add error-code-returning variant.
9387         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9388         (qcopy_file_preserving): New declaration.
9389         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9390         copy_file_preserving. Change return type to 'int'. Don't emit an error
9391         message here.
9392         (copy_file_preserving): New function.
9393         * tests/test-copy-file.c: Include <stdlib.h>.
9394         (main): Test qcopy_file_preserving if the environment variable
9395         NO_STDERR_OUTPUT is set.
9396         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9397         with NO_STDERR_OUTPUT
9398         * tests/test-copy-file-2.sh: Likewise.
9399
9400 2012-01-10  Bruno Haible  <bruno@clisp.org>
9401
9402         copy-file: Use 'quote' module consistently.
9403         * lib/copy-file.c (copy_file_preserving): Use quote().
9404
9405         copy-file: Refactor.
9406         * lib/copy-file.c: Include quote.h.
9407         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9408         message here.
9409         * modules/copy-file (Depends-on): Add quote.
9410
9411         acl: Export qcopy_acl.
9412         * lib/acl.h (qcopy_acl): New declaration.
9413         * lib/copy-acl.c (qcopy_acl): Make non-static.
9414
9415         acl: Rename a local variable.
9416         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9417
9418         acl: Align return values of copy_acl and qcopy_acl.
9419         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9420         maybe < -1.
9421
9422 2012-01-11  Eric Blake  <eblake@redhat.com>
9423
9424         strptime: silence gcc warnings
9425         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9426         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9427         Reported by Daniel P. Berrange.
9428
9429         inet_ntop: silence gcc warning
9430         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9431         Reported by Daniel P. Berrange.
9432
9433 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9434
9435         getloadavg test: skip the test on GNU/Linux without /proc mounted
9436         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9437         file.  When /proc is not mounted, it always fails with ENOENT.
9438         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9439         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9440
9441 2012-01-10  Bruno Haible  <bruno@clisp.org>
9442
9443         regex: Avoid link error on MSVC 9.
9444         * modules/regex (Depends-on): Add wctype.
9445
9446 2012-01-10  Bruno Haible  <bruno@clisp.org>
9447
9448         doc: Mention --with-tests option.
9449         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9450         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9451         --with-tests.
9452         Reported by Reuben Thomas.
9453
9454 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9455
9456         users.txt: order package names lexicographically.
9457         * users.txt: Order package names lexicographically.
9458
9459 2012-01-10  Jim Meyering  <meyering@redhat.com>
9460
9461         maint.mk: fix description in comment
9462         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9463
9464         ignore-value: remove deprecated ignore_ptr function
9465         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9466         * NEWS: Note this.
9467
9468 2012-01-09  Jim Meyering  <meyering@redhat.com>
9469
9470         test-init.sh: avoid a subshell
9471         * tests/test-init.sh: Remove protective subshell.
9472         Suggested by Bernhard Voelker.  While a subshell is normally
9473         required to protect against older shells (Solaris, FreeBSD) that
9474         warn about a missing program before performing redirection, the
9475         shell-selection tests performed by init.sh probably exclude any
9476         offending shell.
9477
9478 2012-01-08  Bruno Haible  <bruno@clisp.org>
9479
9480         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9481         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9482         variable.
9483
9484 2012-01-08  Bruno Haible  <bruno@clisp.org>
9485
9486         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9487         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9488         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9489         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9490         macro.
9491         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9492         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9493         * lib/spawn_faction_addopen.c: Add workaround implementation if
9494         HAVE_WORKING_POSIX_SPAWN.
9495         * modules/spawn (Makefile): Substitute
9496         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9497         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9498         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9499         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9500         (Depends-on): Update conditions.
9501         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9502         the Solaris 11 bug.
9503
9504 2012-01-08  Bruno Haible  <bruno@clisp.org>
9505
9506         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9507         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9508         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9509         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9510         macro.
9511         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9512         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9513         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9514         HAVE_WORKING_POSIX_SPAWN.
9515         * modules/spawn (Makefile): Substitute
9516         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9517         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9518         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9519         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9520         (Depends-on): Update conditions.
9521         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9522         the Solaris 11 bug.
9523
9524 2012-01-08  Bruno Haible  <bruno@clisp.org>
9525
9526         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9527         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9528         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9529         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9530         HAVE_WORKING_POSIX_SPAWN.
9531         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9532         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9533         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9534         * lib/spawn_faction_addclose.c: Add workaround implementation if
9535         HAVE_WORKING_POSIX_SPAWN.
9536         * modules/spawn (Makefile): Substitute
9537         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9538         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9539         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9540         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9541         (Depends-on): Update conditions.
9542         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9543         the Solaris 11 bug.
9544
9545 2012-01-08  Bruno Haible  <bruno@clisp.org>
9546
9547         doc: Update for Solaris 11 2011-11.
9548         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9549         * m4/printf.m4: Update comments.
9550
9551 2012-01-08  Bruno Haible  <bruno@clisp.org>
9552
9553         mktime: Avoid compilation error on Solaris 11.
9554         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9555
9556 2012-01-08  Bruno Haible  <bruno@clisp.org>
9557
9558         doc: Small fix.
9559         * doc/posix-headers/nl_types.texi: Correct platforms list.
9560
9561 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9562
9563         Add lgpl-3.0 module.
9564         * MODULES.html.sh (Support for building documentation): Add
9565         lgpl-3.0.
9566         * modules/lgpl-3.0: New file.
9567
9568 2012-01-08  Jim Meyering  <meyering@redhat.com>
9569
9570         select.c: indent with spaces, not TABs
9571         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9572
9573 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9574
9575         quotearg: do not use grave accent for left quote
9576         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9577         locale_quoting_style.
9578         (quotearg_buffer_restyled): Fix example.
9579         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9580
9581 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9582
9583         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9584         Most programs do not have translation catalogs for English and much
9585         less separate catalogs for British and American English.  Drop the
9586         suggestion to translators about these two, and provide it
9587         automatically for Unicode locales.  Like most programs, even those
9588         using American English, we use single quotation marks.  This conflicts
9589         with the American typographic convention, but works better when you
9590         cite the entire error message within double quotes.  It also tries not
9591         to clash with established practice and with what non-gnulib programs
9592         will usually do.
9593         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9594         using an UTF-8 or GB-18030 locale.  The list of other locales with
9595         quotes was provided by Bruno Haible.
9596         (quotearg_buffer_restyled): Adjust instructions to translators.
9597         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9598         text, since this would be wrong when using Unicode.
9599         * modules/quotearg: Depend on c-strcaseeq.
9600
9601 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9602
9603         quotearg: fix Wikipedia link
9604         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9605
9606 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9607
9608         Fix for mingw with MSVC9.
9609         * m4/ld-version-script.m4: Check that compiler rejects version
9610         scripts with syntax errors.  Reported by Bruno Haible
9611         <bruno@clisp.org>.
9612
9613 2012-01-06  Bruno Haible  <bruno@clisp.org>
9614
9615         Talk about "native Windows API", not "Woe32".
9616         * lib/accept4.c: Update comments to mention native Windows.
9617         * lib/execute.c: Likewise.
9618         * lib/fatal-signal.c: Likewise.
9619         * lib/localcharset.c: Likewise.
9620         * lib/nanosleep.c: Likewise.
9621         * lib/nl_langinfo.c: Likewise.
9622         * lib/pclose.c: Likewise.
9623         * lib/pipe-filter-gi.c: Likewise.
9624         * lib/pipe-filter-ii.c: Likewise.
9625         * lib/pipe.c: Likewise.
9626         * lib/pipe2.c: Likewise.
9627         * lib/popen.c: Likewise.
9628         * lib/progreloc.c: Likewise.
9629         * lib/relocatable.c: Likewise.
9630         * lib/sigaction.c: Likewise.
9631         * lib/sigprocmask.c: Likewise.
9632         * lib/spawn-pipe.h: Likewise.
9633         * lib/spawn-pipe.c: Likewise.
9634         * lib/spawni.c: Likewise.
9635         * lib/stat-time.h: Likewise.
9636         * lib/w32spawn.h: Likewise.
9637         * tests/test-isatty.c: Likewise.
9638         * lib/config.charset: More comments.
9639         * doc/gnulib-intro.texi: Mention native Windows.
9640         * doc/posix-functions/_Exit_C99.texi: Likewise.
9641         * doc/posix-headers/fcntl.texi: Likewise.
9642
9643 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9644
9645         argp: Avoid crash if translator uses % characters in a translation.
9646         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9647         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9648
9649 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9650
9651         doc: C11 and C++11 are now official
9652         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9653         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9654         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9655         * modules/stdalign:
9656         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9657
9658 2012-01-06  Bruno Haible  <bruno@clisp.org>
9659
9660         uc-is-grapheme-break tests: Tweak.
9661         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9662         message.
9663
9664 2012-01-06  Bruno Haible  <bruno@clisp.org>
9665
9666         test-init.sh: correct the test for diff -u
9667         * tests/test-init.sh: Also redirect stdout to /dev/null.
9668
9669 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9670
9671         Use ', not `, for quoting output.
9672         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9673         (print_changelog_deltas, get_tool_versions, main program):
9674         * build-aux/git-version-gen:
9675         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9676         * build-aux/move-if-change (help):
9677         * build-aux/useless-if-before-free (usage, main program):
9678         * check-module (parse_module_file, usage)
9679         (find_included_lib_files, check_module):
9680         * lib/argmatch.c (main) [TEST]:
9681         * lib/argp-help.c (_help):
9682         * lib/getopt1.c (main) [TEST]:
9683         * lib/git-merge-changelog.c (usage):
9684         * lib/xstrtol-error.c (xstrtol_error):
9685         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9686         * m4/argz.m4 (gl_FUNC_ARGZ):
9687         * m4/bison.m4 (gl_BISON):
9688         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9689         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9690         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9691         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9692         * m4/gc-random.m4 (gl_GC_RANDOM):
9693         * m4/intl.m4 (gt_CHECK_DECL):
9694         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9695         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9696         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9697         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9698         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9699         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9700         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9701         * tests/test-dirname.c (main):
9702         * tests/test-getpass.c (main):
9703         * tests/test-iconvme.c (main):
9704         * tests/test-parse-datetime.c (LOG):
9705         * tests/test-xstrtoimax.sh:
9706         * tests/test-xstrtol.sh:
9707         * tests/test-xstrtoll.sh:
9708         * tests/test-xstrtoumax.sh:
9709         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9710         * top/GNUmakefile (abort-due-to-no-makefile):
9711         Quote 'like this', not `like this', as per the recent change to
9712         the GNU coding standards.
9713
9714 2012-01-05  Bruno Haible  <bruno@clisp.org>
9715
9716         strtoimax: Don't force a replacement on systems where intmax_t is int.
9717         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9718         'intmax_t' is not larger than 'int'.
9719         Reported by Pádraig Brady <P@draigBrady.com>.
9720
9721 2012-01-05  Bruno Haible  <bruno@clisp.org>
9722
9723         doc: Mention NetBSD bugs.
9724         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9725         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9726
9727 2012-01-05  Bruno Haible  <bruno@clisp.org>
9728
9729         strtoumax tests: Enhance tests.
9730         * tests/test-strtoumax.c (main): Add tests for large values.
9731
9732 2012-01-05  Bruno Haible  <bruno@clisp.org>
9733
9734         strtoimax: Work around AIX 5.1 bug.
9735         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9736         definition.
9737         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9738         Set HAVE_STRTOIMAX.
9739         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9740         REPLACE_STRTOIMAX.
9741         * modules/inttypes-incomplete (Makefile.am): Substitute
9742         REPLACE_STRTOIMAX.
9743         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9744         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9745         (Depends-on): Update conditions.
9746         * tests/test-strtoimax.c (main): Add tests for large values.
9747         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9748
9749 2012-01-05  Bruno Haible  <bruno@clisp.org>
9750
9751         inttypes: Modernize.
9752         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9753         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9754         (Makefile.am): Update inttypes.h rule.
9755
9756 2012-01-05  Jim Meyering  <meyering@redhat.com>
9757
9758         init.sh: don't waste a subshell just to redirect stderr
9759         * tests/init.sh: In testing for diff -u and diff -c, use a
9760         stderr-redirecting exec inside `...` rather than a subshell.
9761
9762         test-init.sh: avoid failure on HP-UX 11.00
9763         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9764         resolves to diff -c or cmp.  Reported by Bruno Haible.
9765
9766 2012-01-05  Bruno Haible  <bruno@clisp.org>
9767
9768         Tests for module 'strtoull'.
9769         * modules/strtoull-tests: New file.
9770         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9771
9772 2012-01-05  Bruno Haible  <bruno@clisp.org>
9773
9774         Tests for module 'strtoll'.
9775         * modules/strtoll-tests: New file.
9776         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9777
9778 2012-01-05  Bruno Haible  <bruno@clisp.org>
9779
9780         Tests for module 'strtoul'.
9781         * modules/strtoul-tests: New file.
9782         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9783
9784 2012-01-05  Bruno Haible  <bruno@clisp.org>
9785
9786         Tests for module 'strtol'.
9787         * modules/strtol-tests: New file.
9788         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9789
9790 2012-01-04  Jim Meyering  <meyering@redhat.com>
9791
9792         test-init.sh: accommodate Solaris 5.10's different diff -u output
9793         * tests/test-init.sh: Also exempt @@ lines from the comparison
9794         of diff output, since Solaris 5.10 and GNU diff formats differ.
9795         Reported by Stefano Lattarini.
9796
9797 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9798
9799         test-posixtm: don't assume signed integer wraparound
9800         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9801         after signed integer overflow.  Inspired by (though it may not
9802         fix) Bruno Haible's bug report in
9803         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9804
9805         Spell out "Windows 9x" and "Windows XP".
9806         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9807         "Windows 9x" and "WinXP" with "Windows XP".
9808
9809 2012-01-04  Jim Meyering  <meyering@redhat.com>
9810
9811         test-vc-list-files-cvs.sh: remove obsolete comment
9812         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9813         double exit.  Now that's all encapsulated via skip_ and Exit.
9814
9815 2012-01-04  Bruno Haible  <bruno@clisp.org>
9816
9817         Talk about "native Windows API", not "Win32".
9818         * lib/classpath.c: Update comments to mention native Windows.
9819         * lib/csharpexec.c: Likewise.
9820         * lib/dup2.c: Likewise.
9821         * lib/error.c: Likewise.
9822         * lib/fcntl.c: Likewise.
9823         * lib/filename.h: Likewise.
9824         * lib/findprog.c: Likewise.
9825         * lib/get-rusage-as.c: Likewise.
9826         * lib/get-rusage-data.c: Likewise.
9827         * lib/getpagesize.c: Likewise.
9828         * lib/javaexec.c: Likewise.
9829         * lib/msvc-inval.c: Likewise.
9830         * lib/msvc-nothrow.c: Likewise.
9831         * lib/nanosleep.c: Likewise.
9832         * lib/nonblocking.c: Likewise.
9833         * lib/printf-parse.c: Likewise.
9834         * lib/setlocale.c: Likewise.
9835         * lib/sigaction.c: Likewise.
9836         * lib/strerror_r.c: Likewise.
9837         * lib/tmpdir.c: Likewise.
9838         * lib/vasnprintf.c: Likewise.
9839         * lib/w32spawn.h: Likewise.
9840         * lib/waitpid.c: Likewise.
9841         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9842         * m4/locale-ar.m4: Likewise.
9843         * m4/locale-fr.m4: Likewise.
9844         * m4/locale-ja.m4: Likewise.
9845         * m4/locale-tr.m4: Likewise.
9846         * m4/locale-zh.m4: Likewise.
9847         * m4/printf.m4: Likewise.
9848         * tests/test-cloexec.c: Likewise.
9849         * tests/test-copy-acl.sh: Likewise.
9850         * tests/test-copy-file.sh: Likewise.
9851         * tests/test-file-has-acl.sh: Likewise.
9852         * tests/test-set-mode-acl.sh: Likewise.
9853         * tests/test-dup-safer.c: Likewise.
9854         * tests/test-dup2.c: Likewise.
9855         * tests/test-dup3.c: Likewise.
9856         * tests/test-fcntl.c: Likewise.
9857         * tests/test-nonblocking-pipe.h: Likewise.
9858         * tests/test-nonblocking-socket.h: Likewise.
9859         * tests/test-pipe.c: Likewise.
9860         * tests/test-pipe2.c: Likewise.
9861         * tests/test-spawn-pipe-child.c: Likewise.
9862         * doc/acl-resources.txt: Likewise.
9863         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9864         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9865         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9866         * lib/localcharset.c: Update comments to mention native Windows.
9867         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9868         * lib/localename.c: Likewise.
9869         * lib/progreloc.c: Likewise.
9870         * lib/relocatable.c: Likewise.
9871         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9872         (windows_compute_revents): Renamed from win32_compute_revents.
9873         (windows_compute_revents_socket): Renamed from
9874         win32_compute_revents_socket.
9875         * lib/select.c: Update comments to mention native Windows.
9876         (windows_poll_handle): Renamed from win32_poll_handle.
9877         * m4/threadlib.m4: Update comments to mention native Windows.
9878         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9879         --enable-threads=windows instead of --enable-threads=win32. Set
9880         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9881         * lib/glthread/lock.h: Update comments to mention native Windows.
9882         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9883         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9884         USE_WIN32_THREADS.
9885         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9886         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9887         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9888         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9889         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9890         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9891         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9892         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9893         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9894         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9895         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9896         * tests/test-tls.c: Likewise.
9897         Rationale:
9898         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9899         on both 32-bit and 64-bit Windows systems.
9900         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9901         line of distinction is between "native Windows" on one side and Unix/
9902         POSIX systems on the other side. More details in
9903         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9904         Suggested by Paul Eggert.
9905
9906 2012-01-03  Bruno Haible  <bruno@clisp.org>
9907
9908         isatty: Support for MSVC 9.
9909         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9910         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9911         (_isatty_nothrow): New function.
9912         (isatty): Use it instead of _isatty.
9913         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9914         * lib/poll.c (IsConsoleHandle): Likewise.
9915         * lib/select.c (IsConsoleHandle): Likewise.
9916         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9917         (gl_PREREQ_ISATTY): New macro.
9918         * modules/isatty (Depends-on): Add msvc-inval.
9919         (configure.ac): Invoke gl_PREREQ_ISATTY.
9920
9921 2012-01-03  Jim Meyering  <meyering@redhat.com>
9922
9923         maint.mk: remove temporary transition aid from over 1.5 years ago
9924         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9925         purpose was to aid in the transition (avoiding silent malfunction)
9926         from that old name to the new _sc_search_regexp.  This shim was
9927         added by commit 219c504b.
9928
9929         init.sh: do not try to accommodate compare arguments starting with "-"
9930         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9931         compare arguments that start with "-".  Besides, we do not worry
9932         about this when invoking diff or cmp; why start now with sed?
9933         Using "--" to separate options from argument would trigger sed
9934         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9935         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9936
9937 2012-01-02  Bruno Haible  <bruno@clisp.org>
9938
9939         Enhance tests for module 'isatty'.
9940         * modules/isatty-tests (Depends-on): Add pipe-posix.
9941         * tests/test-isatty.c: Include <fcntl.h>.
9942         (DEV_NULL): New macro.
9943         (main): Test the resut of isatty() also on regular files, pipes, and
9944         /dev/null.
9945
9946         New module 'isatty'.
9947         * lib/unistd.in.h (isatty): New declaration.
9948         * lib/isatty.c: New file, based on an idea of
9949         Bastien Roucariès <roucaries.bastien@gmail.com>.
9950         * m4/isatty.m4: New file.
9951         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9952         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9953         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9954         REPLACE_ISATTY.
9955         * modules/isatty: New file.
9956         * doc/posix-functions/isatty.texi: Mention the new module.
9957         Suggested by Paolo Bonzini.
9958
9959 2012-01-02  Bruno Haible  <bruno@clisp.org>
9960
9961         canonicalize: Tweak 2011-12-29 commit.
9962         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9963         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9964
9965 2012-01-02  Jim Meyering  <meyering@redhat.com>
9966
9967         gitlog-to-changelog: describe input syntax in --help output
9968         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9969
9970         gitlog-to-changelog: fix typo in --help: show backslash before email @
9971         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9972         in sources, but not in actual output.
9973
9974 2011-12-30  Jim Meyering  <meyering@redhat.com>
9975
9976         gitlog-to-changelog: don't malfunction when name contains %-directive
9977         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9978         in a name string cause trouble.  E.g., with a user name of "%s",
9979         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9980
9981 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9982
9983         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9984         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9985         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9986         the "  (tiny change)" notation that is appended to the standard
9987         ChangeLog "date  name  email" header line.
9988
9989 2012-01-01  Jim Meyering  <meyering@redhat.com>
9990
9991         test-framework-sh: init.sh: fix "make dist" failure
9992         When using gnulib-tool's --with-tests option and any module that
9993         depends on test-framework-sh, "make dist" would fail due to the
9994         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9995         in the gltests directory, and not in the gllib/ directory.
9996         One way to work around that is to move the EXTRA_DIST += init.sh
9997         from the primary module to the -tests one:
9998         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9999         * modules/test-framework-sh (Makefile.am): ...not here.
10000         Reported by Tom G. Christensen in
10001         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10002
10003         version-etc: update copyright year reported by --version
10004         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10005
10006 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10007
10008         canonicalize: only stat() if required
10009         * lib/canonicalize.c (canonicalize_filename_mode):
10010         Avoid calling l?stat() when both CAN_MISSING,
10011         and CAN_NOLINKS are set, as we neither need
10012         to resolve symlinks or test component existence.
10013
10014 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10015
10016         doc: cover st_ino issues once; add OpenVMS etc.
10017         * doc/posix-functions/stat.texi (stat):
10018         * doc/posix-functions/lstat.texi (lstat):
10019         * doc/posix-functions/fstatat.texi (fstatat):
10020         * doc/posix-functions/fstat.texi (fstat):
10021         Move general 'struct stat' stuff to sys_stat.texi,
10022         leaving behind a pointer.
10023         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10024         Merge duplicate info about 'struct stat' problems into here.
10025         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10026         and suggest partial workarounds.
10027
10028         same-inode: port to OpenVMS
10029         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10030         three st_ino values.
10031
10032 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10033
10034         canonicalize: fix references to stat() and lstat()
10035         * lib/canonicalize.c (canonicalize_filename_mode):
10036         Ensure references always resolve to a replacement
10037         function if required (even via a macro).
10038
10039 2011-12-30  Jim Meyering  <meyering@redhat.com>
10040
10041         gitlog-to-changelog: remove a little duplication
10042         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10043         rather than twice.
10044
10045 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10046
10047         canonicalize: add support for not resolving symlinks
10048         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10049         indicate we don't want to follow symlinks.  Also
10050         provide CAN_MODE_MASK to aid setting these existing
10051         mutually exclusive values.
10052         * lib/canonicalize.c (canonicalize_filename_mode):
10053         Extract the flags from can_mode parameter, which
10054         are currently just used to select between stat()
10055         and lstat().  Also ensure that mutually exclusive
10056         values are flagged immediately as invalid.
10057         * tests/test-canonicalize.c: Verify symlinks are
10058         not followed, and that invalid flag combinations
10059         are diagnosed.
10060
10061 2011-12-25  Jim Meyering  <meyering@redhat.com>
10062
10063         gitlog-to-changelog: do not clump multi-paragraph entries
10064         Identical header lines (date,name,email+coauthors) are suppressed,
10065         thus putting all entries with those same characteristics under
10066         a single header.  However, when a log entry consists of two or
10067         more paragraphs, it may not be clear where it starts and ends.
10068         This change makes it so that such an entry is always separated
10069         from others by a header line, even when that header would
10070         otherwise be suppressed.
10071         * build-aux/gitlog-to-changelog: Implement the above.
10072         Inspired by a related request from Stefano Lattarini in
10073         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10074
10075 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10076
10077         announce-gen: fix `cmd' typo in diagnostic
10078         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10079         diagnostic: a missing '$' meant that the command was not output.
10080
10081 2011-12-23  Jim Meyering  <meyering@redhat.com>
10082
10083         test-framework-sh: distribute init.sh
10084         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10085         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10086         fail due to the lack of init.sh.
10087
10088         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10089         * modules/atexit-tests: Rather than listing tests/init.sh,
10090         now that there's a module for it, simply depend on that new module.
10091         * modules/closein-tests: Likewise.
10092         * modules/exclude-tests: Likewise.
10093         * modules/getcwd-tests: Likewise.
10094         * modules/perror-tests: Likewise.
10095         * modules/pread-tests: Likewise.
10096         * modules/pwrite-tests: Likewise.
10097         * modules/vc-list-files-tests: Likewise.
10098         * modules/verify-tests: Likewise.
10099         * modules/xalloc-die-tests: Likewise.
10100         * modules/xstrtoimax-tests: Likewise.
10101         * modules/xstrtol-tests: Likewise.
10102         * modules/xstrtoll-tests: Likewise.
10103         * modules/xstrtoumax-tests: Likewise.
10104         * modules/yesno-tests: Likewise.
10105
10106 2011-12-22  Jim Meyering  <meyering@redhat.com>
10107
10108         test-framework-sh: add minimal tests of init.sh's compare function
10109         * modules/test-framework-sh-tests: New file.
10110         * tests/test-init.sh: New file.
10111
10112         test-framework-sh: new module
10113         * modules/test-framework-sh: New file.
10114         * MODULES.html.sh (Support for maintaining and releasing projects):
10115         List it.
10116
10117         init.sh: do not emit simulated diff output to stderr
10118         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10119
10120 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10121
10122         .gitignore: ignore gnulib.dvi and regex.info
10123         * doc/.gitignore:add gnulib.dvi and regex.info
10124
10125 2011-12-22  Jim Meyering  <meyering@redhat.com>
10126
10127         init.sh: correct previous change
10128         * tests/init.sh (compare): My previous change was wrong.
10129         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10130
10131         init.sh: avoid unwarranted test failure when using "set -e"
10132         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10133         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10134         a use like "compare exp out" would get evoke an unconditional failure.
10135
10136 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10137
10138         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10139         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10140         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10141         autoreconf that did not.
10142         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10143         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10144
10145 2011-12-17  Jim Meyering  <meyering@redhat.com>
10146
10147         bootstrap: remove some now-unneeded code
10148         This script arose back when gnulib-tool was young.
10149         Since then, it has seen improvements that render much of this
10150         script unnecessary.  In particular, it can now make symlinks
10151         to the files it uses.  Also, I no longer see as much value in
10152         marking files as read-only via comments.
10153         If you relied on the symlink-creation feature of the preceding
10154         version of this script, you can get most of that functionality
10155         by adding the --symlink option to the definition of
10156         gnulib_tool_option_extras in your bootstrap.conf file.
10157         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10158         Run autopoint and libtoolize *before* gnulib-tool.
10159         After it, run an abbreviated autoreconf, rather than a loop around
10160         all tools.
10161         (slirp, bt_mark_as_generated): Remove functions.
10162
10163 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10164
10165         ftoastr: fix typo
10166         * lib/ftoastr.h: Fix misspelling in comment.
10167
10168 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10169
10170         * top/README-release: fix punctuation.
10171
10172 2011-12-17  Jim Meyering  <meyering@redhat.com>
10173
10174         bootstrap: correct the recent buildreq change
10175         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10176         had no effect.
10177         * build-aux/bootstrap (buildreq): Bracket each search term with
10178         "*...*", so that the shell "case" statement works as intended.
10179         Add comments.
10180
10181 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10182
10183         build: let bootstrap resort to wget when downloading .po files
10184         * build-aux/bootstrap (download_po_files): Fallback to wget when
10185         downloading the .po files via rsync fails.  This is necessary to
10186         bootstrap from behind a strict firewall.
10187
10188 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10189
10190         stdint: don't assume C++11 when compiling with g++
10191         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10193         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10194         work also in C++ before C++11, as that improperly inhibits
10195         generating a substitute stdint.h for that case.
10196
10197 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10198
10199         alloca: protect comment from gnulib-tool
10200         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10201         that gnulib-tool doesn't think it's a license, and munge it to
10202         say "GCC version 3".
10203
10204 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10205
10206         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10207         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10208         $(abs_top_builddir) instead of $(top_builddir).
10209
10210 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10211
10212         strftime-tests: also test nanoseconds
10213         * tests/test-strftime.c (T): Add a test of %N.
10214
10215 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10216
10217         inttypes, stdint: add C++11 support
10218         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10219         when including inttypes.h and stdint.h.  Support this change to
10220         the standard.
10221         * doc/posix-headers/inttypes.texi (inttypes.h):
10222         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10223         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10224         Define if not defined already, for the benefit of pre-C++11 hosts.
10225         Define the standard format macros (e.g., PRId8) always.
10226         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10227         Likewise, if __cpluspus.  Define the standard constant and limit
10228         macros (e.g., INT8_C, INT8_MAX) always.
10229         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10230         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10231         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10232         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10233         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10234         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10235         Likewise.
10236
10237 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10238
10239         nonblocking tests: Fix test failure on Linux/PPC.
10240         Suggested by Prerna Saxena in
10241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10242         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10243         Set to 1100000.
10244
10245 2011-12-12  Jim Meyering  <meyering@redhat.com>
10246
10247         argmatch: don't hard-code `' when listing valid option arguments
10248         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10249         use the quote function to add quotes.  Use fputs rather than
10250         fprintf for the format string with no format directive.
10251
10252 2011-12-07  Eric Blake  <eblake@redhat.com>
10253
10254         bootstrap: detect tools required by gnulib-tool
10255         * build-aux/bootstrap (buildreq): Provide minimum implicit
10256         dependencies.
10257         * DEPENDENCIES: Mention patch as a prereq.
10258
10259 2011-12-04  Bruno Haible  <bruno@clisp.org>
10260
10261         sethostname: Port to Windows platforms.
10262         * lib/sethostname.c: Provide an alternate implementation for Windows
10263         platforms.
10264         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10265         (main): Skip the test if sethostname() fails with EPERM. On Windows
10266         platforms, don't check the result of gethostname().
10267
10268 2011-12-04  Bruno Haible  <bruno@clisp.org>
10269             Jim Meyering  <meyering@redhat.com>
10270
10271         tests: Avoid spurious error message on platforms without mktemp program.
10272         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10273
10274 2011-12-04  Bruno Haible  <bruno@clisp.org>
10275
10276         sethostname: Fix documentation.
10277         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10278         "not fixed" section.
10279
10280 2011-12-03  Bruno Haible  <bruno@clisp.org>
10281
10282         gnulib-tool: Verify that the License field is present and non-empty.
10283         * gnulib-tool (func_get_license_raw): New function, extracted from
10284         func_get_license.
10285         (func_get_license): Use it. Warn if the module is not a test module and
10286         has no license.
10287         Suggested by Jim Meyering.
10288
10289 2011-12-03  Bruno Haible  <bruno@clisp.org>
10290
10291         sethostname tests: Fix link error on mingw.
10292         * tests/test-sethostname1.c: New file, extracted from
10293         tests/test-sethostname.c.
10294         * tests/test-sethostname2.c: New file, extracted from
10295         tests/test-sethostname.c.
10296         * tests/test-sethostname.c: Remove file.
10297         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10298         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10299         (Depends-on): Add gethostname.
10300         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10301         Link the latter with $(GETHOSTNAME_LIB).
10302
10303         sethostname tests: Fix compilation error on mingw.
10304         * tests/test-sethostname.c: Don't include <sys/types.h>.
10305         (geteuid): Use a dummy value without uid_t.
10306         * modules/sethostname-tests (Depends-on): Remove sys_types.
10307
10308         sethostname tests: Avoid a gcc warning.
10309         * tests/test-sethostname.c (main): Remove an unused variable.
10310
10311         Tweak last commit.
10312         * modules/sethostname-tests (Files): Sort by decreasing importance.
10313         (configure.ac): Check for geteuid.
10314         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10315         the test when there's nothing to test. Drop an unnecessary cast.
10316         Improve an error message. Verify that the final sethostname() call
10317         succeeds.
10318
10319 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10320
10321         Add a test suite for the sethostname module.
10322         * modules/sethostname-tests: New file.  A test program
10323         for the sethostname module.
10324         * tests/test-sethostname.c: Likewise.
10325
10326 2011-12-03  Bruno Haible  <bruno@clisp.org>
10327
10328         Tweak last commit.
10329         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10330         Fix preprocessor directives indentation. Fix typos.
10331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10332         * modules/unistd (Makefile): Likewise.
10333
10334 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10335
10336         Integrate the sethostname module into unistd.
10337         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10338         into the unistd.h header.
10339         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10340         preprocessor directives.
10341         * modules/unistd: Setup the Makefile substitutions of the
10342         SETHOSTNAME preprocessor directives.
10343
10344 2011-12-03  Bruno Haible  <bruno@clisp.org>
10345
10346         Tweak last commit.
10347         * lib/sethostname.c: Don't include <string.h>.
10348         (sethostname): No need to copy the argument string to the stack. Don't
10349         call clearerr. Preserve errno when fprintf failed.
10350         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10351         Don't invoke AC_REPLACE_FUNCS.
10352         * modules/sethostname (Link): Remove empty section.
10353         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10354         failure problem.
10355
10356 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10357
10358         New module 'sethostname'.
10359         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10360         for systems that lack it.
10361         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10362         sethostname declaration and function.
10363         * modules/sethostname: New file.  Define the sethostname module.
10364
10365 2011-12-03  Bruno Haible  <bruno@clisp.org>
10366
10367         Tweak last commit.
10368         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10369
10370 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10371
10372         Split the HOST_NAME_MAX detection into a separate m4 macro.
10373         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10374         macro so it can be used by the pending sethostname module.
10375
10376 2011-12-03  Bruno Haible  <bruno@clisp.org>
10377
10378         Fix module descriptions syntax.
10379         * modules/argv-iter (License): Fix syntax.
10380         * modules/di-set (License): Likewise.
10381         * modules/ino-map (License): Likewise.
10382         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10383
10384 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10385
10386         stdalign: port to Clang 3.0
10387         Problem reported by Simon Josefsson in
10388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10389         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10390         which has <stdalign.h> but which does not define alignof.
10391         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10392
10393 2011-12-01  Eric Blake  <eblake@redhat.com>
10394
10395         mktempd: silence dd usage
10396         * build-aux/mktempd (rand_bytes): Silence dd.
10397
10398 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10399
10400         manywarnings: Don't mention gcc version in docstring.
10401         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10402         Jim Meyering <meyering@redhat.com>.
10403
10404 2011-11-30  Jim Meyering  <meyering@redhat.com>
10405
10406         hash: mark a few floating point constants with "f" suffix
10407         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10408         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10409         floating point constants with "f", since they're destined to be
10410         saved/used as "float"s.
10411
10412 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10413
10414         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10415         * tests/test-float.c (test_long_double): Correct and re-enable the
10416         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10417
10418 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10419
10420         Avoid subtracting two pointers that don't point into the same block.
10421         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10422         only pointers into the same memory block are subtracted. We cannot
10423         assume that sizeof (ptrdiff_t) == sizeof (void *).
10424
10425 2011-11-29  Eric Blake  <eblake@redhat.com>
10426
10427         maint.mk: add syntax check for use of compare from init.sh
10428         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10429         moved here from coreutils.
10430
10431         manywarnings: drop -Wunsuffixed-float-constants
10432         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10433         '1.0D', which is the only way to silence this warning for 'double'.
10434
10435 2011-11-29  Jim Meyering  <meyering@redhat.com>
10436
10437         hash: mark compute_bucket_size with the pure attribute
10438         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10439
10440         quotearg, propername: correct pragma guard expression
10441         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10442         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10443
10444 2011-11-28  Jim Meyering  <meyering@redhat.com>
10445
10446         propername: do not mark proper_name with the const attribute
10447         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10448         since it examines data pointed to by its parameter.
10449         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10450         the suggestion from -Wsuggest-attribute=const.
10451
10452         propername: mark one more function as const
10453         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10454
10455 2011-11-27  Jim Meyering  <meyering@redhat.com>
10456
10457         mark functions with const and pure attributes
10458
10459         Mark functions per suggestions from gcc-4.6 when using these options:
10460         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10461         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10462         Follow these guidelines: when possible, apply the attribute to
10463         an extern declaration, not to its definition.  Apply it to the
10464         definition only when the definition is static.
10465         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10466         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10467         * lib/base64.h (isbase64): Likewise.
10468         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10469         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10470         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10471         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10472         (c_tolower, c_toupper): Likewise.
10473         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10474         * lib/chdir-long.c (find_non_slash): Likewise.
10475         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10476         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10477         * lib/file-type.h (file_type): Likewise.
10478         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10479         * lib/filevercmp.c (verrevcmp): Likewise.
10480         * lib/freadahead.h (freadahead): Likewise.
10481         * lib/fts.c (fts_maxarglen): Likewise.
10482         * lib/hash-pjw.h (hash_pjw): Likewise.
10483         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10484         * lib/hash.c (is_prime, next_prime): Likewise.
10485         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10486         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10487         (hash_table_ok, hash_get_first, hash_string): Likewise.
10488         (compute_bucket_size): Likewise.
10489         * lib/i-ring.h (i_ring_empty): Likewise.
10490         * lib/isnan.c (isnanl): Likewise.
10491         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10492         * lib/memcasecmp.h (memcasecmp): Likewise.
10493         * lib/memchr2.h (memchr2): Likewise.
10494         * lib/memcmp2.h (memcmp2): Likewise.
10495         * lib/parse-datetime.y (lookup_zone): Likewise.
10496         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10497         [!WINDOWS_SOCKETS]: Likewise.
10498         * lib/strnlen1.h (strnlen1): Likewise.
10499         * lib/uniwidth.in.h (uc_width): Likewise.
10500         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10501         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10502         (quoting_options_from_style): Add a comment.
10503         * lib/propername.h (proper_name): Add a comment.
10504
10505 2011-11-27  Bruno Haible  <bruno@clisp.org>
10506
10507         Remove unused macros from !_LIBC code in glibc-borrowed files.
10508         * lib/fnmatch.c (STRCOLL): Remove macro.
10509         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10510         * lib/glob.c (__stat, __readdir64): Remove macros.
10511         * lib/tempname.c (__open64, __xstat64): Remove macros.
10512         Suggested by Paul Eggert.
10513
10514 2011-11-27  Bruno Haible  <bruno@clisp.org>
10515
10516         getcwd: Fix link error on MSVC 9.
10517         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10518
10519 2011-11-27  Bruno Haible  <bruno@clisp.org>
10520
10521         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10522         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10523         HAVE_OPENDIR is 0.
10524         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10525         HAVE_CLOSEDIR is 0.
10526         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10527         is 0.
10528         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10529
10530 2011-11-27  Bruno Haible  <bruno@clisp.org>
10531
10532         getcwd: Fix bug from 2011-08-17.
10533         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10534         platforms that need it.
10535         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10536         code of 4 to be a failure, not a success. This ensures that
10537         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10538
10539 2011-11-27  Bruno Haible  <bruno@clisp.org>
10540
10541         binary-io tests: Avoid test failure on mingw when libtool is used.
10542         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10543         Don't verify the size of t-bin-out1.tmp here.
10544         * tests/test-binary-io.sh: Verify it here.
10545         Reported by Simon Josefsson.
10546
10547 2011-11-26  Bruno Haible  <bruno@clisp.org>
10548
10549         Fix conflict between two instantiations of module 'unistd'.
10550         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10551         ${include_guard_prefix} also in the autoconf snippet.
10552         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10554         GNULIB_UNISTD_H_GETOPT.
10555         * modules/getopt-posix (configure.ac): Set the
10556         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10557         * modules/getopt-gnu (configure.ac): Likewise.
10558         * modules/unistd (Makefile.am): Change the substitution value of
10559         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10560         Reported by Simon Josefsson.
10561
10562 2011-11-25  Bruno Haible  <bruno@clisp.org>
10563
10564         pagealign_alloc: Doc and comments.
10565         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10566         module.
10567         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10568
10569 2011-11-25  Jim Meyering  <meyering@redhat.com>
10570
10571         test-update-copyright.sh: avoid false-positive failure
10572         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10573         around false positive failure on Cygwin/Windows.  The latter was
10574         matching erroneously-created files with names like
10575         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10576
10577 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10578
10579         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10580         * m4/valgrind-tests.m4: Check that the parameters that will be
10581         used works, not just a subset of them.  Reported by Bruno Haible
10582         <bruno@clisp.org>.
10583
10584 2011-11-24  Jim Meyering  <meyering@redhat.com>
10585
10586         test-stdalign.c: comment out long double tests
10587         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10588         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10589         error: '_Alignas' specifiers cannot reduce alignment of \
10590         'static_longdouble_alignas'.
10591
10592 2011-11-22  Jim Meyering  <meyering@redhat.com>
10593
10594         init.sh: make "compare /dev/null FILE" output more readable
10595         * tests/init.sh (compare_): Document the preferred order of arguments.
10596         (emit_diff_u_header_): New function.
10597         (compare_dev_null_): Emit a simulated diff, rather than just the
10598         contents of the unexpected file.  Suggestion from Bruno Haible.
10599
10600 2011-11-21  Jim Meyering  <meyering@redhat.com>
10601             Eric Blake  <eblake@redhat.com>
10602
10603         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10604         * tests/init.sh: Make our compare function slightly more portable.
10605         Reported by Bruno Haible in
10606         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10607
10608 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10609
10610         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10611         before using it, in code that ends up in config.h.
10612
10613 2011-11-20  Bruno Haible  <bruno@clisp.org>
10614
10615         getcwd: Work around getcwd bug on AIX 5..7.
10616         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10617         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10618         Use a different value for gl_cv_func_getcwd_path_max. Move the
10619         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10620         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10621         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10622         Define HAVE_MINIMALLY_WORKING_GETCWD.
10623         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10624         where it is not even minimally working, that is, on AIX.
10625         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10626         m4/getcwd-path-max.m4.
10627         (main): Update exit code computation.
10628         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10629         getcwd does not handle long file names.
10630
10631 2011-11-20  Bruno Haible  <bruno@clisp.org>
10632
10633         getcwd: Fix bug from 2009-09-10.
10634         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10635         like "no".
10636
10637 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10638
10639         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10640
10641 2011-11-20  Bruno Haible  <bruno@clisp.org>
10642
10643         fma tests: Avoid shadowing local variables.
10644         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10645         expected.
10646
10647 2011-11-20  Bruno Haible  <bruno@clisp.org>
10648
10649         copysignf tests: Fix.
10650         * tests/test-copysignf.c: Fix signature check.
10651
10652 2011-11-20  Bruno Haible  <bruno@clisp.org>
10653
10654         fma: Remove unused code.
10655         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10656         unused macros.
10657
10658 2011-11-20  Bruno Haible  <bruno@clisp.org>
10659
10660         sethostname: Fix doc about AIX.
10661         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10662         sethostname; it has it.
10663
10664         sethostname: Mention more portability problems.
10665         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10666         problem.
10667         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10668
10669 2011-11-19  Bruno Haible  <bruno@clisp.org>
10670
10671         Depend on module fcntl-h when AT_FDCWD is used.
10672         * modules/utimens (Depends-on): Add fcntl-h.
10673         * modules/areadlinkat (Depends-on): Likewise.
10674         * modules/areadlinkat-with-size (Depends-on): Likewise.
10675         * modules/faccessat (Depends-on): Likewise.
10676         * modules/fchmodat (Depends-on): Likewise.
10677         * modules/fchownat (Depends-on): Likewise.
10678         * modules/getcwd (Depends-on): Likewise.
10679         * modules/mkdirat (Depends-on): Likewise.
10680         * modules/mkfifoat (Depends-on): Likewise.
10681         * modules/readlinkat (Depends-on): Likewise.
10682         * modules/symlinkat (Depends-on): Likewise.
10683         * modules/dup2-tests (Depends-on): Likewise.
10684         * modules/fdutimensat-tests (Depends-on): Likewise.
10685         * modules/futimens-tests (Depends-on): Likewise.
10686
10687 2011-11-19  Bruno Haible  <bruno@clisp.org>
10688
10689         euidaccess: Update a comment.
10690         * lib/euidaccess.c: Update comment about platforms with faccessat.
10691
10692 2011-11-19  Bruno Haible  <bruno@clisp.org>
10693
10694         openat: Fix file list.
10695         * modules/openat (Files): Remove lib/at-func.c.
10696
10697 2011-11-19  Bruno Haible  <bruno@clisp.org>
10698
10699         fstatat: Simplify.
10700         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10701         gnulib should define rpl_fstatat, there is a
10702         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10703
10704 2011-11-19  Bruno Haible  <bruno@clisp.org>
10705
10706         Ensure 'inline' can be used in tests/test-utimens-common.h.
10707         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10708         * modules/futimens-tests (configure.ac): Likewise.
10709         * modules/utimens-tests (configure.ac): Likewise.
10710         * modules/utimensat-tests (configure.ac): Likewise.
10711
10712 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10713
10714         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10715         not hash_insert0.
10716         (hash_insert_if_absent): Doc fix.
10717
10718 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10719
10720         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10721
10722 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10723
10724         test-getcwd: disambiguate exit status
10725         * tests/test-getcwd.c (test_long_name): Return 0..7.
10726         (main): Exit with an unambiguous exit status.  The old
10727         code yielded a mysterious mixture of two failure codes.
10728
10729         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10730         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10731         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10732         rpl_fstatat or fstatat.  This should fix the other problem
10733         reported by Kai Habel in
10734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10735         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10737         and I reproduced it on a Solaris 8 host we still have in production.
10738
10739 2011-11-18  Jim Meyering  <meyering@redhat.com>
10740
10741         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10742         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10743         Add a sentence to the comment.
10744         (hash_insert0): New function that simply calls hash_insert_if_absent.
10745         * lib/hash.h (hash_insert_if_absent): Declare it.
10746         (hash_insert0): Add deprecation attribute.
10747         (_GL_ATTRIBUTE_DEPRECATED): Define.
10748         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10749         not hash_insert0.
10750         * NEWS: Mention it, even though it's not really an incompatible change.
10751
10752 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10753
10754         openat: avoid compilation failure due to lack of <errno.h> inclusion
10755         * lib/openat.c: Include <errno.h>.
10756
10757 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10758
10759         * modules/getcwd (Depends-on): Add fdopendir.
10760         This fixes one of the two problems reported by Kai Habel in
10761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10762
10763         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10764         stdalign problem reported by Ian Beckwith in
10765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10766         * modules/crypto/gc-arcfour (Depends-on):
10767         Depend conditionally on crypto/arcfour.
10768         * modules/crypto/gc-arctwo (Depends-on):
10769         Depend conditionally on crypto/arctwo.
10770         * modules/crypto/gc-des (Depends-on):
10771         Depend conditionally on crypto/des.
10772         * modules/crypto/gc-hmac-md5 (Depends-on):
10773         Depend conditionally on crypto/hmac-md5.
10774         * modules/crypto/gc-hmac-sha1 (Depends-on):
10775         Depend conditionally on crypto/hmac-sha1.
10776         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10777         * modules/crypto/gc-md4 (Depends-on):
10778         Depend conditionally on crypto/md4.
10779         * modules/crypto/gc-md5 (Depends-on):
10780         Depend conditionally on crypto/md5.
10781         * modules/crypto/gc-rijndael (Depends-on):
10782         Depend conditionally on crypto/rijndael.
10783         * modules/crypto/gc-sha1 (Depends-on):
10784         Depend conditionally on crypto/sha1.
10785         * modules/crypto/gc-arcfour:
10786         * modules/crypto/gc-arctwo:
10787         * modules/crypto/gc-des:
10788         * modules/crypto/gc-hmac-md5:
10789         * modules/crypto/gc-hmac-sha1:
10790         * modules/crypto/gc-md2:
10791         * modules/crypto/gc-md4:
10792         * modules/crypto/gc-md5:
10793         * modules/crypto/gc-rijndael:
10794         * modules/crypto/gc-sha1:
10795         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10796         now that the conditional dependencies do the work for us.
10797
10798 2011-11-17  Jim Meyering  <meyering@redhat.com>
10799
10800         tests: factor st_ctime-comparison out of two headers
10801         * tests/test-utimens-common.h (ctime_compare): Define.
10802         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10803         * tests/test-lutimens.h (test_lutimens): Likewise.
10804         * tests/test-utimens.h (test_utimens): Likewise.
10805
10806         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10807         Invoke the test program via an init.sh-using wrapper.
10808         * tests/test-getcwd.sh: New file.
10809         * modules/getcwd-tests (Files): Add it.
10810         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10811
10812 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10813
10814         gitlog-to-changelog: support multi-author commits.
10815         The FSF cares about keeping track of all authors of patches to its
10816         projects, but Git doesn't provide obvious support for multi-author
10817         changesets. Consensus seems to be forming around the use of extra
10818         Signed-off-by inspired lines in the log message formatted as
10819         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10820         multi-author commits between version control systems.
10821         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10822         log message and output in standard ChangeLog multi-author format.
10823         Reported by Peter Rosin <peda@lysator.liu.se>
10824
10825 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10826             Bruno Haible  <bruno@clisp.org>
10827
10828         Fix some modules' file list.
10829         * modules/fstatat (Files): Add m4/lstat.m4.
10830         * modules/openat (Files): Likewise.
10831         * modules/unlinkat (Files): Likewise.
10832
10833 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10834
10835         maint.mk: fix tight-scope.mk generation in VPATH builds.
10836         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10837         reference with $(srcdir) so that the file is found correctly even
10838         when running `make syntax-check' in a VPATH build.
10839
10840 2011-11-13  Bruno Haible  <bruno@clisp.org>
10841             Jim Meyering  <meyering@redhat.com>
10842
10843         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10844         * tests/init.sh (compare): Remove "No differences encountered" or
10845         synonymous output from the 'diff' program.
10846
10847 2011-11-13  Bruno Haible  <bruno@clisp.org>
10848
10849         Makefile: Tweak indentation.
10850         * Makefile: Use tab as first character in every line that contains rule
10851         commands.
10852
10853 2011-11-13  Bruno Haible  <bruno@clisp.org>
10854
10855         Syntax check for copyright statements.
10856         * check-copyright: New file.
10857         * Makefile (sc_check_copyright): New rule.
10858
10859 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10860
10861         * build-aux/git-version-gen: Add --prefix to configure the tag
10862         match string.
10863
10864 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10865
10866         * build-aux/git-version-gen: Add --help and --version.
10867
10868 2011-11-12  Jim Meyering  <meyering@redhat.com>
10869
10870         revamp the other test-exclude?.sh scripts to use init.sh, too
10871         * tests/test-exclude1.sh: Use init.sh.
10872         * tests/test-exclude2.sh: Likewise.
10873         * tests/test-exclude3.sh: Likewise.
10874         * tests/test-exclude4.sh: Likewise.
10875         * tests/test-exclude5.sh: Likewise.
10876         * tests/test-exclude6.sh: Likewise.
10877         * tests/test-exclude7.sh: Likewise.
10878         * tests/test-exclude8.sh: Likewise.
10879         * modules/exclude-tests (Files): List init.sh.
10880
10881         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10882         These shell scripts ignored failure of the binary test-exclude,
10883         so making the latter return 77 didn't cause them to be skipped.
10884         * tests/test-exclude5.sh: Exit with test-exclude's error status
10885         when that program fails.  Revamp to use init.sh.
10886         * tests/test-exclude2.sh: Likewise.
10887
10888         test-exclude: fix a typo
10889         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10890
10891 2011-11-11  Bruno Haible  <bruno@clisp.org>
10892
10893         obstack: Fix compilation error on MSVC 9.
10894         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10895
10896 2011-11-11  Jim Meyering  <meyering@redhat.com>
10897
10898         test-exclude: skip tests rather than failing on deficient systems
10899         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10900         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10901         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10902         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10903
10904 2011-11-10  Bruno Haible  <bruno@clisp.org>
10905
10906         ptsname_r test: Avoid gcc warning on glibc systems.
10907         * tests/test-ptsname_r.c (null_ptr): New function.
10908         (test_errors): Use it.
10909
10910 2011-11-10  Bruno Haible  <bruno@clisp.org>
10911
10912         ptsname_r: Avoid compilation error on OSF/1 5.1.
10913         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10915         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10916         function is not declared or incompatibly declared.
10917         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10918         * modules/ptsname_r (Depends-on, configure.ac): Update.
10919         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10920
10921 2011-11-10  Bruno Haible  <bruno@clisp.org>
10922
10923         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10924         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10925         When cross-compiling, guess yes on all platforms except AIX.
10926         Reported by Ludovic Courtès <ludo@gnu.org>.
10927
10928 2011-11-09  Bruno Haible  <bruno@clisp.org>
10929
10930         ptsname_r tests: Fix bugs.
10931         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10932         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10933
10934 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10935
10936         fstatat: work with cross-compilation
10937         Problem reported by Ludovic Courtès in
10938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10939         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10940         "cross-compiling" and assume the bug is present.  Replace
10941         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10942         an inverted sense, to be more conservative about our assumptions.
10943         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10944
10945 2011-11-09  Bruno Haible  <bruno@clisp.org>
10946
10947         Improve MODULES.html output.
10948         * modules/mkfifoat (Description): Use the word "function".
10949         * modules/readlinkat (Description): Likewise.
10950         * modules/symlinkat (Description): Likewise.
10951
10952 2011-11-09  Eric Blake  <eblake@redhat.com>
10953
10954         ptsname_r-tests: new test module
10955         * modules/ptsname_r-tests: New module.
10956         * tests/test-ptsname_r.c: New file.
10957
10958         ptsname_r: new module
10959         * modules/ptsname_r: New module.
10960         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10961         * lib/ptsname.c (__ptsname_r): Split...
10962         * lib/ptsname_r.c: ...into new file.
10963         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10964         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10965         * modules/stdlib (Makefile.am): Substitute witnesses.
10966         * lib/stdlib.in.h (ptsname_r): Declare it.
10967         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10968         * MODULES.html.sh (Misc): Likewise.
10969         * modules/ptsname (Depends-on): Alter dependency.
10970         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10971
10972 2011-11-09  Jim Meyering  <meyering@redhat.com>
10973
10974         announce-gen: be more concise when there's only one URL+tarball
10975         * build-aux/announce-gen (get_tool_versions): When you distribute
10976         only one type of tarball, combine the first two "Here are..."
10977         sections and make the key-checking grammar independent of
10978         how many tarballs there are.
10979
10980 2011-11-09  Eric Blake  <eblake@redhat.com>
10981
10982         openpty: provide a stub on mingw
10983         * lib/pty.in.h (includes): Provide forward declarations.
10984         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10985
10986         raise: fix mingw handling of SIGPIPE
10987         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10988
10989 2011-11-08  Bruno Haible  <bruno@clisp.org>
10990
10991         More conditional dependencies.
10992         * modules/faccessat (Depends-on): Add conditions.
10993         * modules/fchmodat (Depends-on): Likewise.
10994         * modules/fchownat (Depends-on): Likewise.
10995         * modules/fstatat (Depends-on): Likewise.
10996         * modules/mkfifoat (Depends-on): Likewise.
10997         * modules/readlinkat (Depends-on): Likewise.
10998         * modules/symlinkat (Depends-on): Likewise.
10999         * modules/unlinkat (Depends-on): Likewise.
11000         * modules/utimensat (Depends-on): Likewise.
11001         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11002         * modules/linkat (Depends-on): Refine the conditions.
11003         * modules/renameat (Depends-on): Likewise.
11004
11005 2011-11-08  Bruno Haible  <bruno@clisp.org>
11006
11007         faccessat: Move AC_LIBOBJ invocation to module description.
11008         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11009         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11010         invocation from here...
11011         * modules/faccessat (configure.ac): ... to here. Invoke
11012         gl_PREREQ_FACCESSAT.
11013
11014 2011-11-08  Bruno Haible  <bruno@clisp.org>
11015
11016         faccessat: Simplify autoconf macro.
11017         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11018         gl_FUNC_EUIDACCESS.
11019
11020 2011-11-08  Bruno Haible  <bruno@clisp.org>
11021
11022         renameat: Fix dependencies.
11023         * modules/renameat (Depends-on): Add stdbool.
11024
11025 2011-11-08  Bruno Haible  <bruno@clisp.org>
11026
11027         mkfifoat: Fix module description.
11028         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11029         not gl_UNISTD_MODULE_INDICATOR.
11030
11031 2011-11-08  Bruno Haible  <bruno@clisp.org>
11032
11033         fstatat: Remove unused dependency.
11034         * modules/fstatat (Depends-on): Remove fstat.
11035
11036 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11037
11038         GNUmakefile: behave when Makefile is missing.
11039         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11040
11041 2011-11-08  Bruno Haible  <bruno@clisp.org>
11042
11043         openat: Conditionalize dependencies.
11044         * lib/openat.c: Reduce the scope of some #includes.
11045         * modules/openat (Depends-on): Add conditions.
11046
11047 2011-11-07  Jim Meyering  <meyering@redhat.com>
11048
11049         maint.mk: extract GPG key ID without using a temporary file
11050         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11051         without using a temporary file.  Based on a suggestion from Werner Koch
11052         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11053
11054 2011-11-07  Eric Blake  <eblake@redhat.com>
11055
11056         grantpt: fix typo
11057         * lib/stdlib.in.h (grantpt): Check correct function.
11058
11059         maint.mk: silence new syntax check
11060         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11061
11062 2011-11-06  Bruno Haible  <bruno@clisp.org>
11063
11064         Doc about floating-point and math API.
11065         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11066         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11067
11068 2011-11-06  Bruno Haible  <bruno@clisp.org>
11069
11070         stdalign tests: Skip the test when compiled by Sun C.
11071         * tests/test-stdalign.c (main): Skip the test on Sun C.
11072
11073 2011-11-06  Bruno Haible  <bruno@clisp.org>
11074
11075         ansi-c++-opt: Complete the 2011-06-05 change.
11076         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11077         does not support namespaces, set the variable to "no", not to ":".
11078
11079 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11080
11081         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11082
11083 2011-11-06  Bruno Haible  <bruno@clisp.org>
11084
11085         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11086         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11087         (minus_zerol) [HP-UX]: New macro.
11088         (unary_minus) [HP-UX]: New function.
11089         (copysignl) [HP-UX]: Use unary_minus function.
11090
11091 2011-11-06  Bruno Haible  <bruno@clisp.org>
11092
11093         ldexp, ldexpf, ldexpl: Enhance tests.
11094         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11095         and tests/test-ldexpl.c.
11096         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11097         LDEXP, MIN_EXP, MAX_EXP): New macros.
11098         Include test-ldexp.h.
11099         (main): Just call test_function.
11100         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11101         infinity.h, nan.h.
11102         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11103         MAX_EXP): New macros.
11104         Include test-ldexp.h.
11105         (x, y): Remove variables.
11106         (main): Just call test_function.
11107         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11108         infinity.h, nan.h.
11109         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11110         MAX_EXP): New macros.
11111         Include test-ldexp.h.
11112         (x, y): Remove variables.
11113         (main): Just call test_function.
11114         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11115         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11116         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11117         (Depends-on): Add isnand-nolibm, signbit, float.
11118         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11119         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11120         (Depends-on): Add isnanf-nolibm, signbit, float.
11121
11122 2011-11-06  Bruno Haible  <bruno@clisp.org>
11123
11124         math tests: Cosmetics.
11125         * tests/test-math-c++.cc: Reorder declarations.
11126
11127 2011-11-05  Bruno Haible  <bruno@clisp.org>
11128
11129         fma*: Simplify test.
11130         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11131         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11132
11133         Tests for module 'fmal'.
11134         * modules/fmal-tests: New file.
11135         * tests/test-fmal1.c: New file.
11136         * tests/test-fmal2.c: New file.
11137
11138         New module 'fmal'.
11139         * lib/math.in.h (fmal): New declaration.
11140         * lib/fmal.c: New file.
11141         * m4/fmal.m4: New file.
11142         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11144         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11145         REPLACE_FMAL.
11146         * modules/fmal: New file.
11147         * doc/posix-functions/fmal.texi: Mention the new module and the various
11148         bugs.
11149
11150         Tests for module 'fmaf'.
11151         * modules/fmaf-tests: New file.
11152         * tests/test-fmaf1.c: New file.
11153         * tests/test-fmaf2.c: New file.
11154
11155         New module 'fmaf'.
11156         * lib/math.in.h (fmaf): New declaration.
11157         * lib/fmaf.c: New file.
11158         * m4/fmaf.m4: New file.
11159         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11161         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11162         REPLACE_FMAF.
11163         * modules/fmaf: New file.
11164         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11165         bugs.
11166
11167         Tests for module 'fma'.
11168         * modules/fma-tests: New file.
11169         * tests/test-fma1.c: New file.
11170         * tests/test-fma1.h: New file.
11171         * tests/test-fma2.c: New file.
11172         * tests/test-fma2.h: New file.
11173
11174         New module 'fma'.
11175         * lib/math.in.h (fma): New declaration.
11176         * lib/fma.c: New file.
11177         * m4/fma.m4: New file.
11178         * m4/fegetround.m4: New file.
11179         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11181         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11182         REPLACE_FMA.
11183         * modules/fma: New file.
11184         * doc/posix-functions/fma.texi: Mention the new module and the various
11185         bugs.
11186
11187         Extend gl_MATHFUNC.
11188         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11189         Support 'void' as argument type.
11190         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11191
11192 2011-11-05  Jim Meyering  <meyering@redhat.com>
11193
11194         maint.mk: also prohibit inclusion of dirent.h without use
11195         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11196
11197 2011-11-05  Bruno Haible  <bruno@clisp.org>
11198
11199         ldexpl tests: Avoid test failure on MSVC 9.
11200         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11201         value. Needed in order to enforce the conversion from a value greater
11202         than LDBL_MAX to Infinity.
11203
11204 2011-11-05  Bruno Haible  <bruno@clisp.org>
11205
11206         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11207         * modules/at-internal: New file, extracted from modules/openat.
11208         * modules/openat-h: New file.
11209         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11210         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11211         * modules/openat (Description): Add reference to POSIX function.
11212         (Files): Remove lib/openat.h, lib/openat-proc.c.
11213         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11214         intprops, unistd.
11215         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11216         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11217         gl_FCNTL_MODULE_INDICATOR.
11218         (Include): Remove unistd.h, openat.h.
11219         * modules/areadlinkat (Files): Add lib/at-func.c.
11220         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11221         openat-die, openat-h, save-cwd.
11222         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11223         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11224         openat-die, openat-h, save-cwd, unistd.
11225         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11226         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11227         openat-h, save-cwd. Remove fcntl-h, openat.
11228         * modules/fchmodat (Files): Remove lib/openat.h.
11229         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11230         openat, stdbool, unistd.
11231         * modules/fchownat (Files): Remove lib/openat.h.
11232         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11233         openat, stdbool, sys_stat.
11234         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11235         lib/openat-proc.c.
11236         (Depends-on): Add at-internal.
11237         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11238         * modules/fstatat (Files): Remove lib/openat.h.
11239         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11240         stdbool, unistd.
11241         * modules/fts (Depends-on): Add openat-h.
11242         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11243         openat.
11244         * modules/mkdirat (Files): Remove lib/openat.h.
11245         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11246         openat, stdbool, sys_stat.
11247         * modules/mkfifoat (Files): Add lib/at-func.c.
11248         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11249         openat-h, save-cwd. Remove fcntl-h, openat.
11250         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11251         * modules/readlinkat (Files): Add lib/at-func.c.
11252         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11253         openat-h, save-cwd. Remove fcntl-h, openat.
11254         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11255         openat.
11256         * modules/selinux-at (Files): Add lib/at-func.c.
11257         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11258         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11259         * modules/symlinkat (Files): Add lib/at-func.c.
11260         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11261         openat-h, save-cwd. Remove fcntl-h, openat.
11262         * modules/unlinkat (Files): Remove lib/openat.h.
11263         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11264         stdbool.
11265         * modules/utimensat (Files): Add lib/at-func.c.
11266         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11267         openat-die, openat-h, save-cwd.
11268         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11269         * modules/fdutimensat-tests (Depends-on): Add openat.
11270         * modules/fstatat-tests (Depends-on): Add openat-h.
11271         * modules/readlinkat-tests (Depends-on): Add openat.
11272         * modules/symlinkat-tests (Depends-on): Add openat.
11273
11274 2011-11-05  Bruno Haible  <bruno@clisp.org>
11275
11276         openat: Include <stdbool.h>.
11277         * lib/openat.c: Include <stdbool.h>.
11278
11279 2011-11-04  Bruno Haible  <bruno@clisp.org>
11280
11281         fchownat, renameat, unlinkat: Fix dependencies.
11282         * modules/fchownat (Depends-on): Add fstatat.
11283         * modules/renameat (Depends-on): Likewise.
11284         * modules/unlinkat (Depends-on): Likewise.
11285
11286 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11287
11288         openat: remove direct dependency on dirent
11289         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11290         and hasn't been needed ever since fdopendir was split into its own
11291         module on 2009-08-31.
11292         * modules/openat (Depends-on): Remove dirent.
11293
11294 2011-11-04  Bruno Haible  <bruno@clisp.org>
11295
11296         renameat: Optimize code size.
11297         * modules/renameat (configure.ac): Don't compile at-func2.c if
11298         REPLACE_RENAMEAT is 1.
11299
11300 2011-11-04  Bruno Haible  <bruno@clisp.org>
11301
11302         openat tests: Fix file list.
11303         * modules/openat-tests (Files): Add tests/test-open.h.
11304
11305 2011-11-04  Bruno Haible  <bruno@clisp.org>
11306
11307         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11308         * modules/fchmodat (Depends-on): Add openat-die.
11309         * modules/fchownat (Depends-on): Likewise.
11310         * modules/linkat (Depends-on): Likewise.
11311         * modules/renameat (Depends-on): Likewise.
11312         * modules/openat (Depends-on): Add dirent.
11313
11314 2011-11-04  Jim Meyering  <meyering@redhat.com>
11315
11316         at-func*.c: fix comments
11317         * lib/at-func2.c: Correct/improve first-line comment.
11318         * lib/at-func.c: Correct grammar in first-line comment.
11319
11320 2011-11-04  Bruno Haible  <bruno@clisp.org>
11321
11322         New module 'mkdirat', split off from module 'openat'.
11323         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11324         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11325         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11326         * modules/mkdirat: New file, extracted from modules/openat.
11327         * modules/openat (Files): Remove lib/mkdirat.c.
11328         (Depends-on): Remove mkdir.
11329         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11330         (Include): Remove <sys/stat.h>.
11331         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11332         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11333         tests/test-mkdir.h.
11334         (Depends-on): Remove ignore-value.
11335         (Makefile.am): Remove rules for test-mkdirat.
11336         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11337         of module 'openat'.
11338         * NEWS: Mention the change.
11339
11340 2011-11-04  Bruno Haible  <bruno@clisp.org>
11341
11342         closedir: Avoid warning on mingw.
11343         * lib/closedir.c: Include <unistd.h>.
11344
11345 2011-11-04  Bruno Haible  <bruno@clisp.org>
11346
11347         New module 'fstatat', split off from module 'openat'.
11348         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11349         defined.
11350         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11351         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11352         gl_FUNC_FSTATAT.
11353         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11354         * modules/fstatat: New file, extracted from modules/openat.
11355         * modules/openat (Files): Remove lib/fstatat.c.
11356         (Depends-on): Remove lstat.
11357         (configure.ac): Remove AC_LIBOBJ of fstatat.
11358         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11359         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11360         tests/test-lstat.h, tests/test-stat.h.
11361         (Depends-on): Remove getcwd-lgpl.
11362         (Makefile.am): Remove rules for test-fstatat.
11363         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11364         of module 'openat'.
11365         * NEWS: Mention the change.
11366         * modules/getcwd (Depends-on): Add fstatat.
11367         * modules/linkat (Depends-on): Likewise.
11368         * modules/mkfifoat-tests (Depends-on): Likewise.
11369         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11370
11371 2011-11-03  Bruno Haible  <bruno@clisp.org>
11372
11373         New module 'unlinkat', split off from module 'openat'.
11374         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11375         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11376         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11377         * modules/unlinkat: New file, extracted from modules/openat. Correct
11378         the dependency conditions.
11379         * modules/openat (Files): Remove lib/unlinkat.c.
11380         (Depends-on): Remove rmdir, unlink.
11381         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11382         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11383         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11384         tests/test-rmdir.h, tests/test-unlink.h.
11385         (Depends-on): Remove unlinkdir.
11386         (Makefile.am): Remove rules for test-unlinkat.
11387         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11388         of module 'openat'.
11389         * NEWS: Mention the change.
11390         * modules/linkat-tests (Depends-on): Add unlinkat.
11391         * modules/mkfifoat-tests (Depends-on): Likewise.
11392         * modules/readlinkat-tests (Depends-on): Likewise.
11393
11394 2011-11-02  Bruno Haible  <bruno@clisp.org>
11395
11396         New module 'fchmodat', split off from module 'openat'.
11397         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11398         defined.
11399         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11400         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11401         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11402         * modules/fchmodat: New file, extracted from modules/openat.
11403         * modules/openat (Files): Remove lib/fchmodat.c.
11404         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11405         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11406         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11407         (Makefile.am): Remove rules for test-fchmodat.
11408         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11409         of module 'openat'.
11410         * NEWS: Mention the change.
11411
11412 2011-11-02  Jim Meyering  <meyering@redhat.com>
11413
11414         putenv: indent #definition of "environ" to placate cppi
11415         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11416
11417         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11418         Git logs are often treated as immutable, because editing them
11419         changes the SHA1 checksums of all descendants.  Thus, errors in
11420         git logs tend to stay there forever.  However, when we generate
11421         a ChangeLog file -- typically for distribution -- from that git log,
11422         we can actually make corrections in the generated file.  The key
11423         lies in recording in machine-readable/applicable form the desired
11424         corrections.  See --help for description and an example.
11425         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11426         (usage): Describe it; alphabetize option descriptions.
11427         (main): Honor the new option, carefully.
11428
11429 2011-11-01  Jim Meyering  <meyering@redhat.com>
11430
11431         gitlog-to-changelog: avoid an infloop
11432         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11433         that ends up being empty.
11434
11435 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11436
11437         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11438         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11439         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11440         contains (possibly-quoted) backslashes.  This should avoid
11441         all-too-common shell bugs if COMPLICATED contains backslashes in
11442         the "wrong" places.  Reported by David Evans in
11443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11444         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11445         because we want ASCII ranges.  Is there some reason we don't use
11446         the C locale everywhere in this script?
11447         (func_module, top level): Avoid unwanted pathname expansion when
11448         $repo_url_prefix or $repo_url_suffix_repl contain shell
11449         metacharacters like '?' and '*'.
11450
11451 2011-11-01  Bruno Haible  <bruno@clisp.org>
11452
11453         fchownat: Improve description.
11454         * modules/fchownat (Description): Add link to function.
11455
11456 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11457
11458         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11459         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11461         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11462
11463 2011-11-01  Bruno Haible  <bruno@clisp.org>
11464
11465         alignof: Avoid collision with stdalign module.
11466         * lib/alignof.h (alignof): Remove macro.
11467         * NEWS: Mention the change.
11468         Reported by Paul Eggert.
11469
11470 2011-11-01  Bruno Haible  <bruno@clisp.org>
11471
11472         New module 'fchownat', split off from module 'openat'.
11473         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11474         defined.
11475         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11476         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11477         invoke gl_FUNC_FCHOWNAT.
11478         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11479         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11480         * modules/fchownat: New file, extracted from modules/openat.
11481         * modules/openat (Files): Remove lib/fchownat.c.
11482         (Depends-on): Remove lchown.
11483         (configure.ac): Remove AC_LIBOBJ of fchownat.
11484         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11485         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11486         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11487         (Depends-on): Remove mgetgroups, usleep, stat-time.
11488         (configure.ac): Remove test for getegid.
11489         (Makefile.am): Remove rules for test-fchownat.
11490         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11491         of module 'openat'.
11492         * NEWS: Mention the change.
11493
11494 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11495
11496         stdalign: port better to MSVC and to Sun C 5.11
11497         This fixes some of the problems reported by Bruno Haible in
11498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11499         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11500         shortcomings of MSVC and of Sun C 5.11.
11501         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11502         around __declspec arg.
11503         * modules/stdalign-tests (Files): Add tests/macros.h.
11504         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11505         Include macros.h, for ASSERT.
11506         (DECLARE_ALIGNED): Remove.
11507         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11508         to catch bug), and to 1 if not (simplifies the rest of the code).
11509         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11510         (CHECK_AUTO): Remove.
11511         (CHECK_ALIGNED): Check only the alignment of the static vars,
11512         since auto var alignment isn't supported by Sun C 5.11.
11513         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11514         ASSERT failures are easier to diagnose.
11515
11516 2011-10-31  Bruno Haible  <bruno@clisp.org>
11517
11518         doc about some IRIX 5.3 problems.
11519         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11520         on IRIX 5.3.
11521         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11522         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11523         5.3.
11524         * doc/posix-functions/grantpt.texi: Likewise.
11525         * doc/posix-functions/unlockpt.texi: Likewise.
11526         * doc/posix-functions/lgamma.texi: Likewise.
11527         * doc/posix-functions/nextafter.texi: Likewise.
11528         * doc/posix-functions/remainder.texi: Likewise.
11529         * doc/posix-functions/select.texi: Mention misplaced declaration on
11530         IRIX 5.3.
11531         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11532
11533 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11534
11535         gitlog-to-changelog: fix git-log invocation.
11536         git-log mishandles date strings before 1970-01-01 UTC, and there is
11537         no use to specify --since=1970-01-01 by default anyway.
11538         * build-aux/gitlog-to-changelog: By default, when no --since option
11539         was given, do not specify explicit --since option to git-log.
11540
11541 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11542
11543         gitlog-to-changelog: new option --append-dot.
11544         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11545         first non-blank line of each commit message terminated with a dot.
11546
11547 2011-10-30  Bruno Haible  <bruno@clisp.org>
11548
11549         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11550         * lib/ffsl.h: Include <config.h>.
11551         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11552
11553 2011-10-30  Jim Meyering  <meyering@redhat.com>
11554
11555         GNUmakefile: reenable "make syntax-check" for most projects
11556         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11557         build-aux variable", "syntax-check" would do nothing but succeed with
11558         the "No version control files detected..." diagnostic (unless you
11559         happened to override _build-aux via cfg.mk).
11560         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11561         to precede inclusion of maint.mk.  Otherwise, these variables would
11562         be used undefined in any project that does not override the default.
11563
11564 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11565
11566         gitlog-to-changelog: treat a message with only blank lines as empty.
11567         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11568         trailing blank lines before the code that issues a warning about an
11569         empty commit message.
11570
11571 2011-10-30  Jim Meyering  <meyering@redhat.com>
11572
11573         test-parse-datetime.c: avoid new DST-related false positive test failure
11574         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11575         based on the time/date we'll convert, not the current time.
11576         Otherwise, the moment we cross a DST boundary like today's in
11577         Europe, (CEST to CET), that offset ends up being one hour off.
11578
11579 2011-10-27  Bruno Haible  <bruno@clisp.org>
11580
11581         fstat: Tweak documentation.
11582         * modules/fstat (Description): More precise description.
11583
11584 2011-10-27  Bruno Haible  <bruno@clisp.org>
11585
11586         Update documentation regarding 'largefile' module.
11587         * doc/posix-functions/fstat.texi: Tweak wording.
11588         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11589         problems with huge directories and/or small ino_t types.
11590         * doc/posix-functions/readdir.texi: Likewise.
11591         * doc/posix-functions/rewinddir.texi: Likewise.
11592
11593 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11594
11595         maint.mk: don't maintain a second build-aux variable.
11596         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11597         depends on GNUmakefile, which already maintains a cfg.mk
11598         overridable $(_build-aux) for projects with a non-standard
11599         build-aux directory location, although without the $(srcdir)
11600         prefix.  Use that variable consistently instead of introducing a
11601         second one.  Adjust all call sites.
11602
11603 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11604
11605         Add stdalign module and use it in other modules.
11606         This is based on a previous proposal by Bruno Haible
11607         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11608
11609         stdalign: new module
11610         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11611         * modules/stdalign: New files.
11612         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11613         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11614
11615         stdalign-tests: new module
11616         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11617
11618         argp: use stdalign
11619         * lib/argp-parse.c: Include <stdalign.h>.
11620         (alignof): Remove.
11621         * modules/argp (Depends-on): Add stdalign.
11622
11623         crypto libraries: use stdalign
11624         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11625         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11626         Do not include <stdlib.h> twice, in md4.c.
11627         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11628         because we are accessing a pointer's bit-pattern, not a size.
11629         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11630         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11631         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11632         * modules/crypto/sha512: Likewise.
11633
11634         sys_socket: use stdalign, not alignof
11635         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11636         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11637
11638 2011-10-27  Bruno Haible  <bruno@clisp.org>
11639
11640         raise test: Avoid a test failure on Linux/MIPS.
11641         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11642         because 99 is a valid signal on Linux/MIPS.
11643
11644 2011-10-27  Bruno Haible  <bruno@clisp.org>
11645
11646         nonblocking tests: Fix test failure on Linux/MIPS.
11647         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11648         Set to 270000.
11649
11650 2011-10-27  Bruno Haible  <bruno@clisp.org>
11651
11652         utimensat: Work around problem on Linux/hppa.
11653         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11654         values.
11655         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11656
11657 2011-10-25  Jim Meyering  <meyering@redhat.com>
11658
11659         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11660         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11661         after symbols like NULL, size_t, etc.
11662         Reported by Alfred M. Szmidt.
11663
11664         maint.mk: exempt ENODATA from a syntax-check rule
11665         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11666         from the sc_prohibit_always-defined_macros syntax-check rule.
11667         Add a comment.  See this for more details:
11668         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11669
11670 2011-10-23  Jim Meyering  <meyering@redhat.com>
11671
11672         fts: close parent dir FD before returning from post-traversal fts_read
11673         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11674         unlink A, even though an FD open on A remained.  This is suboptimal
11675         (holding a file descriptor open longer than needed), but otherwise not
11676         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11677         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11678         that represents a real problem: it causes the removal of A to fail
11679         with e.g., "rm: cannot remove `A': Device or resource busy"
11680
11681         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11682         directory file descriptors.  After completing the final, FTS_DP,
11683         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11684         cache, but then proceeded to add a new FD to it via the subsequent
11685         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11686         final file descriptor would be closed only via fts_close's call to
11687         fd_ring_clear.  Now, it is usually closed earlier, via the final
11688         FTS_DP-returning fts_read call.
11689         * lib/fts.c (restore_initial_cwd): New function, converted from
11690         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11691         Update callers.
11692         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11693         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11694
11695 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11696             Bruno Haible  <bruno@clisp.org>
11697             Jim Meyering  <jim@meyering.net>
11698
11699         readme-release: improve safety of release prep instructions.
11700         * README-release: Don't git pull all branches when only master
11701         is needed for the release process.
11702         Run make maintainer-clean before changing trees and merging.
11703         Don't try to run ./configure right after git pull in case files
11704         that influence the bootstrap process have changed, move the
11705         ./configure step to after running ./bootstrap.
11706         Don't bootstrap "one last time"... it's the first time!
11707
11708 2011-10-22  Bruno Haible  <bruno@clisp.org>
11709
11710         errno, strerror-override: Support for MSVC 10.
11711         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11712         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11713         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11714         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11715         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11716         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11717         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11718         Assign values compatible with MSVC 10.
11719         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11720         New macros.
11721         (GNULIB_defined_EWINSOCK): New macro.
11722         * lib/strerror-override.c (strerror_override): Update accordingly.
11723         * lib/strerror-override.h: Likewise.
11724         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11725         longer equal to the corresponding errno value.
11726         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11727
11728 2011-10-22  Bruno Haible  <bruno@clisp.org>
11729
11730         perror: Recognize when test program crashes.
11731         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11732         strerror, set gl_cv_func_perror_works to no.
11733         Reported by Daniel Richard G. <skunk@iskunk.org>.
11734
11735         perror: Fix indentation.
11736         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11737
11738 2011-10-22  Bruno Haible  <bruno@clisp.org>
11739
11740         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11741         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11742         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11743         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11744         functions, not as a macro.
11745         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11746         macros.
11747         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11748         absence of macro.
11749         Suggested by Eric Blake.
11750         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11751
11752 2011-10-21  Bruno Haible  <bruno@clisp.org>
11753
11754         relocatable-prog-wrapper: Don't leave object files behind.
11755         * build-aux/install-reloc: Re-synchronize list of .o files to be
11756         removed with list of compilation units.
11757
11758 2011-10-20  Bruno Haible  <bruno@clisp.org>
11759
11760         openpty, posix_openpt: Remove code duplication.
11761         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11762         * lib/openpty.c: Include <stdlib.h>.
11763         (openpty): Use posix_openpt on all platforms except IRIX.
11764         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11765
11766 2011-10-20  Bruno Haible  <bruno@clisp.org>
11767
11768         unlockpt: Detect invalid argument.
11769         * lib/unlockpt.c: Include <fcntl.h>.
11770         (unlockpt): Check whether fd is valid, using fcntl().
11771         * modules/unlockpt (Depends-on): Add fcntl-h.
11772
11773 2011-10-20  Bruno Haible  <bruno@clisp.org>
11774
11775         openpty: Avoid compilation error on AIX 6.1.
11776         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11777
11778 2011-10-20  Bruno Haible  <bruno@clisp.org>
11779
11780         posix_openpt: Support for OpenBSD.
11781         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11782         (posix_openpt) [OpenBSD]: New code.
11783         * lib/grantpt.c: Include <fcntl.h>.
11784         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11785         * modules/grantpt (Depends-on): Add fcntl-h.
11786
11787 2011-10-20  Bruno Haible  <bruno@clisp.org>
11788
11789         posix_openpt test: Coding style.
11790         * tests/test-posix_openpt.c: Use GNU coding style.
11791
11792 2011-10-20  Bruno Haible  <bruno@clisp.org>
11793
11794         grantpt: Support --avoid=pt_chown.
11795         * modules/grantpt (Files): Add lib/pty-private.h.
11796
11797 2011-10-20  Bruno Haible  <bruno@clisp.org>
11798
11799         posix_openpt: Fix autoconf macro.
11800         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11801         unneeded check for _getpty.
11802
11803 2011-10-20  Bruno Haible  <bruno@clisp.org>
11804
11805         openpty: Update comments.
11806         * lib/openpty.c: Add comments about Minix.
11807
11808 2011-10-19  Eric Blake  <eblake@redhat.com>
11809
11810         openpty: relax license
11811         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11812
11813         pt_chown: use configmake to simplify build
11814         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11815
11816         ptsname and others: relax license
11817         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11818         * modules/unlockpt (License): Likewise.
11819         * modules/pt_chown (License): Likewise.
11820         * modules/ptsname (License): Likewise.
11821         * modules/ttyname_r (License): Likewise.
11822
11823 2011-10-19  Jim Meyering  <meyering@redhat.com>
11824
11825         posix_openpt: remove spurious #endif
11826         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11827
11828 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11829
11830         maint.mk: Respect $(build_aux) in web-manual rule.
11831         * top/maint.mk (web-manual): Find gen-announce script in user's
11832         $(build_aux) directory instead of hard-coding 'build-aux'.
11833
11834 2011-10-19  Bruno Haible  <bruno@clisp.org>
11835
11836         posix_openpt: Fix compilation error.
11837         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11838         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11839         Mention the openpty module as an alternative.
11840
11841 2011-10-19  Bruno Haible  <bruno@clisp.org>
11842
11843         Support for old NeXTstep 3.3 frexp().
11844         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11845         execution time of the test to 5 seconds.
11846         Reported by Daniel Richard G. <skunk@iskunk.org>.
11847
11848 2011-10-19  Bruno Haible  <bruno@clisp.org>
11849
11850         Support for old NeXTstep 3.3 sed.
11851         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11852         part, use /.../, not \|...|. Escape periods in the header file name.
11853         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11854         Reported by Daniel Richard G. <skunk@iskunk.org>.
11855
11856 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11857
11858         Support for old NeXTstep 3.3 gcc.
11859         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11860         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11861         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11862         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11863         * lib/regex.h (_Restrict_arr_): Likewise.
11864         * lib/regex_internal.h (re_token_t): Likewise.
11865         * lib/regexec.c (check_node_accept_bytes): Likewise.
11866         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11867
11868 2011-10-18  Eric Blake  <eblake@redhat.com>
11869
11870         posix_openpt: new module
11871         * modules/posix_openpt: New module.
11872         * m4/posix_openpt.m4: New file.
11873         * lib/posix_openpt.c: Likewise.
11874         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11875         (gl_STDLIB_H_DEFAULTS): Set defaults.
11876         * modules/stdlib (Makefile.am): Substitute macros.
11877         * lib/stdlib.in.h (posix_openpt): Declare.
11878         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11879         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11880         * modules/posix_openpt-tests: New test module.
11881         * tests/test-posix_openpt.c: New test.
11882
11883 2011-10-15  Bruno Haible  <bruno@clisp.org>
11884
11885         xstrtoll: Fix compilation failure.
11886         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11887         from lib/strtol.c.
11888         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11889         some platforms.
11890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11891
11892 2011-10-15  Bruno Haible  <bruno@clisp.org>
11893
11894         vasnprintf: Optimize bit search operation.
11895         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11897         gl_DOUBLE_EXPONENT_LOCATION.
11898         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11899         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11900         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11901         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11902         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11903         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11904         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11905         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11906         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11907
11908 2011-10-15  Bruno Haible  <bruno@clisp.org>
11909
11910         vasnprintf: Fix comments.
11911         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11912
11913 2011-10-14  Bruno Haible  <bruno@clisp.org>
11914
11915         Tests for module 'integer_length_ll'.
11916         * modules/integer_length_ll-tests: New file.
11917         * tests/test-integer_length_ll.c: New file.
11918
11919         New module 'integer_length_ll'.
11920         * lib/integer_length_ll.c: New file.
11921         * modules/integer_length_ll: New file.
11922
11923 2011-10-14  Bruno Haible  <bruno@clisp.org>
11924
11925         Tests for module 'integer_length_l'.
11926         * modules/integer_length_l-tests: New file.
11927         * tests/test-integer_length_l.c: New file.
11928
11929         New module 'integer_length_l'.
11930         * lib/integer_length_l.c: New file.
11931         * modules/integer_length_l: New file.
11932
11933 2011-10-14  Bruno Haible  <bruno@clisp.org>
11934
11935         Tests for module 'integer_length'.
11936         * modules/integer_length-tests: New file.
11937         * tests/test-integer_length.c: New file.
11938
11939         New module 'integer_length'.
11940         * lib/integer_length.h: New file.
11941         * lib/integer_length.c: New file.
11942         * modules/integer_length: New file.
11943
11944 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11945
11946         popen: Fix dependency conditions.
11947         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11948
11949 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11950
11951         perror: Fix autoconf test.
11952         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11953         <stdlib.h> and <string.h>.
11954
11955 2011-10-14  Bruno Haible  <bruno@clisp.org>
11956
11957         ffsl: Optimize on 64-bit platforms.
11958         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11959         unrolling.
11960
11961 2011-10-13  Bruno Haible  <bruno@clisp.org>
11962
11963         ffsl: Optimize on 32-bit platforms.
11964         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11965         use ffs() without a loop.
11966
11967         ffsl, ffsll: Optimize for GCC.
11968         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11969         * lib/ffsl.c (GCC_BUILTIN): New macro.
11970         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11971
11972 2011-10-13  Bruno Haible  <bruno@clisp.org>
11973
11974         ffs, bcopy, memset: Support symbol renaming via config.h.
11975         * lib/ffs.c: Include <config.h>.
11976         * lib/bcopy.c: Likewise.
11977         * lib/memset.c: Likewise.
11978
11979 2011-10-10  Bruno Haible  <bruno@clisp.org>
11980
11981         atanl: Simplify for platforms where 'long double' == 'double'.
11982         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11983         alternative implementation.
11984         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11985         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11986         * modules/atanl (Depends-on): Add atan. Update conditions.
11987
11988 2011-10-10  Bruno Haible  <bruno@clisp.org>
11989
11990         acosl: Simplify for platforms where 'long double' == 'double'.
11991         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11992         alternative implementation.
11993         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11994         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11995         * modules/acosl (Depends-on): Add acos. Update conditions.
11996
11997 2011-10-10  Bruno Haible  <bruno@clisp.org>
11998
11999         asinl: Simplify for platforms where 'long double' == 'double'.
12000         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12001         alternative implementation.
12002         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12003         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12004         * modules/asinl (Depends-on): Add asin. Update conditions.
12005
12006 2011-10-10  Bruno Haible  <bruno@clisp.org>
12007
12008         tanl: Simplify for platforms where 'long double' == 'double'.
12009         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12010         implementation.
12011         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12012         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12013         * modules/tanl (Depends-on): Add tan. Update conditions.
12014         (configure.ac): Don't compile trigl.c if
12015         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12016
12017 2011-10-10  Bruno Haible  <bruno@clisp.org>
12018
12019         cosl: Simplify for platforms where 'long double' == 'double'.
12020         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12021         implementation.
12022         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12023         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12024         * modules/cosl (Depends-on): Add cos. Update conditions.
12025         (configure.ac): Don't compile sincosl.c and trigl.c if
12026         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12027
12028 2011-10-10  Bruno Haible  <bruno@clisp.org>
12029
12030         sinl: Simplify for platforms where 'long double' == 'double'.
12031         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12032         implementation.
12033         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12034         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12035         * modules/sinl (Depends-on): Add sin. Update conditions.
12036         (configure.ac): Don't compile sincosl.c and trigl.c if
12037         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12038
12039 2011-10-10  Bruno Haible  <bruno@clisp.org>
12040
12041         logl: Simplify for platforms where 'long double' == 'double'.
12042         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12043         implementation.
12044         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12045         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12046         * modules/logl (Depends-on): Add log. Update conditions.
12047
12048 2011-10-10  Bruno Haible  <bruno@clisp.org>
12049
12050         expl: Simplify for platforms where 'long double' == 'double'.
12051         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12052         implementation.
12053         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12054         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12055         * modules/expl (Depends-on): Add exp. Update conditions.
12056
12057 2011-10-10  Bruno Haible  <bruno@clisp.org>
12058
12059         sqrtl: Simplify for platforms where 'long double' == 'double'.
12060         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12061         alternative implementation.
12062         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12063         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12064         * modules/sqrtl (Depends-on): Update conditions.
12065
12066 2011-10-10  Bruno Haible  <bruno@clisp.org>
12067
12068         ldexpl: Simplify for platforms where 'long double' == 'double'.
12069         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12070         alternative implementation.
12071         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12072         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12073         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12074
12075 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12076
12077         ffsll: set correct witness
12078         * modules/ffsll (configure.ac): Fix typo.
12079
12080 2011-10-10  Bruno Haible  <bruno@clisp.org>
12081
12082         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12083         * lib/printf-frexpl.c: Include <config.h>.
12084         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12085         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12086         second time.
12087         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12088         gl_LONG_DOUBLE_VS_DOUBLE.
12089         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12090         conditions.
12091
12092 2011-10-10  Bruno Haible  <bruno@clisp.org>
12093
12094         frexpl: Simplify for platforms where 'long double' == 'double'.
12095         * lib/frexpl.c: Include <config.h>.
12096         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12097         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12098         time.
12099         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12100         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12101         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12102         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12103         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12104         conditions.
12105
12106 2011-10-10  Jim Meyering  <meyering@redhat.com>
12107
12108         test-renameat: don't leave behind a temporary file
12109         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12110           ERROR: files left in build directory after distclean:
12111           ./gltests/test-renameat.too
12112           make[1]: *** [distcleancheck] Error 1
12113         Reported by Tom G. Christensen.
12114
12115 2011-10-09  Bruno Haible  <bruno@clisp.org>
12116
12117         rint: Determine RINT_LIBM correctly on AIX 7.
12118         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12119         directly, not only through a function pointer. Also accept an optional
12120         4th argument with extra code.
12121         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12122         rintf() call by gcc when optimizing.
12123
12124         mathfunc.m4: Refactor.
12125         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12126         m4 variable.
12127
12128 2011-10-09  Bruno Haible  <bruno@clisp.org>
12129
12130         rintl: Simplify for platforms where 'long double' == 'double'.
12131         * lib/rintl.c: Include <config.h>.
12132         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12133         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12134         time.
12135         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12136         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12137         * modules/rintl (Depends-on): Add rint. Update conditions.
12138
12139 2011-10-09  Bruno Haible  <bruno@clisp.org>
12140
12141         roundl: Simplify for platforms where 'long double' == 'double'.
12142         * lib/roundl.c: Include <config.h>.
12143         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12144         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12145         time.
12146         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12147         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12148         * modules/roundl (Depends-on): Add round. Update conditions.
12149
12150 2011-10-09  Bruno Haible  <bruno@clisp.org>
12151
12152         truncl: Simplify for platforms where 'long double' == 'double'.
12153         * lib/truncl.c: Include <config.h>.
12154         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12155         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12156         time.
12157         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12158         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12159         * modules/truncl (Depends-on): Add trunc. Update conditions.
12160
12161 2011-10-09  Bruno Haible  <bruno@clisp.org>
12162
12163         ceill: Simplify for platforms where 'long double' == 'double'.
12164         * lib/ceill.c: Include <config.h>.
12165         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12166         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12167         time.
12168         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12169         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12170         * modules/ceill (Depends-on): Add ceil. Update conditions.
12171
12172 2011-10-09  Bruno Haible  <bruno@clisp.org>
12173
12174         floorl: Simplify for platforms where 'long double' == 'double'.
12175         * lib/floorl.c: Include <config.h>.
12176         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12177         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12178         time.
12179         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12180         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12181         * modules/floorl (Depends-on): Add floor. Update conditions.
12182
12183 2011-10-09  Bruno Haible  <bruno@clisp.org>
12184
12185         rint: Fix ordering constraints.
12186         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12187         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12188         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12189
12190 2011-10-09  Bruno Haible  <bruno@clisp.org>
12191
12192         copysignl: Simplify for platforms where 'long double' == 'double'.
12193         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12194         alternative.
12195         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12196         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12197         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12198
12199 2011-10-09  Bruno Haible  <bruno@clisp.org>
12200
12201         Tests for module 'rintl'.
12202         * modules/rintl-tests: New file.
12203         * tests/test-rintl.c: New file.
12204
12205         New module 'rintl'.
12206         * lib/math.in.h (rintl): New declaration.
12207         * lib/rintl.c: New file.
12208         * m4/rintl.m4: New file.
12209         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12211         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12212         * modules/rintl: New file.
12213         * tests/test-math-c++.cc: Check the declaration of rintl.
12214         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12215         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12216         * doc/posix-functions/rintl.texi: Mention the new module.
12217
12218 2011-10-09  Bruno Haible  <bruno@clisp.org>
12219
12220         Tests for module 'rintf'.
12221         * modules/rintf-tests: New file.
12222         * tests/test-rintf.c: New file.
12223
12224         New module 'rintf'.
12225         * lib/math.in.h (rintf): New declaration.
12226         * lib/rintf.c: New file.
12227         * m4/rintf.m4: New file.
12228         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12230         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12231         * modules/rintf: New file.
12232         * tests/test-math-c++.cc: Check the declaration of rintf.
12233         * doc/posix-functions/rintf.texi: Mention the new module.
12234
12235 2011-10-09  Bruno Haible  <bruno@clisp.org>
12236
12237         rint: Support for MSVC.
12238         * lib/math.in.h (rint): New declaration.
12239         * lib/rint.c: New file.
12240         * m4/rint.m4: New file.
12241         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12243         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12244         * modules/rint (Description): Fix.
12245         (Files): Add lib/rint.c, m4/rint.m4.
12246         (Depends-on): Add math.
12247         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12248         gl_MATH_MODULE_INDICATOR.
12249         * tests/test-math-c++.cc: Check the declaration of rint.
12250         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12251         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12252         * doc/posix-functions/rint.texi: Mention the replacement provided by
12253         the module.
12254
12255         rint tests: More tests.
12256         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12257         minus-zero.h, infinity.h, nan.h.
12258         (main): Skip the test if the current rounding mode is not standard. Add
12259         tests for negative numbers, minus zero, infinity, NaN.
12260         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12261         tests/nan.h.
12262         (Depends-on): Add isnand-nolibm.
12263
12264 2011-10-09  Bruno Haible  <bruno@clisp.org>
12265
12266         Tests for module 'copysignl'.
12267         * modules/copysignl-tests: New file.
12268         * tests/test-copysignl.c: New file.
12269
12270         New module 'copysignl'.
12271         * lib/math.in.h (copysignl): New declaration.
12272         * lib/copysignl.c: New file.
12273         * m4/copysignl.m4: New file.
12274         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12276         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12277         HAVE_COPYSIGNL.
12278         * modules/copysignl: New file.
12279         * tests/test-math-c++.cc: Check the declaration of copysignl.
12280         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12281         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12282         * doc/posix-functions/copysignl.texi: Mention the new module.
12283
12284 2011-10-09  Bruno Haible  <bruno@clisp.org>
12285
12286         Tests for module 'copysignf'.
12287         * modules/copysignf-tests: New file.
12288         * tests/test-copysignf.c: New file.
12289
12290         New module 'copysignf'.
12291         * lib/math.in.h (copysignf): New declaration.
12292         * lib/copysignf.c: New file.
12293         * m4/copysignf.m4: New file.
12294         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12296         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12297         HAVE_COPYSIGNF.
12298         * modules/copysignf: New file.
12299         * tests/test-math-c++.cc: Check the declaration of copysignf.
12300         * doc/posix-functions/copysignf.texi: Mention the new module.
12301
12302 2011-10-09  Bruno Haible  <bruno@clisp.org>
12303
12304         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12305         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12306         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12307         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12308         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12309         gl_SIGNAL_H_DEFAULTS.
12310
12311 2011-10-09  Bruno Haible  <bruno@clisp.org>
12312
12313         poll: Make macro safer.
12314         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12315         ac_cv_header_poll_h is not set.
12316
12317 2011-10-09  Bruno Haible  <bruno@clisp.org>
12318
12319         copysign: Provide replacement.
12320         * lib/math.in.h (copysign): New declaration.
12321         * lib/copysign.c: New file.
12322         * m4/copysign.m4: New file.
12323         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12324         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12325         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12326         HAVE_COPYSIGN.
12327         * modules/copysign (Description): Clarify.
12328         (Files): Add lib/copysign.c, m4/copysign.m4.
12329         (Depends-on): Add math, signbit.
12330         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12331         gl_MATH_MODULE_INDICATOR.
12332         * tests/test-math-c++.cc: Check the declaration of copysign.
12333         * doc/posix-functions/copysign.texi: Mention the effects of the module
12334         on Minix and MSVC.
12335
12336 2011-10-09  Bruno Haible  <bruno@clisp.org>
12337
12338         isinf: Ensure macro on AIX 5.1.
12339         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12340         macro.
12341         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12342
12343 2011-10-09  Bruno Haible  <bruno@clisp.org>
12344
12345         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12346         * modules/snprintf-posix-tests (configure.ac): Require
12347         gl_LONG_DOUBLE_VS_DOUBLE.
12348         * modules/sprintf-posix-tests (configure.ac): Likewise.
12349         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12350         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12351         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12352         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12353         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12354         tests on platforms where 'long double' is the same as 'double'.
12355         * tests/test-sprintf-posix.h (test_function): Likewise.
12356         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12357         * tests/test-vasprintf-posix.c (test_function): Likewise.
12358
12359         *printf: Fix for platforms where 'long double' == 'double'.
12360         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12361         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12362         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12363         * modules/fprintf-posix (Files): Likewise.
12364         * modules/obstack-printf-posix (Files): Likewise.
12365         * modules/snprintf-posix (Files): Likewise.
12366         * modules/sprintf-posix (Files): Likewise.
12367         * modules/vasnprintf (Files): Likewise.
12368         * modules/vasnprintf-posix (Files): Likewise.
12369         * modules/vasprintf-posix (Files): Likewise.
12370         * modules/vdprintf-posix (Files): Likewise.
12371         * modules/vfprintf-posix (Files): Likewise.
12372         * modules/vsnprintf-posix (Files): Likewise.
12373         * modules/vsprintf-posix (Files): Likewise.
12374         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12375         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12376         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12377         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12378         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12379         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12380         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12381
12382         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12383         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12384         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12385         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12386         'long double'.
12387         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12388
12389         isinf: Fix for platforms where 'long double' == 'double'.
12390         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12391         Don't blindly assume 80-bit 'long double'.
12392
12393         isfinite: Fix for platforms where 'long double' == 'double'.
12394         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12395         Don't blindly assume 80-bit 'long double'.
12396
12397         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12398         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12399         * modules/isfinite-tests (configure.ac): Require
12400         gl_LONG_DOUBLE_VS_DOUBLE.
12401         * modules/isinf-tests (configure.ac): Likewise.
12402         * modules/isnan-tests (configure.ac): Likewise.
12403         * modules/isnanl-tests (configure.ac): Likewise.
12404         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12405         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12406         tests on platforms where 'long double' is the same as 'double'.
12407         * tests/test-isinf.c (test_isinfl): Likewise.
12408         * tests/test-isnan.c (test_long_double): Likewise.
12409         * tests/test-isnanl.h (main): Likewise.
12410
12411 2011-10-08  Bruno Haible  <bruno@clisp.org>
12412
12413         Tests for module 'tanhf'.
12414         * modules/tanhf-tests: New file.
12415         * tests/test-tanhf.c: New file.
12416
12417         New module 'tanhf'.
12418         * lib/math.in.h (tanhf): New declaration.
12419         * lib/tanhf.c: New file.
12420         * m4/tanhf.m4: New file.
12421         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12423         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12424         * modules/tanhf: New file.
12425         * tests/test-math-c++.cc: Check the declaration of tanhf.
12426         * doc/posix-functions/tanhf.texi: Mention the new module.
12427
12428         tanh: Use a .m4 file.
12429         * m4/tanh.m4: New file.
12430         * modules/tanh (Files): Add it.
12431         (configure.ac): Just invoke gl_FUNC_TANH.
12432
12433 2011-10-08  Bruno Haible  <bruno@clisp.org>
12434
12435         Tests for module 'coshf'.
12436         * modules/coshf-tests: New file.
12437         * tests/test-coshf.c: New file.
12438
12439         New module 'coshf'.
12440         * lib/math.in.h (coshf): New declaration.
12441         * lib/coshf.c: New file.
12442         * m4/coshf.m4: New file.
12443         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12445         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12446         * modules/coshf: New file.
12447         * tests/test-math-c++.cc: Check the declaration of coshf.
12448         * doc/posix-functions/coshf.texi: Mention the new module.
12449
12450         cosh: Use a .m4 file.
12451         * m4/cosh.m4: New file.
12452         * modules/cosh (Files): Add it.
12453         (configure.ac): Just invoke gl_FUNC_COSH.
12454
12455 2011-10-08  Bruno Haible  <bruno@clisp.org>
12456
12457         Tests for module 'sinhf'.
12458         * modules/sinhf-tests: New file.
12459         * tests/test-sinhf.c: New file.
12460
12461         New module 'sinhf'.
12462         * lib/math.in.h (sinhf): New declaration.
12463         * lib/sinhf.c: New file.
12464         * m4/sinhf.m4: New file.
12465         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12467         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12468         * modules/sinhf: New file.
12469         * tests/test-math-c++.cc: Check the declaration of sinhf.
12470         * doc/posix-functions/sinhf.texi: Mention the new module.
12471
12472         sinh: Use a .m4 file.
12473         * m4/sinh.m4: New file.
12474         * modules/sinh (Files): Add it.
12475         (configure.ac): Just invoke gl_FUNC_SINH.
12476
12477 2011-10-08  Bruno Haible  <bruno@clisp.org>
12478
12479         Tests for module 'atan2f'.
12480         * modules/atan2f-tests: New file.
12481         * tests/test-atan2f.c: New file.
12482
12483         New module 'atan2f'.
12484         * lib/math.in.h (atan2f): New declaration.
12485         * lib/atan2f.c: New file.
12486         * m4/atan2f.m4: New file.
12487         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12489         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12490         * modules/atan2f: New file.
12491         * tests/test-math-c++.cc: Check the declaration of atan2f.
12492         * doc/posix-functions/atan2f.texi: Mention the new module.
12493
12494         atan2: Use a .m4 file.
12495         * m4/atan2.m4: New file.
12496         * modules/atan2 (Files): Add it.
12497         (configure.ac): Just invoke gl_FUNC_ATAN2.
12498
12499 2011-10-08  Bruno Haible  <bruno@clisp.org>
12500
12501         Tests for module 'atanf'.
12502         * modules/atanf-tests: New file.
12503         * tests/test-atanf.c: New file.
12504
12505         New module 'atanf'.
12506         * lib/math.in.h (atanf): New declaration.
12507         * lib/atanf.c: New file.
12508         * m4/atanf.m4: New file.
12509         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12511         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12512         * modules/atanf: New file.
12513         * tests/test-math-c++.cc: Check the declaration of atanf.
12514         * doc/posix-functions/atanf.texi: Mention the new module.
12515
12516         atan: Use a .m4 file.
12517         * m4/atan.m4: New file.
12518         * modules/atan (Files): Add it.
12519         (configure.ac): Just invoke gl_FUNC_ATAN.
12520
12521 2011-10-08  Bruno Haible  <bruno@clisp.org>
12522
12523         Tests for module 'acosf'.
12524         * modules/acosf-tests: New file.
12525         * tests/test-acosf.c: New file.
12526
12527         New module 'acosf'.
12528         * lib/math.in.h (acosf): New declaration.
12529         * lib/acosf.c: New file.
12530         * m4/acosf.m4: New file.
12531         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12533         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12534         * modules/acosf: New file.
12535         * tests/test-math-c++.cc: Check the declaration of acosf.
12536         * doc/posix-functions/acosf.texi: Mention the new module.
12537
12538         acos: Use a .m4 file.
12539         * m4/acos.m4: New file.
12540         * modules/acos (Files): Add it.
12541         (configure.ac): Just invoke gl_FUNC_ACOS.
12542
12543 2011-10-08  Bruno Haible  <bruno@clisp.org>
12544
12545         Tests for module 'asinf'.
12546         * modules/asinf-tests: New file.
12547         * tests/test-asinf.c: New file.
12548
12549         New module 'asinf'.
12550         * lib/math.in.h (asinf): New declaration.
12551         * lib/asinf.c: New file.
12552         * m4/asinf.m4: New file.
12553         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12555         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12556         * modules/asinf: New file.
12557         * tests/test-math-c++.cc: Check the declaration of asinf.
12558         * doc/posix-functions/asinf.texi: Mention the new module.
12559
12560         asin: Use a .m4 file.
12561         * m4/asin.m4: New file.
12562         * modules/asin (Files): Add it.
12563         (configure.ac): Just invoke gl_FUNC_ASIN.
12564
12565 2011-10-08  Bruno Haible  <bruno@clisp.org>
12566
12567         Tests for module 'tanf'.
12568         * modules/tanf-tests: New file.
12569         * tests/test-tanf.c: New file.
12570
12571         New module 'tanf'.
12572         * lib/math.in.h (tanf): New declaration.
12573         * lib/tanf.c: New file.
12574         * m4/tanf.m4: New file.
12575         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12577         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12578         * modules/tanf: New file.
12579         * tests/test-math-c++.cc: Check the declaration of tanf.
12580         * doc/posix-functions/tanf.texi: Mention the new module.
12581
12582         tan: Use a .m4 file.
12583         * m4/tan.m4: New file.
12584         * modules/tan (Files): Add it.
12585         (configure.ac): Just invoke gl_FUNC_TAN.
12586
12587 2011-10-08  Bruno Haible  <bruno@clisp.org>
12588
12589         Tests for module 'cosf'.
12590         * modules/cosf-tests: New file.
12591         * tests/test-cosf.c: New file.
12592
12593         New module 'cosf'.
12594         * lib/math.in.h (cosf): New declaration.
12595         * lib/cosf.c: New file.
12596         * m4/cosf.m4: New file.
12597         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12599         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12600         * modules/cosf: New file.
12601         * tests/test-math-c++.cc: Check the declaration of cosf.
12602         * doc/posix-functions/cosf.texi: Mention the new module.
12603
12604         cos: Use a .m4 file.
12605         * m4/cos.m4: New file.
12606         * modules/cos (Files): Add it.
12607         (configure.ac): Just invoke gl_FUNC_COS.
12608
12609 2011-10-08  Bruno Haible  <bruno@clisp.org>
12610
12611         Tests for module 'sinf'.
12612         * modules/sinf-tests: New file.
12613         * tests/test-sinf.c: New file.
12614
12615         New module 'sinf'.
12616         * lib/math.in.h (sinf): New declaration.
12617         * lib/sinf.c: New file.
12618         * m4/sinf.m4: New file.
12619         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12621         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12622         * modules/sinf: New file.
12623         * tests/test-math-c++.cc: Check the declaration of sinf.
12624         * doc/posix-functions/sinf.texi: Mention the new module.
12625
12626         sin: Use a .m4 file.
12627         * m4/sin.m4: New file.
12628         * modules/sin (Files): Add it.
12629         (configure.ac): Just invoke gl_FUNC_SIN.
12630
12631 2011-10-08  Bruno Haible  <bruno@clisp.org>
12632
12633         Tests for module 'powf'.
12634         * modules/powf-tests: New file.
12635         * tests/test-powf.c: New file.
12636
12637         New module 'powf'.
12638         * lib/math.in.h (powf): New declaration.
12639         * lib/powf.c: New file.
12640         * m4/powf.m4: New file.
12641         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12643         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12644         * modules/powf: New file.
12645         * tests/test-math-c++.cc: Check the declaration of powf.
12646         * doc/posix-functions/powf.texi: Mention the new module.
12647
12648         pow: Use a .m4 file.
12649         * m4/pow.m4: New file.
12650         * modules/pow (Files): Add it.
12651         (configure.ac): Just invoke gl_FUNC_POW.
12652
12653 2011-10-08  Bruno Haible  <bruno@clisp.org>
12654
12655         Tests for module 'log10f'.
12656         * modules/log10f-tests: New file.
12657         * tests/test-log10f.c: New file.
12658
12659         New module 'log10f'.
12660         * lib/math.in.h (log10f): New declaration.
12661         * lib/log10f.c: New file.
12662         * m4/log10f.m4: New file.
12663         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12665         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12666         * modules/log10f: New file.
12667         * tests/test-math-c++.cc: Check the declaration of log10f.
12668         * doc/posix-functions/log10f.texi: Mention the new module.
12669
12670         log10: Use a .m4 file.
12671         * m4/log10.m4: New file.
12672         * modules/log10 (Files): Add it.
12673         (configure.ac): Just invoke gl_FUNC_LOG10.
12674
12675 2011-10-08  Bruno Haible  <bruno@clisp.org>
12676
12677         Tests for module 'logf'.
12678         * modules/logf-tests: New file.
12679         * tests/test-logf.c: New file.
12680
12681         New module 'logf'.
12682         * lib/math.in.h (logf): New declaration.
12683         * lib/logf.c: New file.
12684         * m4/logf.m4: New file.
12685         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12687         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12688         * modules/logf: New file.
12689         * tests/test-math-c++.cc: Check the declaration of logf.
12690         * doc/posix-functions/logf.texi: Mention the new module.
12691
12692         log: Use a .m4 file.
12693         * m4/log.m4: New file.
12694         * modules/log (Files): Add it.
12695         (configure.ac): Just invoke gl_FUNC_LOG.
12696
12697 2011-10-08  Bruno Haible  <bruno@clisp.org>
12698
12699         Tests for module 'expf'.
12700         * modules/expf-tests: New file.
12701         * tests/test-expf.c: New file.
12702
12703         New module 'expf'.
12704         * lib/math.in.h (expf): New declaration.
12705         * lib/expf.c: New file.
12706         * m4/expf.m4: New file.
12707         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12709         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12710         * modules/expf: New file.
12711         * tests/test-math-c++.cc: Check the declaration of expf.
12712         * doc/posix-functions/expf.texi: Mention the new module.
12713
12714         exp: Use a .m4 file.
12715         * m4/exp.m4: New file.
12716         * modules/exp (Files): Add it.
12717         (configure.ac): Just invoke gl_FUNC_EXP.
12718
12719 2011-10-08  Bruno Haible  <bruno@clisp.org>
12720
12721         Tests for module 'sqrtf'.
12722         * modules/sqrtf-tests: New file.
12723         * tests/test-sqrtf.c: New file.
12724
12725         New module 'sqrtf'.
12726         * lib/math.in.h (sqrtf): New declaration.
12727         * lib/sqrtf.c: New file.
12728         * m4/sqrtf.m4: New file.
12729         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12731         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12732         * modules/sqrtf: New file.
12733         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12734         * doc/posix-functions/sqrtf.texi: Mention the new module.
12735
12736 2011-10-08  Bruno Haible  <bruno@clisp.org>
12737
12738         Tests: Avoid link failures w.r.t. libintl.
12739         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12740         $(LIBINTL).
12741         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12742         $(LIBINTL).
12743         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12744         against $(LIBINTL).
12745         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12746         $(LIBINTL).
12747         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12748         $(LIBINTL).
12749         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12750
12751 2011-10-08  Bruno Haible  <bruno@clisp.org>
12752
12753         pow tests: Defeat compiler optimizations.
12754         * tests/test-pow.c (main): Assign arguments to x and y before use.
12755
12756 2011-10-08  Bruno Haible  <bruno@clisp.org>
12757
12758         gnulib-tool: Improve last commit.
12759         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12760         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12761         ignore dependencies that are not among the modules list.
12762
12763 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12764
12765         gnulib-tool: don't follow dependencies to avoided modules
12766         This fixes a bug that is related to the previous one.
12767         * gnulib-tool (func_modules_transitive_closure)
12768         (func_emit_autoconf_snippets):
12769         Check whether a dependency is acceptable before using it.
12770         (--extract-dependencies): Report an error if --avoid is also used,
12771         since this combination of options is not yet supported.
12772
12773         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12774         Problem reported by Peter Dyballa in
12775         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12776         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12777         when echoing "$condition".
12778
12779 2011-10-07  Bruno Haible  <bruno@clisp.org>
12780
12781         Fix documentation about math functions on MacOS X.
12782         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12783         MacOS X 10.5.
12784         * doc/posix-functions/fdim.texi: Likewise.
12785         * doc/posix-functions/feclearexcept.texi: Likewise.
12786         * doc/posix-functions/fegetenv.texi: Likewise.
12787         * doc/posix-functions/fegetround.texi: Likewise.
12788         * doc/posix-functions/feholdexcept.texi: Likewise.
12789         * doc/posix-functions/feraiseexcept.texi: Likewise.
12790         * doc/posix-functions/fesetenv.texi: Likewise.
12791         * doc/posix-functions/fesetround.texi: Likewise.
12792         * doc/posix-functions/fetestexcept.texi: Likewise.
12793         * doc/posix-functions/feupdateenv.texi: Likewise.
12794         * doc/posix-functions/fmax.texi: Likewise.
12795         * doc/posix-functions/fmin.texi: Likewise.
12796         * doc/posix-functions/log2.texi: Likewise.
12797         * doc/posix-functions/modff.texi: Likewise.
12798         * doc/posix-functions/nan.texi: Likewise.
12799         * doc/posix-functions/nanf.texi: Likewise.
12800         * doc/posix-functions/nextafterf.texi: Likewise.
12801         * doc/posix-functions/remquo.texi: Likewise.
12802
12803 2011-10-07  Bruno Haible  <bruno@clisp.org>
12804
12805         modff: Drop assumption about library that defines modff.
12806         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12807         AC_CHECK_FUNCS.
12808         * modules/modff (Files): Add m4/mathfunc.m4.
12809
12810 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12811
12812         raise tests: Avoid a GCC warning.
12813         * tests/test-raise.c (handler): Use _Noreturn.
12814
12815 2011-10-07  Bruno Haible  <bruno@clisp.org>
12816
12817         Tests for module 'ldexpf'.
12818         * modules/ldexpf-tests: New file.
12819         * tests/test-ldexpf.c: New file.
12820
12821         New module 'ldexpf'.
12822         * lib/math.in.h (ldexpf): New declaration.
12823         * lib/ldexpf.c: New file.
12824         * m4/ldexpf.m4: New file.
12825         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12827         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12828         * modules/ldexpf: New file.
12829         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12830         * doc/posix-functions/ldexpf.texi: Mention the new module.
12831
12832 2011-10-06  Bruno Haible  <bruno@clisp.org>
12833
12834         frexpf: Work around problems on IRIX and mingw.
12835         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12837         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12838         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12839         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12840         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12841         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12842
12843 2011-10-06  Bruno Haible  <bruno@clisp.org>
12844
12845         fabsf: Drop assumption about library that defines fabsf.
12846         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12847         AC_CHECK_FUNCS.
12848         * modules/fabsf (Files): Add m4/mathfunc.m4.
12849
12850 2011-10-06  Bruno Haible  <bruno@clisp.org>
12851
12852         frexpf: Drop assumption about library that defines frexpf.
12853         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12854         'int *', 'float *', 'long double *', 'float', 'long double'.
12855         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12856         AC_CHECK_FUNCS.
12857         * modules/frexpf (Files): Add m4/mathfunc.m4.
12858
12859         Tests for module 'frexpf'.
12860         * modules/frexpf-tests: New file.
12861         * tests/test-frexpf.c: New file.
12862
12863         New module 'frexpf'.
12864         * lib/math.in.h (frexpf): New declaration.
12865         * lib/frexpf.c: New file.
12866         * m4/frexpf.m4: New file.
12867         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12869         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12870         * modules/frexpf: New file.
12871         * tests/test-math-c++.cc: Check the declaration of frexpf.
12872         * doc/posix-functions/frexpf.texi: Mention the new module.
12873
12874 2011-10-06  Bruno Haible  <bruno@clisp.org>
12875
12876         math: Sort function declarations of math.in.h.
12877         * lib/math.in.h (frexp, logb): Move declarations.
12878
12879 2011-10-05  Bruno Haible  <bruno@clisp.org>
12880
12881         Tests for module 'modff'.
12882         * modules/modff-tests: New file.
12883         * tests/test-modff.c: New file.
12884
12885         New module 'modff'.
12886         * lib/math.in.h (modff): New declaration.
12887         * lib/modff.c: New file.
12888         * m4/modff.m4: New file.
12889         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12891         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12892         * modules/modff: New file.
12893         * tests/test-math-c++.cc: Check the declaration of modff.
12894         * doc/posix-functions/modff.texi: Mention the new module.
12895
12896         modf tests: Make test sharper.
12897         * tests/test-modf.c (main): Strengthen upper bound.
12898
12899         modf: Use a .m4 file.
12900         * m4/modf.m4: New file.
12901         * modules/modf (Files): Add it.
12902         (configure.ac): Just invoke gl_FUNC_MODF.
12903
12904 2011-10-05  Bruno Haible  <bruno@clisp.org>
12905
12906         Tests for module 'fmodf'.
12907         * modules/fmodf-tests: New file.
12908         * tests/test-fmodf.c: New file.
12909
12910         New module 'fmodf'.
12911         * lib/math.in.h (fmodf): New declaration.
12912         * lib/fmodf.c: New file.
12913         * m4/fmodf.m4: New file.
12914         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12916         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12917         * modules/fmodf: New file.
12918         * tests/test-math-c++.cc: Check the declaration of fmodf.
12919         * doc/posix-functions/fmodf.texi: Mention the new module.
12920
12921         fmod: Use a .m4 file.
12922         * m4/fmod.m4: New file.
12923         * modules/fmod (Files): Add it.
12924         (configure.ac): Just invoke gl_FUNC_FMOD.
12925
12926 2011-10-05  Bruno Haible  <bruno@clisp.org>
12927
12928         Tests for module 'fabsf'.
12929         * modules/fabsf-tests: New file.
12930         * tests/test-fabsf.c: New file.
12931
12932         New module 'fabsf'.
12933         * lib/math.in.h (fabsf): New declaration.
12934         * lib/fabsf.c: New file.
12935         * m4/fabsf.m4: New file.
12936         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12938         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12939         * modules/fabsf: New file.
12940         * tests/test-math-c++.cc: Check the declaration of fabsf.
12941         * doc/posix-functions/fabsf.texi: Mention the new module.
12942
12943         fabs: Use a .m4 file.
12944         * m4/fabs.m4: New file.
12945         * modules/fabs (Files): Add it.
12946         (configure.ac): Just invoke gl_FUNC_FABS.
12947
12948 2011-10-05  Jim Meyering  <meyering@redhat.com>
12949
12950         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12951         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12952         ls -lL regression introduced in coreutils-8.12, it does so at the
12953         cost of an additional stat call in the common case.  Besides, now
12954         that the kernel change that prompted commit 95f7c57f has been reverted
12955         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12956         we have no use for commit 95f7c57f, "file-has-acl: use
12957         acl_extended_file_nofollow if available".
12958
12959 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12960
12961         file-has-acl: revert unintended change in behavior of ls -L
12962         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12963         derived from...
12964         (file_has_acl): ...code here.  Call it.
12965         This problem was introduced with 2011-07-22 commit 95f7c57f,
12966         "file-has-acl: use acl_extended_file_nofollow if available".
12967         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12968
12969 2011-10-03  Bruno Haible  <bruno@clisp.org>
12970
12971         poll: Avoid link errors on MSVC.
12972         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12973         * modules/poll (Depends-on): Add sockets.
12974         (Link): New section.
12975         * NEWS: Mention the change.
12976         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12977         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12978         $(LIB_POLL) instead of $(LIBSOCKET).
12979
12980 2011-10-03  Bruno Haible  <bruno@clisp.org>
12981
12982         sys_select tests: Fix link error on MSVC 9.
12983         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12984         with $(LIB_SELECT) instead of $(LIBSOCKET).
12985
12986 2011-10-03  Bruno Haible  <bruno@clisp.org>
12987
12988         sys_select: Fix compilation error on mingw.
12989         * lib/sys_select.in.h: On native Windows, include <io.h>.
12990
12991 2011-10-03  Bruno Haible  <bruno@clisp.org>
12992
12993         wmemset: Support for MSVC.
12994         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12995         whether wmemset() exists.
12996
12997 2011-10-03  Bruno Haible  <bruno@clisp.org>
12998
12999         wmemmove: Support for MSVC.
13000         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13001         whether wmemmove() exists.
13002
13003 2011-10-03  Bruno Haible  <bruno@clisp.org>
13004
13005         wmemcpy: Support for MSVC.
13006         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13007         whether wmemcpy() exists.
13008
13009 2011-10-03  Bruno Haible  <bruno@clisp.org>
13010
13011         wmemcmp: Support for MSVC.
13012         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13013         whether wmemcmp() exists.
13014
13015 2011-10-03  Bruno Haible  <bruno@clisp.org>
13016
13017         wmemchr: Support for MSVC.
13018         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13019         whether wmemchr() exists.
13020
13021 2011-10-03  Bruno Haible  <bruno@clisp.org>
13022
13023         glthread/*, strsignal: Support for MSVC.
13024         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13025         including <winsock.h> on MSVC 9.
13026         * lib/glthread/lock.h: Likewise.
13027         * lib/glthread/thread.h: Likewise.
13028         * lib/glthread/tls.h: Likewise.
13029         * lib/glthread/yield.h: Likewise.
13030         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13031         if HAVE_UNISTD_H is false.
13032         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13033
13034 2011-10-03  Bruno Haible  <bruno@clisp.org>
13035
13036         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13037         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13038         Set to 100000.
13039
13040 2011-10-03  Bruno Haible  <bruno@clisp.org>
13041
13042         acl: Fix specification.
13043         * lib/file-has-acl.c (file_has_acl): Fix specification.
13044
13045 2011-10-03  Bruno Haible  <bruno@clisp.org>
13046
13047         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13048         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13049         (compute_curr_prefix, shared_library_fullname,
13050         find_shared_library_fullname, get_shared_library_fullname, relocate):
13051         Use it together with PIC && INSTALLDIR.
13052         Reported by <jojelino@gmail.com>
13053         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13054
13055 2011-10-01  Jim Meyering  <meyering@redhat.com>
13056
13057         maint.mk: adjust a release-related rule not to require use of gzip
13058         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13059         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13060         projects that build only .tar.xz files.  Also fix an erroneous test.
13061
13062         test-linkat: don't leave behind a temporary file
13063         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13064         Otherwise, coreutils' "make distcheck" would fail with this:
13065           Only in /c/cu/tests/torture/coreutils/test/\
13066             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13067           make[2]: *** [my-distcheck] Error 1
13068
13069         float, math: add omitted file
13070         * lib/itold.c: Add file, required for yesterday's float change.
13071
13072 2011-10-01  Bruno Haible  <bruno@clisp.org>
13073
13074         isinf: Fix for OpenBSD/x86.
13075         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13076         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13077         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13078
13079 2011-10-01  Bruno Haible  <bruno@clisp.org>
13080
13081         isfinite: Fix syntax error in configure test.
13082         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13083
13084         isfinite: Fix typo.
13085         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13086         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13087
13088 2011-10-01  Bruno Haible  <bruno@clisp.org>
13089
13090         nonblocking tests: Fix test failure on Linux/IA-64.
13091         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13092         Set to 270000.
13093
13094 2011-10-01  Bruno Haible  <bruno@clisp.org>
13095
13096         mkfifoat tests: Fix a test failure on mingw.
13097         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13098         with error ENOSYS.
13099
13100 2011-09-30  Bruno Haible  <bruno@clisp.org>
13101
13102         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13103         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13104         'long double'. Set REPLACE_ITOLD.
13105         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13106         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13107         * lib/itold.c: New file.
13108         * modules/float (Files): Add lib/itold.c.
13109         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13110         (Makefile.am): Substitute REPLACE_ITOLD.
13111         * modules/math (Depends-on): Add float.
13112         (Makefile.am): Substitute REPLACE_ITOLD.
13113         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13114         * doc/posix-headers/math.texi: Likewise.
13115         * doc/posix-functions/logl.texi: Likewise.
13116
13117 2011-09-30  Bruno Haible  <bruno@clisp.org>
13118
13119         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13120         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13121         Set to 140000.
13122
13123 2011-09-30  Bruno Haible  <bruno@clisp.org>
13124
13125         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13126         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13127         invocation, say "right after AC_PROG_CC_STDC", not "right after
13128         AC_PROG_CC".
13129         Reported by Gary V. Vaughan <gary@gnu.org>.
13130
13131 2011-09-30  Bruno Haible  <bruno@clisp.org>
13132
13133         Centralize C99 requirement.
13134         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13135         * modules/stdarg (configure.ac-early): Invoke it instead of
13136         AC_PROG_CC_STDC.
13137         Reported by Gary V. Vaughan and Paul Eggert.
13138
13139 2011-09-29  Bruno Haible  <bruno@clisp.org>
13140
13141         float: Fix LDBL_MAX value on Linux/PowerPC.
13142         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13143         on Linux/PowerPC.
13144         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13145         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13146         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13147         platform.
13148         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13149
13150 2011-09-29  Bruno Haible  <bruno@clisp.org>
13151
13152         doc: Improve doc about gl_EARLY.
13153         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13154         AC_PROG_CC_STDC invocation.
13155         Reported by Gary V. Vaughan <gary@gnu.org>.
13156
13157 2011-09-28  Bruno Haible  <bruno@clisp.org>
13158
13159         fgetc, fputc, fread, fwrite tests: Fix link error.
13160         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13161         on non-MSVC platforms.
13162         * tests/test-fputc.c (main): Likewise.
13163         * tests/test-fread.c (main): Likewise.
13164         * tests/test-fwrite.c (main): Likewise.
13165         Reported by Jim Meyering.
13166
13167 2011-09-27  Bruno Haible  <bruno@clisp.org>
13168
13169         fputc, fwrite tests: Avoid test failure on MSVC.
13170         * tests/test-fgetc.c: Include msvc-inval.h.
13171         (main): Invoke gl_msvc_inval_ensure_handler.
13172         * tests/test-fputc.c: Include msvc-inval.h.
13173         (main): Invoke gl_msvc_inval_ensure_handler.
13174         * tests/test-fread.c: Include msvc-inval.h.
13175         (main): Invoke gl_msvc_inval_ensure_handler.
13176         * tests/test-fwrite.c: Include msvc-inval.h.
13177         (main): Invoke gl_msvc_inval_ensure_handler.
13178         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13179         * modules/fputc-tests (Depends-on): Likewise.
13180         * modules/fread-tests (Depends-on): Likewise.
13181         * modules/fwrite-tests (Depends-on): Likewise.
13182
13183 2011-09-27  Bruno Haible  <bruno@clisp.org>
13184
13185         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13186         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13187         (raise): Remove older, duplicated declaration.
13188         (_gl_raise_SIGPIPE): New declaration.
13189         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13190         (rpl_raise): Remove function.
13191         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13192         a gnulib-defined SIGPIPE here.
13193         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13194         'sigprocmask' has detected missing signal-blocking and the module
13195         'sigpipe' is enabled.
13196         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13197
13198 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13199
13200         base64-tests: avoid memory leak
13201         * tests/test-base64.c (main): Plug memory leak.
13202
13203         base32: new module
13204         * modules/base32: New module.
13205         * lib/base32.c: New file.
13206         * lib/base32.h: Likewise.
13207         * m4/base32.m4: Likewise.
13208         * modules/base32-tests: New test.
13209         * tests/test-base32.c: Likewise.
13210         * MODULES.html.sh (Misc): Mention it.
13211
13212 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13213
13214         gnulib: use more-standard license notice wording
13215         * gnulib-tool (func_emit_copyright_notice): When emitting a
13216         license notice into a file, use the standard wording as suggested
13217         by the current information for GNU maintainers, except say "file"
13218         rather than "program".  The new wording gives a license version
13219         number, which addresses an issue raised by Glenn Morris in
13220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13221         * m4/onceonly.m4: Use that same wording here, too.
13222
13223         dup2: minor simplification
13224         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13225         as lib/dup2.c no longer uses 'inline'.
13226
13227 2011-09-25  Bruno Haible  <bruno@clisp.org>
13228
13229         strings: Fix compilation error on MSVC.
13230         * lib/strings.in.h: Include <stddef.h> for size_t.
13231
13232 2011-09-25  Bruno Haible  <bruno@clisp.org>
13233
13234         fflush et al.: Document limitation on MSVC.
13235         * doc/posix-functions/fflush.texi: Document possible crash in handling
13236         mode other than DEFAULT_HANDLING.
13237         * doc/posix-functions/fgetc.texi: Likewise.
13238         * doc/posix-functions/fputc.texi: Likewise.
13239         * doc/posix-functions/fread.texi: Likewise.
13240         * doc/posix-functions/fwrite.texi: Likewise.
13241
13242 2011-09-25  Bruno Haible  <bruno@clisp.org>
13243
13244         msvc-inval: Allow three invalid parameter handling modes.
13245         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13246         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13247         macros.
13248         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13249         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13250         SANE_LIBRARY_HANDLING as a no-op.
13251         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13252         <stdlib.h>.
13253         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13254
13255 2011-09-25  Bruno Haible  <bruno@clisp.org>
13256
13257         msvc-inval: Make handler multithread-safe.
13258         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13259         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13260         declarations.
13261         (gl_msvc_inval_current): New declaration.
13262         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13263         Operate on the structure returned by gl_msvc_inval_current().
13264         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13265         Remove varaiables.
13266         (tls_index, tls_initialized): New variables.
13267         (not_per_thread): New variable.
13268         (gl_msvc_inval_current): New function.
13269         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13270         returned by gl_msvc_inval_current().
13271
13272 2011-09-25  Bruno Haible  <bruno@clisp.org>
13273
13274         msvc-inval: Install handler globally.
13275         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13276         !_MSC_VER.
13277         (gl_msvc_invalid_parameter_handler): Remove declaration.
13278         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13279         declarations.
13280         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13281         Install the handler globally, don't uninstall it.
13282         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13283         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13284         currently valid, call RaiseException instead.
13285         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13286         for !_MSC_VER.
13287
13288 2011-09-25  Bruno Haible  <bruno@clisp.org>
13289
13290         strerror_r-posix: Fix for MSVC 9.
13291         * lib/strerror_r.c (local_snprintf): New function.
13292         (snprintf): Define to local_snprintf, not to _snprintf.
13293
13294 2011-09-25  Bruno Haible  <bruno@clisp.org>
13295
13296         ftruncate: Support for MSVC 9.
13297         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13298         (chsize_nothrow): New function.
13299         (chsize): Redefine as a macro.
13300         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13301         * modules/ftruncate (Depends-on): Add msvc-inval.
13302
13303 2011-09-25  Bruno Haible  <bruno@clisp.org>
13304
13305         New module 'fstat'.
13306         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13307         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13308         * lib/fchdir.c (rpl_fstat): Remove function.
13309         * m4/fstat.m4: New file.
13310         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13311         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13312         declared.
13313         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13314         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13315         * modules/fstat: New file.
13316         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13317         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13318         is set.
13319         * doc/posix-functions/fstat.texi: Mention the new module and the
13320         problem on MSVC.
13321         * NEWS: Mention the change.
13322         * modules/acl (Depends-on): Add fstat.
13323         * modules/chdir-safer (Depends-on): Likewise.
13324         * modules/chown (Depends-on): Likewise.
13325         * modules/copy-file (Depends-on): Likewise.
13326         * modules/fchdir (Depends-on): Likewise.
13327         * modules/fdopendir (Depends-on): Likewise.
13328         * modules/fopen (Depends-on): Likewise.
13329         * modules/fts (Depends-on): Likewise.
13330         * modules/getcwd (Depends-on): Likewise.
13331         * modules/isapipe (Depends-on): Likewise.
13332         * modules/linkat (Depends-on): Likewise.
13333         * modules/lseek (Depends-on): Likewise.
13334         * modules/mkdir-p (Depends-on): Likewise.
13335         * modules/open (Depends-on): Likewise.
13336         * modules/openat (Depends-on): Likewise.
13337         * modules/read-file (Depends-on): Likewise.
13338         * modules/renameat (Depends-on): Likewise.
13339         * modules/utimens (Depends-on): Likewise.
13340
13341 2011-09-25  Bruno Haible  <bruno@clisp.org>
13342
13343         linkat: Fix compilation on MSVC 9.
13344         * lib/linkat.c: Don't include <stdint.h>.
13345
13346 2011-09-25  Bruno Haible  <bruno@clisp.org>
13347
13348         fclose: Support for MSVC 9.
13349         * lib/fclose.c: Include msvc-inval.h.
13350         (fclose_nothrow): New function.
13351         (rpl_fclose): Use it.
13352         * modules/fclose (Depends-on): Add msvc-inval.
13353         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13354
13355 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13356
13357         dup2: minor simplifications
13358         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13359         that it's a performance win.
13360         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13361         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13362
13363 2011-09-24  Jim Meyering  <meyering@redhat.com>
13364
13365         test-futimens: avoid a warning from gcc -Wshadow
13366         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13367         to avoid a shadowing warning.
13368
13369 2011-09-24  Bruno Haible  <bruno@clisp.org>
13370
13371         fdopen: Support for MSVC 9.
13372         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13373         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13374         * lib/fdopen.c: Include msvc-inval.h.
13375         (fdopen_nothrow): New function.
13376         (rpl_fdopen): Use it.
13377         * modules/fdopen (Depends-on): Add msvc-inval.
13378         * modules/fclose-tests (Depends-on): Add fdopen.
13379         * modules/fflush-tests (Depends-on): Likewise.
13380         * modules/fgetc-tests (Depends-on): Likewise.
13381         * modules/fputc-tests (Depends-on): Likewise.
13382         * modules/fread-tests (Depends-on): Likewise.
13383         * modules/freopen-tests (Depends-on): Likewise.
13384         * modules/fseeko-tests (Depends-on): Likewise.
13385         * modules/ftello-tests (Depends-on): Likewise.
13386         * modules/fwrite-tests  (Depends-on): Likewise.
13387         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13388
13389 2011-09-24  Bruno Haible  <bruno@clisp.org>
13390
13391         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13392         * modules/fgetc-tests (Depends-on): Add unistd.
13393         * modules/fputc-tests (Depends-on): Likewise.
13394         * modules/fread-tests (Depends-on): Likewise.
13395         * modules/fwrite-tests (Depends-on): Likewise.
13396
13397 2011-09-24  Bruno Haible  <bruno@clisp.org>
13398
13399         dup: Simplify autoconf test.
13400         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13401         on gl_MSVC_INVAL's result.
13402
13403 2011-09-24  Bruno Haible  <bruno@clisp.org>
13404
13405         Tests for function fwrite().
13406         * modules/fwrite-tests: New file.
13407         * tests/test-fwrite.c: New file.
13408         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13409
13410         Tests for function fread().
13411         * modules/fread-tests: New file.
13412         * tests/test-fread.c: New file.
13413         * modules/stdio-tests (Depends-on): Add fread-tests.
13414
13415         Activate fputc tests.
13416         * modules/stdio-tests (Depends-on): Add fputc-tests.
13417
13418         Enhance fgetc, fputc tests.
13419         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13420         * tests/test-fputc.c (main): Likewise.
13421
13422 2011-09-24  Bruno Haible  <bruno@clisp.org>
13423
13424         write: Support for MSVC 9.
13425         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13426         is not 1.
13427         * lib/write.c (write_nothrow): New function.
13428         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13429         not 1. Use write_nothrow.
13430         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13431         invalid parameter handler.
13432         (gl_PREREQ_WRITE): New macro.
13433         * modules/write (Depends-on): Add msvc-inval.
13434         (configure.ac): Invoke gl_PREREQ_WRITE.
13435         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13436
13437 2011-09-24  Bruno Haible  <bruno@clisp.org>
13438
13439         read: Fix last commit.
13440         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13441
13442 2011-09-24  Bruno Haible  <bruno@clisp.org>
13443
13444         dup2: Fix last commit.
13445         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13446         (rpl_dup2): Disable fcntl workaround on native Windows.
13447
13448         sigprocmask: Make code safer.
13449         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13450         section that changes macro definitions for this compilation unit.
13451
13452 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13453
13454         dup2: clarify by coalescing Windows-specific material
13455         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13456         "msvc-nothrow.h"' to the Windows-specific section, so that the
13457         Emacs source need not contain these include files.
13458         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13459         Windows-specific fixes into this function rather than just the
13460         nothrow fix, as this shortens and clarifies the code.  Always
13461         define as a function, as that's a bit cleaner than having it be
13462         sometimes a function and sometimes a macro.
13463         (rpl_dup2): Move the Windows-specific stuff out of here and into
13464         ms_windows_dup2.  Don't protect the Haiku-related fix with
13465         "#if !defined __linux__", as the same code also works around
13466         a Linux kernel bug, and it doesn't add any system calls on any
13467         platform.  Add comment about FreeBSD 6.1.
13468
13469         sigprocmask: move #include directive
13470         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13471         Windows-specific section, so that the Emacs source need not
13472         contain msvc-inval.h.
13473
13474 2011-09-23  Bruno Haible  <bruno@clisp.org>
13475
13476         read: Support for MSVC 9.
13477         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13478         is not 1.
13479         * lib/read.c (read_nothrow): New function.
13480         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13481         read_nothrow.
13482         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13483         invalid parameter handler.
13484         (gl_PREREQ_READ): New macro.
13485         * modules/read (Depends-on): Add msvc-inval.
13486         (configure.ac): Invoke gl_PREREQ_READ.
13487         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13488
13489 2011-09-23  Bruno Haible  <bruno@clisp.org>
13490
13491         close: Support for MSVC 9.
13492         * lib/close.c: Include <errno.h>, msvc-inval.h.
13493         (close_nothrow): New function.
13494         (rpl_close): Use it.
13495         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13496         invalid parameter handler.
13497         * modules/close (Depends-on): Add msvc-inval.
13498         * modules/dup2-tests (Depends-on): Add close.
13499         * modules/dup3-tests (Depends-on): Likewise.
13500         * modules/fcntl-tests (Depends-on): Likewise.
13501         * modules/spawn-pipe-tests (Depends-on): Likewise.
13502         * modules/unistd-safer-tests (Depends-on): Likewise.
13503         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13504
13505 2011-09-23  Bruno Haible  <bruno@clisp.org>
13506
13507         New module 'dup'.
13508         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13509         Allow replacement.
13510         * lib/dup.c: New file.
13511         * lib/fchdir.c (rpl_dup): Remove function.
13512         * m4/dup.m4: New file.
13513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13514         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13515         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13516         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13517         * modules/dup: New file.
13518         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13519         'dup' module is in use.
13520         * modules/fdopendir (Depends-on): Add dup.
13521         * modules/fdutimensat-tests (Depends-on): Likewise.
13522         * modules/fts (Depends-on): Likewise.
13523         * modules/futimens-tests (Depends-on): Likewise.
13524         * modules/posix_spawnp-tests (Depends-on): Likewise.
13525         * modules/unistd-safer-tests (Depends-on): Likewise.
13526         * modules/utimens-tests (Depends-on): Likewise.
13527         * doc/posix-functions/dup.texi: Mention the new module and the problem
13528         on MSVC.
13529
13530 2011-09-23  Bruno Haible  <bruno@clisp.org>
13531
13532         getdtablesize: Support for MSVC 9.
13533         * lib/getdtablesize.c: Include msvc-inval.h.
13534         (_setmaxstdio_nothrow): New function.
13535         (_setmaxstdio): Redefine it.
13536         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13537         * modules/getdtablesize (Depends-on): Add msvc-inval.
13538         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13539
13540 2011-09-23  Bruno Haible  <bruno@clisp.org>
13541
13542         signal-h: Rename from signal.
13543         * modules/signal-h: Renamed from modules/signal.
13544         * modules/pthread_sigmask (Depends-on): Update.
13545         * modules/raise (Depends-on): Likewise.
13546         * modules/sigaction (Depends-on): Likewise.
13547         * modules/sigpipe (Depends-on): Likewise.
13548         * modules/sigprocmask (Depends-on): Likewise.
13549         * modules/sys_select (Depends-on): Likewise.
13550         * modules/signal-h-tests: Renamed from modules/signal-tests.
13551         (Files, Depends-on, Makefile.am): Update.
13552         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13553         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13554         (Files, Makefile.am): Update.
13555         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13556         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13557         * modules/signal: New placeholder file.
13558         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13559         * doc/posix-headers/signal.texi: Update.
13560         * NEWS: Mention the change.
13561
13562 2011-09-23  Bruno Haible  <bruno@clisp.org>
13563
13564         sigprocmask: Avoid crashes through signal() on MSVC 9.
13565         * lib/sigprocmask.c: Include msvc-inval.h.
13566         (signal_nothrow): New function.
13567         (signal): Redefine it.
13568         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13569         * modules/sigprocmask (Depends-on): Add msvc-inval.
13570         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13571
13572 2011-09-23  Bruno Haible  <bruno@clisp.org>
13573
13574         Tests for module 'raise'.
13575         * modules/raise-tests: New file.
13576         * tests/test-raise.c: New file.
13577
13578         raise: Support for MSVC.
13579         * lib/signal.in.h (raise): New declaration.
13580         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13581         for native Windows platforms.
13582         * m4/raise.m4: New file.
13583         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13584         HAVE_RAISE, REPLACE_RAISE.
13585         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13586         REPLACE_RAISE.
13587         * modules/raise (Status, Notice): Remove fields.
13588         (Files): Add m4/raise.m4.
13589         (Depends-on): Add signal, msvc-inval.
13590         (configure.ac): Use the common idioms.
13591         (Maintainer): Add me.
13592         * tests/test-signal-c++.cc: Check the signature of raise.
13593         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13594
13595 2011-09-23  Bruno Haible  <bruno@clisp.org>
13596
13597         pipe2: Fix compilation on pre-C99 compilers.
13598         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13599
13600 2011-09-23  Bruno Haible  <bruno@clisp.org>
13601
13602         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13603         * lib/msvc-nothrow.h: New file.
13604         * lib/msvc-nothrow.c: New file.
13605         * m4/msvc-nothrow.m4: New file.
13606         * modules/msvc-nothrow: New file.
13607         * lib/dup2.c: Include msvc-nothrow.h.
13608         (rpl_dup2): No need to protect _get_osfhandle call here.
13609         * lib/accept4.c: Include msvc-nothrow.h.
13610         * lib/error.c: Likewise.
13611         * lib/fcntl.c: Likewise.
13612         * lib/lseek.c: Likewise.
13613         * lib/nonblocking.c: Likewise.
13614         * lib/poll.c: Likewise.
13615         * lib/read.c: Likewise.
13616         * lib/select.c: Likewise.
13617         * lib/sockets.h: Likewise.
13618         * lib/sockets.c: Likewise.
13619         * lib/stdio-read.c: Likewise.
13620         * lib/stdio-write.c: Likewise.
13621         * lib/write.c: Likewise.
13622         * lib/w32sock.h: Likewise.
13623         * lib/w32spawn.h: Likewise.
13624         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13625         * lib/fsync.c: Likewise.
13626         * lib/isapipe.c: Likewise.
13627         * modules/dup2 (Depends-on): Add msvc-nothrow.
13628         * modules/accept4 (Depends-on): Likewise.
13629         * modules/error (Depends-on): Likewise.
13630         * modules/fcntl (Depends-on): Likewise.
13631         * modules/lseek (Depends-on): Likewise.
13632         * modules/nonblocking (Depends-on): Likewise.
13633         * modules/poll (Depends-on): Likewise.
13634         * modules/read (Depends-on): Likewise.
13635         * modules/select (Depends-on): Likewise.
13636         * modules/sockets (Depends-on): Likewise.
13637         * modules/sigpipe (Depends-on): Likewise.
13638         * modules/write (Depends-on): Likewise.
13639         * modules/accept (Depends-on): Likewise.
13640         * modules/bind (Depends-on): Likewise.
13641         * modules/connect (Depends-on): Likewise.
13642         * modules/gethostname (Depends-on): Likewise.
13643         * modules/getpeername (Depends-on): Likewise.
13644         * modules/getsockname (Depends-on): Likewise.
13645         * modules/getsockopt (Depends-on): Likewise.
13646         * modules/ioctl (Depends-on): Likewise.
13647         * modules/listen (Depends-on): Likewise.
13648         * modules/recv (Depends-on): Likewise.
13649         * modules/recvfrom (Depends-on): Likewise.
13650         * modules/send (Depends-on): Likewise.
13651         * modules/sendto (Depends-on): Likewise.
13652         * modules/setsockopt (Depends-on): Likewise.
13653         * modules/shutdown (Depends-on): Likewise.
13654         * modules/socket (Depends-on): Likewise.
13655         * modules/execute (Depends-on): Likewise.
13656         * modules/spawn-pipe (Depends-on): Likewise.
13657         * modules/flock (Depends-on): Likewise.
13658         * modules/fsync (Depends-on): Likewise.
13659         * modules/isapipe (Depends-on): Likewise.
13660         * tests/test-cloexec.c: Include msvc-nothrow.h.
13661         * tests/test-dup-safer.c: Likewise.
13662         * tests/test-dup2.c: Likewise.
13663         * tests/test-dup3.c: Likewise.
13664         * tests/test-fcntl.c: Likewise.
13665         * tests/test-pipe.c: Likewise.
13666         * tests/test-pipe2.c: Likewise.
13667         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13668         * modules/unistd-safer-tests (Depends-on): Likewise.
13669         * modules/dup2-tests (Depends-on): Likewise.
13670         * modules/dup3-tests (Depends-on): Likewise.
13671         * modules/fcntl-tests (Depends-on): Likewise.
13672         * modules/pipe-posix-tests (Depends-on): Likewise.
13673         * modules/pipe2-tests (Depends-on): Likewise.
13674
13675 2011-09-23  Bruno Haible  <bruno@clisp.org>
13676
13677         dup2: Make code more maintainable.
13678         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13679         (rpl_dup2): Use it.
13680         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13681         * modules/dup2 (configure.ac): Invoke it.
13682         Reported by Paul Eggert.
13683
13684 2011-09-23  Bruno Haible  <bruno@clisp.org>
13685
13686         msvc-inval: Fix compilation error.
13687         * lib/msvc-inval.h: Include <excpt.h>.
13688
13689 2011-09-23  Bruno Haible  <bruno@clisp.org>
13690
13691         mkdir: Tweak for MSVC 9.
13692         * lib/sys_stat.in.h: Update comments.
13693         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13694
13695         Tests for module 'chdir'.
13696         * modules/chdir-tests: New file.
13697         * tests/test-chdir.c: New file.
13698
13699         New module 'chdir'.
13700         * modules/chdir: New file.
13701         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13702         (chdir): New declaration.
13703         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13704         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13705         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13706         * tests/test-unistd-c++.cc: Check signature of chdir.
13707         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13708         * modules/chdir-long (Depends-on): Add chdir.
13709         * modules/fchdir (Depends-on): Likewise.
13710         * modules/rename (Depends-on): Likewise.
13711         * modules/savewd (Depends-on): Likewise.
13712
13713         rmdir: Support for mingw, MSVC 9.
13714         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13715         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13716
13717         getcwd: Tweak for MSVC 9.
13718         * lib/unistd.in.h: Update comments.
13719         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13720
13721 2011-09-22  Bruno Haible  <bruno@clisp.org>
13722
13723         strerror_r-posix: Avoid a link error on MSVC.
13724         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13725         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13726
13727 2011-09-22  Bruno Haible  <bruno@clisp.org>
13728
13729         select: Avoid link errors on MSVC.
13730         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13731         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13732         * modules/pselect (Link): Likewise.
13733         * NEWS: Mention the change.
13734         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13735         test-select-stdin against $(LIB_SELECT).
13736         * modules/pselect-tests (Makefile.am): Link test-pselect against
13737         $(LIB_SELECT).
13738
13739 2011-09-22  Bruno Haible  <bruno@clisp.org>
13740
13741         select: Avoid compilation error on MSVC.
13742         * lib/select.c: Don't include <stdbool.h>.
13743
13744 2011-09-21  Bruno Haible  <bruno@clisp.org>
13745
13746         Consolidate all uses of PATH_MAX in *.m4 files.
13747         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13748         macros.
13749         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13750         and gl_PATHMAX_SNIPPET.
13751         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13752         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13753         * modules/chdir-long (Files): Add m4/pathmax.m4.
13754         * modules/getcwd (Files): Likewise.
13755
13756 2011-09-21  Bruno Haible  <bruno@clisp.org>
13757
13758         ftruncate: Un-deprecate, concentrate on Win32 support.
13759         * modules/ftruncate (Status, Notice): Remove sections.
13760         (Depends-on): Add largefile.
13761         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13762         non-mingw platforms.
13763         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13764         include <io.h>.
13765         * modules/perror-tests (Depends-on): Add ftruncate.
13766         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13767         'ftruncate' module.
13768
13769 2011-09-21  Bruno Haible  <bruno@clisp.org>
13770
13771         Add dependencies to new dirent related modules.
13772         * modules/opendir (Depends-on): Add closedir.
13773         * modules/getcwd (Depends-on): Add opendir, closedir.
13774         * modules/dirent-safer-tests (Depends-on): Likewise.
13775         * modules/fdopendir-tests (Depends-on): Likewise.
13776         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13777         * modules/renameat-tests (Depends-on): Likewise.
13778
13779 2011-09-21  Bruno Haible  <bruno@clisp.org>
13780
13781         opendir: Avoid compilation error on mingw.
13782         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13783         * modules/opendir (Depends-on): Add unistd.
13784
13785 2011-09-21  Bruno Haible  <bruno@clisp.org>
13786
13787         ftruncate tests: Avoid a test failure on mingw.
13788         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13789
13790 2011-09-21  Bruno Haible  <bruno@clisp.org>
13791
13792         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13793         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13794         native Windows.
13795
13796 2011-09-21  Bruno Haible  <bruno@clisp.org>
13797
13798         New module 'fdopen'.
13799         * lib/stdio.in.h (fdopen): New declaration.
13800         * lib/fdopen.c: New file.
13801         * m4/fdopen.m4: New file.
13802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13803         REPLACE_FDOPEN.
13804         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13805         REPLACE_FDOPEN.
13806         * modules/fdopen: New file.
13807         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13808         * tests/test-stdio-c++.cc: Check signature of fdopen.
13809         * doc/posix-functions/fdopen.texi: Mention the new module.
13810
13811 2011-09-21  Bruno Haible  <bruno@clisp.org>
13812
13813         unlockpt tests: Avoid test failure on NetBSD 5.1.
13814         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13815         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13816
13817 2011-09-21  Bruno Haible  <bruno@clisp.org>
13818
13819         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13820         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13821         * tests/test-getlogin_r.c (main): Likewise.
13822
13823 2011-09-20  Bruno Haible  <bruno@clisp.org>
13824
13825         time tests: Don't require pid_t.
13826         * doc/posix-headers/time.texi: Revert last change.
13827         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13828         * tests/test-time.c: Comment out the check for pid_t.
13829
13830 2011-09-20  Bruno Haible  <bruno@clisp.org>
13831
13832         fsync tests: Avoid a test failure on mingw.
13833         * tests/test-fsync.c (main): Allow a failure with EIO.
13834
13835 2011-09-20  Bruno Haible  <bruno@clisp.org>
13836
13837         euidaccess: Update comments.
13838         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13839
13840 2011-09-20  Bruno Haible  <bruno@clisp.org>
13841
13842         Ensure EBADF returns for socket functions on mingw.
13843         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13844         descriptor is invalid.
13845         * lib/bind.c (rpl_bind): Likewise.
13846         * lib/connect.c (rpl_connect): Likewise.
13847         * lib/getpeername.c (rpl_getpeername): Likewise.
13848         * lib/getsockname.c (rpl_getsockname): Likewise.
13849         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13850         * lib/listen.c (rpl_listen): Likewise.
13851         * lib/recv.c (rpl_recv): Likewise.
13852         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13853         * lib/send.c (rpl_send): Likewise.
13854         * lib/sendto.c (rpl_sendto): Likewise.
13855         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13856         * lib/shutdown.c (rpl_shutdown): Likewise.
13857
13858 2011-09-20  Bruno Haible  <bruno@clisp.org>
13859
13860         select tests: EBADF tests.
13861         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13862         test_bad_fd): New functions.
13863         (test_function): Invoke also test_bad_fd.
13864
13865 2011-09-20  Bruno Haible  <bruno@clisp.org>
13866
13867         Tests for module 'posix_spawn_file_actions_addopen.
13868         * modules/posix_spawn_file_actions_addopen-tests: New file.
13869         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13870
13871         Tests for module 'posix_spawn_file_actions_adddup2'.
13872         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13873         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13874
13875         Tests for module 'posix_spawn_file_actions_addclose'.
13876         * modules/posix_spawn_file_actions_addclose-tests: New file.
13877         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13878
13879 2011-09-20  Bruno Haible  <bruno@clisp.org>
13880
13881         Tests for module 'unlockpt'.
13882         * modules/unlockpt-tests: New file.
13883         * tests/test-unlockpt.c: New file.
13884         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13885
13886         Tests for module 'grantpt'.
13887         * modules/grantpt-tests: New file.
13888         * tests/test-grantpt.c: New file.
13889         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13890
13891 2011-09-20  Bruno Haible  <bruno@clisp.org>
13892
13893         freopen tests: EBADF tests.
13894         * tests/test-freopen.c: Include errno.h, unistd.h.
13895         (main): Add tests for EBADF, commented out for the moment.
13896
13897         fclose tests: EBADF tests.
13898         * tests/test-fclose.c (main): Add tests for EBADF.
13899
13900         fflush tests: EBADF tests.
13901         * tests/test-fflush.c: Include errno.h, macros.h.
13902         (main): Add tests for EBADF.
13903
13904         ftello tests: EBADF tests.
13905         * tests/test-ftello4.sh: New file.
13906         * tests/test-ftello4.c: New file.
13907         * modules/ftello-tests (Files): Add them.
13908         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13909
13910         fseeko tests: EBADF tests.
13911         * tests/test-fseeko4.sh: New file.
13912         * tests/test-fseeko4.c: New file.
13913         * modules/fseeko-tests (Files): Add them.
13914         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13915
13916         Tests for function fputc().
13917         * modules/fputc-tests: New file.
13918         * tests/test-fputc.c: New file.
13919         * modules/stdio-tests (Depends-on): Add fputc-tests.
13920
13921         Tests for function fgetc().
13922         * modules/fgetc-tests: New file.
13923         * tests/test-fgetc.c: New file.
13924         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13925
13926         Tests for function fdopen().
13927         * modules/fdopen-tests: New file.
13928         * tests/test-fdopen.c: New file.
13929         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13930
13931         Tests for module 'vdprintf'.
13932         * modules/vdprintf-tests: New file.
13933         * tests/test-vdprintf.c: New file.
13934
13935         Tests for module 'dprintf'.
13936         * modules/dprintf-tests: New file.
13937         * tests/test-dprintf.c: New file.
13938
13939 2011-09-20  Bruno Haible  <bruno@clisp.org>
13940
13941         Tests for module 'ioctl'.
13942         * modules/ioctl-tests: New file.
13943         * tests/test-ioctl.c: New file.
13944
13945 2011-09-20  Bruno Haible  <bruno@clisp.org>
13946
13947         fcntl tests: EBADF tests.
13948         * tests/test-fcntl.c (main): Add more tests for EBADF.
13949
13950 2011-09-20  Bruno Haible  <bruno@clisp.org>
13951
13952         utimensat tests: EBADF tests.
13953         * tests/test-utimensat.c (main): Add tests for EBADF.
13954
13955         renameat tests: EBADF tests.
13956         * tests/test-renameat.c (main): Add tests for EBADF.
13957
13958         mkfifoat tests: EBADF tests.
13959         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13960
13961         readlinkat tests: EBADF tests.
13962         * tests/test-readlinkat.c (main): Add tests for EBADF.
13963
13964         symlinkat tests: EBADF tests.
13965         * tests/test-symlinkat.c (main): Add tests for EBADF.
13966
13967         linkat tests: EBADF tests.
13968         * tests/test-linkat.c (main): Add tests for EBADF.
13969
13970         Tests for module 'faccessat'.
13971         * modules/faccessat-tests: New file.
13972         * tests/test-faccessat.c: New file.
13973
13974         fdopendir tests: EBADF tests.
13975         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13976
13977         openat tests: EBADF tests.
13978         * tests/test-fchownat.c (main): Add tests for EBADF.
13979         * tests/test-fstatat.c (main): Likewise.
13980         * tests/test-mkdirat.c (main): Likewise.
13981         * tests/test-openat.c (main): Likewise.
13982         * tests/test-unlinkat.c (main): Likewise.
13983         * tests/test-fchmodat.c: New file.
13984         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13985         (Makefile.am): Also run 'test-fchmodat'.
13986
13987 2011-09-20  Bruno Haible  <bruno@clisp.org>
13988
13989         utimens, futimens, fdutimensat tests: EBADF tests.
13990         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13991
13992         Tests for function fstat().
13993         * modules/fstat-tests: New file.
13994         * tests/test-fstat.c: New file.
13995         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13996
13997 2011-09-20  Bruno Haible  <bruno@clisp.org>
13998
13999         test-ttyname_r tests: EBADF tests.
14000         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14001
14002         Tests for module 'isatty'.
14003         * modules/isatty-tests: New file.
14004         * tests/test-isatty.c: New file.
14005
14006         Tests for module 'write'.
14007         * modules/write-tests: New file.
14008         * tests/test-write.c: New file.
14009
14010         Tests for module 'read'.
14011         * modules/read-tests: New file.
14012         * tests/test-read.c: New file.
14013
14014         pwrite tests: EBADF tests.
14015         * tests/test-pwrite.c (main): Add tests for EBADF.
14016
14017         pread tests: EBADF tests.
14018         * tests/test-pread.c (main): Add tests for EBADF.
14019
14020         lseek tests: EBADF tests.
14021         * tests/test-lseek.c (main): Add more tests for EBADF.
14022
14023         Tests for module 'ftruncate'.
14024         * modules/ftruncate-tests: New file.
14025         * tests/test-ftruncate.sh: New file.
14026         * tests/test-ftruncate.c: New file.
14027
14028         fsync tests: EBADF tests.
14029         * tests/test-fsync.c (main): Add more tests for EBADF.
14030
14031         fdatasync tests: EBADF tests.
14032         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14033
14034         Tests for module 'fchown'.
14035         * modules/fchown-tests: New file.
14036         * tests/test-fchown.c: New file.
14037
14038         Tests for module 'fchmod'.
14039         * modules/fchmod-tests: New file.
14040         * tests/test-fchmod.c: New file.
14041
14042         fchdir tests: EBADF tests.
14043         * tests/test-fchdir.c (main): Add more tests for EBADF.
14044
14045         dup2 tests: EBADF tests.
14046         * tests/test-dup2.c (main): Add more tests for EBADF.
14047
14048         Tests for module 'dup'.
14049         * modules/dup-tests: New file.
14050         * tests/test-dup.c: New file.
14051
14052         Tests for module 'close'.
14053         * modules/close-tests: New file.
14054         * tests/test-close.c: New file.
14055
14056 2011-09-20  Bruno Haible  <bruno@clisp.org>
14057
14058         Tests for module 'shutdown'.
14059         * modules/shutdown-tests: New file.
14060         * tests/test-shutdown.c: New file.
14061
14062         Tests for module 'setsockopt'.
14063         * modules/setsockopt-tests: New file.
14064         * tests/test-setsockopt.c: New file.
14065
14066         Tests for module 'sendto'.
14067         * modules/sendto-tests: New file.
14068         * tests/test-sendto.c: New file.
14069
14070         Tests for module 'send'.
14071         * modules/send-tests: New file.
14072         * tests/test-send.c: New file.
14073
14074         Tests for module 'recvfrom'.
14075         * modules/recvfrom-tests: New file.
14076         * tests/test-recvfrom.c: New file.
14077
14078         Tests for module 'recv'.
14079         * modules/recv-tests: New file.
14080         * tests/test-recv.c: New file.
14081
14082         Tests for module 'listen'.
14083         * modules/listen-tests: New file.
14084         * tests/test-listen.c: New file.
14085
14086         Tests for module 'getsockopt'.
14087         * modules/getsockopt-tests: New file.
14088         * tests/test-getsockopt.c: New file.
14089
14090         Tests for module 'getsockname'.
14091         * modules/getsockname-tests: New file.
14092         * tests/test-getsockname.c: New file.
14093
14094         Tests for module 'getpeername'.
14095         * modules/getpeername-tests: New file.
14096         * tests/test-getpeername.c: New file.
14097
14098         Tests for module 'connect'.
14099         * modules/connect-tests: New file.
14100         * tests/test-connect.c: New file.
14101
14102         Tests for module 'bind'.
14103         * modules/bind-tests: New file.
14104         * tests/test-bind.c: New file.
14105
14106         accept4 tests: Fix for native Windows.
14107         * tests/test-accept4.c: Include sockets.h.
14108         (main): Invoke gl_sockets_startup.
14109         * modules/accept4-tests (Depends-on): Add sockets.
14110
14111         accept tests: Fix for native Windows.
14112         * tests/test-accept.c: Include sockets.h.
14113         (main): Invoke gl_sockets_startup.
14114         * modules/accept-tests (Depends-on): Add sockets.
14115
14116 2011-09-19  Bruno Haible  <bruno@clisp.org>
14117
14118         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14119         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14120         do...while(0).
14121         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14122         Suggested by Paul Eggert.
14123
14124 2011-09-19  Bruno Haible  <bruno@clisp.org>
14125
14126         sched: Ensure pid_t is defined.
14127         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14128         not define pid_t.
14129         * lib/sched.in.h: Include <sys/types.h>.
14130         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14132
14133 2011-09-19  Bruno Haible  <bruno@clisp.org>
14134
14135         msvc-inval: Ensure the entire expansion is a single statement.
14136         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14137         of braces.
14138
14139 2011-09-19  Jim Meyering  <meyering@redhat.com>
14140
14141         tests: use printf, not echo in init.sh's warn_ function
14142         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14143         misbehave when given strings containing a backslash or starting
14144         with e.g., -n.  James Youngman suggested setting IFS.
14145
14146 2011-09-19  Eric Blake  <eblake@redhat.com>
14147
14148         futimens: enhance test
14149         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14150         closed non-negative fd.
14151
14152         date: accept 'hence' as opposite of 'ago'
14153         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14154         * tests/test-parse-datetime.c (main): Enhance test.
14155         Suggested by Jesse Wilson.
14156
14157 2011-09-19  Jim Meyering  <meyering@redhat.com>
14158
14159         getcwd: don't fail in a deep directory on a system without openat
14160         Before this change, getcwd would fail when called from a directory
14161         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14162         the non-openat implementation used "..", "../..", "../../..", etc.
14163         to access ancestor directories.  With too many, that string would
14164         be longer than PATH_MAX.
14165         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14166         using gnulib's openat replacement.
14167         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14168         we're using the replacement function.
14169
14170 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14171
14172         maint.mk: avoid warnings from perl about missing files
14173         * top/maint.mk (def_sym_regex): Ignore files listed in
14174         $(gl_other_headers_) that do not exist, say because a project
14175         does not use a corresponding module.
14176
14177 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14178
14179         stat: use pathmax.h only if needed
14180         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14181         This is better for Emacs, which does not have a mingw port and
14182         therefore can avoid the pathmax module.
14183
14184         utimens: remove dependency on dup2
14185         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14186         to work around the Linux kernel bug.
14187         * modules/utimens (Depends-on): Remove dup2.
14188
14189 2011-09-18  Bruno Haible  <bruno@clisp.org>
14190
14191         inet_ntop, inet_pton: Look for it also in libresolv.
14192         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14193         libnsl, search for it in libresolv.
14194         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14195         Needed on Solaris 7.
14196
14197 2011-09-18  Bruno Haible  <bruno@clisp.org>
14198
14199         accept, accept4 tests: Avoid link error on Solaris.
14200         * modules/accept-tests (Makefile.am): Link test-accept against
14201         $(LIBSOCKET).
14202         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14203         $(LIBSOCKET).
14204
14205         accept4: Avoid link error on Solaris.
14206         * modules/accept4 (Link): New section.
14207
14208         socket functions: Avoid link errors on Solaris.
14209         * modules/accept (Depends-on): Add socketlib.
14210         (Link): New section.
14211         * modules/bind (Depends-on): Add socketlib.
14212         (Link): New section.
14213         * modules/connect (Depends-on): Add socketlib.
14214         (Link): New section.
14215         * modules/getpeername (Depends-on): Add socketlib.
14216         (Link): New section.
14217         * modules/getsockname (Depends-on): Add socketlib.
14218         (Link): New section.
14219         * modules/getsockopt (Depends-on): Add socketlib.
14220         (Link): New section.
14221         * modules/listen (Depends-on): Add socketlib.
14222         (Link): New section.
14223         * modules/recv (Depends-on): Add socketlib.
14224         (Link): New section.
14225         * modules/recvfrom (Depends-on): Add socketlib.
14226         (Link): New section.
14227         * modules/send (Depends-on): Add socketlib.
14228         (Link): New section.
14229         * modules/sendto (Depends-on): Add socketlib.
14230         (Link): New section.
14231         * modules/setsockopt (Depends-on): Add socketlib.
14232         (Link): New section.
14233         * modules/shutdown (Depends-on): Add socketlib.
14234         (Link): New section.
14235         * modules/socket (Depends-on): Add socketlib.
14236         (Link): New section.
14237
14238 2011-09-18  Bruno Haible  <bruno@clisp.org>
14239
14240         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14241         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14242         than 5 seconds.
14243         * modules/ptsname-tests (configure.ac): Test for alarm.
14244
14245 2011-09-18  Bruno Haible  <bruno@clisp.org>
14246
14247         posix_spawn_file_actions_add*: Fix module dependencies.
14248         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14249         posix_spawn_file_actions_init.
14250         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14251         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14252
14253 2011-09-18  Bruno Haible  <bruno@clisp.org>
14254
14255         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14256         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14257         * tests/test-renameat.c (main): Likewise.
14258
14259 2011-09-18  Bruno Haible  <bruno@clisp.org>
14260
14261         Tests for module 'accept4'.
14262         * modules/accept4-tests: New file.
14263         * tests/test-accept4.c: New file.
14264
14265 2011-09-18  Bruno Haible  <bruno@clisp.org>
14266
14267         Tests for module 'accept'.
14268         * modules/accept-tests: New file.
14269         * tests/test-accept.c: New file.
14270
14271 2011-09-18  Bruno Haible  <bruno@clisp.org>
14272
14273         dup2: Support for MSVC.
14274         * lib/dup2.c: Include msvc-inval.h.
14275         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14276         _get_osfhandle calls.
14277         * modules/dup2 (Depends-on): Add msvc-inval.
14278         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14279
14280         New module 'msvc-inval'.
14281         * lib/msvc-inval.h: New file.
14282         * lib/msvc-inval.c: New file.
14283         * m4/msvc-inval.m4: New file.
14284         * modules/msvc-inval: New file.
14285
14286 2011-09-17  Bruno Haible  <bruno@clisp.org>
14287
14288         Tests for module 'pclose'.
14289         * modules/pclose-tests: New file.
14290
14291         New module 'pclose'.
14292         * lib/stdio.in.h (pclose): New declaration.
14293         * lib/pclose.c: New file.
14294         * m4/pclose.m4: New file.
14295         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14296         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14297         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14298         * modules/pclose: New file.
14299         * modules/popen-tests (Depends-on): Add pclose.
14300         * modules/popen-safer-tests (Depends-on): Likewise.
14301         * doc/posix-functions/pclose.texi: Mention the new module.
14302
14303 2011-09-17  Bruno Haible  <bruno@clisp.org>
14304
14305         popen: Support for MSVC.
14306         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14307         * lib/popen.c (popen): Provide alternate definition for native Windows.
14308         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14310         * modules/popen (Depends-on, configure.ac): Update condition.
14311         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14312         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14313         fixed.
14314
14315 2011-09-17  Bruno Haible  <bruno@clisp.org>
14316
14317         isnanl, isnand, isnanf: Work around MSVC bug.
14318         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14319
14320 2011-09-17  Bruno Haible  <bruno@clisp.org>
14321
14322         sys_socket tests: Fix recent mistake.
14323         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14324
14325 2011-09-17  Bruno Haible  <bruno@clisp.org>
14326
14327         putenv: Support for MSVC.
14328         * modules/putenv (Depends-on): Add environ.
14329         * lib/putenv.c (environ): Disable declaration.
14330         * lib/unistd.in.h: Update comment.
14331
14332 2011-09-17  Bruno Haible  <bruno@clisp.org>
14333
14334         math: Avoid macro redefinition warnings on MSVC.
14335         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14336         Undefine before redefining.
14337
14338 2011-09-17  Bruno Haible  <bruno@clisp.org>
14339
14340         doc: Mention functions which are declared as macros.
14341         * doc/posix-functions/*[fl].texi: Mention that some functions are
14342         defined as macros with arguments only.
14343
14344 2011-09-17  Bruno Haible  <bruno@clisp.org>
14345
14346         Add dependencies to new dirent related modules.
14347         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14348         * modules/fts (Depends-on): Likewise.
14349         * modules/glob (Depends-on): Likewise.
14350         * modules/savedir (Depends-on): Likewise.
14351         * modules/scandir (Depends-on): Likewise.
14352         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14353         * modules/fdopendir (Depends-on): Add opendir.
14354
14355 2011-09-17  Bruno Haible  <bruno@clisp.org>
14356
14357         inet_pton: Support for MSVC on Windows Vista or newer.
14358         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14359         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14360         HAVE_DECL_INET_PTON is defined.
14361         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14362         On platforms with <winsock2.h>, test whether inet_pton is declared in
14363         <ws2tcpip.h>. If so, arrange to replace it.
14364         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14365         REPLACE_INET_PTON.
14366         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14367         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14368         (Depends-on, configure.ac): Update condition.
14369         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14370
14371 2011-09-17  Bruno Haible  <bruno@clisp.org>
14372
14373         inet_ntop: Support for MSVC on Windows Vista or newer.
14374         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14375         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14376         HAVE_DECL_INET_NTOP is defined.
14377         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14378         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14379         <ws2tcpip.h>. If so, arrange to replace it.
14380         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14381         REPLACE_INET_NTOP.
14382         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14383         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14384         (Depends-on, configure.ac): Update condition.
14385         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14386
14387 2011-09-16  Eric Blake  <eblake@redhat.com>
14388
14389         test-fsync: yet another enhancement
14390         * tests/test-fsync.c (main): Also test behavior on read-only text
14391         file.
14392
14393 2011-09-16  Bruno Haible  <bruno@clisp.org>
14394
14395         Enhance fsync, fdatasync tests.
14396         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14397         * tests/test-fdatasync.c (main): Likewise.
14398
14399 2011-09-16  Bruno Haible  <bruno@clisp.org>
14400
14401         Support for MSVC compiler: Ensure mode_t gets defined.
14402         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14403         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14405         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14406         * tests/test-fcntl-h.c: Check that mode_t is defined.
14407         * tests/test-sys_stat.c: Likewise.
14408         * tests/test-sys_types.c: Likewise.
14409         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14410         * doc/posix-headers/sys_stat.texi: Likewise.
14411         * doc/posix-headers/sys_types.texi: Likewise.
14412
14413 2011-09-16  Bruno Haible  <bruno@clisp.org>
14414
14415         sys_stat: Support for MSVC.
14416         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14417         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14418         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14419         MSVC.
14420
14421 2011-09-16  Bruno Haible  <bruno@clisp.org>
14422
14423         Support for MSVC compiler: Ensure off_t gets defined.
14424         * lib/unistd.in.h: Include <sys/types.h>.
14425         * tests/test-fcntl-h.c: Check that off_t is defined.
14426         * tests/test-sys_stat.c: Likewise.
14427         * tests/test-sys_types.c: Likewise.
14428
14429 2011-09-16  Eric Blake  <eblake@redhat.com>
14430
14431         fdatasync: port to Solaris
14432         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14433         * modules/fdatasync (Link): Document it.
14434         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14435
14436         fdatasync: port to MacOS X 10.7
14437         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14438         declared.
14439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14440         * modules/unistd (Makefile.am): Substitute it.
14441         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14442         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14443
14444         fdatasync: minor improvements
14445         * modules/fdatasync (Depends-on): Add condition for fsync.
14446         * lib/fdatasync.c (fdatasync): Add comment.
14447         * tests/test-unistd-c++.cc: Test fdatasync.
14448
14449         unistd: update refs to newer POSIX
14450         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14451         Suggested by Bruno Haible.
14452
14453         fdatasync: new module
14454         * modules/fsync (Description): Document difference to fdatasync.
14455         * modules/fdatasync: New module.
14456         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14457         * lib/fdatasync.c (fdatasync): Likewise.
14458         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14459         defaults.
14460         * modules/unistd (Makefile.am): Set witnesses.
14461         * lib/unistd.in.h (fdatasync): Declare.
14462         * MODULES.html.sh: Document it.
14463         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14464         * modules/fdatasync-tests: New test.
14465         * tests/test-fdatasync.c: Likewise.
14466
14467 2011-09-16  Eric Blake  <eblake@redhat.com>
14468
14469         test-fsync: enhance tests
14470         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14471         * tests/test-fsync.c (main): Enhance test.
14472
14473 2011-09-15  Bruno Haible  <bruno@clisp.org>
14474
14475         Support for MSVC compiler: Ensure ssize_t gets defined.
14476         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14477         * doc/posix-headers/stdio.texi: Likewise.
14478         * modules/stdio (Depends-on): Add ssize_t.
14479         * modules/sys_socket (Depends-on): Likewise.
14480         * modules/sys_types (Depends-on): Likewise.
14481         * modules/sys_uio (Depends-on): Likewise.
14482         * modules/unistd (Depends-on): Likewise.
14483         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14484         * tests/test-sys_types.c: Check that ssize_t is defined.
14485
14486 2011-09-14  Bruno Haible  <bruno@clisp.org>
14487
14488         Avoid using #, the m4 comment starter character, near brackets.
14489         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14490         delimiter character in sed expressions.
14491         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14492         Suggested by Eric Blake.
14493
14494         Properly quote AC_CHECK_DECLS' 4th argument.
14495         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14496         argument.
14497         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14498         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14499         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14500         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14501         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14502         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14503         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14504         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14505         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14506         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14507         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14508         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14509         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14510         * m4/isinf.m4 (gl_ISINF): Likewise.
14511         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14512         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14513         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14514         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14515         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14516         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14517         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14518         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14519         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14520         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14521         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14522         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14523         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14524         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14526         Reported by Eric Blake.
14527
14528         Properly quote AC_CHECK_DECL's 4th argument.
14529         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14530         argument.
14531         * m4/argp.m4 (gl_ARGP): Likewise.
14532         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14533         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14534         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14535         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14536         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14537         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14538         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14539         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14540         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14541         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14542         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14543         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14544         Reported by Eric Blake.
14545
14546 2011-09-14  Eric Blake  <eblake@redhat.com>
14547
14548         opendir: avoid compile warning
14549         * lib/opendir.c (includes): Always include errno.h.
14550         Reported by Tatsuro MATSUOKA.
14551
14552 2011-09-14  Jim Meyering  <meyering@redhat.com>
14553
14554         maint.mk: sc_tight_scope: propagate failure from sub-make
14555         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14556         Reported by Martin von Gagern.
14557
14558 2011-09-13  Bruno Haible  <bruno@clisp.org>
14559
14560         tempname: Support for MSVC.
14561         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14562         MSVC.
14563         * modules/tempname (Depends-on): Add fcntl-h.
14564
14565 2011-09-13  Bruno Haible  <bruno@clisp.org>
14566
14567         sys_time: Support for MSVC.
14568         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14569         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14570         include <winsock2.h>.
14571         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14572         function declarations that collide with POSIX.
14573         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14574         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14575
14576 2011-09-13  Bruno Haible  <bruno@clisp.org>
14577
14578         stat: Support for MSVC.
14579         * lib/stat.c: Include pathmax.h.
14580         * modules/stat (Depends-on): Add pathmax.
14581
14582         pathmax: Support for native Windows.
14583         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14584
14585 2011-09-12  Bruno Haible  <bruno@clisp.org>
14586
14587         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14588         * lib/dirent.in.h (struct dirent): New type.
14589         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14590         DT_WHT): New macros.
14591         (DIR): New type.
14592         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14593         (readdir, rewinddir): New declarations.
14594         * lib/dirent-private.h: New file.
14595         * lib/opendir.c: New file.
14596         * lib/readdir.c: New file.
14597         * lib/rewinddir.c: New file.
14598         * lib/closedir.c: New file.
14599         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14600         * m4/opendir.m4: New file.
14601         * m4/readdir.m4: New file.
14602         * m4/rewinddir.m4: New file.
14603         * m4/closedir.m4: New file.
14604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14605         REPLACE_CLOSEDIR here.
14606         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14607         readdir, rewinddir are declared.
14608         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14609         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14610         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14611         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14612         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14613         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14614         * modules/opendir: New file.
14615         * modules/readdir: New file.
14616         * modules/rewinddir: New file.
14617         * modules/closedir: New file.
14618         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14619         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14620         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14621         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14622         * NEWS: Mention the 'fchdir' change.
14623
14624 2011-09-11  Bruno Haible  <bruno@clisp.org>
14625
14626         asm-underscore.m4: Support for MSVC.
14627         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14628         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14629
14630 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14631
14632         Doc about crypt functions.
14633         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14634         needing for _GNU_SOURCE to get crypt.
14635         * doc/posix-functions/encrypt.texi: Likewise.
14636         * doc/posix-functions/setkey.texi: Likewise.
14637
14638 2011-09-11  Bruno Haible  <bruno@clisp.org>
14639
14640         doc: Update regarding MSVC 9.
14641         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14642         tested".
14643         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14644         * doc/posix-headers/*.texi: Likewise.
14645         * doc/pastposix-functions/*.texi: Likewise.
14646         * doc/glibc-functions/*.texi: Likewise.
14647         * doc/glibc-headers/*.texi: Likewise.
14648
14649 2011-09-11  Bruno Haible  <bruno@clisp.org>
14650
14651         unistd et al.: Don't assume <unistd.h> exists.
14652         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14653         does not exist.
14654         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14655         exist. But include <stdlib.h>.
14656         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14657         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14658         symlink() does not exist.
14659         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14660         include <io.h> instead.
14661         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14662         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14663         include <direct.h> instead.
14664         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14665         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14666         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14667         <io.h> instead.
14668         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14669         correctly if the system does not have hard links.
14670         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14671         <direct.h> instead.
14672         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14673         it when looking for function declarations.
14674         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14675         <direct.h> and <io.h> instead.
14676         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14677
14678 2011-09-11  Bruno Haible  <bruno@clisp.org>
14679
14680         strcase: Support for MSVC.
14681         * modules/strcase (Status, Notice): Remove obsoletion mark.
14682         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14683         * doc/posix-functions/strncasecmp.texi: Likewise.
14684
14685         strings: Don't assume <strings.h> exists.
14686         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14687         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14688         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14689         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14690
14691 2011-09-11  Bruno Haible  <bruno@clisp.org>
14692
14693         dirent: Don't assume <dirent.h> exists.
14694         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14695         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14696         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14697         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14698
14699 2011-09-11  Bruno Haible  <bruno@clisp.org>
14700
14701         Fix wint_t on MSVC.
14702         * lib/wchar.in.h (wint_t): On MSVC, override it.
14703         * lib/wctype.in.h (wint_t): Likewise.
14704         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14705         MSVC.
14706         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14707         * doc/posix-headers/wctype.texi: Likewise.
14708
14709 2011-09-11  Bruno Haible  <bruno@clisp.org>
14710
14711         sys_types: Fix typo.
14712         * lib/sys_types.in.h: Fix typo in comment.
14713         Reported by Paul Eggert.
14714
14715         Support for MSVC compiler: Ensure size_t gets defined.
14716         * modules/strings (Depends-on): Add 'sys_types'.
14717         * modules/sys_uio (Depends-on): Likewise.
14718         * lib/sys_uio.in.h: Update comment.
14719
14720         C++ tests for module 'sys_types'.
14721         * modules/sys_types-c++-tests: New file.
14722         * tests/test-sys_types-c++.cc: New file.
14723
14724         Tests for module 'sys_types'.
14725         * modules/sys_types-tests: New file.
14726         * tests/test-sys_types.c: New file.
14727
14728         New module 'sys_types'.
14729         * lib/sys_types.in.h: New file.
14730         * m4/sys_types_h.m4: New file.
14731         * modules/sys_types: New file.
14732         * doc/posix-headers/sys_types.texi: Mention the new module and the
14733         size_t problem on MSVC 9.
14734
14735 2011-09-11  Bruno Haible  <bruno@clisp.org>
14736
14737         Support for MSVC compiler: Avoid division by a literal 0.
14738         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14739         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14740         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14741         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14742         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14743         * tests/infinity.h: New file.
14744         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14745         on MSVC.
14746         * tests/test-ceilf1.c: Include infinity.h.
14747         (main): Use Infinityf.
14748         * tests/test-ceil1.c: Include infinity.h.
14749         (main): Use Infinityd.
14750         * tests/test-ceill.c: Include infinity.h.
14751         (main): Use Infinityl.
14752         * tests/test-dprintf-posix.c: Include infinity.h.
14753         (test_function): Use Infinityd.
14754         * tests/test-floorf1.c: Include infinity.h.
14755         (main): Use Infinityf.
14756         * tests/test-floor1.c: Include infinity.h.
14757         (main): Use Infinityd.
14758         * tests/test-floorl.c: Include infinity.h.
14759         (main): Use Infinityl.
14760         * tests/test-fprintf-posix.c: Include infinity.h.
14761         (test_function): Use Infinityd.
14762         * tests/test-frexp.c: Include infinity.h.
14763         (main): Use Infinityd.
14764         * tests/test-frexpl.c: Include infinity.h.
14765         (main): Use Infinityl.
14766         * tests/test-isfinite.c: Include infinity.h.
14767         (test_isfinitef): Use Infinityf.
14768         (test_isfinited): Use Infinityd.
14769         (test_isfinitel): Use Infinityl.
14770         * tests/test-isinf.c: Include infinity.h.
14771         (test_isinff): Use Infinityf.
14772         (test_isinfd): Use Infinityd.
14773         (test_isinfl): Use Infinityl.
14774         * tests/test-isnan.c: Include infinity.h.
14775         (test_float): Use Infinityf.
14776         (test_double): Use Infinityd.
14777         (test_long_double): Use Infinityl.
14778         * tests/test-isnanf.h: Include infinity.h.
14779         (main): Use Infinityf.
14780         * tests/test-isnand.h: Include infinity.h.
14781         (main): Use Infinityd.
14782         * tests/test-isnanl.h: Include infinity.h.
14783         (main): Use Infinityl.
14784         * tests/test-ldexpl.c: Include infinity.h.
14785         (main): Use Infinityl.
14786         * tests/test-printf-posix.h: Include infinity.h.
14787         (test_function): Use Infinityd.
14788         * tests/test-roundf1.c: Include infinity.h.
14789         (main): Use Infinityf.
14790         * tests/test-round1.c: Include infinity.h.
14791         (main): Use Infinityd.
14792         * tests/test-roundl.c: Include infinity.h.
14793         (main): Use Infinityl.
14794         * tests/test-signbit.c: Include infinity.h.
14795         (test_signbitf): Use Infinityf.
14796         (test_signbitd): Use Infinityd.
14797         (test_signbitl): Use Infinityl.
14798         * tests/test-snprintf-posix.h: Include infinity.h.
14799         (test_function): Use Infinityd, Infinityl.
14800         * tests/test-sprintf-posix.h: Include infinity.h.
14801         (test_function): Use Infinityd, Infinityl.
14802         * tests/test-truncf1.c: Include infinity.h.
14803         (main): Use Infinityf.
14804         * tests/test-trunc1.c: Include infinity.h.
14805         (main): Use Infinityd.
14806         * tests/test-truncl.c: Include infinity.h.
14807         (main): Use Infinityl.
14808         * tests/test-vasnprintf-posix.c: Include infinity.h.
14809         (test_function): Use Infinityd, Infinityl.
14810         * tests/test-vasprintf-posix.c: Include infinity.h.
14811         (test_function): Use Infinityd, Infinityl.
14812         * modules/ceilf-tests (Files): Add tests/infinity.h.
14813         * modules/ceil-tests (Files): Likewise.
14814         * modules/ceill-tests (Files): Likewise.
14815         * modules/dprintf-posix-tests (Files): Likewise.
14816         * modules/floorf-tests (Files): Likewise.
14817         * modules/floor-tests (Files): Likewise.
14818         * modules/floorl-tests (Files): Likewise.
14819         * modules/fprintf-posix-tests (Files): Likewise.
14820         * modules/frexp-tests (Files): Likewise.
14821         * modules/frexp-nolibm-tests (Files): Likewise.
14822         * modules/frexpl-tests (Files): Likewise.
14823         * modules/frexpl-nolibm-tests (Files): Likewise.
14824         * modules/isfinite-tests (Files): Likewise.
14825         * modules/isinf-tests (Files): Likewise.
14826         * modules/isnan-tests (Files): Likewise.
14827         * modules/isnanf-tests (Files): Likewise.
14828         * modules/isnanf-nolibm-tests (Files): Likewise.
14829         * modules/isnand-tests (Files): Likewise.
14830         * modules/isnand-nolibm-tests (Files): Likewise.
14831         * modules/isnanl-tests (Files): Likewise.
14832         * modules/isnanl-nolibm-tests (Files): Likewise.
14833         * modules/ldexpl-tests (Files): Likewise.
14834         * modules/printf-posix-tests (Files): Likewise.
14835         * modules/roundf-tests (Files): Likewise.
14836         * modules/round-tests (Files): Likewise.
14837         * modules/roundl-tests (Files): Likewise.
14838         * modules/signbit-tests (Files): Likewise.
14839         * modules/snprintf-posix-tests (Files): Likewise.
14840         * modules/sprintf-posix-tests (Files): Likewise.
14841         * modules/truncf-tests (Files): Likewise.
14842         * modules/trunc-tests (Files): Likewise.
14843         * modules/truncl-tests (Files): Likewise.
14844         * modules/vasnprintf-posix-tests (Files): Likewise.
14845         * modules/vasprintf-posix-tests (Files): Likewise.
14846         * modules/vdprintf-posix-tests (Files): Likewise.
14847         * modules/vfprintf-posix-tests (Files): Likewise.
14848         * modules/vprintf-posix-tests (Files): Likewise.
14849         * modules/vsnprintf-posix-tests (Files): Likewise.
14850         * modules/vsprintf-posix-tests (Files): Likewise.
14851         * modules/xprintf-posix-tests (Files): Likewise.
14852
14853 2011-09-11  Bruno Haible  <bruno@clisp.org>
14854
14855         Ensure pid_t gets defined.
14856         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14857         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14858         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14859         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14860         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14861         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14862         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14863         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14864         * tests/test-fcntl-h.c: Check that pid_t is defined.
14865         * tests/test-sched.c: Likewise.
14866         * tests/test-termios.c: Likewise.
14867         * tests/test-time.c: Likewise.
14868         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14869         * doc/posix-headers/signal.texi: Likewise.
14870         * doc/posix-headers/sys_types.texi: Likewise.
14871         * doc/posix-headers/time.texi: Likewise.
14872
14873 2011-09-11  Bruno Haible  <bruno@clisp.org>
14874
14875         acl: Fix compilation on Solaris 10 (older version).
14876         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14877         of ACE_EVERYONE.
14878         * lib/set-mode-acl.c (qset_acl): Likewise.
14879         Reported by Christian Jullien <eligis@orange.fr>.
14880
14881 2011-09-10  Bruno Haible  <bruno@clisp.org>
14882
14883         iconv, unsetenv: Add support for MSVC compiler.
14884         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14885         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14886
14887 2011-09-10  Bruno Haible  <bruno@clisp.org>
14888
14889         *printf: Add support for MSVC compiler.
14890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14891         handles the exception caused by the %n directive. When cross-compiling,
14892         guess no on native Windows.
14893         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14894         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14895         emulate it through vsnprintf.
14896         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14897         * doc/posix-functions/dprintf.texi: Update documentation regarding
14898         MSVC 9.
14899         * doc/posix-functions/fprintf.texi: Likewise.
14900         * doc/posix-functions/printf.texi: Likewise.
14901         * doc/posix-functions/snprintf.texi: Likewise.
14902         * doc/posix-functions/sprintf.texi: Likewise.
14903         * doc/posix-functions/swprintf.texi: Likewise.
14904         * doc/posix-functions/vdprintf.texi: Likewise.
14905         * doc/posix-functions/vfprintf.texi: Likewise.
14906         * doc/posix-functions/vprintf.texi: Likewise.
14907         * doc/posix-functions/vsnprintf.texi: Likewise.
14908         * doc/posix-functions/vsprintf.texi: Likewise.
14909         * doc/glibc-functions/asprintf.texi: Likewise.
14910         * doc/glibc-functions/obstack_printf.texi: Likewise.
14911         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14912         * doc/glibc-functions/vasprintf.texi: Likewise.
14913
14914 2011-09-10  Bruno Haible  <bruno@clisp.org>
14915
14916         nocrash: Add support for native Windows.
14917         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14918
14919 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14920             Bruno Haible  <bruno@clisp.org>
14921
14922         absolute-header, include-next: Add support for MSVC compiler.
14923         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14924         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14925         directory separator in #line directives.
14926         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14927         recognize also backslash as directory separator in #line directives.
14928
14929 2011-09-08  Jim Meyering  <meyering@redhat.com>
14930
14931         maint.mk: mark the post-release commit log with "maint: " prefix
14932         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14933         one-line commit-log summary.
14934
14935 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14936             Bruno Haible  <bruno@clisp.org>
14937
14938         Doc about crypt functions.
14939         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14940         systems.
14941         * doc/posix-functions/encrypt.texi: Likewise.
14942         * doc/posix-functions/setkey.texi: Likewise.
14943
14944 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14945
14946         * lib/gc.h: Fix copyright header.
14947
14948 2011-09-07  Bruno Haible  <bruno@clisp.org>
14949
14950         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14951         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14952         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14953
14954 2011-09-07  Bruno Haible  <bruno@clisp.org>
14955
14956         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14957         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14958         * lib/freopen.c: Likewise.
14959         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14960         * lib/lstat.c: Likewise.
14961         * lib/stat.c: Likewise.
14962         * lib/open.c: Use different syntax for include of <fcntl.h>.
14963         * lib/openat.c: Include fcntl.h again, explicitly.
14964
14965 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14966
14967         parse-datetime: document the newly accepted format
14968         * doc/parse-datetime.texi (Combined date and time of day items):
14969         New section.
14970
14971 2011-09-06  Bruno Haible  <bruno@clisp.org>
14972
14973         acl: Fix a test failure on newer Solaris 10 with ZFS.
14974         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14975         ENOSYS as no ACL.
14976         Reported by Jim Meyering.
14977
14978 2011-09-06  Bruno Haible  <bruno@clisp.org>
14979
14980         acl: Update for AIX >= 5.3 with NFS.
14981         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14982         ENOSYS as no ACL.
14983
14984         acl: Fix a test failure on AIX >= 5.3 with NFS.
14985         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14986         as no ACL.
14987
14988 2011-09-06  Bruno Haible  <bruno@clisp.org>
14989
14990         acl: Fix a test failure on IRIX 6.5 with NFS.
14991         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14992         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14993         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14994         * lib/copy-acl.c (qcopy_acl): Likewise.
14995
14996 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14997
14998         openat: port to AIX 7.1 with large files
14999         AIX 7.1 does a "#define openat open64at" if large files are in use,
15000         so we can't simply #undef openat.  Use the orig_openat trick (similar
15001         to orig_open in lib/open.c) to work around the problem.  Problem
15002         reported by Kevin Brott for GNU tar, in the thread containing
15003         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15004         * lib/openat.c (__need_system_fcntl_h): Define first.
15005         Include <fcntl.h> and <sys/types.h> before undefining.
15006         (orig_openat) [HAVE_OPENAT]: New inline function.
15007         (openat) [HAVE_OPENAT]: Do not undef.
15008         (rpl_openat): Use orig_openat, not openat.
15009
15010 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15011             Bruno Haible  <bruno@clisp.org>
15012
15013         acl: Avoid errors on NonStop Kernel.
15014         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15015         ENOTSUP errors.
15016
15017 2011-09-05  Bruno Haible  <bruno@clisp.org>
15018
15019         acl: Clean up Solaris code.
15020         * lib/acl-internal.h: Remove no-op #if.
15021         * lib/file-has-acl.c: Likewise.
15022         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15023         * lib/copy-acl.c (qcopy_acl): Likewise.
15024
15025 2011-09-05  Bruno Haible  <bruno@clisp.org>
15026
15027         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15028         binaries built on the original Solaris 10.
15029         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15030         trivial.
15031
15032 2011-09-05  Bruno Haible  <bruno@clisp.org>
15033
15034         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15035         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15036         10.
15037         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15038         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15039         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15040         instead of acl_get, facl_get, acl_set, facl_set.
15041
15042 2011-09-05  Bruno Haible  <bruno@clisp.org>
15043
15044         copy-file: Try unit tests on more file systems.
15045         * tests/test-copy-file-1.sh: New file.
15046         * tests/test-copy-file-2.sh: New file.
15047         * modules/copy-file-tests (Files): Add them.
15048         (Makefile.am): Add them to TESTS.
15049
15050         acl: Try unit tests on more file systems.
15051         * tests/test-file-has-acl-1.sh: New file.
15052         * tests/test-file-has-acl-2.sh: New file.
15053         * tests/test-set-mode-acl-1.sh: New file.
15054         * tests/test-set-mode-acl-2.sh: New file.
15055         * tests/test-copy-acl-1.sh: New file.
15056         * tests/test-copy-acl-2.sh: New file.
15057         * modules/acl-tests (Files): Add them.
15058         (Makefile.am): Add them to TESTS.
15059
15060 2011-09-04  Bruno Haible  <bruno@clisp.org>
15061
15062         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15063         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15064         10.
15065         (OLD_ALLOW, OLD_DENY): New macros.
15066         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15067         ACE_ACCESS_ALLOWED_ACE_TYPE.
15068         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15069         ACE_ACCESS_DENIED_ACE_TYPE.
15070         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15071         (NEW_ACE_EXECUTE): Fix value.
15072         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15073         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15074         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15075         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15076         NEW_ACE_SYNCHRONIZE): New macros.
15077         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15078         instead of acl_fromtext, acl_set, facl_set.
15079         Fixes a coreutils/tests/cp/perm failure.
15080
15081 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15082
15083         openat: test for fstatat (..., 0) bug
15084         Further testing with tar suggests that fstatat (..., 0)
15085         does not work in general, on AIX 7.1; see
15086         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15087         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15088         replacement fstatat (which is what older AIX releases were using
15089         anyway).
15090         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15091         use is now changed to orig_fstatat.  This was probably the right
15092         thing to do anyway.
15093         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15094         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15095         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15096         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15097         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15098         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15099         if the bug is found.
15100
15101         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15102         This tests for another fstatat bug on AIX 7.1:
15103         fstatat (AT_FDCWD, ..., 0) does not work.  See
15104         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15105         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15106         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15107         (rpl_fstatat): Adjust so that it works around either (or both)
15108         bugs if present.
15109         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15110
15111 2011-09-03  Karl Berry  <karl@gnu.org>
15112
15113         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15114         in index entries.
15115
15116 2011-09-02  Bruno Haible  <bruno@clisp.org>
15117
15118         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15119         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15120         values of AR, ARFLAGS, RANLIB.
15121         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15122
15123 2011-09-02  Bruno Haible  <bruno@clisp.org>
15124
15125         Find 'ar' program that fits with --host argument.
15126         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15127
15128 2011-09-02  Bruno Haible  <bruno@clisp.org>
15129
15130         tests: init.sh: Support any non-GNU diff.
15131         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15132         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15133         Solaris 8.
15134
15135 2011-09-02  Bruno Haible  <bruno@clisp.org>
15136
15137         tests: init.sh: work also with any non-GNU diff that supports -u
15138         * tests/init.sh: Relax check for diff -u support.
15139         Rather than checking for GNU diff via --version, simply check
15140         for support for -u itself.  Useful at least on OpenBSD 4.9,
15141         AIX 7.1, IRIX 6.5, and Solaris 10.
15142
15143 2011-09-01  Bruno Haible  <bruno@clisp.org>
15144
15145         strtoimax, strtoumax: Document problem on HP-UX 11.
15146         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15147         * doc/posix-functions/strtoumax.texi: Likewise.
15148
15149 2011-09-01  Bruno Haible  <bruno@clisp.org>
15150
15151         strtoumax: Avoid link error on OSF/1 with DTK cc.
15152         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15153         defined as a function.
15154         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15155         strtoumax is defined, not whether it is declared.
15156
15157 2011-09-01  Bruno Haible  <bruno@clisp.org>
15158
15159         strtoimax: Avoid link error on OSF/1 with DTK cc.
15160         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15161         defined as a function.
15162         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15163         strtoimax is defined, not whether it is declared.
15164
15165 2011-09-01  Bruno Haible  <bruno@clisp.org>
15166
15167         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15168         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15169         as a function.
15170         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15171         whether it is declared.
15172
15173 2011-09-01  Bruno Haible  <bruno@clisp.org>
15174
15175         imaxabs: Avoid link error on OSF/1 with DTK cc.
15176         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15177         as a function.
15178         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15179         whether it is declared.
15180
15181 2011-09-01  Bruno Haible  <bruno@clisp.org>
15182
15183         Tests for module 'strtoumax'.
15184         * modules/strtoumax-tests: New file.
15185         * tests/test-strtoumax.c: New file.
15186
15187         Tests for module 'strtoimax'.
15188         * modules/strtoimax-tests: New file.
15189         * tests/test-strtoimax.c: New file.
15190
15191         Tests for module 'imaxdiv'.
15192         * modules/imaxdiv-tests: New file.
15193         * tests/test-imaxdiv.c: New file.
15194
15195         Tests for module 'imaxabs'.
15196         * modules/imaxabs-tests: New file.
15197         * tests/test-imaxabs.c: New file.
15198
15199 2011-09-01  Bruno Haible  <bruno@clisp.org>
15200
15201         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15202         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15203         pthread_create.
15204
15205 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15206
15207         openat: work around AIX 7.1 fstatat issue
15208         This should fix the problem that was not properly fixed
15209         in the previous change, dated 2011-08-30.
15210         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15211         __need_system_stat_h defined.
15212         (orig_fstatat) [HAVE_FSTATAT]: New function.
15213         (rpl_fstatat): Go back to the old way of doing things,
15214         except call orig_fstatat instead of fstatat.
15215         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15216         Remove unnecessary check whether fstatat fills in st_size etc.
15217
15218 2011-09-01  Bruno Haible  <bruno@clisp.org>
15219
15220         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15221         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15222         just include the system's header.
15223
15224 2011-08-31  Jim Meyering  <meyering@redhat.com>
15225
15226         tests: avoid spurious assertion failure in test-float.c on ppc64
15227         * tests/test-float.c (test_long_double): Comment out an assertion,
15228         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15229         with gcc-4.4.4.
15230
15231         maint: indent with spaces, not TABs
15232         I need to get in the habit of running gnulib's "make check".
15233         Both of these would have been caught.
15234         * m4/largefile.m4: Indent with spaces, not TABs.
15235         * lib/parse-datetime.y (iso_8601_time): Likewise.
15236         Spotted by Pádraig Brady.
15237
15238         test-parse-datetime.c: accommodate a relatively strict gcc warning
15239         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15240         to avoid a warning from gcc's -Werror=missing-declarations.
15241         Insert a few spaces-before-funcall-parenthesis.
15242
15243 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15244
15245         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15246         The parser now accepts ISO 8601 date-time strings with "T" as the
15247         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15248         with a space between the date and time strings.  Now it also parses
15249         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15250         variants like "2004-02-29T16:21:42.333-07:00"
15251         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15252         of day representation using the 'T' separator character.
15253         * doc/parse-datetime.texi (General date syntax): replace use of
15254         deprecated --iso-8601 option with --rfc-3339 in example of date
15255         command output formats that can be parsed.
15256         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15257         lib/parse-datetime.y.
15258         (gmt_offset): New function.
15259         (main): Add additional test cases to validate ISO8601 extended
15260         date and time of day parsing.
15261
15262 2011-08-31  Bruno Haible  <bruno@clisp.org>
15263
15264         freopen: Documentation.
15265         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15266         name.
15267         Reported by Claudio Bley <claudio.bley@gmail.com>.
15268
15269 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15270
15271         freopen: Don't crash if the filename argument is NULL.
15272         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15273         NULL.
15274
15275 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15276
15277         openat: work around AIX 7.1 fstatat bug
15278         Problem reported by Kevin Brott for GNU tar, in the thread containing
15279         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15280         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15281         FSTATAT_ST_SIZE_ETC_BROKEN.
15282         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15283         rpl_fstatat.
15284         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15285         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15286         AC_CHECK_FUNCS_ONCE for fstatat.
15287         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15288         fchmodat, mkdirat, openat and unlinkat.
15289
15290 2011-08-30  Bruno Haible  <bruno@clisp.org>
15291
15292         Avoid endless recursions if config.h includes some header files.
15293         * lib/fopen.c (__need_FILE): Define already before including config.h.
15294         * lib/freopen.c (__need_FILE): Likewise.
15295         * lib/open.c (__need_system_fcntl_h): Likewise.
15296         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15297         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15298         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15299
15300 2011-08-25  Karl Berry  <karl@gnu.org>
15301
15302         * config/srclist.txt (ylwrap): new try.
15303         * build-aux/ylwrap: new file.
15304
15305 2011-08-23  Bruno Haible  <bruno@clisp.org>
15306
15307         tmpdir: Use a good default directory on native Windows.
15308         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15309         (P_tmpdir): Default to _P_tmpdir on native Windows.
15310         (path_search): On native Windows, try the value returned by GetTempPath
15311         before trying P_tmpdir.
15312         * modules/tmpdir (Depends-on): Add pathmax.
15313         Suggested by John Darrington <john@darrington.wattle.id.au>.
15314
15315 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15316
15317         doc: fix typo in README-release
15318         * top/README-release: Capitalize first word of a sentence.
15319
15320 2011-08-19  Jim Meyering  <meyering@redhat.com>
15321
15322         fts: do not exhaust memory when processing million-entry directories
15323         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15324         directory would require about 256*N bytes of memory.  Thus, it was
15325         easy to construct a directory too large to be processed by any of
15326         those tools.  With this change, fts' maximum memory utilization is
15327         now limited to around 30MB.
15328         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15329         (fts_read): When we've processed the final entry (i.e., when
15330         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15331         using the parent entry to read any remaining entries.  Dispatch
15332         depending on what fts_build returns:
15333         - NULL+stop, aka failure: stop
15334         - NULL otherwise: move up in the dir hierarchy
15335         - non-NULL: handle this new entry
15336         (fts_build): Declare and use new local, continue_readdir.
15337         Prepare to be called from fts_read, when the entries
15338         from a partially-read directory have just been exhausted.
15339         In that case, we'll skip the opendir and instead use the parent's
15340         fts_dirp and derive dir_fd from that.
15341         Finally, in the readdir loop, if we read max_entries entries,
15342         exit the loop ensuring *not* to call closedir.  This is required
15343         so that fts_dirp can be reused on a subsequent call.
15344         Prompted by Ben England's report of memory exhaustion in find
15345         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15346
15347         maint: fts: move decl of `dp' down into while loop; split a long line
15348         * lib/fts.c (fts_build): No semantic change.
15349
15350         fts: add/use new struct member, fts_dirp
15351         We are about to use this to manage any directory with
15352         too many entries to read all of them into memory at once.
15353         To do that, we'll need to save the DIR* pointer in each
15354         affected FTSENT struct.
15355         * lib/fts_.h: Include <dirent.h>.
15356         (struct FTSENT) [fts_dirp]: New member.
15357         * lib/fts.c (closedir_and_clear): Define.
15358         Use it in place of closedir so that we are sure to
15359         clear the new fts_dirp member when done with it.
15360         (fts_alloc): Initialize the new member.
15361         (fts_lfree): Free, if needed.
15362
15363         maint: fts: give __opendir2 a new parameter and rename
15364         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15365         than surreptitiously using sole caller's "dir_fd".
15366         (fts_opendir): Rename from __opendir2.
15367
15368         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15369         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15370
15371         maint: fts.c: correct off-by-one indentation
15372         * lib/fts.c (fts_build): Correct indentation, change style
15373         of a couple of block comments, and bracing style.
15374
15375         maint: fts.c: move __opendir2 #define "up" out of function body
15376         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15377
15378         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15379         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15380         out for a long time and besides was useful only on BSD systems.
15381
15382 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15383
15384         regex: port to Stratus OpenVOS
15385         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15386         define to empty, rather than attempting nonportable optimizations.
15387         Problem reported by Paul Green in:
15388         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15389         and fix suggested by Eric Blake in:
15390         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15391
15392 2011-08-17  Eric Blake  <eblake@redhat.com>
15393
15394         getcwd: fix test failures on mingw
15395         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15396         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15397         test if long directory cannot be created, and allow mingw errno.
15398
15399         getcwd-lgpl: fix m4 to match relaxed test for BSD
15400         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15401         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15402         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15403         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15404         signature problem.
15405
15406         getcwd: fix compilation on mingw64
15407         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15408         getcwd.
15409         Reported by Marc-André Lureau.
15410
15411         pipe2: silence compiler warning
15412         * lib/pipe2.c (pipe2): Hide label if it is not used.
15413
15414 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15415
15416         relocatable-prog: fix link error
15417         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15418         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15419         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15420         into modules/relocatable-lib without noticing that
15421         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15422         also needs to build relocatable.c.
15423
15424 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15425
15426         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15427         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15428         shell code: it contained a 'break' that was not in a loop.
15429         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15430         via a shell-language loop; this may have been true in old Autoconf
15431         versions, but it's not true in Autoconf 2.68.  I found this bug
15432         when testing coreutils git on Solaris 8, whose shell complains
15433         about the syntax error.
15434
15435 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15436
15437         * lib/base64.c: Fix comment to reference RFC 4648.
15438         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15439         <gvtulder@gmail.com>.
15440
15441 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15442
15443         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15444
15445         po/Makefile.in.in: fix make -q problem
15446         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15447         rule, since there's no file named 'check-macro-version' and its
15448         use as a file breaks make -q.
15449         (all): Don't depend on check-macro-version.
15450         (CHECK_MACRO_VERSION): New macro.
15451         (stamp-po): Use it.
15452
15453         configmake: fix make -q problem
15454         * modules/configmake (configmake.h): Update configmake.h's time stamp
15455         even if the file does not change.  Otherwise, 'make -q' fails.
15456         Problem reported by Simon Josefsson in
15457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15458
15459 2011-08-11  Jim Meyering  <meyering@redhat.com>
15460
15461         git-version-gen: correct the advice in a comment
15462         * build-aux/git-version-gen: Correct comment.
15463         Don't recommend to list .tarball-version in .gitignore.
15464
15465 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15466
15467         base64: fix off-by-one buffer size bug
15468         Problem and (trivial) fix reported by Gijs van Tulder in
15469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15470         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15471         * tests/test-base64.c (main): Catch the bug.
15472
15473 2011-08-10  Eric Blake  <eblake@redhat.com>
15474
15475         closein: correct comments
15476         * lib/closein.c (close_stdin): Improve comments.
15477
15478 2011-08-09  Bruno Haible  <bruno@clisp.org>
15479
15480         More tests for 'fseeko'.
15481         * tests/test-fseeko3.c: New file, from Eric Blake.
15482         * tests/test-fseeko3.sh: New file.
15483         * modules/fseeko-tests (Files): Add them.
15484         (TESTS): Add test-fseeko3.sh.
15485         (check_PROGRAMS): Add test-fseeko3.
15486
15487 2011-08-09  Eric Blake  <eblake@redhat.com>
15488
15489         fseeko: remove unneeded hack
15490         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15491
15492         fseeko: fix bug on glibc
15493         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15494         Reported by John W. Eaton.
15495
15496 2011-08-08  Bruno Haible  <bruno@clisp.org>
15497
15498         unictype/base: Fix interoperability with preinstalled libunistring.
15499         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15500         Reported by Simon Josefsson.
15501
15502 2011-08-08  Bruno Haible  <bruno@clisp.org>
15503
15504         iswblank: Detect declaration correctly.
15505         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15506         AC_CHECK_DECLS invocation.
15507
15508 2011-08-08  Bruno Haible  <bruno@clisp.org>
15509
15510         tcgetsid: Detect declaration correctly.
15511         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15512         AC_CHECK_DECLS invocation.
15513         Reported by Simon Josefsson.
15514
15515 2011-08-08  Eric Blake  <eblake@redhat.com>
15516
15517         largefile: fix typo that regressed large file support
15518         * modules/largefile (configure.ac-early): Fix section name.
15519
15520 2011-08-06  Karl Berry  <karl@gnu.org>
15521
15522         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15523         a separate module.
15524
15525 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15526
15527         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15528         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15529         get prototype for free.
15530
15531 2011-08-04  Bruno Haible  <bruno@clisp.org>
15532
15533         Tests for module 'pathmax'.
15534         * modules/pathmax-tests: New file.
15535         * tests/test-pathmax.c: New file.
15536
15537         canonicalize-lgpl: Support larger filenames on the Hurd.
15538         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15539         Reported by Paul Eggert.
15540
15541         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15542         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15543         * lib/chdir-long.h: Include pathmax.h.
15544         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15545         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15546         (PATH_MAX): Remove code that is done by pathmax.h.
15547         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15548         * lib/tmpfile.c: Add a comment.
15549         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15550         * modules/chdir-long (Depends-on): Add pathmax.
15551         * modules/getcwd (Depends-on): Add pathmax.
15552         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15553         is not defined.
15554         * doc/posix-headers/limits.texi: Mention the pathmax module.
15555         * NEWS: Mention the change.
15556
15557 2011-08-02  Bruno Haible  <bruno@clisp.org>
15558
15559         pthread_sigmask: Actually use results of gl_THREADLIB.
15560         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15561         gl_THREADLIB, not gl_[]THREADLIB.
15562         Reported by Eric Blake.
15563
15564 2011-08-02  Jim Meyering  <meyering@redhat.com>
15565
15566         maint.mk: relax the default _gl_TS_function_match regexp
15567         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15568         space between function name and "(" in an "extern" declaration.
15569         That would fail to match a decl with no space there: extern void foo();
15570
15571 2011-07-31  Iain Nicol  <iain@thenicols.net>
15572
15573         git-version-gen: document that EXTRA_DIST must include .version
15574         * build-aux/git-version-gen: In the how-to-use comment, document
15575         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15576         will fail when run from an unpacked distribution tarball.
15577
15578 2011-08-01  Bruno Haible  <bruno@clisp.org>
15579
15580         wctype-h: Fix last change.
15581         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15582         REPLACE_TOWLOWER to 0.
15583         Reported by Sam Steingold <sds@gnu.org>.
15584
15585 2011-07-31  Bruno Haible  <bruno@clisp.org>
15586
15587         frexpl: Update autoconf test.
15588         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15589         according to changes of 2011-06-20.
15590
15591 2011-07-31  Bruno Haible  <bruno@clisp.org>
15592
15593         sys_utsname: Add support for Minix.
15594         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15595         <sys/utsname.h>.
15596         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15597         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15598
15599 2011-07-31  Bruno Haible  <bruno@clisp.org>
15600
15601         strings: Add support for Minix.
15602         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15603         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15604         * doc/posix-headers/strings.texi: Document the Minix problem.
15605
15606 2011-07-31  Bruno Haible  <bruno@clisp.org>
15607
15608         wctype-h: Add support for Minix.
15609         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15610         REPLACE_TOWLOWER.
15611         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15612         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15613         REPLACE_ISWCNTRL.
15614
15615 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15616
15617         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15618         This is a performance improvement for 64-bit hosts: it causes the
15619         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15620
15621 2011-07-31  Bruno Haible  <bruno@clisp.org>
15622
15623         stdioext: Add support for Minix.
15624         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15625         * lib/fpurge.c (fpurge): Likewise.
15626         * lib/freadahead.c (freadahead): Likewise.
15627         * lib/freadable.c (freadable): Likewise.
15628         * lib/freading.c (freading): Likewise.
15629         * lib/freadptr.c (freadptr): Likewise.
15630         * lib/freadseek.c (freadptrinc): Likewise.
15631         * lib/fseeko.c (rpl_fseeko): Likewise.
15632         * lib/fseterr.c (fseterr): Likewise.
15633         * lib/fwritable.c (fwritable): Likewise.
15634         * lib/fwriting.c (fwriting): Likewise.
15635         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15636         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15637
15638 2011-07-31  Bruno Haible  <bruno@clisp.org>
15639
15640         errno: Port to Minix.
15641         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15642         ECONNABORTED are defined.
15643         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15644         GNULIB_defined_ECONNABORTED): New macros.
15645         * lib/strerror-override.h (strerror_override): Test also
15646         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15647         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15648         ECONNABORTED.
15649         * doc/posix-headers/errno.texi: Mention the Minix problem.
15650
15651 2011-07-31  Bruno Haible  <bruno@clisp.org>
15652
15653         Work around declaration collisions on Minix.
15654         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15655         defined, set REPLACE_MBSINIT.
15656         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15657         defined, set REPLACE_MBRTOWC.
15658         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15659         set REPLACE_MBRLEN.
15660         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15661         defined, set REPLACE_MBSRTOWCS.
15662         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15663         defined, set REPLACE_WCRTOMB.
15664         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15665         defined, set REPLACE_WCSRTOMBS.
15666
15667 2011-07-31  Bruno Haible  <bruno@clisp.org>
15668
15669         Add support for Minix with ACK compiler.
15670         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15671         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15672         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15673
15674 2011-07-31  Bruno Haible  <bruno@clisp.org>
15675
15676         Documentation about Minix.
15677         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15678         * doc/glibc-headers/*.texi: Likewise.
15679         * doc/posix-functions/*.texi: Likewise.
15680         * doc/glibc-functions/*.texi: Likewise.
15681
15682 2011-07-31  Bruno Haible  <bruno@clisp.org>
15683
15684         snippet/warn-on-use: Fix indentation.
15685         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15686
15687 2011-07-25  Jim Meyering  <meyering@redhat.com>
15688
15689         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15690         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15691         commands.
15692
15693 2011-07-27  Jim Meyering  <meyering@redhat.com>
15694
15695         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15696         * top/maint.mk (gl_extract_significant_defines_): Now that
15697         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15698         gnulib/lib/signal.in.h, and now that we recommend to
15699         define-if-undefined those two symbols in application code,
15700         we must filter them out of the "significant" list.
15701         This avoids a "make syntax-check" failure in coreutils.
15702
15703 2011-07-26  Eric Blake  <eblake@redhat.com>
15704
15705         warnings: add comments about previous patch
15706         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15707         * m4/include_next.m4: Likewise.
15708         * m4/warn-on-use.m4: Likewise.
15709         * m4/warnings.m4: Likewise, and simplify use.
15710         Suggested by Stefano Lattarini.
15711
15712         include-next, warnings: support older autoconf
15713         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15714         AS_VAR_PUSHDEF in a way that works with older autoconf.
15715         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15716         Reported by Daniel P. Berrange.
15717
15718 2011-07-25  Bruno Haible  <bruno@clisp.org>
15719
15720         fseek, ftell: Fix doc.
15721         * doc/posix-functions/fseek.texi: Reword statement about
15722         AC_SYS_LARGEFILE.
15723         * doc/posix-functions/ftell.texi: Likewise.
15724
15725 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15726             Bruno Haible  <bruno@clisp.org>
15727
15728         Add dependencies to the 'largefile' module.
15729         * modules/fopen (Depends-on): Add 'largefile'.
15730         * modules/freopen (Depends-on): Likewise.
15731         * modules/fseeko (Depends-on): Likewise.
15732         * modules/ftello (Depends-on): Likewise.
15733         * modules/glob (Depends-on): Likewise.
15734         * modules/lseek (Depends-on): Likewise.
15735         * modules/lstat (Depends-on): Likewise.
15736         * modules/mkostemp (Depends-on): Likewise.
15737         * modules/mkostemps (Depends-on): Likewise.
15738         * modules/mkstemp (Depends-on): Likewise.
15739         * modules/mkstemps (Depends-on): Likewise.
15740         * modules/open (Depends-on): Likewise.
15741         * modules/openat (Depends-on): Likewise.
15742         * modules/pread (Depends-on): Likewise.
15743         * modules/pwrite (Depends-on): Likewise.
15744         * modules/scandir (Depends-on): Likewise.
15745         * modules/stat (Depends-on): Likewise.
15746         * modules/tmpfile (Depends-on): Likewise.
15747         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15748         since the containing module now depends on the largefile module.
15749         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15750         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15751         off_t is fixed by gnulib.
15752         * doc/posix-functions/freopen.texi: Likewise.
15753         * doc/posix-functions/fseeko.texi: Likewise.
15754         * doc/posix-functions/fstatat.texi: Likewise.
15755         * doc/posix-functions/ftello.texi: Likewise.
15756         * doc/posix-functions/glob.texi: Likewise.
15757         * doc/posix-functions/lseek.texi: Likewise.
15758         * doc/posix-functions/lstat.texi: Likewise.
15759         * doc/posix-functions/mkstemp.texi: Likewise.
15760         * doc/posix-functions/open.texi: Likewise.
15761         * doc/posix-functions/openat.texi: Likewise.
15762         * doc/posix-functions/pread.texi: Likewise.
15763         * doc/posix-functions/pwrite.texi: Likewise.
15764         * doc/posix-functions/scandir.texi: Likewise.
15765         * doc/posix-functions/stat.texi: Likewise.
15766         * doc/posix-functions/tmpfile.texi: Likewise.
15767         * doc/glibc-functions/mkostemp.texi: Likewise.
15768         * doc/glibc-functions/mkostemps.texi: Likewise.
15769         * doc/glibc-functions/mkstemps.texi: Likewise.
15770
15771 2011-07-25  Bruno Haible  <bruno@clisp.org>
15772
15773         fcntl: Move AC_LIBOBJ invocation to module description.
15774         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15775         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15776
15777         fcntl: Remove call-in from fchdir.m4.
15778         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15780
15781         dup3: Remove potential call-in from fchdir.m4.
15782         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15784
15785         dup2: Move AC_LIBOBJ invocation to module description.
15786         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15787         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15788         Don't invoke AC_LIBOBJ.
15789         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15790
15791         dup2: Remove call-in from fchdir.m4.
15792         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15794
15795         fclose: Move AC_LIBOBJ invocation to module description.
15796         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15797         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15798         to 1.
15799         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15800
15801         fclose: Remove call-in from close.m4.
15802         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15803         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15804
15805         close: Move AC_LIBOBJ invocation to module description.
15806         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15807         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15808         1.
15809         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15810
15811         close: Remove call-in from fchdir.m4.
15812         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15813         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15814
15815         open: Move AC_LIBOBJ invocation to module description.
15816         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15817         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15818         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15819
15820         open: Remove call-in from fchdir.m4.
15821         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15823
15824         fchdir: Start to remove gl_REPLACE_* idiom.
15825         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15826         (gl_FUNC_FCHDIR): Invoke it.
15827
15828 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15829
15830         * lib/ftell.c (ftell): Comment out cast.
15831
15832         close: use gl_REPLACE_FCLOSE only if defined
15833         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15834         is defined.  The close module doesn't depend on the fclose module
15835         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15837         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15838
15839 2011-07-24  Jim Meyering  <meyering@redhat.com>
15840
15841         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15842         * tests/test-select.h (test_function): Declare as "static".
15843
15844 2011-07-24  Bruno Haible  <bruno@clisp.org>
15845
15846         doc: Mention the effects of AC_SYS_LARGEFILE.
15847         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15848         on this function.
15849         * doc/posix-functions/aio_error.texi: Likewise.
15850         * doc/posix-functions/aio_fsync.texi: Likewise.
15851         * doc/posix-functions/aio_read.texi: Likewise.
15852         * doc/posix-functions/aio_return.texi: Likewise.
15853         * doc/posix-functions/aio_suspend.texi: Likewise.
15854         * doc/posix-functions/aio_write.texi: Likewise.
15855         * doc/posix-functions/fgetpos.texi: Likewise.
15856         * doc/posix-functions/fopen.texi: Likewise.
15857         * doc/posix-functions/freopen.texi: Likewise.
15858         * doc/posix-functions/fsetpos.texi: Likewise.
15859         * doc/posix-functions/fstatvfs.texi: Likewise.
15860         * doc/posix-functions/ftruncate.texi: Likewise.
15861         * doc/posix-functions/ftw.texi: Likewise.
15862         * doc/posix-functions/getrlimit.texi: Likewise.
15863         * doc/posix-functions/glob.texi: Likewise.
15864         * doc/posix-functions/lio_listio.texi: Likewise.
15865         * doc/posix-functions/lockf.texi: Likewise.
15866         * doc/posix-functions/mkstemp.texi: Likewise.
15867         * doc/posix-functions/mmap.texi: Likewise.
15868         * doc/posix-functions/nftw.texi: Likewise.
15869         * doc/posix-functions/openat.texi: Likewise.
15870         * doc/posix-functions/opendir.texi: Likewise.
15871         * doc/posix-functions/posix_fadvise.texi: Likewise.
15872         * doc/posix-functions/posix_fallocate.texi: Likewise.
15873         * doc/posix-functions/pread.texi: Likewise.
15874         * doc/posix-functions/pwrite.texi: Likewise.
15875         * doc/posix-functions/readdir.texi: Likewise.
15876         * doc/posix-functions/readdir_r.texi: Likewise.
15877         * doc/posix-functions/rewinddir.texi: Likewise.
15878         * doc/posix-functions/scandir.texi: Likewise.
15879         * doc/posix-functions/seekdir.texi: Likewise.
15880         * doc/posix-functions/setrlimit.texi: Likewise.
15881         * doc/posix-functions/statvfs.texi: Likewise.
15882         * doc/posix-functions/telldir.texi: Likewise.
15883         * doc/posix-functions/tmpfile.texi: Likewise.
15884         * doc/posix-functions/truncate.texi: Likewise.
15885         * doc/glibc-functions/fallocate.texi: Likewise.
15886         * doc/glibc-functions/fstatfs.texi: Likewise.
15887         * doc/glibc-functions/fts_children.texi: Likewise.
15888         * doc/glibc-functions/fts_read.texi: Likewise.
15889         * doc/glibc-functions/getdirentries.texi: Likewise.
15890         * doc/glibc-functions/mkostemp.texi: Likewise.
15891         * doc/glibc-functions/mkostemps.texi: Likewise.
15892         * doc/glibc-functions/mkstemps.texi: Likewise.
15893         * doc/glibc-functions/preadv.texi: Likewise.
15894         * doc/glibc-functions/pwritev.texi: Likewise.
15895         * doc/glibc-functions/sendfile.texi: Likewise.
15896         * doc/glibc-functions/statfs.texi: Likewise.
15897
15898 2011-07-24  Bruno Haible  <bruno@clisp.org>
15899
15900         doc: Fix typo.
15901         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15902
15903 2011-07-24  Bruno Haible  <bruno@clisp.org>
15904
15905         doc: Mention fsusage.
15906         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15907
15908 2011-07-24  Bruno Haible  <bruno@clisp.org>
15909
15910         doc: Mention new glibc headers and functions.
15911         * doc/glibc-headers/gshadow.texi: New file.
15912         * doc/glibc-functions/endsgent.texi: New file.
15913         * doc/glibc-functions/fgetsgent.texi: New file.
15914         * doc/glibc-functions/fgetsgent_r.texi: New file.
15915         * doc/glibc-functions/getsgent.texi: New file.
15916         * doc/glibc-functions/getsgent_r.texi: New file.
15917         * doc/glibc-functions/getsgnam.texi: New file.
15918         * doc/glibc-functions/getsgnam_r.texi: New file.
15919         * doc/glibc-functions/putsgent.texi: New file.
15920         * doc/glibc-functions/setsgent.texi: New file.
15921         * doc/glibc-functions/sgetsgent.texi: New file.
15922         * doc/glibc-functions/sgetsgent_r.texi: New file.
15923         * doc/glibc-functions/malloc_info.texi: New file.
15924         * doc/glibc-functions/preadv.texi: New file.
15925         * doc/glibc-functions/pwritev.texi: New file.
15926         * doc/glibc-functions/register_printf_modifier.texi: New file.
15927         * doc/glibc-functions/register_printf_specifier.texi: New file.
15928         * doc/glibc-functions/register_printf_type.texi: New file.
15929         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15930         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15931         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15932         * doc/glibc-functions/pthread_getname_np.texi: New file.
15933         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15934         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15935         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15936         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15937         * doc/glibc-functions/pthread_setname_np.texi: New file.
15938         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15939         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15940         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15941         * doc/glibc-functions/qsort_r.texi: New file.
15942         * doc/glibc-functions/quick_exit.texi: New file.
15943         * doc/glibc-functions/syncfs.texi: New file.
15944         * doc/gnulib.texi: Include them.
15945         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15946         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15947         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15948         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15949         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15950         * doc/glibc-functions/execvpe.texi: Likewise.
15951
15952 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15953
15954         ftell: don't include <unistd.h>
15955         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15956         guaranteed to define off_t, and the ftell module depends on the
15957         stdio module.
15958
15959         ftell: do not assume wraparound signed arithmetic
15960         * lib/ftell.c: Include <limits.h>.
15961         (ftell): Don't assume wraparound signed arithmetic.
15962
15963 2011-07-24  Bruno Haible  <bruno@clisp.org>
15964
15965         close: No longer depend on module 'fclose'.
15966         * modules/close (Depends-on): Remove fclose.
15967         * NEWS: Mention the change.
15968         Suggested by Sam Steingold <sds@gnu.org>.
15969
15970 2011-07-24  Bruno Haible  <bruno@clisp.org>
15971
15972         fsusage: Enable large volume support on AIX >= 5.2.
15973         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15974         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15975         instead of STAT_STATVFS.
15976         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15977
15978         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15979         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15980         f_blocks field only on MacOS X.
15981
15982         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15983         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15984         * modules/fsusage (Depends-on): Add largefile.
15985
15986 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15987
15988         * README: Modernize discussion of signed integers.
15989         Assuming overflow wraparound is no longer safe.
15990         Mention ones' complement and signed magnitude.
15991
15992 2011-07-22  Bruno Haible  <bruno@clisp.org>
15993
15994         select tests, pselect tests: Refactor.
15995         * tests/test-select.h: New file, extracted from tests/test-select.c.
15996         (select_fn): New type.
15997         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15998         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15999         test_pipe): Add my_select argument.
16000         (test_function): Renamed from main. Add my_select argument.
16001         * tests/test-select.c: Move most code to tests/test-select.h. Include
16002         test-select.h.
16003         * modules/select-tests (Files): Add tests/test-select.h.
16004         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16005         (my_select, main): New functions.
16006         * modules/pselect-tests (Files): Add tests/test-select.h,
16007         tests/macros.h, tests/signature.h.
16008         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16009         (configure.ac): Check for <sys/wait.h>.
16010
16011 2011-07-22  Bruno Haible  <bruno@clisp.org>
16012
16013         sys_select tests: Check the signature of FD_*.
16014         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16015         signature tests from here...
16016         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16017         here.
16018         * modules/sys_select-tests (Files): Add tests/signature.h.
16019
16020 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16021
16022         largefile: new module, replacing large-inode
16023         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16024         * MODULES.html.sh: Add largefile, remove large-inode.
16025         * modules/largefile, m4/largefile.m4: New files.
16026         * modules/large-inode, m4/large-inode.m4: Remove.
16027
16028         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16029         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16030         implementations that use only 32 bits to count blocks.
16031         On typical hosts with 1024-byte blocks, this fails with file
16032         systems as small as 4 TiB.  Problem reported by Herb Wartens
16033         <http://debbugs.gnu.org/9140> and this should also fix a similar
16034         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16035
16036         large-inode: New module
16037         * MODULES.html.sh: Add it.
16038         * modules/large-inode, m4/large-inode.m4: New files.
16039
16040         extensions: Enable extensions on MacOS X 10.5 and later.
16041         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16042
16043 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16044
16045         file-has-acl: use acl_extended_file_nofollow if available
16046         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16047         (acl_extended_file): New macro.
16048         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16049         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16050
16051 2011-07-21  Bruno Haible  <bruno@clisp.org>
16052
16053         Declare system functions in a way that works with C++.
16054         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16055         declare fdopendir as extern "C".
16056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16057         declare frexpl as extern "C".
16058         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16059         declare gai_strerror as extern "C".
16060         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16061         programs, declare gai_strerror as extern "C".
16062         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16063         declare getlogin_r as extern "C".
16064         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16065         as extern "C".
16066         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16067         declare ldexpl as extern "C".
16068         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16069         as extern "C".
16070         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16071         program, declare getmntinfo as extern "C".
16072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16073         stpncpy as extern "C".
16074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16075         program, declare __xpg_strerror_r as extern "C".
16076         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16077         strndup as extern "C".
16078         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16079         declare memset and bzero as extern "C".
16080         Reported by Sam Steingold <sds@gnu.org>.
16081
16082 2011-07-12  Jim Meyering  <meyering@redhat.com>
16083
16084         maint.mk: prohibit inclusion of "verify.h" without use
16085         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16086
16087 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16088
16089         timer-time: A new module to check for timer_settime()
16090         * m4/timer_time.m4: Check for the posix function.
16091         * modules/timer-time: Add the new module.
16092         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16093         Mention it.
16094
16095 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16096             Bruno Haible  <bruno@clisp.org>
16097
16098         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16099         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16100         not defined, assume POSIX threads and look for pthread_sigmask in
16101         $LIBS, without changing $CPPFLAGS.
16102
16103 2011-07-19  Bruno Haible  <bruno@clisp.org>
16104
16105         strstr: Update cross-compilation guess.
16106         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16107         CPUs, guess no, in view of glibc
16108         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16109         Suggested by Eric Blake. Reported by Reuben Thomas.
16110
16111 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16112
16113         getopt-gnu: suppress core dumps from detection code
16114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16115         to suppress core dumps that may well occur on glibc systems.
16116         * modules/getopt-gnu: Depend on nocrash.
16117
16118 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16119
16120         pthread_sigmask: ensure usleep is declared
16121         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16122         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16123
16124 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16125
16126         doc: Document NonStop portability issues.
16127         * doc/posix-functions/sigaction.texi (sigaction):
16128         * doc/posix-headers/signal.texi (signal.h):
16129         Document NonStop.  See Joachim Schmitz in
16130         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16131
16132 2011-07-15  Bruno Haible  <bruno@clisp.org>
16133
16134         ffsl, ffsll: Avoid unportable behaviour.
16135         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16136
16137 2011-07-15  Bruno Haible  <bruno@clisp.org>
16138
16139         ffs: More tests.
16140         * tests/test-ffs.c (NBITS): New macro.
16141         (main): Add more tests.
16142         * tests/test-ffsl.c (NBITS): New macro.
16143         (main): Add more tests.
16144         * tests/test-ffsll.c (NBITS): New macro.
16145         (main): Add more tests.
16146
16147 2011-07-15  Eric Blake  <eblake@redhat.com>
16148
16149         ffsl, ffsll: new modules
16150         * modules/ffsl: New file.
16151         * modules/ffsll: Likewise.
16152         * m4/ffsl.m4: Likewise.
16153         * m4/ffsll.m4: Likewise.
16154         * lib/ffsl.c: Likewise.
16155         * lib/ffsl.h: Likewise.
16156         * lib/ffsll.c: Likewise.
16157         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16158         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16159         * modules/string (Makefile.am): Substitute witnesses.
16160         * lib/strings.in.h (ffsl, ffsll): Declare.
16161         * modules/ffsl-tests: New test file.
16162         * modules/ffsll-tests: Likewise.
16163         * tests/test-ffsl.c: Likewise.
16164         * tests/test-ffsll.c: Likewise.
16165         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16166         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16167         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16168
16169         ffs: fix m4 prerequisite
16170         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16171
16172         ffs: avoid undefined behavior
16173         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16174         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16175         Reported by Bruno Haible.
16176
16177 2011-07-12  Bruno Haible  <bruno@clisp.org>
16178
16179         pthread_sigmask: Rely on module 'threadlib'.
16180         * modules/pthread_sigmask (Depends-on): Add threadlib.
16181         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16182         is defined.
16183
16184 2011-07-12  Bruno Haible  <bruno@clisp.org>
16185
16186         regex: Depend on module 'strcase'.
16187         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16188
16189 2011-07-12  Jim Meyering  <meyering@redhat.com>
16190
16191         warn-on-use: fix typo in file name
16192         * modules/snippet/warn-on-use (Files): Correct file name:
16193         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16194
16195 2011-07-12  Bruno Haible  <bruno@clisp.org>
16196
16197         strings: Document module.
16198         * doc/posix-headers/strings.texi: Mention module 'strings'.
16199
16200 2011-07-12  Bruno Haible  <bruno@clisp.org>
16201
16202         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16203         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16204         (Files, Makefile.am): Update.
16205         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16206         * modules/stdlib (Depends-on): Update.
16207
16208 2011-07-12  Bruno Haible  <bruno@clisp.org>
16209
16210         * NEWS: Mention the changes.
16211
16212         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16213         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16214         (Files, Makefile.am): Update.
16215         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16216         * modules/arpa_inet (Depends-on): Update.
16217         * modules/ctype (Depends-on): Update.
16218         * modules/dirent (Depends-on): Update.
16219         * modules/fcntl-h (Depends-on): Update.
16220         * modules/glob (Depends-on): Update.
16221         * modules/iconv-h (Depends-on): Update.
16222         * modules/inttypes-incomplete (Depends-on): Update.
16223         * modules/langinfo (Depends-on): Update.
16224         * modules/locale (Depends-on): Update.
16225         * modules/math (Depends-on): Update.
16226         * modules/netdb (Depends-on): Update.
16227         * modules/poll-h (Depends-on): Update.
16228         * modules/pty (Depends-on): Update.
16229         * modules/search (Depends-on): Update.
16230         * modules/signal (Depends-on): Update.
16231         * modules/spawn (Depends-on): Update.
16232         * modules/stdio (Depends-on): Update.
16233         * modules/stdlib (Depends-on): Update.
16234         * modules/string (Depends-on): Update.
16235         * modules/strings (Depends-on): Update.
16236         * modules/sys_file (Depends-on): Update.
16237         * modules/sys_ioctl (Depends-on): Update.
16238         * modules/sys_select (Depends-on): Update.
16239         * modules/sys_socket (Depends-on): Update.
16240         * modules/sys_stat (Depends-on): Update.
16241         * modules/sys_time (Depends-on): Update.
16242         * modules/sys_times (Depends-on): Update.
16243         * modules/sys_utsname (Depends-on): Update.
16244         * modules/sys_wait (Depends-on): Update.
16245         * modules/termios (Depends-on): Update.
16246         * modules/time (Depends-on): Update.
16247         * modules/unistd (Depends-on): Update.
16248         * modules/wchar (Depends-on): Update.
16249         * modules/wctype-h (Depends-on): Update.
16250         * MODULES.html.sh (Support for building libraries and executables):
16251         Update.
16252
16253         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16254         * modules/snippet/unused-parameter: Renamed from
16255         modules/unused-parameter.
16256         (Files, Makefile.am): Update.
16257         * build-aux/snippet/unused-parameter.h: Renamed from
16258         build-aux/unused-parameter.h.
16259         * modules/selinux-h (Depends-on): Update.
16260         * modules/unistr/base (Depends-on): Update.
16261         * MODULES.html.sh (Core language properties): Update.
16262
16263         Rename module 'link-warning' to 'snippet/link-warning'.
16264         * modules/snippet/link-warning: Renamed from modules/link-warning.
16265         (Files, Makefile.am): Update.
16266         * build-aux/snippet/link-warning.h: Renamed from
16267         build-aux/link-warning.h.
16268         * MODULES.html.sh (Support for building libraries and executables):
16269         Update.
16270
16271         Rename module 'c++defs' to 'snippet/c++defs'.
16272         * modules/snippet/c++defs: Renamed from modules/c++defs.
16273         (Files, Makefile.am): Update.
16274         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16275         * modules/arpa_inet (Depends-on): Update.
16276         * modules/ctype (Depends-on): Update.
16277         * modules/dirent (Depends-on): Update.
16278         * modules/fcntl-h (Depends-on): Update.
16279         * modules/glob (Depends-on): Update.
16280         * modules/iconv-h (Depends-on): Update.
16281         * modules/langinfo (Depends-on): Update.
16282         * modules/locale (Depends-on): Update.
16283         * modules/math (Depends-on): Update.
16284         * modules/netdb (Depends-on): Update.
16285         * modules/poll-h (Depends-on): Update.
16286         * modules/pty (Depends-on): Update.
16287         * modules/search (Depends-on): Update.
16288         * modules/signal (Depends-on): Update.
16289         * modules/spawn (Depends-on): Update.
16290         * modules/stdio (Depends-on): Update.
16291         * modules/stdlib (Depends-on): Update.
16292         * modules/string (Depends-on): Update.
16293         * modules/strings (Depends-on): Update.
16294         * modules/sys_ioctl (Depends-on): Update.
16295         * modules/sys_select (Depends-on): Update.
16296         * modules/sys_socket (Depends-on): Update.
16297         * modules/sys_stat (Depends-on): Update.
16298         * modules/sys_time (Depends-on): Update.
16299         * modules/sys_wait (Depends-on): Update.
16300         * modules/termios (Depends-on): Update.
16301         * modules/time (Depends-on): Update.
16302         * modules/unistd (Depends-on): Update.
16303         * modules/wchar (Depends-on): Update.
16304         * modules/wctype-h (Depends-on): Update.
16305
16306         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16307         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16308         (Files, Makefile.am): Update.
16309         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16310         * modules/argv-iter (Depends-on): Update.
16311         * modules/arpa_inet (Depends-on): Update.
16312         * modules/dirent (Depends-on): Update.
16313         * modules/fcntl-h (Depends-on): Update.
16314         * modules/fnmatch (Depends-on): Update.
16315         * modules/getopt-posix (Depends-on): Update.
16316         * modules/glob (Depends-on): Update.
16317         * modules/iconv-h (Depends-on): Update.
16318         * modules/inttypes-incomplete (Depends-on): Update.
16319         * modules/locale (Depends-on): Update.
16320         * modules/math (Depends-on): Update.
16321         * modules/netdb (Depends-on): Update.
16322         * modules/search (Depends-on): Update.
16323         * modules/signal (Depends-on): Update.
16324         * modules/spawn (Depends-on): Update.
16325         * modules/stdio (Depends-on): Update.
16326         * modules/stdlib (Depends-on): Update.
16327         * modules/string (Depends-on): Update.
16328         * modules/strings (Depends-on): Update.
16329         * modules/sys_socket (Depends-on): Update.
16330         * modules/sys_stat (Depends-on): Update.
16331         * modules/sys_time (Depends-on): Update.
16332         * modules/sys_times (Depends-on): Update.
16333         * modules/sys_utsname (Depends-on): Update.
16334         * modules/time (Depends-on): Update.
16335         * modules/unistd (Depends-on): Update.
16336         * modules/wchar (Depends-on): Update.
16337         * MODULES.html.sh (Support for building libraries and executables):
16338         Update.
16339
16340 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16341
16342         Improvements on _Noreturn and related modules.
16343
16344         modules/_Exit-tests: test _Noreturn too
16345         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16346         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16347         (main): Use them.
16348
16349         stdnoreturn, stdnoreturn-tests: remove modules
16350         They're not needed here and a bit premature for use elsewhere.  See
16351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16352         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16353         * tests/test-stdnoreturn.c: Remove files.
16354         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16355         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16356         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16357         and using noreturn.
16358         * modules/openat, modules/sigpipe-die, modules/xalloc:
16359         * modules/xmemdup0, modules/xstrtol:
16360         Remove dependency on stdnoreturn.
16361
16362         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16363         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16364         Reparenthesize to avoid GCC warning.
16365         Support Microsoft's syntax.
16366         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16367
16368         _Noreturn-tests: remove module
16369         * modules/_Noreturn-tests: Remove.
16370         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16371         * tests/test-_Noreturn.c: Remove.
16372         * tests/test-stdnoreturn.c: Merge from the old
16373         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16374
16375 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16376
16377         _Noreturn, stdnoreturn, and related modules.
16378
16379         * top/maint.mk: Adjust to new noreturn support.
16380         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16381         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16382
16383         xalloc: use stdnoreturn.h
16384         * lib/xalloc.h: Include <stdnoreturn.h>.
16385         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16386         * modules/xalloc (Depends-on): Add stdnoreturn.
16387
16388         xstrtol: use stdnoreturn.h
16389         * lib/xstrtol.h: Include <stdnoreturn.h>.
16390         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16391         * modules/xstrtol (Depends-on): Add stdnoreturn.
16392
16393         xmemdup0: use stdnoreturn.h
16394         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16395         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16396         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16397
16398         sigpipe-die: use stdnoreturn.h
16399         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16400         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16401         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16402
16403         openat: use stdnoreturn.h
16404         * lib/openat.h: Include <stdnoreturn.h>.
16405         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16406         * modules/openat (Depends-on): Add stdnoreturn.
16407
16408         * lib/openat-die.c (openat_save_fail): Modernize comment.
16409
16410         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16411
16412         * lib/glthread/thread.h: Modernize comment.
16413
16414         obstack: use _Noreturn
16415         * lib/obstack.c (__attribute__): Remove macro.
16416         (print_and_abort): Use _Noreturn.
16417
16418         c-stack: use _Noreturn
16419         * lib/c-stack.c (die, overflow_handler, segv_handler):
16420         Use _Noreturn rather than __attribute__((noreturn)).
16421
16422         argmatch-tests, exclude_tests: use _Noreturn
16423         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16424         Remove.
16425         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16426
16427         stdlib: use _Noreturn
16428         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16429         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16430         * modules/stdlib (Depends-on): Add _Noreturn.
16431         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16432
16433         stdnoreturn-tests: new module
16434         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16435
16436         stdnoreturn: new module
16437         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16438         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16439
16440         _Noreturn-tests: new module
16441         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16442
16443         _Noreturn: new module
16444         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16445         New section, mentioning it.
16446         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16447
16448         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16449
16450 2011-07-11  Eric Blake  <eblake@redhat.com>
16451
16452         ffs: new module
16453         * modules/ffs: New file.
16454         * m4/ffs.m4: Likewise.
16455         * lib/ffs.c: Likewise.
16456         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16457         * modules/strings (Makefile.am): Substitute witness.
16458         (Depends-on): Add c++defs.
16459         * lib/strings.in.h (ffs): Declare.
16460         * modules/ffs-tests: New test file.
16461         * tests/test-ffs.c: Test new module.
16462         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16463         * doc/posix-functions/ffs.texi (ffs): Likewise.
16464
16465         regex: avoid compiler warning
16466         * lib/regex.c (includes): Include <strings.h>, for use of
16467         strcasecmp in regcomp.c.
16468         Reported by Joachim Schmitz.
16469
16470 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16471
16472         stdint: respect system's intmax_t if INTMAX_MAX
16473         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16474         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16475         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16476         long but int64_t is long long, and where we will clash with the
16477         system intmax_t if we override it.  See
16478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16479         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16480         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16481         similarly for UINTMAX_C.
16482
16483 2011-07-08  Bruno Haible  <bruno@clisp.org>
16484
16485         pthread_sigmask tests: Avoid a compiler warning.
16486         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16487         non-zero.
16488
16489         sigprocmask tests: A better way to avoid a compiler warning.
16490         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16491         (main): Complain if system() returns non-zero.
16492         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16493
16494 2011-07-08  Bruno Haible  <bruno@clisp.org>
16495
16496         pthread_sigmask: Work around IRIX bug.
16497         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16498         bug.
16499         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16500         there may be unblocked pending signals.
16501         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16502
16503 2011-07-08  Bruno Haible  <bruno@clisp.org>
16504
16505         pthread_sigmask: Work around Cygwin bug.
16506         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16507         bug.
16508         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16509         the system's pthread_sigmask function.
16510         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16511
16512 2011-07-08  Bruno Haible  <bruno@clisp.org>
16513
16514         pthread_sigmask: Work around bug in single-threaded implementation.
16515         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16516         FreeBSD, HP-UX, Solaris bug.
16517         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16518         * lib/pthread_sigmask.c: Include <stddef.h>.
16519         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16520         the system's pthread_sigmask function.
16521         * modules/pthread_sigmask (configure.ac): Invoke
16522         gl_PREREQ_PTHREAD_SIGMASK.
16523         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16524         HP-UX, Solaris.
16525
16526 2011-07-08  Eric Blake  <eblake@redhat.com>
16527
16528         test-sigprocmask: avoid compiler warning
16529         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16530         * tests/test-sigprocmask.c (main): Use it to silence warning.
16531         Reported by Jim Meyering.
16532
16533         test-snprintf: avoid compiler warning
16534         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16535         * tests/test-vsnprintf.c (main): Likewise.
16536         Reported by Jim Meyering.
16537
16538 2011-07-08  Bruno Haible  <bruno@clisp.org>
16539
16540         Tests for module 'pthread_sigmask'.
16541         * modules/pthread_sigmask-tests: New file.
16542         * tests/test-pthread_sigmask1.c: New file, based on
16543         tests/test-sigprocmask.c.
16544         * tests/test-pthread_sigmask2.c: New file.
16545
16546 2011-07-08  Jim Meyering  <meyering@redhat.com>
16547
16548         test-getopt.h: avoid warning about an unused variable
16549         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16550
16551 2011-07-07  Jim Meyering  <meyering@redhat.com>
16552
16553         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16554         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16555         now that it no longer contains leading TABs.
16556         Remove unused "url=FIXME" statement.
16557
16558 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16559
16560         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16561         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16562         When gl_THREADLIB is not in use, assume that the POSIX sematics
16563         are desired.  This is better for Emacs, which uses POSIX semantics
16564         on GNUish and/or POSIXish platforms, and does not use threads at
16565         all otherwise.
16566
16567         pthread_sigmask: fix typo when testing for libraries
16568         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16569         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16570
16571 2011-07-08  Eric Blake  <eblake@redhat.com>
16572
16573         fts: introduce FTS_NOATIME
16574         * lib/fts_.h (FTS_NOATIME): New bit flag.
16575         (FTS_OPTIONMASK): Adjust.
16576         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16577         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16578
16579 2011-07-08  Bruno Haible  <bruno@clisp.org>
16580
16581         Tests for module 'thread'.
16582         * modules/thread-tests: New file.
16583         * tests/test-thread_self.c: New file.
16584         * tests/test-thread_create.cc: New file.
16585
16586 2011-07-08  Bruno Haible  <bruno@clisp.org>
16587
16588         thread: Avoid gcc warnings when using gl_thread_self().
16589         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16590         'void *'.
16591         (gl_thread_self_pointer): Update.
16592
16593 2011-07-07  Bruno Haible  <bruno@clisp.org>
16594
16595         signal-c++-tests: Check declaration of pthread_sigmask.
16596         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16597         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16598         $(LIB_PTHREAD_SIGMASK).
16599
16600 2011-07-07  Bruno Haible  <bruno@clisp.org>
16601
16602         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16603         * lib/signal.in.h (pthread_sigmask): Override if
16604         REPLACE_PTHREAD_SIGMASK is 1.
16605         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16606         REPLACE_PTHREAD_SIGMASK.
16607         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16608         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16609         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16610         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16611         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16612
16613 2011-07-07  Bruno Haible  <bruno@clisp.org>
16614
16615         pthread_sigmask: Ensure declaration in <signal.h>.
16616         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16617         include <pthread.h>.
16618         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16619         problem.
16620
16621 2011-07-07  Bruno Haible  <bruno@clisp.org>
16622
16623         pthread_sigmask: Document the module.
16624         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16625
16626 2011-07-07  Bruno Haible  <bruno@clisp.org>
16627
16628         pthread_sigmask: Follow gnulib conventions.
16629         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16630         gl_PTHREAD_SIGMASK.
16631         * modules/pthread_sigmask (configure.ac): Update.
16632
16633 2011-07-07  Bruno Haible  <bruno@clisp.org>
16634
16635         pthread_sigmask: Make declaration C++ safe.
16636         * lib/signal.in.h: In two special conditions, just do an #include_next.
16637         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16638         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16639         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16640         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16641         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16642         not REPLACE_PTHREAD_MASK.
16643         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16644         not REPLACE_PTHREAD_MASK.
16645         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16646
16647 2011-07-07  Bruno Haible  <bruno@clisp.org>
16648
16649         pthread_sigmask: Fix return value.
16650         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16651         * lib/pthread_sigmask.c: New file.
16652         * modules/pthread_sigmask (Files): Add it.
16653         (configure.ac): Invoke AC_LIBOBJ.
16654
16655 2011-07-07  Eric Blake  <eblake@redhat.com>
16656
16657         getopt: more portable argv creation
16658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16659         const, use char arrays rather than strings.
16660         Suggested by Paul Eggert.
16661
16662 2011-07-07  Bruno Haible  <bruno@clisp.org>
16663
16664         Tests for module 'sigprocmask'.
16665         * modules/sigprocmask-tests: New file.
16666         * tests/test-sigprocmask.c: New file.
16667
16668 2011-07-07  Bruno Haible  <bruno@clisp.org>
16669
16670         float tests: Tweak.
16671         * tests/test-float.c (main): Tweak skip message.
16672
16673 2011-07-07  Eric Blake  <eblake@redhat.com>
16674
16675         getopt: avoid compiler warning during configure
16676         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16677         assigning string literals to non-const pointer.
16678
16679         getopt-gnu: avoid crash in glibc getopt
16680         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16681         * tests/test-getopt.h (test_getopt): Enhance test.
16682         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16683         * doc/posix-functions/getopt.texi (getopt): Document it.
16684         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16685         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16686         Likewise.
16687
16688 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16689
16690         getopt: handle W; without long options in getopt [BZ #12922]
16691         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16692         but no long options are defined, just return 'W'.
16693
16694 2011-07-07  Bruno Haible  <bruno@clisp.org>
16695
16696         Avoid literal tabs.
16697         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16698         variable containing a tab instead of a literal tab.
16699         Reported by Jim Meyering.
16700
16701 2011-07-07  Bruno Haible  <bruno@clisp.org>
16702
16703         Comments.
16704         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16705
16706 2011-07-06  Bruno Haible  <bruno@clisp.org>
16707
16708         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16709         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16710         <winsock2.h>.
16711         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16712         lib/sys_socket.in.h.
16713         (close, gethostname): Hide declarations from <winsock2.h>.
16714         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16715         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16716         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16717         (select): Don't override if gnulib's <sys/select.h> was already
16718         included.
16719         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16720         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16721         setsockopt, shutdown, select): Tweak indentation.
16722
16723 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16724
16725         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16726         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16727         in an application that does not use the sys_select module.
16728
16729 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16730
16731         poll: do not return 0 on timeout=-1
16732         * lib/poll.c: Loop with yield if no events occurred.
16733
16734 2011-07-06  Eric Blake  <eblake@redhat.com>
16735
16736         pthread_sigmask: always replace when not using pthread
16737         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16738         replacement when using some threading other than pthread.  Fix
16739         logic bug.
16740
16741 2011-07-06  Bruno Haible  <bruno@clisp.org>
16742
16743         Comments.
16744         * m4/printf.m4: Update comments about mingw.
16745
16746 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16747
16748         sys_select: define sigset_t more portably
16749         * lib/sys_select.in.h: Always include <sys/types.h>, since
16750         we now need sigset_t and mingw defines it there.
16751         Include <signal.h> before split inclusion guard, to avoid
16752         mishaps on Solaris, whose <signal.h> eventually includes us.
16753         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16754         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16755         which come from ...
16756         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16757         gl_CHECK_TYPE_SIGSET_T.
16758         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16759         does the real work.
16760         * modules/sys_select (Depends-on): Add 'signal'.
16761
16762         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16763         Suggested by Bruno Haible.
16764
16765         pselect: Use pthread_sigmask, not sigprocmask.
16766         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16767         multithreaded apps better than sigprocmask does.
16768         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16769         sigprocmask directly.
16770
16771 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16772
16773         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16774         Don't #undef,  since we don't need any underlying pselect.
16775         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16776         (Depends-on): Add select.
16777         (Link): Add $(LIBSOCKET).
16778         These changes suggested by Bruno Haible.
16779
16780         pselect: document better
16781         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16782         * doc/posix-functions/pselect.texi (pselect): Document new module.
16783
16784         pthread_sigmask: new module
16785         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16786         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16787         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16788         This is done only as a macro; I don't know how well that'll
16789         work for C++.  Move <sys/types.h> include before the include_next,
16790         to avoid mishap on Solaris.
16791         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16792         * modules/signal (Makefile.am): Substitute the check's results.
16793         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16794
16795         test-pselect: new module
16796         * modules/pselect-tests, tests/test-pselect.c: New files.
16797         * tests/test-select.c, tests/test-sys_select-c++.cc:
16798         If TEST_PSELECT is defined, test pselect instead of testing select.
16799
16800         * tests/test-sys_select.c (sigset_t): Test for it, too.
16801         Suggested by Bruno Haible.
16802
16803 2011-07-05  Eric Blake  <eblake@redhat.com>
16804
16805         snprintf: guarantee %1$d, for libintl
16806         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16807         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16808         * doc/posix-functions/snprintf.texi (snprintf): Update.
16809         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16810         * tests/test-snprintf.c (main): Enhance test.
16811         * tests/test-vsnprintf.c (main): Likewise.
16812
16813 2011-07-05  Jim Meyering  <meyering@redhat.com>
16814
16815         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16816         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16817         per Bruno's request, to accommodate this idiom (no space after "#")
16818         even when the function is inside an #if block:
16819         char *
16820         gets (char *s)
16821         #undef gets
16822         {
16823           ...
16824         }
16825
16826 2011-07-04  Jim Meyering  <meyering@redhat.com>
16827
16828         maint: indent with spaces, not TABs, and add a rule to check this
16829         * tests/test-userspec.c: Indent with spaces, not TABs.
16830         * tests/test-argp.c: Likewise.
16831         * tests/test-c-stack2.sh: Likewise.
16832         * tests/test-parse-duration.sh: Likewise
16833         * m4/strtod.m4: Likewise.
16834         * m4/alloca.m4: Likewise.
16835         * m4/pselect.m4: Likewise.
16836         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16837
16838 2011-07-03  Jim Meyering  <meyering@redhat.com>
16839
16840         maint.mk: correct omissions in prohibit_argmatch_without_use check
16841         This rule would mistakenly report that argmatch.h is included without
16842         use even when both the argmatch and invalid_arg macro were used.
16843         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16844         of argmatch and invalid_arg.
16845
16846 2011-07-03  Bruno Haible  <bruno@clisp.org>
16847
16848         Comments about EINTR.
16849         * lib/safe-read.h: Explain the purpose of this module.
16850         * lib/safe-write.h: Likewise.
16851         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16852         module.
16853         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16854         module.
16855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16856
16857 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16858
16859         xnanosleep: Rewrite to use new dtotimespec module.
16860         It has the conversion code that used to be in xnanosleep.
16861         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16862         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16863         (TIME_T_MAX): Remove.
16864         (xnanosleep): Rewrite in terms of dtotimespec.
16865         * modules/xnanosleep (Depends-on): Add dtotimespec.
16866         Remove intprops, stdbool.
16867
16868         timespec-add, timespec-sub: new modules
16869         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16870         * lib/timespec-add.c, lib/timespec-sub.c:
16871         * modules/timespec-add, modules/timespec-sub: New files.
16872
16873         dtotimespec: new module
16874         * lib/timespec.h (dtotimespec): New decl.
16875         * lib/dtotimespec.c, modules/dtotimespec: New files.
16876
16877         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16878
16879         pselect: new module
16880         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16881         (pselect): New decls.
16882         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16883         since the standard pselect decl uses 'restrict'.
16884         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16885         HAVE_PSELECT, REPLACE_PSELECT.
16886         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16887         HAVE_PSELECT, REPLACE_PSELECT.
16888         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16889
16890         sys_select: don't depend on sys_socket
16891         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16892         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16893         This fix works on GNU and GNU-like platforms, but has not been tested
16894         on native Windows.
16895         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16896         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16897         gl_HEADER_SYS_SOCKET.
16898         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16899         gl_PREREQ_SYS_H_WINSOCK2.
16900
16901 2011-06-29  Eric Blake  <eblake@redhat.com>
16902
16903         pipe2: fix C89 compile problem
16904         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16905         Reported by Bruno Haible.
16906
16907         pipe, pipe2: don't corrupt fd on error
16908         * lib/pipe.c (pipe): Leave fd unchanged on error.
16909         * lib/pipe2.c (pipe2): Likewise.
16910         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16911         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16912
16913 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16914
16915         mmap-anon: do not use regular expressions inadvertently
16916         * m4/mmap-anon.m4: Remove trailing period from strings sought
16917         in the output.
16918
16919 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16920
16921         nanosleep: fix integer overflow problem
16922         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16923         arithmetic wraps around on overflow.
16924
16925         nanosleep: simplify carrying
16926         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16927         first call to the underyling nanosleep, not for the last one.
16928         This doesn't fix any bugs, but it simplifies the computation of
16929         the remaining delay.  Found while auditing integer overflow issues.
16930
16931         dup2: remove test for existence of fcntl
16932         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16933         "#if HAVE_FCNTL", in the configure-time test program.
16934         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16935         and therefore speeds up "configure" a bit.  Found while
16936         adding the dup2 module to Emacs.
16937
16938 2011-06-24  Eric Blake  <eblake@redhat.com>
16939
16940         maint.mk: enhance useless header checks
16941         * top/maint.mk (_sc_header_without_use): Check both include
16942         styles.
16943         (sc_prohibit_assert_without_use)
16944         (sc_prohibit_close_stream_without_use)
16945         (sc_prohibit_getopt_without_use)
16946         (sc_prohibit_quotearg_without_use)
16947         (sc_prohibit_quote_without_use)
16948         (sc_prohibit_long_options_without_use)
16949         (sc_prohibit_inttostr_without_use)
16950         (sc_prohibit_ignore_value_without_use)
16951         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16952         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16953         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16954         (sc_prohibit_hash_pjw_without_use)
16955         (sc_prohibit_safe_read_without_use)
16956         (sc_prohibit_argmatch_without_use)
16957         (sc_prohibit_canonicalize_without_use)
16958         (sc_prohibit_root_dev_ino_without_use)
16959         (sc_prohibit_openat_without_use)
16960         (sc_prohibit_c_ctype_without_use)
16961         (sc_prohibit_signal_without_use)
16962         (sc_prohibit_stdio--_without_use)
16963         (sc_prohibit_stdio-safer_without_use)
16964         (sc_prohibit_strings_without_use)
16965         (sc_prohibit_intprops_without_use)
16966         (sc_prohibit_stddef_without_use)
16967         (sc_prohibit_xfreopen_without_use): Update clients.
16968
16969 2011-06-24  Jim Meyering  <meyering@redhat.com>
16970
16971         syntax-check: keep one maint.mk rule in sync with its header
16972         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16973         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16974         I prefer to avoid temporary files here, so use <(...), but that
16975         is not supported by /bin/sh, so...
16976         (SHELL): Define to /bin/bash.
16977
16978 2011-06-24  Eric Blake  <eblake@redhat.com>
16979
16980         maint.mk: update sc_prohibit_intprops_without_use
16981         * top/maint.mk (_intprops_names): Match recent changes.
16982
16983 2011-06-24  Bruno Haible  <bruno@clisp.org>
16984
16985         strerror-override: No-op tweak.
16986         * lib/strerror-override.h (strerror_override): Reorder conditions,
16987         for consistency with lib/strerror-override.c.
16988
16989 2011-06-23  Eric Blake  <eblake@redhat.com>
16990
16991         maint.mk: test further PATH_MAX issues
16992         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16993         (sc_prohibit_path_max_allocation): ...and also test alloca.
16994         Suggested by Jim Meyering.
16995
16996 2011-06-22  Eric Blake  <eblake@redhat.com>
16997
16998         maint.mk: add syntax-check to avoid char[PATH_MAX]
16999         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17000
17001         stat: be robust to PATH_MAX definition
17002         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17003         * modules/stat (Depends-on): Add verify.
17004
17005         link: work around IRIX bug
17006         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17007         * lib/link.c (rpl_link): Work around it.
17008         * tests/test-link.h (test_link): Enhance test.
17009         * doc/posix-functions/link.texi (link): Document the bug.
17010
17011         getopt: silence clang warning
17012         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17013         dereference.
17014         Reported by Gustavo Martin Domato.
17015
17016 2011-06-22  Jim Meyering  <meyering@redhat.com>
17017
17018         bootstrap: do not insert a blank line into each .gitignore file
17019         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17020
17021 2011-06-21  Eric Blake  <eblake@redhat.com>
17022
17023         perror: test for output mismatch
17024         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17025         perror on IRIX.
17026
17027         strerror_r: fix OpenBSD behavior on out-of-range
17028         * lib/strerror_r.c (strerror_r): Always use maximal string.
17029         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17030
17031         strerror_r: fix OpenBSD behavior on 0
17032         * lib/strerror-override.c (strerror_override): Also override 0
17033         when needed.
17034         * lib/strerror-override.h (strerror_override): Likewise.
17035         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17036         earlier.
17037         * lib/strerror_r.c (strerror_r): Likewise.
17038         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17039         behavior...
17040         (gl_FUNC_STRERROR_0): ...into new macro.
17041         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17042         is overridden.
17043         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17044         * modules/strerror-override (Files): Add strerror.m4.
17045         (configure.ac): Also provide override for 0 when needed.
17046         * doc/posix-functions/strerror.texi (strerror): Document this.
17047         * doc/posix-functions/perror.texi (perror): Likewise.
17048
17049         perror: adjust array size
17050         * modules/perror (Depends-on): Add strerror-override.
17051         * lib/perror.c (perror): Use it to avoid magic number.
17052
17053         strerror-override: reduce size
17054         * lib/strerror-override.c (strerror_override): Use fewer lines.
17055
17056 2011-06-20  Bruno Haible  <bruno@clisp.org>
17057
17058         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17059         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17060
17061 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17062
17063         alloca: port to compilers that can optimize like GCC 4.6.0
17064         * lib/alloca.c (find_stack_direction): New signature, taken from
17065         Autoconf git.  This works with GCC 4.6.0.  This code should never
17066         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17067         be used with other compilers that optimize as well as GCC 4.6.0 does.
17068         (alloca): Adjust to new signature.
17069         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17070         New macro, which patches Autoconf in a similar way.
17071
17072         c-stack: stop worrying about stack direction
17073         * lib/c-stack.c (find_stack_direction): Remove.
17074         (segv_handler): Don't worry about stack direction growth, as it's
17075         too much of a pain to configure this correctly, given how compilers
17076         are optimizing-away our stack-growth detection code.  Instead, assume
17077         that any access to just before or just after the stack is OK.
17078         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17079         Don't require AC_FUNC_ALLOCA; no longer needed.
17080
17081 2011-06-20  Eric Blake  <eblake@redhat.com>
17082
17083         test-stat: don't allocate PATH_MAX bytes
17084         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17085         PATH_MAX-sized buffer.
17086         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17087         * modules/stat-tests (Depends-on): Likewise.
17088         * tests/test-fstatat.c (includes): Drop pathmax.h.
17089         * tests/test-stat.c (includes): Likewise.
17090         Reported by Bruno Haible.
17091
17092 2011-06-20  Bruno Haible  <bruno@clisp.org>
17093
17094         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17095         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17096         * lib/float.c: New file.
17097         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17098         REPLACE_FLOAT_LDBL.
17099         * modules/float (Files): Add lib/float.c.
17100         (configure.ac): Invoke AC_LIBOBJ.
17101         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17102
17103 2011-06-20  Bruno Haible  <bruno@clisp.org>
17104
17105         Tests for module 'float'.
17106         * modules/float-tests: New file.
17107         * tests/test-float.c: New file.
17108
17109 2011-06-19  Bruno Haible  <bruno@clisp.org>
17110
17111         isinf: Coding style.
17112         * lib/isinf.c: Use GNU coding style.
17113
17114 2011-06-19  Bruno Haible  <bruno@clisp.org>
17115
17116         linkat test: Avoid test failure on AIX 7.1.
17117         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17118         * tests/test-link.h (test_link): Likewise.
17119
17120 2011-06-19  Bruno Haible  <bruno@clisp.org>
17121
17122         pread test: Avoid test failure on OpenBSD 4.9.
17123         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17124
17125 2011-06-19  Bruno Haible  <bruno@clisp.org>
17126
17127         sprintf-posix: Fix test failure on AIX 7.1.
17128         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17129         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17130         on AIX.
17131         * doc/posix-functions/fprintf.texi: Likewise.
17132         * doc/posix-functions/printf.texi: Likewise.
17133         * doc/posix-functions/snprintf.texi: Likewise.
17134         * doc/posix-functions/sprintf.texi: Likewise.
17135         * doc/posix-functions/vdprintf.texi: Likewise.
17136         * doc/posix-functions/vfprintf.texi: Likewise.
17137         * doc/posix-functions/vprintf.texi: Likewise.
17138         * doc/posix-functions/vsnprintf.texi: Likewise.
17139         * doc/posix-functions/vsprintf.texi: Likewise.
17140
17141 2011-06-19  Bruno Haible  <bruno@clisp.org>
17142
17143         roundl-ieee: Fix test failure on AIX 7.1.
17144         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17145         * doc/posix-functions/roundl.texi: Mention problem with negative
17146         arguments.
17147
17148 2011-06-19  Bruno Haible  <bruno@clisp.org>
17149
17150         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17151         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17152         * doc/posix-functions/round.texi: Mention problem with negative
17153         arguments.
17154         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17155
17156 2011-06-19  Bruno Haible  <bruno@clisp.org>
17157
17158         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17159         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17160         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17161         * doc/posix-functions/roundf.texi: Mention problem with negative
17162         arguments.
17163         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17164
17165 2011-06-19  Bruno Haible  <bruno@clisp.org>
17166
17167         ceilf-ieee: Work around bug on MacOS X 10.5.
17168         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17169
17170         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17171         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17172         IEEE compliant, avoid compiler optimizations.
17173         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17174         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17175         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17176         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17177         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17178         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17179         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17180         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17181         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17182         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17183
17184 2011-06-19  Bruno Haible  <bruno@clisp.org>
17185
17186         ceilf-ieee: Work around bug on AIX 7.1.
17187         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17188         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17189
17190 2011-06-19  Bruno Haible  <bruno@clisp.org>
17191
17192         ceil-ieee: Work around bug on AIX 7.1.
17193         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17194         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17195
17196 2011-06-18  Bruno Haible  <bruno@clisp.org>
17197
17198         fsync test: Avoid test failure on MacOS X and AIX.
17199         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17200         EINVAL.
17201
17202 2011-06-18  Bruno Haible  <bruno@clisp.org>
17203
17204         openat, fdopendir tests: Fix link errors.
17205         * modules/openat-tests (Depends-on): Add progname.
17206         * modules/fdopendir-tests (Depends-on): Likewise.
17207         * tests/test-fchownat.c: Include progname.h.
17208         (main): Call set_program_name.
17209         * tests/test-fstatat.c: Include progname.h.
17210         (main): Call set_program_name.
17211         * tests/test-mkdirat.c: Include progname.h.
17212         (main): Call set_program_name.
17213         * tests/test-openat.c: Include progname.h.
17214         (main): Call set_program_name.
17215         * tests/test-unlinkat.c: Include progname.h.
17216         (main): Call set_program_name.
17217         * tests/test-fdopendir.c: Include progname.h.
17218         (main): Call set_program_name.
17219
17220 2011-06-18  Bruno Haible  <bruno@clisp.org>
17221
17222         Doc update.
17223         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17224         HP-UX.
17225         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17226
17227 2011-06-18  Bruno Haible  <bruno@clisp.org>
17228
17229         getcwd tests: Avoid compilation error on HP-UX 11.31.
17230         * modules/getcwd-tests (Depends-on): Add pathmax.
17231         * tests/test-getcwd.c: Include pathmax.h.
17232
17233 2011-06-18  Bruno Haible  <bruno@clisp.org>
17234
17235         isfinite, isinf: Fix link error on AIX 6 and 7.
17236         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17237         needed, also test the macro with a 'float' argument.
17238         * m4/isinf.m4 (gl_ISINF): Likewise.
17239
17240 2011-06-18  Bruno Haible  <bruno@clisp.org>
17241
17242         getloadavg: Don't clobber LIBS. Regression from previous commit.
17243         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17244         AC_CHECK_LIB from here...
17245         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17246         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17247         gl_func_getloadavg_done.
17248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17249
17250 2011-06-18  Bruno Haible  <bruno@clisp.org>
17251
17252         clean-temp: Improve documentation.
17253         * lib/clean-temp.h: Explain better how to use this module.
17254         Reported by John Darrington <john@darrington.wattle.id.au>.
17255
17256 2011-06-17  Bruno Haible  <bruno@clisp.org>
17257
17258         pread, pwrite: Avoid cc warning on AIX.
17259         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17260         (pwrite): Likewise.
17261
17262 2011-06-17  Bruno Haible  <bruno@clisp.org>
17263
17264         spawn-pipe tests: Fix link error.
17265         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17266         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17267
17268 2011-06-17  Bruno Haible  <bruno@clisp.org>
17269
17270         Tests: Remove unnecessary dependency.
17271         * modules/canonicalize-tests (Depends-on): Remove progname.
17272         * modules/chown-tests (Depends-on): Likewise.
17273         * modules/dirname-tests (Depends-on): Likewise.
17274         * modules/fdopendir-tests (Depends-on): Likewise.
17275         * modules/fdutimensat-tests (Depends-on): Likewise.
17276         * modules/hash-tests (Depends-on): Likewise.
17277         * modules/lchown-tests (Depends-on): Likewise.
17278         * modules/linkat-tests (Depends-on): Likewise.
17279         * modules/renameat-tests (Depends-on): Likewise.
17280         * modules/spawn-pipe-tests (Depends-on): Likewise.
17281         * modules/utimensat-tests (Depends-on): Likewise.
17282
17283 2011-06-17  Bruno Haible  <bruno@clisp.org>
17284
17285         spawn-pipe tests: Fix link error.
17286         * tests/test-spawn-pipe-child.c: Undefine fflush.
17287
17288 2011-06-17  Bruno Haible  <bruno@clisp.org>
17289
17290         Fix tests link errors.
17291         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17292         * modules/chown-tests (Makefile.am): Don't link test-chown with
17293         LIBINTL.
17294         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17295         LIBINTL.
17296         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17297         LIBINTL.
17298         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17299         LIBINTL.
17300
17301 2011-06-16  Bruno Haible  <bruno@clisp.org>
17302
17303         crypto/gc-sha1: Fix recent regression.
17304         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17305         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17306
17307         crypto/gc-md5: Fix recent regression.
17308         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17309
17310         crypto/gc-md4: Fix recent regression.
17311         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17312         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17313
17314         crypto/gc-arctwo: Fix recent regression.
17315         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17316         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17317
17318         crypto/gc-rijndael: Fix recent regression.
17319         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17320         (configure.ac): Invoke AC_LIBOBJ here.
17321         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17323
17324         crypto/gc-hmac-sha1: Fix recent regression.
17325         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17326         (configure.ac): Invoke AC_LIBOBJ here.
17327         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17328         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17329
17330         crypto/gc-hmac-md5: Fix recent regression.
17331         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17332         (configure.ac): Invoke AC_LIBOBJ here.
17333         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17335
17336         crypto/gc-des: Fix recent regression.
17337         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17338         (configure.ac): Invoke AC_LIBOBJ here.
17339         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17341
17342         crypto/gc-arcfour: Fix recent regression.
17343         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17344         (configure.ac): Invoke AC_LIBOBJ here.
17345         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17347
17348 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17349
17350         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17351         After the 2011-05-21 change, this macro requires
17352         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17353         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17354
17355 2011-06-16  Bruno Haible  <bruno@clisp.org>
17356
17357         fprintftime: Move AC_LIBOBJ invocations to module description.
17358         * m4/fprintftime.m4: Remove file.
17359         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17360         (configure.ac): Remove gl_FPRINTFTIME call.
17361         (Makefile.am): Augment lib_SOURCES.
17362         Reported by Jim Meyering.
17363
17364 2011-06-16  Bruno Haible  <bruno@clisp.org>
17365
17366         tmpfile-safer: Finish 2011-05-23 commit.
17367         * m4/stdio-safer.m4: Really remove file.
17368         Reported by Jim Meyering.
17369
17370 2011-06-16  Bruno Haible  <bruno@clisp.org>
17371
17372         syntax-check: Fix typo.
17373         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17374         printf-posix.m4.
17375         Reported by Jim Meyering.
17376
17377 2011-06-13  Jim Meyering  <meyering@redhat.com>
17378
17379         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17380         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17381
17382 2011-05-23  Bruno Haible  <bruno@clisp.org>
17383
17384         yesno: Move AC_LIBOBJ invocations to module description.
17385         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17386         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17387
17388 2011-05-23  Bruno Haible  <bruno@clisp.org>
17389
17390         xstrtol: Move AC_LIBOBJ invocations to module description.
17391         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17392         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17393
17394 2011-05-23  Bruno Haible  <bruno@clisp.org>
17395
17396         xstrtold: Move AC_LIBOBJ invocations to module description.
17397         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17398         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17399
17400 2011-05-23  Bruno Haible  <bruno@clisp.org>
17401
17402         xstrtod: Move AC_LIBOBJ invocations to module description.
17403         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17404         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17405
17406 2011-05-23  Bruno Haible  <bruno@clisp.org>
17407
17408         xnanosleep: Move AC_LIBOBJ invocations to module description.
17409         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17410         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17411
17412 2011-05-23  Bruno Haible  <bruno@clisp.org>
17413
17414         xgetcwd: Move AC_LIBOBJ invocations to module description.
17415         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17416         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17417
17418 2011-05-23  Bruno Haible  <bruno@clisp.org>
17419
17420         xalloc: Move AC_LIBOBJ invocations to module description.
17421         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17422         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17423
17424 2011-05-23  Bruno Haible  <bruno@clisp.org>
17425
17426         write-any-file: Move AC_LIBOBJ invocations to module description.
17427         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17428         invocation.
17429         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17430
17431 2011-05-23  Bruno Haible  <bruno@clisp.org>
17432
17433         utimens: Move AC_LIBOBJ invocations to module description.
17434         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17435         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17436
17437 2011-05-23  Bruno Haible  <bruno@clisp.org>
17438
17439         utimecmp: Move AC_LIBOBJ invocations to module description.
17440         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17441         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17442
17443 2011-05-23  Bruno Haible  <bruno@clisp.org>
17444
17445         userspec: Move AC_LIBOBJ invocations to module description.
17446         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17447         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17448
17449 2011-05-23  Bruno Haible  <bruno@clisp.org>
17450
17451         unlinkdir: Move AC_LIBOBJ invocations to module description.
17452         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17453         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17454
17455 2011-05-23  Bruno Haible  <bruno@clisp.org>
17456
17457         unistd-safer: Move AC_LIBOBJ invocations to module description.
17458         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17459         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17460
17461 2011-05-23  Bruno Haible  <bruno@clisp.org>
17462
17463         tempname: Move AC_LIBOBJ invocations to module description.
17464         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17465         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17466
17467 2011-05-23  Bruno Haible  <bruno@clisp.org>
17468
17469         strftime: Move AC_LIBOBJ invocations to module description.
17470         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17471         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17472
17473 2011-05-23  Bruno Haible  <bruno@clisp.org>
17474
17475         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17476         * m4/stdlib-safer.m4: Remove file.
17477         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17478         (configure.ac): Remove gl_STDLIB_SAFER call.
17479         (Makefile.am): Augment lib_SOURCES.
17480
17481 2011-05-23  Bruno Haible  <bruno@clisp.org>
17482
17483         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17484         * m4/stdio-safer.m4: Remove file.
17485         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17486         (configure.ac): Remove gl_TMPFILE_SAFER call.
17487         (Makefile.am): Augment lib_SOURCES.
17488
17489 2011-05-23  Bruno Haible  <bruno@clisp.org>
17490
17491         popen-safer: Move AC_LIBOBJ invocations to module description.
17492         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17493         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17494         (configure.ac): Remove gl_POPEN_SAFER call.
17495         (Makefile.am): Augment lib_SOURCES.
17496
17497 2011-05-23  Bruno Haible  <bruno@clisp.org>
17498
17499         freopen-safer: Move AC_LIBOBJ invocations to module description.
17500         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17501         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17502         (configure.ac): Remove gl_FREOPEN_SAFER call.
17503         (Makefile.am): Augment lib_SOURCES.
17504
17505 2011-05-23  Bruno Haible  <bruno@clisp.org>
17506
17507         fopen-safer: Move AC_LIBOBJ invocations to module description.
17508         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17509         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17510         (configure.ac): Remove gl_FOPEN_SAFER call.
17511         (Makefile.am): Augment lib_SOURCES.
17512
17513 2011-05-23  Bruno Haible  <bruno@clisp.org>
17514
17515         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17516         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17517         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17518
17519 2011-05-23  Bruno Haible  <bruno@clisp.org>
17520
17521         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17522         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17523         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17524
17525 2011-05-23  Bruno Haible  <bruno@clisp.org>
17526
17527         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17528         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17529         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17530
17531 2011-05-23  Bruno Haible  <bruno@clisp.org>
17532
17533         settime: Move AC_LIBOBJ invocations to module description.
17534         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17535         * modules/settime (Makefile.am): Augment lib_SOURCES.
17536
17537 2011-05-23  Bruno Haible  <bruno@clisp.org>
17538
17539         savedir: Move AC_LIBOBJ invocations to module description.
17540         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17541         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17542
17543 2011-05-23  Bruno Haible  <bruno@clisp.org>
17544
17545         save-cwd: Move AC_LIBOBJ invocations to module description.
17546         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17547         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17548
17549 2011-05-23  Bruno Haible  <bruno@clisp.org>
17550
17551         same: Move AC_LIBOBJ invocations to module description.
17552         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17553         * modules/same (Makefile.am): Augment lib_SOURCES.
17554
17555 2011-05-23  Bruno Haible  <bruno@clisp.org>
17556
17557         safe-write: Move AC_LIBOBJ invocations to module description.
17558         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17559         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17560         instead of gl_SAFE_WRITE.
17561         (Makefile.am): Augment lib_SOURCES.
17562
17563 2011-05-23  Bruno Haible  <bruno@clisp.org>
17564
17565         safe-read: Move AC_LIBOBJ invocations to module description.
17566         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17567         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17568         of gl_SAFE_READ.
17569         (Makefile.am): Augment lib_SOURCES.
17570
17571 2011-05-23  Bruno Haible  <bruno@clisp.org>
17572
17573         safe-alloc: Move AC_LIBOBJ invocations to module description.
17574         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17575         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17576
17577 2011-05-23  Bruno Haible  <bruno@clisp.org>
17578
17579         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17580         * m4/rijndael.m4: Remove file.
17581         * modules/crypto/rijndael (Files): Remove it.
17582         (configure.ac): Remove gl_RIJNDAEL call.
17583         (Makefile.am): Augment lib_SOURCES.
17584
17585 2011-05-23  Bruno Haible  <bruno@clisp.org>
17586
17587         readtokens: Move AC_LIBOBJ invocations to module description.
17588         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17589         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17590
17591 2011-05-23  Bruno Haible  <bruno@clisp.org>
17592
17593         read-file: Move AC_LIBOBJ invocations to module description.
17594         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17595         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17596         of gl_FUNC_READ_FILE.
17597         (Makefile.am): Augment lib_SOURCES.
17598
17599 2011-05-23  Bruno Haible  <bruno@clisp.org>
17600
17601         quotearg: Move AC_LIBOBJ invocations to module description.
17602         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17603         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17604
17605 2011-05-23  Bruno Haible  <bruno@clisp.org>
17606
17607         quote: Move AC_LIBOBJ invocations to module description.
17608         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17609         * modules/quote (Makefile.am): Augment lib_SOURCES.
17610
17611 2011-05-23  Bruno Haible  <bruno@clisp.org>
17612
17613         posixver: Move AC_LIBOBJ invocations to module description.
17614         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17615         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17616
17617 2011-05-23  Bruno Haible  <bruno@clisp.org>
17618
17619         posixtm: Move AC_LIBOBJ invocations to module description.
17620         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17621         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17622
17623 2011-05-23  Bruno Haible  <bruno@clisp.org>
17624
17625         physmem: Move AC_LIBOBJ invocations to module description.
17626         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17627         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17628
17629 2011-05-23  Bruno Haible  <bruno@clisp.org>
17630
17631         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17632         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17633         invocation.
17634         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17635
17636 2011-05-23  Bruno Haible  <bruno@clisp.org>
17637
17638         mpsort: Move AC_LIBOBJ invocations to module description.
17639         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17640         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17641
17642 2011-05-23  Bruno Haible  <bruno@clisp.org>
17643
17644         modechange: Move AC_LIBOBJ invocations to module description.
17645         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17646         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17647
17648 2011-05-23  Bruno Haible  <bruno@clisp.org>
17649
17650         mkdir-p: Move AC_LIBOBJ invocations to module description.
17651         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17652         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17653
17654 2011-05-23  Bruno Haible  <bruno@clisp.org>
17655
17656         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17657         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17658         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17659
17660 2011-05-23  Bruno Haible  <bruno@clisp.org>
17661
17662         mgetgroups: Move AC_LIBOBJ invocations to module description.
17663         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17664         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17665
17666 2011-05-23  Bruno Haible  <bruno@clisp.org>
17667
17668         memxor: Move AC_LIBOBJ invocations to module description.
17669         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17670         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17671
17672 2011-05-23  Bruno Haible  <bruno@clisp.org>
17673
17674         memcoll: Move AC_LIBOBJ invocations to module description.
17675         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17676         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17677
17678 2011-05-23  Bruno Haible  <bruno@clisp.org>
17679
17680         memcasecmp: Move AC_LIBOBJ invocations to module description.
17681         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17682         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17683
17684 2011-05-23  Bruno Haible  <bruno@clisp.org>
17685
17686         crypto/md5: Move AC_LIBOBJ invocations to module description.
17687         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17688         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17689
17690 2011-05-23  Bruno Haible  <bruno@clisp.org>
17691
17692         crypto/md4: Move AC_LIBOBJ invocations to module description.
17693         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17694         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17695
17696 2011-05-23  Bruno Haible  <bruno@clisp.org>
17697
17698         crypto/md2: Move AC_LIBOBJ invocations to module description.
17699         * m4/md2.m4: Remove file.
17700         * modules/crypto/md2 (Files): Remove it.
17701         (configure.ac): Remove gl_MD2 call.
17702         (Makefile.am): Augment lib_SOURCES.
17703
17704 2011-05-23  Bruno Haible  <bruno@clisp.org>
17705
17706         long-options: Move AC_LIBOBJ invocations to module description.
17707         * m4/long-options.m4: Remove file.
17708         * modules/long-options (Files): Remove it.
17709         (configure.ac): Remove gl_LONG_OPTIONS call.
17710         (Makefile.am): Augment lib_SOURCES.
17711
17712 2011-05-23  Bruno Haible  <bruno@clisp.org>
17713
17714         i-ring: Move AC_LIBOBJ invocations to module description.
17715         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17716         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17717
17718 2011-05-23  Bruno Haible  <bruno@clisp.org>
17719
17720         idcache: Move AC_LIBOBJ invocations to module description.
17721         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17722         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17723
17724 2011-05-23  Bruno Haible  <bruno@clisp.org>
17725
17726         human: Move AC_LIBOBJ invocations to module description.
17727         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17728         * modules/human (Makefile.am): Augment lib_SOURCES.
17729
17730 2011-05-23  Bruno Haible  <bruno@clisp.org>
17731
17732         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17733         * m4/hmac-sha1.m4: Remove file.
17734         * modules/crypto/hmac-sha1 (Files): Remove it.
17735         (configure.ac): Remove gl_HMAC_SHA1 call.
17736         (Makefile.am): Augment lib_SOURCES.
17737
17738 2011-05-23  Bruno Haible  <bruno@clisp.org>
17739
17740         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17741         * m4/hmac-md5.m4: Remove file.
17742         * modules/crypto/hmac-md5 (Files): Remove it.
17743         (configure.ac): Remove gl_HMAC_MD5 call.
17744         (Makefile.am): Augment lib_SOURCES.
17745
17746 2011-05-23  Bruno Haible  <bruno@clisp.org>
17747
17748         hash: Move AC_LIBOBJ invocations to module description.
17749         * m4/hash.m4: Remove file.
17750         * modules/hash (Files): Remove it.
17751         (configure.ac): Remove gl_HASH call.
17752         (Makefile.am): Augment lib_SOURCES.
17753
17754 2011-05-23  Bruno Haible  <bruno@clisp.org>
17755
17756         hard-locale: Move AC_LIBOBJ invocations to module description.
17757         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17758         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17759
17760 2011-05-23  Bruno Haible  <bruno@clisp.org>
17761
17762         getugroups: Move AC_LIBOBJ invocations to module description.
17763         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17764         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17765
17766 2011-05-23  Bruno Haible  <bruno@clisp.org>
17767
17768         gettime: Move AC_LIBOBJ invocations to module description.
17769         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17770         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17771
17772 2011-05-23  Bruno Haible  <bruno@clisp.org>
17773
17774         getndelim2: Move AC_LIBOBJ invocations to module description.
17775         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17776         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17777
17778 2011-05-23  Bruno Haible  <bruno@clisp.org>
17779
17780         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17781         * m4/gc-pbkdf2-sha1.m4: Remove file.
17782         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17783         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17784         (Makefile.am): Augment lib_SOURCES.
17785
17786 2011-05-23  Bruno Haible  <bruno@clisp.org>
17787
17788         fts: Move AC_LIBOBJ invocations to module description.
17789         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17790         * modules/fts (configure.ac): ... to here.
17791
17792 2011-05-23  Bruno Haible  <bruno@clisp.org>
17793
17794         file-type: Move AC_LIBOBJ invocations to module description.
17795         * m4/file-type.m4: Remove file.
17796         * modules/file-type (Files): Remove it.
17797         (configure.ac): Remove gl_FILE_TYPE call.
17798         (Makefile.am): Augment lib_SOURCES.
17799
17800 2011-05-23  Bruno Haible  <bruno@clisp.org>
17801
17802         filenamecat*: Respect rules for use of AC_LIBOBJ.
17803         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17804         Remove AC_LIBOBJ invocation.
17805         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17806         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17807
17808 2011-05-23  Bruno Haible  <bruno@clisp.org>
17809
17810         filemode: Move AC_LIBOBJ invocations to module description.
17811         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17812         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17813
17814 2011-05-23  Bruno Haible  <bruno@clisp.org>
17815
17816         openat-safer: Move AC_LIBOBJ invocations to module description.
17817         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17818         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17819
17820 2011-05-23  Bruno Haible  <bruno@clisp.org>
17821
17822         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17823         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17824         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17825
17826 2011-05-23  Bruno Haible  <bruno@clisp.org>
17827
17828         exclude: Move AC_LIBOBJ invocations to module description.
17829         * m4/exclude.m4: Remove file.
17830         * modules/exclude (Files): Remove it.
17831         (configure.ac): Remove gl_EXCLUDE call.
17832         (Makefile.am): Augment lib_SOURCES.
17833
17834 2011-05-23  Bruno Haible  <bruno@clisp.org>
17835
17836         dirname*: Respect rules for use of AC_LIBOBJ.
17837         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17838         invocations.
17839         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17840         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17841
17842 2011-05-23  Bruno Haible  <bruno@clisp.org>
17843
17844         dirent-safer: Move AC_LIBOBJ invocations to module description.
17845         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17846         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17847
17848 2011-05-23  Bruno Haible  <bruno@clisp.org>
17849
17850         crypto/des: Move AC_LIBOBJ invocations to module description.
17851         * m4/des.m4: Remove file.
17852         * modules/crypto/des (Files): Remove it.
17853         (configure.ac): Remove gl_DES call.
17854         (Makefile.am): Augment lib_SOURCES.
17855
17856 2011-05-23  Bruno Haible  <bruno@clisp.org>
17857
17858         cycle-check: Move AC_LIBOBJ invocations to module description.
17859         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17860         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17861
17862 2011-05-23  Bruno Haible  <bruno@clisp.org>
17863
17864         c-strtold: Move AC_LIBOBJ invocations to module description.
17865         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17866         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17867
17868 2011-05-23  Bruno Haible  <bruno@clisp.org>
17869
17870         c-strtod: Move AC_LIBOBJ invocations to module description.
17871         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17872         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17873
17874 2011-05-23  Bruno Haible  <bruno@clisp.org>
17875
17876         crc: Move AC_LIBOBJ invocations to module description.
17877         * m4/crc.m4: Remove file.
17878         * modules/crc (Files): Remove it.
17879         (configure.ac): Remove gl_CRC call.
17880         (Makefile.am): Augment lib_SOURCES.
17881
17882 2011-05-23  Bruno Haible  <bruno@clisp.org>
17883
17884         close-stream: Move AC_LIBOBJ invocations to module description.
17885         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17886         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17887
17888 2011-05-23  Bruno Haible  <bruno@clisp.org>
17889
17890         closeout: Move AC_LIBOBJ invocations to module description.
17891         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17892         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17893
17894 2011-05-23  Bruno Haible  <bruno@clisp.org>
17895
17896         closein: Move AC_LIBOBJ invocations to module description.
17897         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17898         * modules/closein (Makefile.am): Augment lib_SOURCES.
17899
17900 2011-05-23  Bruno Haible  <bruno@clisp.org>
17901
17902         cloexec: Move AC_LIBOBJ invocations to module description.
17903         * m4/cloexec.m4: Remove file.
17904         * modules/cloexec (Files): Remove it.
17905         (configure.ac): Remove gl_CLOEXEC call.
17906         (Makefile.am): Augment lib_SOURCES.
17907
17908 2011-05-23  Bruno Haible  <bruno@clisp.org>
17909
17910         check-version: Move AC_LIBOBJ invocations to module description.
17911         * m4/check-version.m4: Remove file.
17912         * modules/check-version (Files): Remove it.
17913         (configure.ac): Remove gl_CHECK_VERSION call.
17914         (Makefile.am): Augment lib_SOURCES.
17915
17916 2011-05-23  Bruno Haible  <bruno@clisp.org>
17917
17918         chdir-safer: Move AC_LIBOBJ invocations to module description.
17919         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17920         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17921
17922 2011-05-23  Bruno Haible  <bruno@clisp.org>
17923
17924         canonicalize: Move AC_LIBOBJ invocations to module description.
17925         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17926         AC_LIBOBJ invocation.
17927         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17928
17929 2011-05-23  Bruno Haible  <bruno@clisp.org>
17930
17931         canon-host: Move AC_LIBOBJ invocations to module description.
17932         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17933         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17934         instead of gl_CANON_HOST.
17935         (Makefile.am): Augment lib_SOURCES.
17936
17937 2011-05-23  Bruno Haible  <bruno@clisp.org>
17938
17939         backupfile: Move AC_LIBOBJ invocations to module description.
17940         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17941         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17942
17943 2011-05-23  Bruno Haible  <bruno@clisp.org>
17944
17945         argmatch: Move AC_LIBOBJ invocations to module description.
17946         * m4/argmatch.m4: Remove file.
17947         * modules/argmatch (Files): Remove it.
17948         (configure.ac): Remove gl_ARGMATCH call.
17949         (Makefile.am): Augment lib_SOURCES.
17950
17951 2011-05-23  Bruno Haible  <bruno@clisp.org>
17952
17953         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17954         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17955         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17956
17957 2011-05-23  Bruno Haible  <bruno@clisp.org>
17958
17959         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17960         * m4/arcfour.m4: Remove file.
17961         * modules/crypto/arcfour (Files): Remove it.
17962         (configure.ac): Remove gl_ARCFOUR call.
17963         (Makefile.am): Augment lib_SOURCES.
17964
17965 2011-05-22  Bruno Haible  <bruno@clisp.org>
17966
17967         write: Move AC_LIBOBJ invocations to module description.
17968         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17969         * modules/write (configure.ac): ... to here.
17970
17971 2011-05-22  Bruno Haible  <bruno@clisp.org>
17972
17973         wmemset: Move AC_LIBOBJ invocations to module description.
17974         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17975         here...
17976         * modules/wmemset (configure.ac): ... to here.
17977
17978 2011-05-22  Bruno Haible  <bruno@clisp.org>
17979
17980         wmemmove: Move AC_LIBOBJ invocations to module description.
17981         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17982         here...
17983         * modules/wmemmove (configure.ac): ... to here.
17984
17985 2011-05-22  Bruno Haible  <bruno@clisp.org>
17986
17987         wmemcpy: Move AC_LIBOBJ invocations to module description.
17988         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17989         here...
17990         * modules/wmemcpy (configure.ac): ... to here.
17991
17992 2011-05-22  Bruno Haible  <bruno@clisp.org>
17993
17994         wmemcmp: Move AC_LIBOBJ invocations to module description.
17995         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17996         here...
17997         * modules/wmemcmp (configure.ac): ... to here.
17998
17999 2011-05-22  Bruno Haible  <bruno@clisp.org>
18000
18001         wmemchr: Move AC_LIBOBJ invocations to module description.
18002         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18003         here...
18004         * modules/wmemchr (configure.ac): ... to here.
18005
18006 2011-05-22  Bruno Haible  <bruno@clisp.org>
18007
18008         wcswidth: Move AC_LIBOBJ invocations to module description.
18009         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18010         here...
18011         * modules/wcswidth (configure.ac): ... to here.
18012
18013 2011-05-22  Bruno Haible  <bruno@clisp.org>
18014
18015         wcwidth: Respect rules for use of AC_LIBOBJ.
18016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18017         invocation from here...
18018         * modules/wcwidth (configure.ac): ... to here.
18019         (Depends-on): Update conditions.
18020
18021 2011-05-22  Bruno Haible  <bruno@clisp.org>
18022
18023         wctype: Move AC_LIBOBJ invocations to module description.
18024         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18025         invocation from here...
18026         * modules/wctype (configure.ac): ... to here.
18027         (Depends-on): Update conditions.
18028
18029 2011-05-22  Bruno Haible  <bruno@clisp.org>
18030
18031         wctrans: Move AC_LIBOBJ invocations to module description.
18032         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18033         invocation from here...
18034         * modules/wctrans (configure.ac): ... to here.
18035
18036 2011-05-22  Bruno Haible  <bruno@clisp.org>
18037
18038         wctomb: Move AC_LIBOBJ invocations to module description.
18039         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18040         invocations from here...
18041         * modules/wctomb (configure.ac): ... to here.
18042
18043 2011-05-22  Bruno Haible  <bruno@clisp.org>
18044
18045         wctob: Move AC_LIBOBJ invocations to module description.
18046         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18047         gl_PREREQ_WCTOB invocations from here...
18048         * modules/wctob (configure.ac): ... to here.
18049         (Depends-on): Update conditions.
18050
18051 2011-05-22  Bruno Haible  <bruno@clisp.org>
18052
18053         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18054         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18055         here...
18056         * modules/wcsxfrm (configure.ac): ... to here.
18057
18058 2011-05-22  Bruno Haible  <bruno@clisp.org>
18059
18060         wcstok: Move AC_LIBOBJ invocations to module description.
18061         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18062         * modules/wcstok (configure.ac): ... to here.
18063
18064 2011-05-22  Bruno Haible  <bruno@clisp.org>
18065
18066         wcsstr: Move AC_LIBOBJ invocations to module description.
18067         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18068         * modules/wcsstr (configure.ac): ... to here.
18069
18070 2011-05-22  Bruno Haible  <bruno@clisp.org>
18071
18072         wcsspn: Move AC_LIBOBJ invocations to module description.
18073         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18074         * modules/wcsspn (configure.ac): ... to here.
18075
18076 2011-05-22  Bruno Haible  <bruno@clisp.org>
18077
18078         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18079         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18080         gl_PREREQ_WCSRTOMBS invocations from here...
18081         * modules/wcsrtombs (configure.ac): ... to here.
18082
18083 2011-05-22  Bruno Haible  <bruno@clisp.org>
18084
18085         wcsrchr: Move AC_LIBOBJ invocations to module description.
18086         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18087         here...
18088         * modules/wcsrchr (configure.ac): ... to here.
18089
18090 2011-05-22  Bruno Haible  <bruno@clisp.org>
18091
18092         wcspbrk: Move AC_LIBOBJ invocations to module description.
18093         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18094         here...
18095         * modules/wcspbrk (configure.ac): ... to here.
18096
18097 2011-05-22  Bruno Haible  <bruno@clisp.org>
18098
18099         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18100         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18101         gl_PREREQ_WCSNRTOMBS invocations from here...
18102         * modules/wcsnrtombs (configure.ac): ... to here.
18103
18104 2011-05-22  Bruno Haible  <bruno@clisp.org>
18105
18106         wcsnlen: Move AC_LIBOBJ invocations to module description.
18107         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18108         here...
18109         * modules/wcsnlen (configure.ac): ... to here.
18110
18111 2011-05-22  Bruno Haible  <bruno@clisp.org>
18112
18113         wcsncpy: Move AC_LIBOBJ invocations to module description.
18114         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18115         here...
18116         * modules/wcsncpy (configure.ac): ... to here.
18117
18118 2011-05-22  Bruno Haible  <bruno@clisp.org>
18119
18120         wcsncmp: Move AC_LIBOBJ invocations to module description.
18121         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18122         here...
18123         * modules/wcsncmp (configure.ac): ... to here.
18124
18125 2011-05-22  Bruno Haible  <bruno@clisp.org>
18126
18127         wcsncat: Move AC_LIBOBJ invocations to module description.
18128         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18129         here...
18130         * modules/wcsncat (configure.ac): ... to here.
18131
18132 2011-05-22  Bruno Haible  <bruno@clisp.org>
18133
18134         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18135         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18136         from here...
18137         * modules/wcsncasecmp (configure.ac): ... to here.
18138
18139 2011-05-22  Bruno Haible  <bruno@clisp.org>
18140
18141         wcslen: Move AC_LIBOBJ invocations to module description.
18142         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18143         * modules/wcslen (configure.ac): ... to here.
18144
18145 2011-05-22  Bruno Haible  <bruno@clisp.org>
18146
18147         wcsdup: Move AC_LIBOBJ invocations to module description.
18148         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18149         * modules/wcsdup (configure.ac): ... to here.
18150
18151 2011-05-22  Bruno Haible  <bruno@clisp.org>
18152
18153         wcscspn: Move AC_LIBOBJ invocations to module description.
18154         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18155         here...
18156         * modules/wcscspn (configure.ac): ... to here.
18157
18158 2011-05-22  Bruno Haible  <bruno@clisp.org>
18159
18160         wcscpy: Move AC_LIBOBJ invocations to module description.
18161         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18162         * modules/wcscpy (configure.ac): ... to here.
18163
18164 2011-05-22  Bruno Haible  <bruno@clisp.org>
18165
18166         wcscoll: Move AC_LIBOBJ invocations to module description.
18167         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18168         here...
18169         * modules/wcscoll (configure.ac): ... to here.
18170
18171 2011-05-22  Bruno Haible  <bruno@clisp.org>
18172
18173         wcscmp: Move AC_LIBOBJ invocations to module description.
18174         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18175         * modules/wcscmp (configure.ac): ... to here.
18176
18177 2011-05-22  Bruno Haible  <bruno@clisp.org>
18178
18179         wcschr: Move AC_LIBOBJ invocations to module description.
18180         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18181         * modules/wcschr (configure.ac): ... to here.
18182
18183 2011-05-22  Bruno Haible  <bruno@clisp.org>
18184
18185         wcscat: Move AC_LIBOBJ invocations to module description.
18186         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18187         * modules/wcscat (configure.ac): ... to here.
18188
18189 2011-05-22  Bruno Haible  <bruno@clisp.org>
18190
18191         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18192         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18193         here...
18194         * modules/wcscasecmp (configure.ac): ... to here.
18195
18196 2011-05-22  Bruno Haible  <bruno@clisp.org>
18197
18198         wcrtomb: Move AC_LIBOBJ invocations to module description.
18199         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18200         invocations from here...
18201         * modules/wcrtomb (configure.ac): ... to here.
18202
18203 2011-05-22  Bruno Haible  <bruno@clisp.org>
18204
18205         wcpncpy: Move AC_LIBOBJ invocations to module description.
18206         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18207         here...
18208         * modules/wcpncpy (configure.ac): ... to here.
18209
18210 2011-05-22  Bruno Haible  <bruno@clisp.org>
18211
18212         wcpcpy: Move AC_LIBOBJ invocations to module description.
18213         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18214         * modules/wcpcpy (configure.ac): ... to here.
18215
18216 2011-05-22  Bruno Haible  <bruno@clisp.org>
18217
18218         waitpid: Move AC_LIBOBJ invocations to module description.
18219         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18220         invocation from here...
18221         * modules/waitpid (configure.ac): ... to here.
18222
18223 2011-05-22  Bruno Haible  <bruno@clisp.org>
18224
18225         utimensat: Move AC_LIBOBJ invocations to module description.
18226         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18227         here...
18228         * modules/utimensat (configure.ac): ... to here.
18229
18230 2011-05-22  Bruno Haible  <bruno@clisp.org>
18231
18232         usleep: Move AC_LIBOBJ invocations to module description.
18233         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18234         here...
18235         * modules/usleep (configure.ac): ... to here.
18236
18237 2011-05-22  Bruno Haible  <bruno@clisp.org>
18238
18239         unlockpt: Move AC_LIBOBJ invocations to module description.
18240         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18241         gl_PREREQ_UNLOCKPT invocations from here...
18242         * modules/unlockpt (configure.ac): ... to here.
18243
18244 2011-05-22  Bruno Haible  <bruno@clisp.org>
18245
18246         unlink: Respect rules for use of AC_LIBOBJ.
18247         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18248         * modules/unlink (configure.ac): ... to here.
18249
18250 2011-05-22  Bruno Haible  <bruno@clisp.org>
18251
18252         uname: Move AC_LIBOBJ invocations to module description.
18253         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18255         here...
18256         * modules/uname (configure.ac): ... to here.
18257
18258 2011-05-22  Bruno Haible  <bruno@clisp.org>
18259
18260         ttyname_r: Move AC_LIBOBJ invocations to module description.
18261         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18262         gl_PREREQ_TTYNAME_R invocations from here...
18263         * modules/ttyname_r (configure.ac): ... to here.
18264
18265 2011-05-22  Bruno Haible  <bruno@clisp.org>
18266
18267         tsearch: Move AC_LIBOBJ invocations to module description.
18268         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18269         invocations from here...
18270         * modules/tsearch (configure.ac): ... to here.
18271
18272 2011-05-22  Bruno Haible  <bruno@clisp.org>
18273
18274         towctrans: Move AC_LIBOBJ invocations to module description.
18275         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18276         AC_LIBOBJ invocation from here...
18277         * modules/towctrans (configure.ac): ... to here.
18278
18279 2011-05-22  Bruno Haible  <bruno@clisp.org>
18280
18281         tmpfile: Move AC_LIBOBJ invocations to module description.
18282         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18283         invocations from here...
18284         * modules/tmpfile (configure.ac): ... to here.
18285
18286 2011-05-22  Bruno Haible  <bruno@clisp.org>
18287
18288         times: Move AC_LIBOBJ invocations to module description.
18289         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18290         * modules/times (configure.ac): ... to here.
18291
18292 2011-05-22  Bruno Haible  <bruno@clisp.org>
18293
18294         time_r: Move AC_LIBOBJ invocations to module description.
18295         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18296         invocations from here...
18297         * modules/time_r (configure.ac): ... to here.
18298
18299 2011-05-22  Bruno Haible  <bruno@clisp.org>
18300
18301         timegm: Move AC_LIBOBJ invocations to module description.
18302         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18303         invocations from here...
18304         * modules/timegm (configure.ac): ... to here.
18305
18306 2011-05-22  Bruno Haible  <bruno@clisp.org>
18307
18308         tcgetsid: Move AC_LIBOBJ invocations to module description.
18309         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18310         and gl_PREREQ_TCGETSID invocations from here...
18311         * modules/tcgetsid (configure.ac): ... to here.
18312         (Depends-on): Update conditions.
18313
18314 2011-05-22  Bruno Haible  <bruno@clisp.org>
18315
18316         symlinkat: Move AC_LIBOBJ invocations to module description.
18317         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18318         here...
18319         * modules/symlinkat (configure.ac): ... to here.
18320
18321 2011-05-22  Bruno Haible  <bruno@clisp.org>
18322
18323         symlink: Move AC_LIBOBJ invocations to module description.
18324         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18325         here...
18326         * modules/symlink (configure.ac): ... to here.
18327
18328 2011-05-22  Bruno Haible  <bruno@clisp.org>
18329
18330         strverscmp: Move AC_LIBOBJ invocations to module description.
18331         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18332         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18333         from here...
18334         * modules/strverscmp (configure.ac): ... to here.
18335
18336 2011-05-22  Bruno Haible  <bruno@clisp.org>
18337
18338         strtok_r: Move AC_LIBOBJ invocations to module description.
18339         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18340         and gl_PREREQ_STRTOK_R invocations from here...
18341         * modules/strtok_r (configure.ac): ... to here.
18342         (Depends-on): Update conditions.
18343
18344 2011-05-22  Bruno Haible  <bruno@clisp.org>
18345
18346         strtoumax: Move AC_LIBOBJ invocations to module description.
18347         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18349         from here...
18350         * modules/strtoumax (configure.ac): ... to here.
18351
18352 2011-05-22  Bruno Haible  <bruno@clisp.org>
18353
18354         strtoimax: Move AC_LIBOBJ invocations to module description.
18355         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18356         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18357         from here...
18358         * modules/strtoimax (configure.ac): ... to here.
18359
18360 2011-05-22  Bruno Haible  <bruno@clisp.org>
18361
18362         strtoull: Move AC_LIBOBJ invocations to module description.
18363         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18364         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18365         from here...
18366         * modules/strtoull (configure.ac): ... to here.
18367
18368 2011-05-22  Bruno Haible  <bruno@clisp.org>
18369
18370         strtoll: Move AC_LIBOBJ invocations to module description.
18371         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18372         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18373         here...
18374         * modules/strtoll (configure.ac): ... to here.
18375
18376 2011-05-22  Bruno Haible  <bruno@clisp.org>
18377
18378         strtoul: Move AC_LIBOBJ invocations to module description.
18379         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18380         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18381         * modules/strtoul (configure.ac): ... to here.
18382
18383 2011-05-22  Bruno Haible  <bruno@clisp.org>
18384
18385         strtol: Move AC_LIBOBJ invocations to module description.
18386         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18387         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18388         * modules/strtol (configure.ac): ... to here.
18389
18390 2011-05-22  Bruno Haible  <bruno@clisp.org>
18391
18392         strtod: Move AC_LIBOBJ invocations to module description.
18393         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18394         invocations from here...
18395         * modules/strtod (configure.ac): ... to here.
18396
18397 2011-05-22  Bruno Haible  <bruno@clisp.org>
18398
18399         strstr*: Move AC_LIBOBJ invocations to module description.
18400         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18401         invocations from here...
18402         * modules/strstr-simple (configure.ac): ... to here.
18403         * modules/strstr (configure.ac): ... and here.
18404
18405 2011-05-22  Bruno Haible  <bruno@clisp.org>
18406
18407         strsignal: Move AC_LIBOBJ invocations to module description.
18408         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18409         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18410         * modules/strsignal (configure.ac): ... to here.
18411         (Depends-on): Update conditions.
18412
18413 2011-05-22  Bruno Haible  <bruno@clisp.org>
18414
18415         strsep: Move AC_LIBOBJ invocations to module description.
18416         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18417         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18418         here...
18419         * modules/strsep (configure.ac): ... to here.
18420
18421 2011-05-22  Bruno Haible  <bruno@clisp.org>
18422
18423         strptime: Move AC_LIBOBJ invocations to module description.
18424         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18425         gl_PREREQ_STRPTIME invocations from here...
18426         * modules/strptime (configure.ac): ... to here.
18427
18428 2011-05-22  Bruno Haible  <bruno@clisp.org>
18429
18430         strpbrk: Move AC_LIBOBJ invocations to module description.
18431         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18432         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18433         here...
18434         * modules/strpbrk (configure.ac): ... to here.
18435
18436 2011-05-22  Bruno Haible  <bruno@clisp.org>
18437
18438         strnlen: Move AC_LIBOBJ invocations to module description.
18439         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18440         invocations from here...
18441         * modules/strnlen (configure.ac): ... to here.
18442
18443 2011-05-22  Bruno Haible  <bruno@clisp.org>
18444
18445         strndup: Move AC_LIBOBJ invocations to module description.
18446         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18447         invocations from here...
18448         * modules/strndup (configure.ac): ... to here.
18449         (Depends-on): Update conditions.
18450
18451 2011-05-22  Bruno Haible  <bruno@clisp.org>
18452
18453         strncat: Move AC_LIBOBJ invocations to module description.
18454         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18455         invocations from here...
18456         * modules/strncat (configure.ac): ... to here.
18457
18458 2011-05-22  Bruno Haible  <bruno@clisp.org>
18459
18460         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18461         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18462         invocations from here...
18463         * modules/strdup (configure.ac): ... to here.
18464         * modules/strdup-posix (configure.ac): ... and here.
18465
18466 2011-05-22  Bruno Haible  <bruno@clisp.org>
18467
18468         strcspn: Move AC_LIBOBJ invocations to module description.
18469         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18470         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18471         here...
18472         * modules/strcspn (configure.ac): ... to here.
18473
18474 2011-05-22  Bruno Haible  <bruno@clisp.org>
18475
18476         strchrnul: Move AC_LIBOBJ invocations to module description.
18477         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18478         gl_PREREQ_STRCHRNUL invocations from here...
18479         * modules/strchrnul (configure.ac): ... to here.
18480
18481 2011-05-22  Bruno Haible  <bruno@clisp.org>
18482
18483         strcasestr*: Move AC_LIBOBJ invocations to module description.
18484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18485         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18486         * modules/strcasestr-simple (configure.ac): ... to here.
18487         * modules/strcasestr (configure.ac): ... and here.
18488
18489 2011-05-22  Bruno Haible  <bruno@clisp.org>
18490
18491         strcase: Move AC_LIBOBJ invocations to module description.
18492         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18493         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18494         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18495         gl_PREREQ_STRNCASECMP invocations from here...
18496         * modules/strcase (configure.ac): ... to here.
18497
18498 2011-05-22  Bruno Haible  <bruno@clisp.org>
18499
18500         stpncpy: Move AC_LIBOBJ invocations to module description.
18501         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18502         here...
18503         * modules/stpncpy (configure.ac): ... to here.
18504
18505 2011-05-22  Bruno Haible  <bruno@clisp.org>
18506
18507         stpcpy: Move AC_LIBOBJ invocations to module description.
18508         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18509         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18510         here...
18511         * modules/stpcpy (configure.ac): ... to here.
18512
18513 2011-05-21  Bruno Haible  <bruno@clisp.org>
18514
18515         stat: Move AC_LIBOBJ invocations to module description.
18516         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18517         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18518         here...
18519         * modules/stat (configure.ac): ... to here.
18520
18521 2011-05-21  Bruno Haible  <bruno@clisp.org>
18522
18523         sleep: Move AC_LIBOBJ invocations to module description.
18524         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18525         * modules/sleep (configure.ac): ... to here.
18526
18527 2011-05-21  Bruno Haible  <bruno@clisp.org>
18528
18529         signbit: Move AC_LIBOBJ invocations to module description.
18530         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18531         * modules/signbit (configure.ac): ... to here.
18532
18533 2011-05-21  Bruno Haible  <bruno@clisp.org>
18534
18535         sigprocmask: Move AC_LIBOBJ invocations to module description.
18536         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18537         gl_PREREQ_SIGPROMASK invocations from here...
18538         * modules/sigprocmask (configure.ac): ... to here.
18539
18540 2011-05-21  Bruno Haible  <bruno@clisp.org>
18541
18542         sigaction: Move AC_LIBOBJ invocations to module description.
18543         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18544         gl_PREREQ_SIGACTION invocations from here...
18545         * modules/sigaction (configure.ac): ... to here.
18546
18547 2011-05-21  Bruno Haible  <bruno@clisp.org>
18548
18549         sig2str: Move AC_LIBOBJ invocations to module description.
18550         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18551         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18552         here...
18553         * modules/sig2str (configure.ac): ... to here.
18554
18555 2011-05-21  Bruno Haible  <bruno@clisp.org>
18556
18557         setlocale: Move AC_LIBOBJ invocations to module description.
18558         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18559         gl_PREREQ_SETLOCALE invocations from here...
18560         * modules/setlocale (configure.ac): ... to here.
18561
18562 2011-05-21  Bruno Haible  <bruno@clisp.org>
18563
18564         unsetenv: Move AC_LIBOBJ invocations to module description.
18565         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18566         and gl_PREREQ_UNSETENV invocations from here...
18567         * modules/unsetenv (configure.ac): ... to here.
18568         (Depends-on): Update.
18569
18570 2011-05-21  Bruno Haible  <bruno@clisp.org>
18571
18572         setenv: Move AC_LIBOBJ invocations to module description.
18573         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18574         here...
18575         * modules/setenv (configure.ac): ... to here.
18576
18577 2011-05-21  Bruno Haible  <bruno@clisp.org>
18578
18579         selinux-h: Move AC_LIBOBJ invocations to module description.
18580         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18581         AC_LIBOBJ invocation from here...
18582         * modules/selinux-h (configure.ac): ... to here.
18583
18584 2011-05-21  Bruno Haible  <bruno@clisp.org>
18585
18586         select: Respect rules for use of AC_LIBOBJ.
18587         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18588         here...
18589         * modules/select (configure.ac): ... to here.
18590
18591 2011-05-21  Bruno Haible  <bruno@clisp.org>
18592
18593         scandir: Move AC_LIBOBJ invocations to module description.
18594         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18595         invocations from here...
18596         * modules/scandir (configure.ac): ... to here.
18597
18598 2011-05-21  Bruno Haible  <bruno@clisp.org>
18599
18600         rpmatch: Move AC_LIBOBJ invocations to module description.
18601         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18602         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18603         here...
18604         * modules/rpmatch (configure.ac): ... to here.
18605
18606 2011-05-21  Bruno Haible  <bruno@clisp.org>
18607
18608         rmdir: Respect rules for use of AC_LIBOBJ.
18609         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18610         * modules/rmdir (configure.ac): ... to here.
18611
18612 2011-05-21  Bruno Haible  <bruno@clisp.org>
18613
18614         renameat: Move AC_LIBOBJ invocations to module description.
18615         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18616         here...
18617         * modules/renameat (configure.ac): ... to here.
18618
18619 2011-05-21  Bruno Haible  <bruno@clisp.org>
18620
18621         rename: Respect rules for use of AC_LIBOBJ.
18622         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18623         here...
18624         * modules/rename (configure.ac): ... to here.
18625
18626 2011-05-21  Bruno Haible  <bruno@clisp.org>
18627
18628         remove: Move AC_LIBOBJ invocations to module description.
18629         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18630         here...
18631         * modules/remove (configure.ac): ... to here.
18632
18633 2011-05-21  Bruno Haible  <bruno@clisp.org>
18634
18635         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18636         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18637         macro.
18638         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18639         * modules/relocatable-lib (configure.ac): ... to here.
18640         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18641         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18642
18643 2011-05-21  Bruno Haible  <bruno@clisp.org>
18644
18645         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18646         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18647         here...
18648         * modules/relocatable-prog (configure.ac): ... to here.
18649
18650 2011-05-21  Bruno Haible  <bruno@clisp.org>
18651
18652         regex: Move AC_LIBOBJ invocations to module description.
18653         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18654         invocations from here...
18655         * modules/regex (configure.ac): ... to here.
18656
18657 2011-05-21  Bruno Haible  <bruno@clisp.org>
18658
18659         realloc-*: Move AC_LIBOBJ invocations to module description.
18660         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18661         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18662         AC_LIBOBJ invocations from here...
18663         * modules/realloc-gnu (configure.ac): ... to here.
18664         * modules/realloc-posix (configure.ac): ... and here.
18665
18666 2011-05-21  Bruno Haible  <bruno@clisp.org>
18667
18668         readutmp: Move AC_LIBOBJ invocations to module description.
18669         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18670         * modules/readutmp (configure.ac): ... to here.
18671
18672 2011-05-21  Bruno Haible  <bruno@clisp.org>
18673
18674         readlinkat: Move AC_LIBOBJ invocations to module description.
18675         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18676         here...
18677         * modules/readlinkat (configure.ac): ... to here.
18678
18679 2011-05-21  Bruno Haible  <bruno@clisp.org>
18680
18681         readlink: Move AC_LIBOBJ invocations to module description.
18682         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18683         gl_PREREQ_READLINK invocations from here...
18684         * modules/readlink (configure.ac): ... to here.
18685
18686 2011-05-21  Bruno Haible  <bruno@clisp.org>
18687
18688         readline: Move AC_LIBOBJ invocations to module description.
18689         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18690         gl_PREREQ_READLINE invocations from here...
18691         * modules/readline (configure.ac): ... to here.
18692
18693 2011-05-21  Bruno Haible  <bruno@clisp.org>
18694
18695         read: Move AC_LIBOBJ invocations to module description.
18696         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18697         * modules/read (configure.ac): ... to here.
18698
18699 2011-05-21  Bruno Haible  <bruno@clisp.org>
18700
18701         rawmemchr: Move AC_LIBOBJ invocations to module description.
18702         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18704         from here...
18705         * modules/rawmemchr (configure.ac): ... to here.
18706
18707 2011-05-21  Bruno Haible  <bruno@clisp.org>
18708
18709         random_r: Move AC_LIBOBJ invocations to module description.
18710         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18711         gl_PREREQ_RANDOM_R invocations from here...
18712         * modules/random_r (configure.ac): ... to here.
18713
18714 2011-05-21  Bruno Haible  <bruno@clisp.org>
18715
18716         pwrite: Move AC_LIBOBJ invocations to module description.
18717         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18718         * modules/pwrite (configure.ac): ... to here.
18719
18720 2011-05-21  Bruno Haible  <bruno@clisp.org>
18721
18722         putenv: Move AC_LIBOBJ invocations to module description.
18723         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18724         * modules/putenv (configure.ac): ... to here.
18725
18726 2011-05-21  Bruno Haible  <bruno@clisp.org>
18727
18728         login_tty: Move AC_LIBOBJ invocations to module description.
18729         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18730         * modules/login_tty (configure.ac): ... to here.
18731
18732 2011-05-21  Bruno Haible  <bruno@clisp.org>
18733
18734         openpty: Move AC_LIBOBJ invocations to module description.
18735         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18736         * modules/openpty (configure.ac): ... to here.
18737
18738 2011-05-21  Bruno Haible  <bruno@clisp.org>
18739
18740         forkpty: Move AC_LIBOBJ invocations to module description.
18741         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18742         * modules/forkpty (configure.ac): ... to here.
18743
18744 2011-05-21  Bruno Haible  <bruno@clisp.org>
18745
18746         ptsname: Move AC_LIBOBJ invocations to module description.
18747         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18748         invocations from here...
18749         * modules/ptsname (configure.ac): ... to here.
18750
18751 2011-05-21  Bruno Haible  <bruno@clisp.org>
18752
18753         pread: Move AC_LIBOBJ invocations to module description.
18754         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18755         * modules/pread (configure.ac): ... to here.
18756
18757 2011-05-21  Bruno Haible  <bruno@clisp.org>
18758
18759         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18760         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18761         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18762         * modules/posix_spawn (configure.ac): ... to here.
18763         * modules/posix_spawnp (configure.ac): ... and here.
18764
18765 2011-05-21  Bruno Haible  <bruno@clisp.org>
18766
18767         popen: Move AC_LIBOBJ invocations to module description.
18768         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18769         invocations from here...
18770         * modules/popen (configure.ac): ... to here.
18771
18772 2011-05-21  Bruno Haible  <bruno@clisp.org>
18773
18774         poll: Move AC_LIBOBJ invocations to module description.
18775         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18776         invocations from here...
18777         * modules/poll (configure.ac): ... to here.
18778
18779 2011-05-21  Bruno Haible  <bruno@clisp.org>
18780
18781         pipe-posix: Move AC_LIBOBJ invocations to module description.
18782         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18783         * modules/pipe-posix (configure.ac): ... to here.
18784
18785 2011-05-21  Bruno Haible  <bruno@clisp.org>
18786
18787         openat: Respect rules for use of AC_LIBOBJ.
18788         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18789         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18790         * modules/openat (configure.ac): ... to here.
18791
18792 2011-05-21  Bruno Haible  <bruno@clisp.org>
18793
18794         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18795         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18796         invocation from here...
18797         * modules/obstack-printf (configure.ac): ... to here.
18798         * modules/obstack-printf-posix (configure.ac): ... and here.
18799
18800 2011-05-21  Bruno Haible  <bruno@clisp.org>
18801
18802         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18803         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18804         from here...
18805         * modules/nl_langinfo (configure.ac): ... to here.
18806
18807 2011-05-21  Bruno Haible  <bruno@clisp.org>
18808
18809         nanosleep: Move AC_LIBOBJ invocations to module description.
18810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18811         gl_PREREQ_NANOSLEEP invocations from here...
18812         * modules/nanosleep (configure.ac): ... to here.
18813
18814 2011-05-21  Bruno Haible  <bruno@clisp.org>
18815
18816         mountlist: Move AC_LIBOBJ invocations to module description.
18817         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18818         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18819         * modules/mountlist (configure.ac): ... to here.
18820
18821 2011-05-21  Bruno Haible  <bruno@clisp.org>
18822
18823         mktime: Respect rules for use of AC_LIBOBJ.
18824         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18825         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18826         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18827         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18828         * modules/mktime (configure.ac): ... to here.
18829         * modules/mktime-internal (configure.ac): ... and here.
18830         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18831
18832 2011-05-21  Bruno Haible  <bruno@clisp.org>
18833
18834         mkstemps: Move AC_LIBOBJ invocations to module description.
18835         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18836         here...
18837         * modules/mkstemps (configure.ac): ... to here.
18838
18839 2011-05-21  Bruno Haible  <bruno@clisp.org>
18840
18841         mkstemp: Move AC_LIBOBJ invocations to module description.
18842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18843         gl_PREREQ_MKSTEMP invocations from here...
18844         * modules/mkstemp (configure.ac): ... to here.
18845
18846 2011-05-21  Bruno Haible  <bruno@clisp.org>
18847
18848         mkostemps: Move AC_LIBOBJ invocations to module description.
18849         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18850         here...
18851         * modules/mkostemps (configure.ac): ... to here.
18852
18853 2011-05-21  Bruno Haible  <bruno@clisp.org>
18854
18855         mkostemp: Move AC_LIBOBJ invocations to module description.
18856         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18857         gl_PREREQ_MKOSTEMP invocations from here...
18858         * modules/mkostemp (configure.ac): ... to here.
18859
18860 2011-05-21  Bruno Haible  <bruno@clisp.org>
18861
18862         mknod: Move AC_LIBOBJ invocations to module description.
18863         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18864         * modules/mknod (configure.ac): ... to here.
18865
18866 2011-05-21  Bruno Haible  <bruno@clisp.org>
18867
18868         mkfifoat: Move AC_LIBOBJ invocations to module description.
18869         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18870         here...
18871         * modules/mkfifoat (configure.ac): ... to here.
18872
18873 2011-05-21  Bruno Haible  <bruno@clisp.org>
18874
18875         mkfifo: Respect rules for use of AC_LIBOBJ.
18876         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18877         here...
18878         * modules/mkfifo (configure.ac): ... to here.
18879
18880 2011-05-21  Bruno Haible  <bruno@clisp.org>
18881
18882         mkdtemp: Move AC_LIBOBJ invocations to module description.
18883         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18884         invocations from here...
18885         * modules/mkdtemp (configure.ac): ... to here.
18886
18887 2011-05-21  Bruno Haible  <bruno@clisp.org>
18888
18889         mkdir: Move AC_LIBOBJ invocations to module description.
18890         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18891         * modules/mkdir (configure.ac): ... to here.
18892
18893 2011-05-21  Bruno Haible  <bruno@clisp.org>
18894
18895         memset: Move AC_LIBOBJ invocations to module description.
18896         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18897         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18898         here...
18899         * modules/memset (configure.ac): ... to here.
18900
18901 2011-05-21  Bruno Haible  <bruno@clisp.org>
18902
18903         memrchr: Move AC_LIBOBJ invocations to module description.
18904         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18905         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18906         here...
18907         * modules/memrchr (configure.ac): ... to here.
18908
18909 2011-05-21  Bruno Haible  <bruno@clisp.org>
18910
18911         mempcpy: Move AC_LIBOBJ invocations to module description.
18912         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18913         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18914         here...
18915         * modules/mempcpy (configure.ac): ... to here.
18916
18917 2011-05-21  Bruno Haible  <bruno@clisp.org>
18918
18919         memmove: Move AC_LIBOBJ invocations to module description.
18920         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18921         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18922         here...
18923         * modules/memmove (configure.ac): ... to here.
18924
18925 2011-05-21  Bruno Haible  <bruno@clisp.org>
18926
18927         memmem*: Move AC_LIBOBJ invocations to module description.
18928         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18929         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18930         here...
18931         (gl_FUNC_MEMMEM): ... and here...
18932         * modules/memmem-simple (configure.ac): ... to here.
18933         * modules/memmem (configure.ac): ... and here.
18934
18935 2011-05-21  Bruno Haible  <bruno@clisp.org>
18936
18937         memcpy: Move AC_LIBOBJ invocations to module description.
18938         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18940         here...
18941         * modules/memcpy (configure.ac): ... to here.
18942
18943 2011-05-21  Bruno Haible  <bruno@clisp.org>
18944
18945         memcmp: Simplify autoconf macro.
18946         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18947         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18948         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18949
18950 2011-05-21  Bruno Haible  <bruno@clisp.org>
18951
18952         memcmp: Move AC_LIBOBJ invocations to module description.
18953         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18954         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18955         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18956         * modules/memcmp (configure.ac): ... to here.
18957         (Depends-on): Update conditions.
18958
18959 2011-05-21  Bruno Haible  <bruno@clisp.org>
18960
18961         memchr: Respect rules for use of AC_LIBOBJ.
18962         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18963         invocations from here...
18964         * modules/memchr (configure.ac): ... to here.
18965
18966 2011-05-21  Bruno Haible  <bruno@clisp.org>
18967
18968         mbtowc: Move AC_LIBOBJ invocations to module description.
18969         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18970         invocations from here...
18971         * modules/mbtowc (configure.ac): ... to here.
18972
18973 2011-05-21  Bruno Haible  <bruno@clisp.org>
18974
18975         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18976         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18977         gl_PREREQ_MBSRTOWCS invocations from here...
18978         * modules/mbsrtowcs (configure.ac): ... to here.
18979
18980 2011-05-21  Bruno Haible  <bruno@clisp.org>
18981
18982         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18983         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18984         gl_PREREQ_MBSNRTOWCS invocations from here...
18985         * modules/mbsnrtowcs (configure.ac): ... to here.
18986
18987 2011-05-21  Bruno Haible  <bruno@clisp.org>
18988
18989         mbsinit: Move AC_LIBOBJ invocations to module description.
18990         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18991         invocations from here...
18992         * modules/mbsinit (configure.ac): ... to here.
18993
18994 2011-05-21  Bruno Haible  <bruno@clisp.org>
18995
18996         mbrlen: Move AC_LIBOBJ invocations to module description.
18997         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18998         invocations from here...
18999         * modules/mbrlen (configure.ac): ... to here.
19000
19001 2011-05-21  Bruno Haible  <bruno@clisp.org>
19002
19003         mbrtowc: Respect rules for use of AC_LIBOBJ.
19004         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19005         invocations from here...
19006         * modules/mbrtowc (configure.ac): ... to here.
19007
19008 2011-05-21  Bruno Haible  <bruno@clisp.org>
19009
19010         malloc-*: Move AC_LIBOBJ invocations to module description.
19011         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19012         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19013         AC_LIBOBJ invocations from here...
19014         * modules/malloc-gnu (configure.ac): ... to here.
19015         * modules/malloc-posix (configure.ac): ... and here.
19016
19017 2011-05-21  Bruno Haible  <bruno@clisp.org>
19018
19019         lstat, openat: Respect rules for use of AC_LIBOBJ.
19020         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19021         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19022         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19023         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19024         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19025         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19026         here.
19027         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19028
19029 2011-05-21  Bruno Haible  <bruno@clisp.org>
19030
19031         lseek: Move AC_LIBOBJ invocations to module description.
19032         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19033         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19034         * modules/lseek (configure.ac): ... to here.
19035
19036 2011-05-21  Bruno Haible  <bruno@clisp.org>
19037
19038         linkat: Move AC_LIBOBJ invocations to module description.
19039         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19040         here...
19041         * modules/linkat (configure.ac): ... to here.
19042
19043 2011-05-21  Bruno Haible  <bruno@clisp.org>
19044
19045         link: Respect rules for use of AC_LIBOBJ.
19046         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19047         * modules/link (configure.ac): ... to here.
19048
19049 2011-05-21  Bruno Haible  <bruno@clisp.org>
19050
19051         lchown: Move AC_LIBOBJ invocations to module description.
19052         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19053         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19054         * modules/lchown (configure.ac): ... to here.
19055
19056 2011-05-21  Bruno Haible  <bruno@clisp.org>
19057
19058         iswctype: Move AC_LIBOBJ invocations to module description.
19059         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19060         here...
19061         * modules/iswctype (configure.ac): ... to here.
19062
19063 2011-05-21  Bruno Haible  <bruno@clisp.org>
19064
19065         iswblank: Move AC_LIBOBJ invocations to module description.
19066         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19067         here...
19068         * modules/iswblank (configure.ac): ... to here.
19069
19070 2011-05-21  Bruno Haible  <bruno@clisp.org>
19071
19072         atanl: Move AC_LIBOBJ invocations to module description.
19073         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19074         * modules/atanl (configure.ac): ... to here.
19075
19076 2011-05-21  Bruno Haible  <bruno@clisp.org>
19077
19078         acosl: Move AC_LIBOBJ invocations to module description.
19079         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19080         * modules/acosl (configure.ac): ... to here.
19081
19082 2011-05-21  Bruno Haible  <bruno@clisp.org>
19083
19084         asinl: Respect rules for use of AC_LIBOBJ.
19085         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19086         * modules/asinl (configure.ac): ... to here.
19087
19088 2011-05-21  Bruno Haible  <bruno@clisp.org>
19089
19090         tanl: Move AC_LIBOBJ invocations to module description.
19091         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19092         * modules/tanl (configure.ac): ... to here.
19093
19094 2011-05-21  Bruno Haible  <bruno@clisp.org>
19095
19096         cosl: Move AC_LIBOBJ invocations to module description.
19097         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19098         * modules/cosl (configure.ac): ... to here.
19099
19100 2011-05-21  Bruno Haible  <bruno@clisp.org>
19101
19102         sinl: Move AC_LIBOBJ invocations to module description.
19103         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19104         * modules/sinl (configure.ac): ... to here.
19105
19106 2011-05-21  Bruno Haible  <bruno@clisp.org>
19107
19108         logl: Move AC_LIBOBJ invocations to module description.
19109         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19110         * modules/logl (configure.ac): ... to here.
19111
19112 2011-05-21  Bruno Haible  <bruno@clisp.org>
19113
19114         expl: Move AC_LIBOBJ invocations to module description.
19115         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19116         * modules/expl (configure.ac): ... to here.
19117
19118 2011-05-21  Bruno Haible  <bruno@clisp.org>
19119
19120         roundl: Move AC_LIBOBJ invocations to module description.
19121         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19122         * modules/roundl (configure.ac): ... to here.
19123
19124 2011-05-21  Bruno Haible  <bruno@clisp.org>
19125
19126         round: Move AC_LIBOBJ invocations to module description.
19127         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19128         * modules/round (configure.ac): ... to here.
19129
19130 2011-05-21  Bruno Haible  <bruno@clisp.org>
19131
19132         roundf: Move AC_LIBOBJ invocations to module description.
19133         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19134         * modules/roundf (configure.ac): ... to here.
19135
19136 2011-05-21  Bruno Haible  <bruno@clisp.org>
19137
19138         truncl: Move AC_LIBOBJ invocations to module description.
19139         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19140         * modules/truncl (configure.ac): ... to here.
19141
19142 2011-05-21  Bruno Haible  <bruno@clisp.org>
19143
19144         trunc: Move AC_LIBOBJ invocations to module description.
19145         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19146         * modules/trunc (configure.ac): ... to here.
19147
19148 2011-05-21  Bruno Haible  <bruno@clisp.org>
19149
19150         truncf: Move AC_LIBOBJ invocations to module description.
19151         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19152         * modules/truncf (configure.ac): ... to here.
19153
19154 2011-05-21  Bruno Haible  <bruno@clisp.org>
19155
19156         ceill: Move AC_LIBOBJ invocations to module description.
19157         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19158         * modules/ceill (configure.ac): ... to here.
19159
19160 2011-05-21  Bruno Haible  <bruno@clisp.org>
19161
19162         ceil: Move AC_LIBOBJ invocations to module description.
19163         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19164         * modules/ceil (configure.ac): ... to here.
19165
19166 2011-05-21  Bruno Haible  <bruno@clisp.org>
19167
19168         ceilf: Move AC_LIBOBJ invocations to module description.
19169         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19170         * modules/ceilf (configure.ac): ... to here.
19171
19172 2011-05-21  Bruno Haible  <bruno@clisp.org>
19173
19174         floorl: Respect rules for use of AC_LIBOBJ.
19175         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19176         * modules/floorl (configure.ac): ... to here.
19177
19178 2011-05-21  Bruno Haible  <bruno@clisp.org>
19179
19180         floor: Respect rules for use of AC_LIBOBJ.
19181         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19182         * modules/floor (configure.ac): ... to here.
19183
19184 2011-05-21  Bruno Haible  <bruno@clisp.org>
19185
19186         floorf: Move AC_LIBOBJ invocations to module description.
19187         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19188         * modules/floorf (configure.ac): ... to here.
19189
19190 2011-05-20  Bruno Haible  <bruno@clisp.org>
19191
19192         sqrtl: Respect rules for use of AC_LIBOBJ.
19193         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19194         * modules/sqrtl (configure.ac): ... to here.
19195
19196 2011-05-20  Bruno Haible  <bruno@clisp.org>
19197
19198         ldexpl: Respect rules for use of AC_LIBOBJ.
19199         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19200         * modules/ldexpl (configure.ac): ... to here.
19201
19202 2011-05-20  Bruno Haible  <bruno@clisp.org>
19203
19204         frexpl*: Respect rules for use of AC_LIBOBJ.
19205         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19206         invocation from here...
19207         * modules/frexpl (configure.ac): ... to here.
19208         * modules/frexpl-nolibm (configure.ac): ... and here.
19209
19210 2011-05-20  Bruno Haible  <bruno@clisp.org>
19211
19212         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19213         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19214         invocation from here...
19215         * modules/frexp (configure.ac): ... to here.
19216         * modules/frexp-nolibm (configure.ac): ... and here.
19217
19218 2011-05-20  Bruno Haible  <bruno@clisp.org>
19219
19220         isnan: Respect rules for use of AC_LIBOBJ.
19221         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19222         invocations here.
19223         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19224         REPLACE_ISNAN.
19225         * modules/isnand (configure.ac): Likewise.
19226         * modules/isnanl (configure.ac): Likewise.
19227
19228 2011-05-20  Bruno Haible  <bruno@clisp.org>
19229
19230         isnanl*: Respect rules for use of AC_LIBOBJ.
19231         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19232         invocation from here...
19233         * modules/isnanl (configure.ac): ... to here.
19234         * modules/isnanl-nolibm (configure.ac): ... and here.
19235
19236 2011-05-20  Bruno Haible  <bruno@clisp.org>
19237
19238         isnand*: Move AC_LIBOBJ invocations to module description.
19239         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19240         invocation from here...
19241         * modules/isnand (configure.ac): ... to here.
19242         * modules/isnand-nolibm (configure.ac): ... and here.
19243
19244 2011-05-20  Bruno Haible  <bruno@clisp.org>
19245
19246         isnanf*: Move AC_LIBOBJ invocations to module description.
19247         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19248         invocation from here...
19249         * modules/isnanf (configure.ac): ... to here.
19250         * modules/isnanf-nolibm (configure.ac): ... and here.
19251
19252 2011-05-20  Bruno Haible  <bruno@clisp.org>
19253
19254         isnan*: Separate the AC_LIBOBJ invocations.
19255         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19256         AC_LIBOBJ invocation.
19257         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19258         here.
19259         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19260         AC_LIBOBJ invocation.
19261         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19262         here.
19263         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19264         AC_LIBOBJ invocation.
19265         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19266         here.
19267         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19268
19269 2011-05-08  Bruno Haible  <bruno@clisp.org>
19270
19271         isinf: Move AC_LIBOBJ invocations to module description.
19272         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19273         * modules/isinf (configure.ac): ... to here.
19274
19275 2011-05-08  Bruno Haible  <bruno@clisp.org>
19276
19277         isfinite: Move AC_LIBOBJ invocations to module description.
19278         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19279         * modules/isfinite (configure.ac): ... to here.
19280
19281 2011-05-08  Bruno Haible  <bruno@clisp.org>
19282
19283         isblank: Move AC_LIBOBJ invocations to module description.
19284         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19285         here...
19286         * modules/isblank (configure.ac): ... to here.
19287
19288 2011-05-08  Bruno Haible  <bruno@clisp.org>
19289
19290         isapipe: Move AC_LIBOBJ invocations to module description.
19291         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19292         gl_PREREQ_ISAPIPE invocations from here...
19293         * modules/isapipe (configure.ac): ... to here.
19294         (Depends-on): Update condition.
19295
19296 2011-05-08  Bruno Haible  <bruno@clisp.org>
19297
19298         ioctl: Move AC_LIBOBJ invocations to module description.
19299         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19300         invocations from here...
19301         * modules/ioctl (configure.ac): ... to here.
19302         (Depends-on): Update condition.
19303
19304 2011-05-08  Bruno Haible  <bruno@clisp.org>
19305
19306         imaxdiv: Move AC_LIBOBJ invocations to module description.
19307         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19308         invocations from here...
19309         * modules/imaxdiv (configure.ac): ... to here.
19310
19311 2011-05-08  Bruno Haible  <bruno@clisp.org>
19312
19313         imaxabs: Move AC_LIBOBJ invocations to module description.
19314         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19315         invocations from here...
19316         * modules/imaxabs (configure.ac): ... to here.
19317
19318 2011-05-08  Bruno Haible  <bruno@clisp.org>
19319
19320         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19322         AC_LIBOBJ invocations from here...
19323         * modules/getaddrinfo (configure.ac): ... to here.
19324         (Depends-on): Add conditions.
19325
19326 2011-05-08  Bruno Haible  <bruno@clisp.org>
19327
19328         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19329         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19330         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19331         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19332         (gl_PREREQ_INET_PTON): ... from here.
19333         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19334         gl_PREREQ_INET_PTON here.
19335         (Depends-on): Update condition.
19336
19337 2011-05-08  Bruno Haible  <bruno@clisp.org>
19338
19339         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19340         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19341         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19342         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19343         (gl_PREREQ_INET_NTOP): ... from here.
19344         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19345         gl_PREREQ_INET_NTOP here.
19346         (Depends-on): Update condition.
19347
19348 2011-05-08  Bruno Haible  <bruno@clisp.org>
19349
19350         iconv_open: Move AC_LIBOBJ invocations to module description.
19351         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19352         AC_LIBOBJ invocations from here...
19353         * modules/iconv_open (configure.ac): ... to here.
19354
19355 2011-05-08  Bruno Haible  <bruno@clisp.org>
19356
19357         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19358         If module 'iconv_open' is among the main modules and module
19359         'iconv_open-utf' is among the tests dependencies, then
19360         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19361         return the special iconv_t values. Therefore iconv() and iconv_close()
19362         must support these special iconv_t values, already in lib, not only in
19363         tests.
19364         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19365         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19366         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19367         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19368         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19369         (Depends-on): Add the dependencies of iconv_open-utf.
19370         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19371         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19372         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19373
19374 2011-05-08  Bruno Haible  <bruno@clisp.org>
19375
19376         group-member: Move AC_LIBOBJ invocations to module description.
19377         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19378         gl_PREREQ_GROUP_MEMBER invocations from here...
19379         * modules/group-member (configure.ac): ... to here.
19380
19381 2011-05-08  Bruno Haible  <bruno@clisp.org>
19382
19383         grantpt: Move AC_LIBOBJ invocations to module description.
19384         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19385         invocations from here...
19386         * modules/grantpt (configure.ac): ... to here.
19387
19388 2011-05-08  Bruno Haible  <bruno@clisp.org>
19389
19390         glob: Move AC_LIBOBJ invocations to module description.
19391         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19392         from here...
19393         * modules/glob (configure.ac): ... to here.
19394
19395 2011-05-08  Bruno Haible  <bruno@clisp.org>
19396
19397         getusershell: Move AC_LIBOBJ invocations to module description.
19398         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19399         Move AC_LIBOBJ invocation from here...
19400         * modules/getusershell (configure.ac): ... to here.
19401         (Depends-on): Update condition.
19402
19403 2011-05-08  Bruno Haible  <bruno@clisp.org>
19404
19405         gettimeofday: Move AC_LIBOBJ invocations to module description.
19406         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19407         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19408         gl_PREREQ_GETTIMEOFDAY invocations from here...
19409         * modules/gettimeofday (configure.ac): ... to here.
19410
19411 2011-05-08  Bruno Haible  <bruno@clisp.org>
19412
19413         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19414         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19415         just gl_FUNC_TZSET.
19416         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19417         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19419         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19420
19421 2011-05-08  Bruno Haible  <bruno@clisp.org>
19422
19423         getsubopt: Move AC_LIBOBJ invocations to module description.
19424         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19425         gl_PREREQ_GETSUBOPT invocations from here...
19426         * modules/getsubopt (configure.ac): ... to here.
19427
19428 2011-05-08  Bruno Haible  <bruno@clisp.org>
19429
19430         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19431         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19432         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19433         * modules/getpass-gnu (configure.ac): ... to here.
19434
19435 2011-05-08  Bruno Haible  <bruno@clisp.org>
19436
19437         getpass: Move AC_LIBOBJ invocations to module description.
19438         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19439         gl_PREREQ_GETPASS invocations from here...
19440         * modules/getpass (configure.ac): ... to here.
19441
19442 2011-05-08  Bruno Haible  <bruno@clisp.org>
19443
19444         getpagesize: Move AC_LIBOBJ invocations to module description.
19445         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19446         from here...
19447         * modules/getpagesize (configure.ac): ... to here.
19448
19449 2011-05-08  Bruno Haible  <bruno@clisp.org>
19450
19451         getopt: Move AC_LIBOBJ invocations to module description.
19452         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19453         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19454         invocations from here...
19455         * modules/getopt-gnu (configure.ac): ... to here.
19456         * modules/getopt-posix (configure.ac): ... and here.
19457         (Depends-on): Update condition.
19458
19459 2011-05-08  Bruno Haible  <bruno@clisp.org>
19460
19461         getopt, argp: Respect rules for use of AC_LIBOBJ.
19462         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19463         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19464         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19465         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19466
19467 2011-05-08  Bruno Haible  <bruno@clisp.org>
19468
19469         getlogin_r: Move AC_LIBOBJ invocations to module description.
19470         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19471         gl_PREREQ_GETLOGIN_R invocations from here...
19472         * modules/getlogin_r (configure.ac): ... to here.
19473
19474 2011-05-08  Bruno Haible  <bruno@clisp.org>
19475
19476         getlogin: Move AC_LIBOBJ invocations to module description.
19477         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19478         here...
19479         * modules/getlogin (configure.ac): ... to here.
19480
19481 2011-05-08  Bruno Haible  <bruno@clisp.org>
19482
19483         getloadavg: Move AC_LIBOBJ invocations to module description.
19484         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19485         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19486         * modules/getloadavg (configure.ac): ... to here.
19487
19488 2011-05-08  Bruno Haible  <bruno@clisp.org>
19489
19490         gethrxtime: Move AC_LIBOBJ invocations to module description.
19491         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19492         LIB_GETHRXTIME from here...
19493         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19494         invocations from here...
19495         * modules/gethrxtime (configure.ac): ... to here.
19496
19497 2011-05-08  Bruno Haible  <bruno@clisp.org>
19498
19499         gethostname: Move AC_LIBOBJ invocations to module description.
19500         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19501         gl_PREREQ_GETHOSTNAME invocations from here...
19502         * modules/gethostname (configure.ac): ... to here.
19503
19504 2011-05-08  Bruno Haible  <bruno@clisp.org>
19505
19506         getgroups: Move AC_LIBOBJ invocations to module description.
19507         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19508         here...
19509         * modules/getgroups (configure.ac): ... to here.
19510
19511 2011-05-08  Bruno Haible  <bruno@clisp.org>
19512
19513         getdtablesize: Move AC_LIBOBJ invocations to module description.
19514         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19515         invocation from here...
19516         * modules/getdtablesize (configure.ac): ... to here.
19517
19518 2011-05-08  Bruno Haible  <bruno@clisp.org>
19519
19520         getdomainname: Move AC_LIBOBJ invocations to module description.
19521         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19522         gl_PREREQ_GETDOMAINNAME invocations from here...
19523         * modules/getdomainname (configure.ac): ... to here.
19524
19525 2011-05-08  Bruno Haible  <bruno@clisp.org>
19526
19527         getline: Move AC_LIBOBJ invocations to module description.
19528         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19529         invocations from here...
19530         * modules/getline (configure.ac): ... to here.
19531
19532 2011-05-08  Bruno Haible  <bruno@clisp.org>
19533
19534         getline: Simplify.
19535         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19536         It's already handled through the module dependency.
19537
19538 2011-05-08  Bruno Haible  <bruno@clisp.org>
19539
19540         getdelim: Move AC_LIBOBJ invocations to module description.
19541         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19542         and gl_PREREQ_GETDELIM invocations from here...
19543         * modules/getdelim (configure.ac): ... to here.
19544         (Depends-on): Fix condition.
19545
19546 2011-05-08  Bruno Haible  <bruno@clisp.org>
19547
19548         getcwd: Move AC_LIBOBJ invocations to module description.
19549         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19550         invocations from here...
19551         * modules/getcwd (configure.ac): ... to here.
19552
19553 2011-05-08  Bruno Haible  <bruno@clisp.org>
19554
19555         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19556         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19557         here...
19558         * modules/getcwd-lgpl (configure.ac): ... to here.
19559
19560 2011-05-07  Bruno Haible  <bruno@clisp.org>
19561
19562         crypto/gc: Move AC_LIBOBJ invocations to module description.
19563         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19564         * modules/crypto/gc (configure.ac): ... to here.
19565
19566 2011-05-07  Bruno Haible  <bruno@clisp.org>
19567
19568         fwriting: Move AC_LIBOBJ invocations to module description.
19569         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19570         here...
19571         * modules/fwriting (configure.ac): ... to here.
19572
19573 2011-05-07  Bruno Haible  <bruno@clisp.org>
19574
19575         fwritable: Move AC_LIBOBJ invocations to module description.
19576         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19577         here...
19578         * modules/fwritable (configure.ac): ... to here.
19579
19580 2011-05-07  Bruno Haible  <bruno@clisp.org>
19581
19582         futimens: Move AC_LIBOBJ invocations to module description.
19583         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19584         here...
19585         * modules/futimens (configure.ac): ... to here.
19586
19587 2011-05-07  Bruno Haible  <bruno@clisp.org>
19588
19589         ftruncate: Move AC_LIBOBJ invocations to module description.
19590         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19591         gl_PREREQ_FTRUNCATE invocations from here...
19592         * modules/ftruncate (configure.ac): ... to here.
19593
19594 2011-05-07  Bruno Haible  <bruno@clisp.org>
19595
19596         fsync: Move AC_LIBOBJ invocations to module description.
19597         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19598         invocations from here...
19599         * modules/fsync (configure.ac): ... to here.
19600
19601 2011-05-07  Bruno Haible  <bruno@clisp.org>
19602
19603         fsusage: Move AC_LIBOBJ invocations to module description.
19604         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19605         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19606         * modules/fsusage (configure.ac): ... to here.
19607
19608 2011-05-07  Bruno Haible  <bruno@clisp.org>
19609
19610         freopen: Move AC_LIBOBJ invocations to module description.
19611         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19612         invocations from here...
19613         * modules/freopen (configure.ac): ... to here.
19614
19615 2011-05-07  Bruno Haible  <bruno@clisp.org>
19616
19617         free: Move AC_LIBOBJ invocations to module description.
19618         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19619         invocations from here...
19620         * modules/free (configure.ac): ... to here.
19621
19622 2011-05-07  Bruno Haible  <bruno@clisp.org>
19623
19624         freadable: Move AC_LIBOBJ invocations to module description.
19625         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19626         here...
19627         * modules/freadable (configure.ac): ... to here.
19628
19629 2011-05-07  Bruno Haible  <bruno@clisp.org>
19630
19631         fpurge: Move AC_LIBOBJ invocations to module description.
19632         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19633         invocations from here...
19634         * modules/fpurge (configure.ac): ... to here.
19635
19636 2011-05-07  Bruno Haible  <bruno@clisp.org>
19637
19638         fpending: Move AC_LIBOBJ invocations to module description.
19639         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19640         gl_FUNC_FPENDING.
19641         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19642         invocations from here...
19643         * modules/fpending (configure.ac): ... to here.
19644
19645 2011-05-07  Bruno Haible  <bruno@clisp.org>
19646
19647         fopen: Move AC_LIBOBJ invocations to module description.
19648         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19649         invocations from here...
19650         * modules/fopen (configure.ac): ... to here.
19651
19652 2011-05-07  Bruno Haible  <bruno@clisp.org>
19653
19654         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19655         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19656         gl_FUNC_FNMATCH_POSIX.
19657         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19658         invocations from here...
19659         * modules/fnmatch (configure.ac): ... to here.
19660         * modules/fnmatch-gnu (configure.ac): ... and here.
19661
19662 2011-05-07  Bruno Haible  <bruno@clisp.org>
19663
19664         flock: Move AC_LIBOBJ invocations to module description.
19665         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19666         invocations from here...
19667         * modules/flock (configure.ac): ... to here.
19668
19669 2011-05-07  Bruno Haible  <bruno@clisp.org>
19670
19671         fileblocks: Move AC_LIBOBJ invocations to module description.
19672         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19673         gl_PREREQ_FILEBLOCKS invocations from here...
19674         * modules/fileblocks (configure.ac): ... to here.
19675
19676 2011-05-06  Bruno Haible  <bruno@clisp.org>
19677
19678         fflush: Move AC_LIBOBJ invocations to module description.
19679         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19680         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19681         invocations from here...
19682         * modules/fflush (configure.ac): ... to here.
19683
19684 2011-05-06  Bruno Haible  <bruno@clisp.org>
19685
19686         fdopendir: Move AC_LIBOBJ invocations to module description.
19687         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19688         here...
19689         * modules/fdopendir (configure.ac): ... to here.
19690         (Depends-on): Improve conditions.
19691
19692 2011-05-06  Bruno Haible  <bruno@clisp.org>
19693
19694         _Exit: Move AC_LIBOBJ invocations to module description.
19695         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19696         invocations from here...
19697         * modules/_Exit (configure.ac): ... to here.
19698
19699 2011-05-21  Bruno Haible  <bruno@clisp.org>
19700
19701         euidaccess: Respect rules for use of AC_LIBOBJ.
19702         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19704         from here...
19705         * modules/euidaccess (configure.ac): ... to here.
19706
19707 2011-05-06  Bruno Haible  <bruno@clisp.org>
19708
19709         error: Move AC_LIBOBJ invocations to module description.
19710         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19711         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19712         invocations from here...
19713         * modules/error (configure.ac): ... to here.
19714
19715 2011-05-06  Bruno Haible  <bruno@clisp.org>
19716
19717         duplocale: Move AC_LIBOBJ invocations to module description.
19718         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19719         gl_PREREQ_DUPLOCALE invocations from here...
19720         * modules/duplocale (configure.ac): ... to here.
19721
19722 2011-05-05  Bruno Haible  <bruno@clisp.org>
19723
19724         dirfd: Move AC_LIBOBJ invocations to module description.
19725         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19726         gl_FUNC_DIRFD.
19727         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19728         here...
19729         * modules/dirfd (configure.ac): ... to here.
19730         (Depends-on): Fix condition.
19731
19732 2011-05-05  Bruno Haible  <bruno@clisp.org>
19733
19734         chown: Respect rules for use of AC_LIBOBJ.
19735         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19736         * modules/chown (configure.ac): ... to here.
19737
19738 2011-05-05  Bruno Haible  <bruno@clisp.org>
19739
19740         chdir-long: Move AC_LIBOBJ invocations to module description.
19741         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19742         gl_PREREQ_CHDIR_LONG invocations from here...
19743         * modules/chdir-long (configure.ac): ... to here.
19744
19745 2011-05-05  Bruno Haible  <bruno@clisp.org>
19746
19747         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19748         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19749         from here...
19750         * modules/canonicalize-lgpl (configure.ac): ... to here.
19751
19752 2011-05-05  Bruno Haible  <bruno@clisp.org>
19753
19754         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19755         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19756         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19757         REPLACE_CALLOC.
19758         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19759         * modules/calloc-gnu (configure.ac): Likewise.
19760
19761 2011-05-05  Bruno Haible  <bruno@clisp.org>
19762
19763         btowc: Move AC_LIBOBJ invocations to module description.
19764         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19765         invocations from here...
19766         * modules/btowc (configure.ac): ... to here.
19767
19768 2011-05-21  Bruno Haible  <bruno@clisp.org>
19769
19770         atexit: Move AC_LIBOBJ invocations to module description.
19771         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19773         here...
19774         * modules/atexit (configure.ac): ... to here.
19775
19776 2011-05-05  Bruno Haible  <bruno@clisp.org>
19777
19778         atoll: Move AC_LIBOBJ invocations to module description.
19779         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19780         invocations from here...
19781         * modules/atoll (configure.ac): ... to here.
19782
19783 2011-05-05  Bruno Haible  <bruno@clisp.org>
19784
19785         argz: Move AC_LIBOBJ invocations to module description.
19786         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19787         * modules/argz (configure.ac): ... to here.
19788
19789 2011-05-05  Bruno Haible  <bruno@clisp.org>
19790
19791         alphasort: Move AC_LIBOBJ invocations to module description.
19792         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19793         gl_PREREQ_ALPHASORT invocations from here...
19794         * modules/alphasort (configure.ac): ... to here.
19795
19796 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19797
19798         verify: new macro verify_expr; verify_true deprecated
19799         * NEWS: Mention this.
19800         * doc/verify.texi (Compile-time Assertions): Document this.
19801         * lib/verify.h (verify_true): Deprecate.
19802         (verify_expr): New macro.
19803         * tests/test-verify.c (function): Test verify_expr.
19804
19805 2011-06-14  Jim Meyering  <meyering@redhat.com>
19806
19807         init.sh: give more portable redirection-related advice in a comment
19808         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19809         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19810         for lots of discussion.  Stefano Lattarini suggested the solution
19811         of putting "9>&2" after the command.  Reported by Bruno Haible.
19812
19813 2011-06-13  Bruno Haible  <bruno@clisp.org>
19814
19815         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19816         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19817         'none'.
19818
19819 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19820
19821         ftoastr: use strtof only if HAVE_STRTOF
19822         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19824         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19825         * modules/ftoastr (configure.ac): Check for strtof.
19826
19827 2011-06-13  Bruno Haible  <bruno@clisp.org>
19828
19829         gnulib-tool: Addendum to 2011-06-08 commit.
19830         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19831         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19832
19833 2011-06-13  Bruno Haible  <bruno@clisp.org>
19834
19835         fseeko: Provide a non-inline replacement of fseek().
19836         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19837         * modules/fseeko (Depends-on): Add fseek.
19838         * modules/fseek (License): Change to LGPLv2+.
19839
19840 2011-06-13  Bruno Haible  <bruno@clisp.org>
19841
19842         ftello: Provide a non-inline replacement of ftell().
19843         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19844         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19845         not have ftello() (such as on mingw).
19846         * modules/ftello (Depends-on): Add ftell.
19847         * modules/ftell (License): Change to LGPLv2+.
19848
19849 2011-05-07  Bruno Haible  <bruno@clisp.org>
19850
19851         ftell: Move AC_LIBOBJ invocations to module description.
19852         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19853         * modules/ftell (configure.ac): ... to here.
19854
19855 2011-05-07  Bruno Haible  <bruno@clisp.org>
19856
19857         ftello: Respect rules for use of AC_LIBOBJ.
19858         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19859         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19860         here...
19861         * modules/ftello (configure.ac): ... to here.
19862
19863 2011-05-07  Bruno Haible  <bruno@clisp.org>
19864
19865         fseeko: Simplify.
19866         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19867         (gl_FUNC_FSEEKO): Inline it here.
19868
19869 2011-05-07  Bruno Haible  <bruno@clisp.org>
19870
19871         fseek: Move AC_LIBOBJ invocations to module description.
19872         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19873         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19874         * modules/fseek (configure.ac): ... to here.
19875
19876 2011-05-07  Bruno Haible  <bruno@clisp.org>
19877
19878         fseek: Respect rules for use of AC_LIBOBJ.
19879         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19880         here...
19881         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19882
19883 2011-05-07  Bruno Haible  <bruno@clisp.org>
19884
19885         fseeko: Respect rules for use of AC_LIBOBJ.
19886         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19887         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19888         here...
19889         * modules/fseeko (configure.ac): ... to here.
19890
19891 2011-06-13  Bruno Haible  <bruno@clisp.org>
19892
19893         gnulib-tool: Allow comments in the 'Depends-on' section.
19894         * doc/gnulib.texi (Module description): Mention comment syntax in the
19895         Depends-on section.
19896         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19897
19898 2011-06-13  Bruno Haible  <bruno@clisp.org>
19899
19900         file-set.h: guard __attibute__ use, now that it's not always defined
19901         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19902         versions that support it.  This fixes a coreutils build failure with
19903         the vendor cc on HP-UX 11.31.
19904
19905 2011-06-12  Bruno Haible  <bruno@clisp.org>
19906
19907         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19908         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19909         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19910         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19911         (acl, aclsort): New declarations.
19912         (aclv_nontrivial): New declaration.
19913         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19914         (file_has_acl): Read also the second kind of HP-UX ACLs.
19915         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19916         kind of HP-UX ACLs if the first kind fails.
19917         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19918         second kind of HP-UX ACLs.
19919         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19920         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19921         agree.
19922         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19923         hpuxjfs.
19924         Handle hpuxjfs.
19925         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19926         hpuxjfs.
19927         Handle hpuxjfs.
19928         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19929         (func_test_same_acls): Use both lsacl and getacl.
19930         Handle hpuxjfs.
19931         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19932         (func_test_same_acls): Use both lsacl and getacl.
19933         Handle hpuxjfs.
19934
19935 2011-06-12  Bruno Haible  <bruno@clisp.org>
19936
19937         acl: Complete the 2010-08-10 fix.
19938         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19939         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19940         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19941         explicitly.
19942         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19943         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19944
19945 2011-06-12  Bruno Haible  <bruno@clisp.org>
19946
19947         spawn-pipe tests: Comments.
19948         * tests/test-spawn-pipe-child.c (main): Update comment.
19949         Reported by James Youngman <jay@gnu.org>.
19950
19951 2011-06-11  James Youngman  <jay@gnu.org>
19952
19953         New module 'stat-size'.
19954         * modules/stat-size: New module.  Provides macros for accessing
19955         file size information in instances of struct stat.  Depends on the
19956         fileblocks module because it calls st_blocks.
19957         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19958         * doc/gnulib.texi: Include stat-size.texi.
19959         * doc/stat-size.texi: Documentation for this module.
19960         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19961         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19962         AC_STRUCT_ST_BLOCKS.
19963
19964 2011-06-09  Bruno Haible  <bruno@clisp.org>
19965
19966         thread: Support pthreads-win32.
19967         * lib/glthread/thread.h (gl_thread_self): Define differently on
19968         pthreads-win32.
19969         (gl_null_thread): New declaration.
19970         (gl_thread_self_pointer): New macro.
19971         * lib/glthread/thread.c (gl_null_thread): New constant.
19972         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19973         gl_thread_self.
19974         * tests/test-tls.c: Likewise.
19975         Suggested by Paul Eggert. Reported by Eric Blake.
19976
19977 2011-06-09  Bruno Haible  <bruno@clisp.org>
19978
19979         thread: Fix confusion between NULL and 0.
19980         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19981         Reported by Paul Eggert.
19982
19983 2011-06-09  Bruno Haible  <bruno@clisp.org>
19984
19985         spawn-pipe tests: Avoid test failure on HP-UX 11.
19986         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19987         is closed.
19988
19989 2011-06-09  Bruno Haible  <bruno@clisp.org>
19990
19991         acl tests: Fix compilation error on HP-UX 11.
19992         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19993
19994 2011-06-09  Bruno Haible  <bruno@clisp.org>
19995
19996         rmdir: Avoid test failure on HP-UX 10.20.
19997         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19998         EEXIST.
19999
20000 2011-06-08  Eric Blake  <eblake@redhat.com>
20001
20002         perror: fix test on mingw
20003         * modules/perror-tests (Depends-on): Add dup2.
20004
20005         strerror_r-posix: fix on MacOS
20006         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20007         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20008         logic bug.
20009         * lib/strerror_r.c (strerror_r): Fix the bug.
20010         * lib/strerror.c (strerror): Likewise.
20011         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20012         problem.
20013         * doc/posix-functions/strerror.texi (strerror): Likewise.
20014         * doc/posix-functions/perror.texi (perror): Likewise.
20015         * tests/test-strerror.c (main): Enhance test.
20016         * tests/test-strerror_r.c (main): Likewise.
20017
20018 2011-06-08  Bruno Haible  <bruno@clisp.org>
20019
20020         gnulib-tool: Better isolation between different gnulib-tool invocations.
20021         * gnulib-tool: New option --witness-c-macro.
20022         (witness_c_macro): New variable.
20023         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20024         AM_CPPFLAGS define it as a C macro.
20025         (func_emit_tests_Makefile_am): Likewise.
20026         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20027         read it from there.
20028         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20029         m4_define, not AC_DEFUN.
20030         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20031         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20032         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20033         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20034         s|...|...|, to substitute the values of the GNULIB_* module indicator
20035         variables.
20036         * modules/dirent (Makefile.am): Likewise.
20037         * modules/fcntl-h (Makefile.am): Likewise.
20038         * modules/iconv-h (Makefile.am): Likewise.
20039         * modules/langinfo (Makefile.am): Likewise.
20040         * modules/locale (Makefile.am): Likewise.
20041         * modules/math (Makefile.am): Likewise.
20042         * modules/netdb (Makefile.am): Likewise.
20043         * modules/poll-h (Makefile.am): Likewise.
20044         * modules/pty (Makefile.am): Likewise.
20045         * modules/search (Makefile.am): Likewise.
20046         * modules/signal (Makefile.am): Likewise.
20047         * modules/spawn (Makefile.am): Likewise.
20048         * modules/stdio (Makefile.am): Likewise.
20049         * modules/stdlib (Makefile.am): Likewise.
20050         * modules/string (Makefile.am): Likewise.
20051         * modules/sys_ioctl (Makefile.am): Likewise.
20052         * modules/sys_select (Makefile.am): Likewise.
20053         * modules/sys_socket (Makefile.am): Likewise.
20054         * modules/sys_stat (Makefile.am): Likewise.
20055         * modules/sys_times (Makefile.am): Likewise.
20056         * modules/sys_utsname (Makefile.am): Likewise.
20057         * modules/sys_wait (Makefile.am): Likewise.
20058         * modules/termios (Makefile.am): Likewise.
20059         * modules/time (Makefile.am): Likewise.
20060         * modules/unistd (Makefile.am): Likewise.
20061         * modules/wchar (Makefile.am): Likewise.
20062
20063 2011-06-08  Eric Blake  <eblake@redhat.com>
20064
20065         strerror: simplify replacement
20066         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20067         * modules/strerror (configure.ac): No prereqs needed here...
20068         * modules/strerror-override (configure.ac): ...but this needs it.
20069         (Files): Add file for needed prereq macro.
20070
20071 2011-06-08  Bruno Haible  <bruno@clisp.org>
20072
20073         strerror_r-posix: Tweaks.
20074         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20075         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20076         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20077         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20078         (gl_FUNC_STRERROR_R): ... to here.
20079         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20080
20081 2011-06-07  Eric Blake  <eblake@redhat.com>
20082
20083         perror: document fixed bugs
20084         * doc/posix-functions/perror.texi (perror): Document recent
20085         patches.
20086
20087 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20088
20089         stat-time: get_stat_birthtime failure is better-defined
20090         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20091         return a timestamp whose tv_sec and tv_nsec values are both -1.
20092         Previously, the spec said only that the tv_nsec value was negative.
20093         This upward-compatible change simplifies GNU tar a bit.
20094
20095 2011-06-07  Eric Blake  <eblake@redhat.com>
20096
20097         strerror_r-posix: work around cygwin 1.7.9
20098         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20099         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20100         bug without replacing strerror_r.
20101         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20102         strerror_r is buggy, but without requiring strerror_r compilation.
20103         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20104
20105         test-perror: relax test to ignore cygwin bug
20106         * tests/test-perror2.c (main): Relax test on requiring detection
20107         of stream errors, and use unbuffered stream.
20108         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20109         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20110         * doc/posix-functions/fputc.texi (fputc): Likewise.
20111         * doc/posix-functions/fputs.texi (fputs): Likewise.
20112         * doc/posix-functions/fputws.texi (fputws): Likewise.
20113         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20114         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20115         * doc/posix-functions/getopt.texi (getopt): Likewise.
20116         * doc/posix-functions/perror.texi (perror): Likewise.
20117         * doc/posix-functions/printf.texi (printf): Likewise.
20118         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20119         * doc/posix-functions/psignal.texi (psignal): Likewise.
20120         * doc/posix-functions/putc.texi (putc): Likewise.
20121         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20122         Likewise.
20123         * doc/posix-functions/putchar.texi (putchar): Likewise.
20124         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20125         Likewise.
20126         * doc/posix-functions/puts.texi (puts): Likewise.
20127         * doc/posix-functions/putwc.texi (putwc): Likewise.
20128         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20129         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20130         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20131         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20132         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20133         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20134         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20135         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20136
20137 2011-05-22  Bruno Haible  <bruno@clisp.org>
20138
20139         strerror: Move AC_LIBOBJ invocations to module description.
20140         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20141         gl_PREREQ_STRERROR invocations from here...
20142         * modules/strerror (configure.ac): ... to here.
20143
20144 2011-05-21  Bruno Haible  <bruno@clisp.org>
20145
20146         perror: Use common idiom.
20147         * modules/perror (configure.ac): Reorder statements.
20148
20149 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20150
20151         tests: fix usage message in 'mktempd_'
20152         * tests/init.sh (mktempd_): In the usage message, use literal
20153         'mktempd_', not '$ME' (which is even undefined), as the name of
20154         the subroutine.
20155
20156 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20157
20158         tests init: new function 'fatal_', for hard errors
20159         Before this patch, the only way offered by tests/init.sh to
20160         properly signal a hard error was the `framework_failure_'
20161         function.  But the error message issued by that function,
20162         as its name would suggest, refers to a set-up failure in the
20163         testsuite, while hard errors can obviously also be due to
20164         other reasons.  The best way to fix this inconsistency is to
20165         introduce a new function with a more general error message.
20166         * tests/init.sh (fatal_): New function.
20167
20168 2011-06-06  Eric Blake  <eblake@redhat.com>
20169
20170         canonicalize-lgpl: use common idiom
20171         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20172         over newer POSIX -Rf.
20173         Reported by Bruno Haible.
20174
20175         canonicalize-lgpl: work around AIX realpath bug
20176         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20177         * doc/posix-functions/realpath.texi (realpath): Document it.
20178         Reported by Bruno Haible.
20179
20180         strerror: work around FreeBSD bug
20181         * lib/strerror.c (strerror): Special case 0.
20182         Reported by Bruno Haible.
20183
20184         strerror-override: avoid bloating errno module
20185         * modules/errno (Files, configure.ac): Move replacement strings...
20186         * modules/strerror-override: ...to new module.
20187         * modules/strerror (Depends-on): Add strerror-override.
20188         * modules/strerror_r-posix (Depends-on): Likewise.
20189         * MODULES.html.sh: Document new module.
20190         Reported by Bruno Haible.
20191
20192 2011-06-06  Bruno Haible  <bruno@clisp.org>
20193
20194         spawn-pipe tests: Rename program.
20195         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20196         * tests/test-spawn-pipe-child.c: Update comment.
20197         * tests/test-spawn-pipe.sh: Update.
20198         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20199
20200         spawn-pipe tests: Link the child program only against libc.
20201         * tests/test-spawn-pipe-child.c: New file, extracted from
20202         tests/test-spawn-pipe.c.
20203         (main): Expect only one argument.
20204         (is_open): New function, copied from tests/test-pipe.c.
20205         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20206         (child_main): Remove function.
20207         (test_pipe): Pass only one argument to the child program.
20208         (main): Remove child process code. Expect the child program's name as
20209         first argument.
20210         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20211         argument.
20212         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20213         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20214         test-spawn-pipe-child against no libraries.
20215
20216 2011-06-06  Bruno Haible  <bruno@clisp.org>
20217
20218         careadlinkat: Avoid mismatch between ssize_t and int.
20219         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20220         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20221
20222 2011-06-06  Jim Meyering  <meyering@redhat.com>
20223
20224         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20225         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20226         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20227
20228 2011-06-05  Bruno Haible  <bruno@clisp.org>
20229
20230         ansi-c++-opt: Interoperability with libtool.
20231         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20232         set the variable to "no", not to ":".
20233         * NEWS: Mention the change.
20234
20235 2011-06-05  Bruno Haible  <bruno@clisp.org>
20236
20237         acl: Fix test failure on AIX 7.
20238         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20239         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20240
20241 2011-06-05  Bruno Haible  <bruno@clisp.org>
20242
20243         pipe-filter-ii: Fix test failure on AIX and IRIX.
20244         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20245         with EAGAIN, retry with a smaller buffer size.
20246
20247 2011-06-05  Bruno Haible  <bruno@clisp.org>
20248
20249         localename: Fix link dependencies.
20250         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20251         * modules/localename-tests (Makefile.am): Link test-localename with
20252         $(LIBTHREAD).
20253
20254 2011-06-05  Bruno Haible  <bruno@clisp.org>
20255
20256         error: Avoid gcc warning.
20257         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20258
20259 2011-06-05  Bruno Haible  <bruno@clisp.org>
20260
20261         unsetenv: Avoid gcc warning.
20262         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20263
20264 2011-06-05  Bruno Haible  <bruno@clisp.org>
20265
20266         setenv: Avoid gcc warning.
20267         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20268
20269 2011-06-05  Bruno Haible  <bruno@clisp.org>
20270
20271         sys_select: Ensure memset is declared also on AIX 7.
20272         * lib/sys_select.in.h: Include <string.h> also on AIX.
20273         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20274         self-contained also on AIX 7.1.
20275
20276 2011-06-04  Jim Meyering  <meyering@redhat.com>
20277
20278         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20279         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20280         function name, "error".
20281         (_gl_translatable_diag_func_re): New configurable variable.
20282
20283 2011-06-04  Bruno Haible  <bruno@clisp.org>
20284
20285         getopt: Avoid gcc warning.
20286         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20287
20288 2011-06-04  Bruno Haible  <bruno@clisp.org>
20289
20290         strerror_r: Fix comments.
20291         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20292         commit.
20293
20294 2011-06-04  Bruno Haible  <bruno@clisp.org>
20295
20296         perror: Fix compilation error.
20297         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20298         Undefine fprintf, not sprintf.
20299         * modules/perror (Depends-on): Remove intprops, verify.
20300
20301 2011-06-04  Bruno Haible  <bruno@clisp.org>
20302
20303         setlocale: Enable replacement on Cygwin 1.5.
20304         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20305         Cygwin 1.5.x.
20306         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20307         LC_CTYPE category also exists on Cygwin 1.5.x.
20308
20309 2011-06-04  Bruno Haible  <bruno@clisp.org>
20310
20311         strerror-override: Don't disable symbol renamings.
20312         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20313         * lib/strerror-override.c: Include config.h.
20314         (strerror_override): Don't undefine.
20315
20316 2011-06-03  Bruno Haible  <bruno@clisp.org>
20317
20318         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20319         * lib/localename.h: Update copyright header.
20320         * lib/localename.c: Likewise.
20321         * lib/relocatable.h: Likewise.
20322         * lib/relocatable.c: Likewise.
20323
20324 2011-06-02  Bruno Haible  <bruno@clisp.org>
20325
20326         doc: Fix a module name.
20327         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20328
20329 2011-06-02  Bruno Haible  <bruno@clisp.org>
20330
20331         pipe2: Remove dependency on 'nonblocking' module.
20332         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20333         O_NONBLOCK is defined by gnulib.
20334         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20335         is zero.
20336         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20337         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20338         defined by gnulib.
20339         (get_nonblocking_flag): New function.
20340         (main): Test O_NONBLOCK flag only if it is nonzero.
20341         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20342
20343 2011-06-03  Jim Meyering  <meyering@redhat.com>
20344
20345         maint: three new prohibit-header-without-use rules
20346         Prohibit use of cloexec.h, posixver.h, same.h without use.
20347         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20348         (sc_prohibit_posixver_without_use): Likewise.
20349         (sc_prohibit_same_without_use): Likewise.
20350
20351 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20352
20353         allocator: 'die' routine is now given requested size
20354         * lib/allocator.h (struct allocator.die): New size arg.
20355         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20356         If the actual problem is an ssize_t limitation, not a size_t or
20357         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20358
20359 2011-06-01  Eric Blake  <eblake@redhat.com>
20360
20361         strerror: drop strerror_r dependency
20362         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20363         * lib/strerror-override.c (strerror_override): ...to new file.
20364         * lib/strerror-override.h: Add prototype.
20365         * lib/strerror-impl.h: Delete.
20366         * lib/strerror.c (strerror): New implementation.
20367         * modules/errno (Files): Add new files.
20368         (configure.ac): Compile new file as appropriate.
20369         * modules/strerror (Files): Drop unused file.
20370         (Depends-on): Drop strerror_r-posix.
20371         * MODULES.html.sh: Document strerror_r-posix.
20372         Requested by Sam Steingold.
20373
20374         perror: call strerror_r directly
20375         * modules/perror (Files): Drop strerror-impl.h.
20376         * lib/perror.c (perror): Use our own stack buffer, rather than
20377         calling a wrapper that uses static storage.
20378         * doc/posix-functions/perror.texi (perror): Document a limitation
20379         of our replacement.
20380
20381         strerror_r: fix includes for FreeBSD
20382         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20383         since we use abort on some platforms.
20384         Reported by Matthias Bolte.
20385
20386 2011-05-31  Bruno Haible  <bruno@clisp.org>
20387
20388         Fix link errors in tests: openat-die uses gettext-h.
20389         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20390         against $(LIBINTL).
20391         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20392         against $(LIBINTL).
20393         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20394         $(LIBINTL).
20395         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20396         against $(LIBINTL).
20397         * modules/linkat-tests (Makefile.am): Link test-linkat against
20398         $(LIBINTL).
20399         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20400         $(LIBINTL).
20401         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20402         against $(LIBINTL).
20403         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20404         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20405         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20406         $(LIBINTL).
20407         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20408         $(LIBINTL).
20409         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20410         $(LIBINTL).
20411         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20412
20413 2011-05-31  Bruno Haible  <bruno@clisp.org>
20414
20415         Fix link errors in tests: wait-process uses gettext-h.
20416         * modules/nonblocking-pipe-tests (Makefile.am): Set
20417         test_nonblocking_pipe_main_LDADD.
20418         * modules/nonblocking-socket-tests (Makefile.am): Link
20419         test-nonblocking-socket-main against $(LIBINTL).
20420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20421
20422 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20423
20424         assert-h: work around 'verify' incompatibility
20425         * lib/verify.h: Use @...@ directives, not ifdef.
20426         * modules/assert-h (assert.h): Implement the directives.
20427         (assert.h): Substitute the symbol-prefix more consistently.
20428
20429 2011-05-29  Jim Meyering  <meyering@redhat.com>
20430
20431         trim: remove three superfluous assignments
20432         * lib/trim.c (trim2): Remove three superfluous assignments
20433         and correct brace positioning.
20434
20435 2011-05-29  Bruno Haible  <bruno@clisp.org>
20436
20437         wctype-h: Avoid namespace pollution on Solaris 2.6.
20438         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20439         identifiers.
20440         * doc/posix-headers/wctype.texi: Mention the problem.
20441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20442
20443 2011-05-28  Jim Meyering  <meyering@redhat.com>
20444
20445         parse-datetime.y: accommodate -Wstrict-overflow
20446         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20447         placate -Wstrict-overflow.
20448
20449         trim: avoid a warning from -O2 -Wstrict-overflow
20450         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20451
20452 2011-05-29  Bruno Haible  <bruno@clisp.org>
20453
20454         gnulib-tool: Fix bug in yesterday's commit.
20455         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20456         twice.
20457
20458 2011-05-29  Bruno Haible  <bruno@clisp.org>
20459
20460         Allow multiple gnulib generated include files to be combined.
20461         * gnulib-tool (func_compute_include_guard_prefix): New function.
20462         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20463         ${gl_include_guard_prefix} references.
20464         (func_import, func_create_testdir): Invoke
20465         func_compute_include_guard_prefix.
20466         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20467         * lib/ctype.in.h: Likewise.
20468         * lib/dirent.in.h: Likewise.
20469         * lib/errno.in.h: Likewise.
20470         * lib/fcntl.in.h: Likewise.
20471         * lib/float.in.h: Likewise.
20472         * lib/getopt.in.h: Likewise.
20473         * lib/iconv.in.h: Likewise.
20474         * lib/langinfo.in.h: Likewise.
20475         * lib/locale.in.h: Likewise.
20476         * lib/math.in.h: Likewise.
20477         * lib/netdb.in.h: Likewise.
20478         * lib/netinet_in.in.h: Likewise.
20479         * lib/poll.in.h: Likewise.
20480         * lib/pthread.in.h: Likewise.
20481         * lib/pty.in.h: Likewise.
20482         * lib/sched.in.h: Likewise.
20483         * lib/se-selinux.in.h: Likewise.
20484         * lib/search.in.h: Likewise.
20485         * lib/signal.in.h: Likewise.
20486         * lib/spawn.in.h: Likewise.
20487         * lib/stdarg.in.h: Likewise.
20488         * lib/stddef.in.h: Likewise.
20489         * lib/stdint.in.h: Likewise.
20490         * lib/stdio.in.h: Likewise.
20491         * lib/stdlib.in.h: Likewise.
20492         * lib/string.in.h: Likewise.
20493         * lib/strings.in.h: Likewise.
20494         * lib/sys_file.in.h: Likewise.
20495         * lib/sys_ioctl.in.h: Likewise.
20496         * lib/sys_select.in.h: Likewise.
20497         * lib/sys_socket.in.h: Likewise.
20498         * lib/sys_stat.in.h: Likewise.
20499         * lib/sys_time.in.h: Likewise.
20500         * lib/sys_times.in.h: Likewise.
20501         * lib/sys_uio.in.h: Likewise.
20502         * lib/sys_utsname.in.h: Likewise.
20503         * lib/sys_wait.in.h: Likewise.
20504         * lib/sysexits.in.h: Likewise.
20505         * lib/termios.in.h: Likewise.
20506         * lib/time.in.h: Likewise.
20507         * lib/unistd.in.h: Likewise.
20508         * lib/wchar.in.h: Likewise.
20509         * lib/wctype.in.h: Likewise.
20510         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20511         * modules/ctype (Makefile.am): Likewise.
20512         * modules/dirent (Makefile.am): Likewise.
20513         * modules/errno (Makefile.am): Likewise.
20514         * modules/fcntl-h (Makefile.am): Likewise.
20515         * modules/float (Makefile.am): Likewise.
20516         * modules/getopt-posix (Makefile.am): Likewise.
20517         * modules/iconv-h (Makefile.am): Likewise.
20518         * modules/langinfo (Makefile.am): Likewise.
20519         * modules/locale (Makefile.am): Likewise.
20520         * modules/math (Makefile.am): Likewise.
20521         * modules/netdb (Makefile.am): Likewise.
20522         * modules/netinet_in (Makefile.am): Likewise.
20523         * modules/poll-h (Makefile.am): Likewise.
20524         * modules/pthread (Makefile.am): Likewise.
20525         * modules/pty (Makefile.am): Likewise.
20526         * modules/sched (Makefile.am): Likewise.
20527         * modules/search (Makefile.am): Likewise.
20528         * modules/selinux-h (Makefile.am): Likewise.
20529         * modules/signal (Makefile.am): Likewise.
20530         * modules/spawn (Makefile.am): Likewise.
20531         * modules/stdarg (Makefile.am): Likewise.
20532         * modules/stddef (Makefile.am): Likewise.
20533         * modules/stdint (Makefile.am): Likewise.
20534         * modules/stdio (Makefile.am): Likewise.
20535         * modules/stdlib (Makefile.am): Likewise.
20536         * modules/string (Makefile.am): Likewise.
20537         * modules/strings (Makefile.am): Likewise.
20538         * modules/sys_file (Makefile.am): Likewise.
20539         * modules/sys_ioctl (Makefile.am): Likewise.
20540         * modules/sys_select (Makefile.am): Likewise.
20541         * modules/sys_socket (Makefile.am): Likewise.
20542         * modules/sys_stat (Makefile.am): Likewise.
20543         * modules/sys_time (Makefile.am): Likewise.
20544         * modules/sys_times (Makefile.am): Likewise.
20545         * modules/sys_uio (Makefile.am): Likewise.
20546         * modules/sys_utsname (Makefile.am): Likewise.
20547         * modules/sys_wait (Makefile.am): Likewise.
20548         * modules/sysexits (Makefile.am): Likewise.
20549         * modules/termios (Makefile.am): Likewise.
20550         * modules/time (Makefile.am): Likewise.
20551         * modules/unistd (Makefile.am): Likewise.
20552         * modules/wchar (Makefile.am): Likewise.
20553         * modules/wctype-h (Makefile.am): Likewise.
20554         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20555
20556 2011-05-29  Bruno Haible  <bruno@clisp.org>
20557
20558         assert-h: Allow multiple gnulib generated replacements to coexist.
20559         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20560
20561 2011-05-29  Bruno Haible  <bruno@clisp.org>
20562
20563         argp: Allow coexistence with strerror_r-posix module.
20564         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20565         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20566         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20567         not the glibc signature.
20568
20569 2011-05-28  Bruno Haible  <bruno@clisp.org>
20570
20571         gnulib-tool: Alternative structure of testdirs, similar to --import.
20572         * gnulib-tool: New option --single-configure.
20573         (func_usage): Document it.
20574         (single_configure): New variable.
20575         (func_modules_transitive_closure_separately,
20576         func_modules_transitive_closure_separately,
20577         func_determine_use_libtests, func_modules_add_dummy_separately,
20578         func_modules_to_filelist_separately): New functions, extracted from
20579         func_import.
20580         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20581         (func_import): Use the new functions.
20582         (func_create_testdir): Set final_modules. Handle $single_configure =
20583         true case.
20584
20585 2011-05-28  Bruno Haible  <bruno@clisp.org>
20586
20587         getloadavg: Remove an unreliable safety check.
20588         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20589         getloadavg.c is in place.
20590         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20591         Reported by Sam Steingold <sds@gnu.org>.
20592
20593 2011-05-28  Bruno Haible  <bruno@clisp.org>
20594
20595         doc: Cleanup yet another file produced by texinfo.tex.
20596         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20597
20598 2011-05-28  Bruno Haible  <bruno@clisp.org>
20599
20600         Finish the conditional dependencies mechanism.
20601         * gnulib-tool: New option --no-conditional-dependencies.
20602         (func_usage): Document it. Don't mark --conditional-dependencies as
20603         experimental.
20604         (cond_dependencies): The possible values can now be true, false, empty.
20605         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20606         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20607         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20608
20609 2011-05-28  Bruno Haible  <bruno@clisp.org>
20610
20611         doc: Use a recent texinfo.tex.
20612         * doc/Makefile (tex_opts): New variable.
20613         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20614
20615 2011-05-28  Jim Meyering  <meyering@redhat.com>
20616
20617         intprops.h: adjust comment to match code change
20618         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20619         only once, it *may* have side effects.  Also fix an unrelated typo.
20620         (_GL_INT_SIGNED): Likewise.
20621
20622 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20623
20624         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20625
20626 2011-05-26  Bruno Haible  <bruno@clisp.org>
20627
20628         mbsrchr: Avoid collision with system function on Interix.
20629         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20630         Reported by Markus Duft <mduft@gentoo.org>.
20631
20632 2011-05-15  James Youngman  <jay@gnu.org>
20633
20634         getopt: for ambiguous options, enumerate the possibilities.
20635         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20636         the ambiguous options when an ambiguous prefix is given. This was
20637         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20638         glibc change was
20639         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20640
20641 2011-05-25  Eric Blake  <eblake@redhat.com>
20642
20643         getcwd: work around mingw bug
20644         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20645         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20646         Reported by Matthias Bolte.
20647
20648 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20649
20650         test-intprops: disable -Wtype-limits diagnostics
20651         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20652         diagnostics.  Otherwise, the integer overflow macros generate many
20653         diagnostics.  Reported by Jim Meyering in
20654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20655
20656         intprops: shorten, to pacify gcc -Woverlength-strings
20657         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20658         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20659         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20660         likely to run afoul of C compiler limits for string constant lengths.
20661         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20662
20663 2011-05-24  Eric Blake  <eblake@redhat.com>
20664
20665         docs: document recently fixed glibc printf bug
20666         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20667         * doc/posix-functions/printf.texi (printf): Likewise.
20668         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20669         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20670
20671         closein-tests: convert to init.sh
20672         * modules/closein-tests (Files): Add init.sh
20673         * tests/test-closein.sh Use it.
20674
20675         yesno-tests: convert to init.sh
20676         * modules/yesno-tests (Files): Add init.sh.
20677         * tests/test-yesno.sh: Use it.
20678
20679         atexit-tests: ensure reliable exit status
20680         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20681         Reported by Bruno Haible.
20682
20683 2011-05-24  Bruno Haible  <bruno@clisp.org>
20684
20685         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20686         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20687         gl_PREREQ_STRERROR_R invocations from here...
20688         * modules/strerror_r-posix (configure.ac): ... to here.
20689
20690 2011-05-24  Eric Blake  <eblake@redhat.com>
20691
20692         strerror_r: fix missing header
20693         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20694
20695         strerror_r: fix AIX test failures
20696         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20697         ERANGE failure.
20698
20699         strerror_r: fix Solaris test failures
20700         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20701         failures.
20702         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20703
20704         strerror_r: enforce POSIX recommendations
20705         * lib/strerror_r.c (safe_copy): New helper method.
20706         (strerror_r): Guarantee a non-empty string.
20707         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20708         recent POSIX rulings and to match our strerror guarantees.
20709         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20710
20711 2011-05-24  Jim Meyering  <meyering@redhat.com>
20712
20713         test-perror2.c: avoid warning about unused variable
20714         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20715
20716 2011-05-24  Eric Blake  <eblake@redhat.com>
20717
20718         perror: avoid spurious test failure on HP-UX
20719         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20720
20721         tests: fix logic bug in init.sh
20722         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20723         shell.
20724
20725 2011-05-24  Jim Meyering  <meyering@redhat.com>
20726
20727         utimensat: do not reference an out-of-scope buffer
20728         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20729         declared in an inner scope, yet "times" would be dereferenced outside
20730         the scope in which "ts" was valid.
20731         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20732         of ts[2] "out/up", so that the use of aliased "times" (via
20733         "times = ts;") does not end up referencing an out-of-scope "ts"
20734
20735         opendir-safer.c: don't clobber errno; don't close negative FD
20736         * lib/opendir-safer.c (opendir_safer):
20737         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20738         file descriptor, and more importantly, don't clobber the
20739         offending errno value with EINVAL.  Before, upon failure
20740         of dup_safer, we would pass the negative file descriptor to
20741         fdopendir, which would clobber errno.
20742
20743 2011-05-23  Bruno Haible  <bruno@clisp.org>
20744
20745         idcache: Fix module description.
20746         * modules/idcache (Include): Set to "idcache.h".
20747
20748 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20749
20750         gnulib-tool: fix portability problem with MacOS sed
20751         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20752         before the "}".  Problem reported by Leo in
20753         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20754         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20755         sed_extract_condition1, sed_extract_condition2.
20756
20757 2011-05-23  Bruno Haible  <bruno@clisp.org>
20758
20759         hash: Simplify autoconf macro.
20760         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20761
20762 2011-05-23  Bruno Haible  <bruno@clisp.org>
20763
20764         getugroups: Fix module description.
20765         * modules/getugroups (Include): Set to "getugroups.h".
20766
20767 2011-05-23  Bruno Haible  <bruno@clisp.org>
20768
20769         linkat: Simplify autoconf macro.
20770         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20771
20772 2011-05-23  Bruno Haible  <bruno@clisp.org>
20773             Eric Blake  <eblake@redhat.com>
20774
20775         linkat, renameat: Update dependencies.
20776         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20777         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20778         symlinkat.
20779
20780 2011-05-23  Jim Meyering  <meyering@redhat.com>
20781
20782         maint.mk: more tight_scope improvements
20783         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20784         (_gl_TS_headers): Define only in if-0'd block.
20785         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20786         sometimes we must *not* use it.  Adjust uses accordingly.
20787         (sc_tight_scope): Use much simpler grep-based test to determine
20788         whether we skip this rule.
20789
20790         maint.mk: generalize/improve the tight-scope rule
20791         * top/maint.mk: Emit a warning when the test is skipped.
20792         (_gl_TS_dir): Add $(srcdir)/ prefix.
20793         (_gl_TS_function_match): Simplify, rather than trying
20794         to enumerate common types.  Otherwise, it would fail to match an
20795         "extern unsigned char const *" declaration in idutils.
20796         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20797         a way to support use of that type of macro.
20798         (_gl_TS_var_match): Simplify regexp.
20799         (_gl_TS_obj_files): New configurable variable.
20800         (_gl_TS_headers): Likewise.
20801
20802 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20803
20804         verify: fix bug when gnulib <assert.h> is also included
20805         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20806         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20807         Perhaps there's a better way, but this fixes the immediate problem.
20808         Problem reported by Bruno Haible in
20809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20810
20811 2011-05-22  Bruno Haible  <bruno@clisp.org>
20812
20813         xgetcwd: Simplify autoconf macro.
20814         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20815
20816 2011-05-22  Bruno Haible  <bruno@clisp.org>
20817
20818         New module 'mktime-internal'.
20819         * modules/mktime-internal: New file.
20820         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20821         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20822         mktime_internal as a C macro if libc has __mktime_internal.
20823         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20824         conditions.
20825         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20826
20827 2011-05-22  Bruno Haible  <bruno@clisp.org>
20828
20829         timegm: Correct mktime replacement statements.
20830         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20831         defining mktime as a C macro. This completes a 2009-07-28 commit.
20832
20833 2011-05-22  Bruno Haible  <bruno@clisp.org>
20834
20835         timegm: Simplify autoconf macro.
20836         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20837
20838 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20839
20840         clock-time: change to LGPLv2+.
20841         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20842         BSD-like but we have no mark for that; this is good enough for now.
20843
20844 2011-05-21  Bruno Haible  <bruno@clisp.org>
20845
20846         strerror_r: Fix comments.
20847         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20848
20849 2011-05-21  Bruno Haible  <bruno@clisp.org>
20850
20851         relocatable-prog-wrapper: Fix possible link error.
20852         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20853         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20854         (gl_FUNC_SETENV): ... to here.
20855         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20856         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20857
20858 2011-05-21  Bruno Haible  <bruno@clisp.org>
20859
20860         relocatable-prog-wrapper: Assume strerror() exists.
20861         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20862         m4/strerror.m4.
20863         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20864         * lib/relocwrapper.c: Remove mention of strerror module.
20865         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20866         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20867         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20868         C macro.
20869
20870 2011-05-21  Bruno Haible  <bruno@clisp.org>
20871
20872         select: Simplify replacement idiom.
20873         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20874         Win32 platforms.
20875         * lib/sys_select.in.h (select): Simplify accordingly.
20876         * modules/select (Depends-on): Likewise.
20877
20878 2011-05-21  Bruno Haible  <bruno@clisp.org>
20879
20880         mkdir-p: Simplify autoconf macro.
20881         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20882         gl_FUNC_LCHOWN.
20883
20884 2011-05-21  Eric Blake  <eblake@redhat.com>
20885
20886         strerror_r: avoid clobbering strerror on cygwin
20887         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20888         fall back instead to sys_errlist.
20889         * modules/strerror (configure.ac): Add witness.
20890         * tests/test-strerror_r.c (main): Enhance test.
20891         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20892         * tests/test-perror2.c (main): Free memory before exit.
20893
20894 2011-05-21  Bruno Haible  <bruno@clisp.org>
20895
20896         mkdtemp: Use gnulib naming conventions.
20897         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20898         * modules/mkdtemp (configure.ac): Update.
20899
20900 2011-05-20  Eric Blake  <eblake@redhat.com>
20901
20902         strerror_r: avoid corrupting errno on Solaris
20903         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20904         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20905
20906         strerror_r: avoid compiler warning
20907         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20908
20909         strerror_r: simplify AIX code
20910         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20911
20912         test-perror: avoid spurious failure on FreeBSD
20913         * modules/perror-tests (Depends-on): Add strerror, now that
20914         strerror_r no longer pulls it in.
20915
20916 2011-05-20  Bruno Haible  <bruno@clisp.org>
20917
20918         strerror_r-posix: Remove unused dependencies.
20919         * modules/strerror_r-posix (Depends-on): Remove strerror.
20920         Reported by Eric Blake.
20921
20922 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20923
20924         intprops: remove assumption about A|B representation
20925         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20926         is a valid integer if both A and B are.  Although this is true for
20927         all known practical hosts, the C standard doesn't guarantee it,
20928         and the code need not assume it.  Also, this change may work around
20929         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20931
20932 2011-05-20  Eric Blake  <eblake@redhat.com>
20933
20934         perror: work around FreeBSD bug
20935         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20936         is broken.  Move AC_LIBOBJ...
20937         * modules/perror (configure.ac): Here.
20938         * doc/posix-functions/perror.texi (perror): Document this.
20939         * tests/test-perror2.c (main): Enhance test.
20940
20941         test-perror: check for strerror interactions
20942         * tests/macros.h (STREQ): Add macro.
20943         * modules/perror-tests (Files): Add second test.
20944         * tests/test-perror2.c (main): New file.
20945         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20946
20947         test-perror: rewrite to use init script
20948         * modules/perror-tests (Files): Add init.sh.
20949         * tests/test-perror.sh: Use temporary directory.
20950
20951 2011-05-20  Jim Meyering  <meyering@redhat.com>
20952
20953         maint: replace misused "a" with "an"
20954         * doc/intprops.texi: "a integer"
20955         * doc/regex.texi: "a explanation"
20956         * lib/alignof.h: "a object"
20957         * lib/argmatch.h: "a explanation"
20958         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20959         * lib/stdint.in.h: "a integer"
20960         * lib/userspec.c: "a owner"
20961         * doc/gnulib.texi: Fix "a idea", and reword.
20962
20963 2011-05-19  Jim Meyering  <meyering@redhat.com>
20964
20965         maint: correct misuse of "a" and "an"
20966         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20967         * lib/argp-help.c: "an docum...": s/an/a/
20968         * lib/argp-parse.c: "An vector": s/An/A/
20969         * lib/execute.c: "an native": s/an/a/
20970         * lib/spawn-pipe.c: Likewise.
20971         * lib/gc.h: "an Gc_rc": s/an/a/
20972         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20973         * lib/fts.c: "an stat.st_dev": s/an/a/
20974
20975 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20976
20977         intprops-tests: work around HP-UX 11.23 cc bug with constants
20978         * tests/test-intprops.c (VERIFY): New macro.
20979         (main): Use it, instead of verify, to work around the compiler bug; see
20980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20981
20982         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20983         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20984         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20985         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20986         (_GL_REMAINDER_OVERFLOW): Use it.
20987
20988         intprops-tests: revert unsigned part of previous change
20989         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20990         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20991         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20993
20994 2011-05-19  Bruno Haible  <bruno@clisp.org>
20995
20996         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20997         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20998         strerror_r() returned without filling the buffer.
20999         Reported by Eric Blake.
21000
21001 2011-05-19  Eric Blake  <eblake@redhat.com>
21002
21003         strerror_r: guarantee unchanged errno
21004         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21005         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21006         failure.
21007         * tests/test-strerror_r.c (main): Enhance test.
21008
21009 2011-05-19  Bruno Haible  <bruno@clisp.org>
21010
21011         strerror_r: Reorder #if blocks.
21012         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21013         for consistency with the previous commit.
21014
21015 2011-05-19  Bruno Haible  <bruno@clisp.org>
21016
21017         perror: Avoid clobbering the strerror buffer when possible.
21018         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21019         * lib/strerror.c: Include it.
21020         * modules/strerror (Files): Add lib/strerror-impl.h.
21021         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21022         (my_strerror): New function, defined through lib/strerror-impl.h.
21023         (perror): Use it instead of strerror.
21024         * modules/perror (Files): Add lib/strerror-impl.h.
21025         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21026
21027 2011-05-19  Eric Blake  <eblake@redhat.com>
21028
21029         strerror_r: fix on newer cygwin
21030         * lib/strerror_r.c (strerror_r): Cygwin now has
21031         __xpg_strerror_r, use it.
21032
21033 2011-05-19  Bruno Haible  <bruno@clisp.org>
21034
21035         strerror_r: Avoid clobbering the strerror buffer when possible.
21036         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21037         (sys_nerr, sys_errlist): New declarations.
21038         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21039         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21040         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21041
21042 2011-05-19  Bruno Haible  <bruno@clisp.org>
21043
21044         strerror_r: Fix test failure on mingw.
21045         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21046         EXTEND_STRERROR_R.
21047         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21048         macros from errno.in.h instead.
21049
21050 2011-05-19  Eric Blake  <eblake@redhat.com>
21051
21052         strerror: relax test for Solaris
21053         * tests/test-strerror.c (main): Permit Solaris behavior.
21054         * tests/test-strerror_r.c (main): Likewise.
21055
21056         strerror: enforce POSIX ruling on strerror(0)
21057         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21058         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21059         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21060         * doc/posix-functions/strerror.texi (strerror): Document it.
21061         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21062         * tests/test-strerror.c (main): Strengthen test.
21063         * tests/test-strerror_r.c (main): Likewise.
21064
21065 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21066
21067         intprop-tests: port to older and more-pedantic compilers
21068         * modules/intprops-tests (Files): Add tests/macros.h.
21069         * tests/test-intprops.c: Include macros.h.
21070         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21071         it's no longer documented to expand to an integer constant expression.
21072         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21073         argument is floating point, as it's no longer documented to expand
21074         to an integer constant expression in that case.
21075         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21076         compiler bugs reported by Bruno Haible.  See
21077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21078         (U0, U1): New constants, to work around the same bugs.  Also,
21079         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21080
21081         intprops: work around C compiler bugs
21082         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21083         bug in Sun C 5.11 2010/08/13 and other compilers; see
21084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21085
21086         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21087         * doc/intprops.texi (Integer Type Determination): Fix
21088         documentation for TYPE_IS_INTEGER: it returns an constant
21089         expression, not an integer constant expression.  Fix doc for
21090         TYPE_SIGNED: it returns an integer constant expression only if its
21091         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21092         hardly worth documented that way....)
21093
21094 2011-05-18  Bruno Haible  <bruno@clisp.org>
21095
21096         strerror_r: Avoid clobbering the strerror buffer when possible.
21097         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21098         Handle gnulib defined errno values here. When strerror() returns NULL
21099         or an empty string, return EINVAL.
21100         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21101         gnulib defined errno values here.
21102         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21103
21104 2011-05-18  Eric Blake  <eblake@redhat.com>
21105
21106         fnmatch: avoid compiler warning
21107         * lib/fnmatch_loop.c (FCT): Use correct type.
21108         Reported by Matthias Bolte.
21109
21110 2011-05-13  Jim Meyering  <meyering@redhat.com>
21111
21112         maint.mk: three new prohibit_<HDR>_without_use rules
21113         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21114         (sc_prohibit_stdio-safer_without_use): Likewise.
21115         (sc_prohibit_xfreopen_without_use): Likewise.
21116
21117 2011-05-17  Jim Meyering  <meyering@redhat.com>
21118
21119         announce-gen: fail if the NEWS delta is empty
21120         If there's nothing noteworthy in NEWS, then either you forgot
21121         or you shouldn't be releasing.
21122         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21123
21124 2011-05-17  Pádraig Brady <P@draigBrady.com>
21125
21126         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21127         reserved symbols starting with double underscore from the check.
21128
21129 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21130
21131         intprops: add doc
21132         * doc/intprops.texi: New file, documenting intprops.
21133         * doc/gnulib.texi (Particular Modules): Include it.
21134
21135         verify: add doc to gnulib manual and fix example
21136         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21137         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21138         (Compile-time Assertions): Fix example so it can't overflow.
21139
21140 2011-05-17  Jim Meyering  <meyering@redhat.com>
21141
21142         warnings.m4: don't usurp save_CPPFLAGS variable name
21143         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21144
21145         doc: fix typo
21146         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21147
21148 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21149             Bruno Haible  <bruno@clisp.org>
21150
21151         doc: Tweak recent change.
21152         * README (Portability guidelines): Tweak new text.
21153         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21154         Interix 6.1.
21155
21156 2011-05-16  Eric Blake  <eblake@redhat.com>
21157
21158         inttypes: avoid autoconf warning
21159         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21160         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21161
21162 2011-05-16  Sam Steingold <sds@gnu.org>
21163         and Eric Blake  <eblake@redhat.com>
21164
21165         vc-list-files: accept multiple directory operands
21166         * build-aux/vc-list-files: Iterate over all remaining operands.
21167
21168 2011-05-16  Bruno Haible  <bruno@clisp.org>
21169
21170         Fix confusion regarding deprecated modules.
21171         * modules/calloc (Status, Notice): Mark module as deprecated, not
21172         obsolete.
21173         * modules/fnmatch-posix (Status, Notice): Likewise.
21174         * modules/getdate (Status, Notice): Likewise.
21175         * modules/getopt (Status, Notice): Likewise.
21176         * modules/malloc (Status, Notice): Likewise.
21177         * modules/pipe (Status, Notice): Likewise.
21178         * modules/realloc (Status, Notice): Likewise.
21179         * modules/rename-dest-slash (Status, Notice): Likewise.
21180         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21181         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21182         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21183         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21184         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21185
21186 2011-05-16  Bruno Haible  <bruno@clisp.org>
21187
21188         doc: List the target platforms.
21189         * doc/gnulib-intro.texi (Target Platforms): New section.
21190         * doc/gnulib.texi (Introduction): Update menu.
21191         * README (Portability guidelines): Refer to the new section. Update
21192         statement about oldest supported environment. Remove rationale why
21193         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21194         unportable C89 function.
21195         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21196         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21197
21198 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21199
21200         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21201
21202 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21203
21204         intprops-tests: new module
21205         * modules/intprops-tests, tests/test-intprops.c: New files.
21206
21207         intprops: add safe, portable integer overflow checking
21208         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21209         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21210         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21211         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21212         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21213         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21214         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21215         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21216         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21217         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21218         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21219
21220 2011-05-12  James Youngman  <jay@gnu.org>
21221
21222         Add a test for glibc's Bugzilla bug #12378.
21223         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21224         doesn't allow the literal matching of a lone "[" (which is
21225         required by POSIX).
21226         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21227
21228 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21229
21230         Sync glibc change fixing Bugzilla bug #12378.
21231         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21232         beginning and fall back to matching as normal character if the
21233         string ends before the matching ']' is found.  This is what POSIX
21234         requires.
21235
21236 2011-05-13  Eric Blake  <eblake@redhat.com>
21237
21238         getcwd-lgpl: relax test for FreeBSD
21239         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21240         issue.
21241         * tests/test-getcwd-lgpl.c (main): Relax test.
21242         Reported by Matthias Bolte.
21243
21244 2011-05-11  Eric Blake  <eblake@redhat.com>
21245
21246         test-fflush: silence compiler warning
21247         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21248
21249 2011-05-11  Bruno Haible  <bruno@clisp.org>
21250
21251         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21252         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21253         * modules/canonicalize (Depends-on): Add 'nocrash'.
21254         * modules/canonicalize-lgpl (Depends-on): Likewise.
21255         * doc/posix-functions/realpath.texi: Update platforms list.
21256         Reported by Ryan Schmidt <ryandesign@macports.org>.
21257
21258 2011-05-11  Bruno Haible  <bruno@clisp.org>
21259
21260         group-member: Declare function in <unistd.h>.
21261         * lib/unistd.in.h (group_member): New declaration.
21262         * lib/group-member.h: Remove file.
21263         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21264         * tests/test-unistd-c++.cc: Check signature of group_member.
21265         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21266         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21267         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21268         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21269         HAVE_GROUP_MEMBER.
21270         * modules/group-member (Files): Remove lib/group-member.h.
21271         (Depends-on): Add unistd. Specify conditions.
21272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21273         (Include): Change to <unistd.h>.
21274         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21275         HAVE_GROUP_MEMBER.
21276         * NEWS: Mention the change.
21277         * lib/euidaccess.c: Don't include group-member.h.
21278
21279 2011-05-11  Bruno Haible  <bruno@clisp.org>
21280
21281         group-member: Document module.
21282         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21283         module.
21284
21285 2011-05-11  Bruno Haible  <bruno@clisp.org>
21286
21287         fclose: Fix mistake earlier today.
21288         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21289
21290 2011-05-11  Eric Blake  <eblake@redhat.com>
21291
21292         fclose: preserve fflush errors
21293         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21294         Reported by Jim Meyering.
21295
21296         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21297         * build-aux/bootstrap (check_versions): When no specific version
21298         is required, merely check that the app produces an exit status
21299         that indicates its existence.
21300
21301         maint.mk: drop redundant check
21302         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21303         the same but better.
21304
21305 2011-05-11  Bruno Haible  <bruno@clisp.org>
21306
21307         fclose: Fix possible link error.
21308         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21309         unregister_shadow_fd. Improve comments.
21310         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21311         Eric Blake.
21312
21313 2011-05-11  Jim Meyering  <meyering@redhat.com>
21314
21315         maint.mk: improve "can not" detection and generalize rule name
21316         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21317         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21318         Use the same technique as in sc_prohibit_doubled_word, so that
21319         we recognize "can not" also when the words are separated by a newline.
21320         Suggested by Eric Blake.
21321         (perl_filename_lineno_text_): Define.  Factored out of...
21322         (prohibit_doubled_word_): ...here.  Use the new definition.
21323         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21324         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21325         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21326
21327 2011-05-10  Eric Blake  <eblake@redhat.com>
21328
21329         fclose: avoid double close race when possible
21330         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21331         all but WINDOWS_SOCKETS.
21332
21333 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21334
21335         openat: correct new comment
21336         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21337
21338 2011-05-10  Jim Meyering  <meyering@redhat.com>
21339
21340         openat: add comments
21341         * lib/openat-proc.c (openat_proc_name): Add comments,
21342         mostly from Eric Blake.
21343
21344 2011-05-09  Eric Blake  <eblake@redhat.com>
21345
21346         openat: reduce syscalls in first probe of /proc
21347         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21348         be a directory.  Simplify the probe for .. bugs.
21349         * modules/openat (Depends-on): Drop same-inode.
21350         Reported by Bastien ROUCARIES.
21351
21352 2011-05-09  Jim Meyering  <meyering@redhat.com>
21353
21354         maint.mk: change semantics/name of tight_scope variables
21355         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21356         Rename variables to align with semantics that make them more useful.
21357
21358         maint.mk: tweak new rule's name not to impinge
21359         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21360         (sc_tight_scope): Use new rule name rather than $@-0.
21361
21362         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21363         * top/maint.mk (sc_tight_scope): New rule.
21364         (sc_tight_scope-0): New rule, ifdef'd out.
21365         (_gl_TS_dir): Default.
21366         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21367         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21368
21369 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21370
21371         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21372         Haible <bruno@clisp.org>.
21373
21374 2011-05-08  Bruno Haible  <bruno@clisp.org>
21375
21376         Comments.
21377         * m4/isnanf.m4: Add comment.
21378         * m4/isnanl.m4: Likewise.
21379
21380 2011-05-08  Bruno Haible  <bruno@clisp.org>
21381
21382         glob: Remove obsolete macro.
21383         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21384
21385 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21386
21387         intprops: Sun C 5.11 supports __typeof__
21388         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21389         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21390         which is new.
21391         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21392
21393         intprops: switch to usual gnulib indenting and naming
21394         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21395         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21396
21397         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21398
21399 2011-05-08  Jim Meyering  <meyering@redhat.com>
21400
21401         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21402         * top/maint.mk (release-prep): Use make's --no-print-directory
21403         option when generating the announcement.  This eliminates the
21404         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21405         generated announcement template.
21406
21407 2011-05-08  Bruno Haible  <bruno@clisp.org>
21408
21409         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21410         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21411         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21412
21413 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21414
21415         ignore-value, verify: Omit include files from lib_SOURCES.
21416         * modules/ignore-value, modules/verify (Makefile.am):
21417         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21418         that leads Automake to duplicate use of am__objects_... variables
21419         in Makefile.in.  See
21420         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21421
21422 2011-05-07  Bruno Haible  <bruno@clisp.org>
21423
21424         fclose: Simplify autoconf macro.
21425         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21426         defined.
21427
21428 2011-05-07  Bruno Haible  <bruno@clisp.org>
21429
21430         canonicalize-lgpl: Fix autoconf macro ordering bug.
21431         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21432         gl_STDLIB_H_DEFAULTS.
21433
21434 2011-05-06  Eric Blake  <eblake@redhat.com>
21435
21436         maintainer-makefile: make sc_po_check easier to tune
21437         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21438         to probe for strings, such as an alternate location for gnulib.
21439
21440         fclose: guarantee behavior on seekable stdin
21441         * modules/fclose (Depends-on): Add fflush.
21442         * doc/posix-functions/fclose.texi (fclose): Document this.
21443         * tests/test-fclose.c (main): Make test for this unconditional.
21444
21445 2011-05-06  Bruno Haible  <bruno@clisp.org>
21446
21447         fflush, fpurge: Relicense under LGPLv2+.
21448         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21449         * modules/fpurge (License): Likewise.
21450         With permission from Eric Blake and Jim Meyering.
21451         Suggested by Eric Blake.
21452
21453 2011-05-06  Karl Berry  <karl@gnu.org>
21454
21455         * MODULES.html.sh (func_all_modules): remove exit.
21456
21457 2011-05-06  Jim Meyering  <meyering@redhat.com>
21458
21459         maint.mk: use info-gnu@ as the default only for a stable release
21460         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21461         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21462         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21463         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21464
21465 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21466
21467         assert-h: new module, which supports C1X-style static_assert
21468         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21469         * lib/verify.h: Revamp so that this can be copied into assert.h,
21470         while retaining the ability to use it standalone as before.
21471         Rename private identifiers so as not to encroach on the
21472         standard C namespace, since this is now used by assert.h.
21473         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21474         the old verify_true.
21475         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21476         the old verify_true.  Use _GL_VERIFY_TYPE.
21477         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21478         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21479         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21480         defined when this file is copied into the replacement assert.h.
21481         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21482         and _Static_assert is not built in.
21483         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21484         defined, and use the new macros mentioned above.
21485         * doc/posix-headers/assert.texi: Document this.
21486
21487 2011-05-05  Bruno Haible  <bruno@clisp.org>
21488
21489         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21490         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21491         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21492         gl_REPLACE_FCLOSE here.
21493         * modules/fflush (Depends-on): Remove fclose.
21494         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21495         combination with module 'fclose'.
21496
21497 2011-05-05  Bruno Haible  <bruno@clisp.org>
21498
21499         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21500         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21501         gl_FUNC_FFLUSH.
21502         (gl_FUNC_FFLUSH): Use it.
21503         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21504         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21505         gl_REPLACE_FSEEKO here.
21506
21507 2011-05-05  Bruno Haible  <bruno@clisp.org>
21508
21509         tzset: Relicense under LGPL.
21510         * modules/tzset (License): Change to LGPL.
21511         No agreement needed; it's a no-op.
21512
21513         strtoimax, strtoumax: Relicense under LGPL.
21514         * modules/strtoimax (License): Change to LGPL.
21515         * modules/strtoumax (License): Likewise.
21516         With permission from Jim Meyering, Paul Eggert:
21517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21519
21520         getgroups: Relicense under LGPL.
21521         * modules/getgroups (License): Change to LGPL.
21522         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21526
21527         nanosleep: Relicense under LGPL.
21528         * modules/nanosleep (License): Change to LGPL.
21529         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21530         Haible:
21531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21535
21536         futimens: Relicense under LGPL.
21537         * modules/futimens (License): Change to LGPL.
21538         With permission from Eric Blake:
21539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21540
21541         fflush: Relicense under LGPL.
21542         * modules/fflush (License): Change to LGPL.
21543         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21547
21548         tmpfile: Relicense under LGPL.
21549         * modules/tmpfile (License): Change to LGPL.
21550         With permission from Ben Pfaff:
21551         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21552
21553         isfinite: Relicense under LGPL.
21554         * modules/isfinite (License): Change to LGPL.
21555         With permission from Ben Pfaff, Bruno Haible:
21556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21558
21559         acosl..tanl: Relicense under LGPL.
21560         * modules/acosl (License): Change to LGPL.
21561         * modules/asinl (License): Likewise.
21562         * modules/atanl (License): Likewise.
21563         * modules/cosl (License): Likewise.
21564         * modules/expl (License): Likewise.
21565         * modules/logl (License): Likewise.
21566         * modules/sinl (License): Likewise.
21567         * modules/sqrtl (License): Likewise.
21568         * modules/tanl (License): Likewise.
21569         Source code originally from glibc and Paolo Bonzini. Agreements:
21570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21572
21573 2011-05-05  Bruno Haible  <bruno@clisp.org>
21574
21575         signal: Define sighandler_t.
21576         * lib/signal.in.h (sighandler_t): New type.
21577         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21578         whether sighandler_t is defined.
21579         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21580         * modules/signal (Depends-on): Add extensions.
21581         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21582         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21583         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21584
21585 2011-05-05  Eric Blake  <eblake@redhat.com>
21586
21587         maint: remove useless REPLACE_*_H macros
21588         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21589         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21590         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21591         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21592         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21593         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21594         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21595         * m4/btowc.m4: Update callers.
21596         * m4/dirfd.m4: Likewise.
21597         * m4/duplocale.m4: Likewise.
21598         * m4/fchdir.m4: Likewise.
21599         * m4/fdopendir.m4: Likewise.
21600         * m4/inet_ntop.m4: Likewise.
21601         * m4/inet_pton.m4: Likewise.
21602         * m4/ioctl.m4: Likewise.
21603         * m4/mbrlen.m4: Likewise.
21604         * m4/mbrtowc.m4: Likewise.
21605         * m4/mbsinit.m4: Likewise.
21606         * m4/mbsnrtowcs.m4: Likewise.
21607         * m4/mbsrtowcs.m4: Likewise.
21608         * m4/poll.m4: Likewise.
21609         * m4/setlocale.m4: Likewise.
21610         * m4/wcrtomb.m4: Likewise.
21611         * m4/wcsnrtombs.m4: Likewise.
21612         * m4/wcsrtombs.m4: Likewise.
21613         * m4/wctob.m4: Likewise.
21614         * m4/wcwidth.m4: Likewise.
21615         * modules/posix_spawn: Likewise.
21616         * modules/posix_spawn_file_actions_addclose: Likewise.
21617         * modules/posix_spawn_file_actions_adddup2: Likewise.
21618         * modules/posix_spawn_file_actions_addopen: Likewise.
21619         * modules/posix_spawn_file_actions_destroy: Likewise.
21620         * modules/posix_spawn_file_actions_init: Likewise.
21621         * modules/posix_spawnattr_destroy: Likewise.
21622         * modules/posix_spawnattr_getflags: Likewise.
21623         * modules/posix_spawnattr_getpgroup: Likewise.
21624         * modules/posix_spawnattr_getschedparam: Likewise.
21625         * modules/posix_spawnattr_getschedpolicy: Likewise.
21626         * modules/posix_spawnattr_getsigdefault: Likewise.
21627         * modules/posix_spawnattr_getsigmask: Likewise.
21628         * modules/posix_spawnattr_init: Likewise.
21629         * modules/posix_spawnattr_setflags: Likewise.
21630         * modules/posix_spawnattr_setpgroup: Likewise.
21631         * modules/posix_spawnattr_setschedparam: Likewise.
21632         * modules/posix_spawnattr_setschedpolicy: Likewise.
21633         * modules/posix_spawnattr_setsigdefault: Likewise.
21634         * modules/posix_spawnattr_setsigmask: Likewise.
21635         * modules/posix_spawnp: Likewise.
21636
21637 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21638
21639         Add option to do-release-commit-and-tag to specify branch.
21640         * build-aux/do-release-commit-and-tag: Add --branch.
21641
21642 2011-05-03  Bruno Haible  <bruno@clisp.org>
21643
21644         Avoid unnecessary compilation units, through conditional dependencies.
21645         * modules/accept (Depends-on): Add conditions to the dependencies.
21646         * modules/acosl (Depends-on): Likewise.
21647         * modules/argz (Depends-on): Likewise.
21648         * modules/asinl (Depends-on): Likewise.
21649         * modules/atanl (Depends-on): Likewise.
21650         * modules/atoll (Depends-on): Likewise.
21651         * modules/bind (Depends-on): Likewise.
21652         * modules/btowc (Depends-on): Likewise.
21653         * modules/canonicalize-lgpl (Depends-on): Likewise.
21654         * modules/ceil (Depends-on): Likewise.
21655         * modules/ceilf (Depends-on): Likewise.
21656         * modules/ceill (Depends-on): Likewise.
21657         * modules/chdir-long (Depends-on): Likewise.
21658         * modules/chown (Depends-on): Likewise.
21659         * modules/close (Depends-on): Likewise.
21660         * modules/connect (Depends-on): Likewise.
21661         * modules/cosl (Depends-on): Likewise.
21662         * modules/dirfd (Depends-on): Likewise.
21663         * modules/dprintf (Depends-on): Likewise.
21664         * modules/dprintf-posix (Depends-on): Likewise.
21665         * modules/error (Depends-on): Likewise.
21666         * modules/euidaccess (Depends-on): Likewise.
21667         * modules/expl (Depends-on): Likewise.
21668         * modules/faccessat (Depends-on): Likewise.
21669         * modules/fchdir (Depends-on): Likewise.
21670         * modules/fclose (Depends-on): Likewise.
21671         * modules/fcntl (Depends-on): Likewise.
21672         * modules/fdopendir (Depends-on): Likewise.
21673         * modules/fflush (Depends-on): Likewise.
21674         * modules/floor (Depends-on): Likewise.
21675         * modules/floorf (Depends-on): Likewise.
21676         * modules/floorl (Depends-on): Likewise.
21677         * modules/fnmatch (Depends-on): Likewise.
21678         * modules/fopen (Depends-on): Likewise.
21679         * modules/fprintf-posix (Depends-on): Likewise.
21680         * modules/frexp (Depends-on): Likewise.
21681         * modules/frexp-nolibm (Depends-on): Likewise.
21682         * modules/frexpl (Depends-on): Likewise.
21683         * modules/frexpl-nolibm (Depends-on): Likewise.
21684         * modules/fseek (Depends-on): Likewise.
21685         * modules/fsusage (Depends-on): Likewise.
21686         * modules/ftell (Depends-on): Likewise.
21687         * modules/ftello (Depends-on): Likewise.
21688         * modules/futimens (Depends-on): Likewise.
21689         * modules/getcwd (Depends-on): Likewise.
21690         * modules/getcwd-lgpl (Depends-on): Likewise.
21691         * modules/getdelim (Depends-on): Likewise.
21692         * modules/getdomainname (Depends-on): Likewise.
21693         * modules/getgroups (Depends-on): Likewise.
21694         * modules/gethostname (Depends-on): Likewise.
21695         * modules/getline (Depends-on): Likewise.
21696         * modules/getlogin_r (Depends-on): Likewise.
21697         * modules/getopt-posix (Depends-on): Likewise.
21698         * modules/getpeername (Depends-on): Likewise.
21699         * modules/getsockname (Depends-on): Likewise.
21700         * modules/getsockopt (Depends-on): Likewise.
21701         * modules/getsubopt (Depends-on): Likewise.
21702         * modules/getusershell (Depends-on): Likewise.
21703         * modules/glob (Depends-on): Likewise.
21704         * modules/grantpt (Depends-on): Likewise.
21705         * modules/iconv_open (Depends-on): Likewise.
21706         * modules/iconv_open-utf (Depends-on): Likewise.
21707         * modules/inet_ntop (Depends-on): Likewise.
21708         * modules/inet_pton (Depends-on): Likewise.
21709         * modules/ioctl (Depends-on): Likewise.
21710         * modules/isapipe (Depends-on): Likewise.
21711         * modules/isfinite (Depends-on): Likewise.
21712         * modules/isinf (Depends-on): Likewise.
21713         * modules/lchown (Depends-on): Likewise.
21714         * modules/ldexpl (Depends-on): Likewise.
21715         * modules/link (Depends-on): Likewise.
21716         * modules/linkat (Depends-on): Likewise.
21717         * modules/listen (Depends-on): Likewise.
21718         * modules/logl (Depends-on): Likewise.
21719         * modules/lstat (Depends-on): Likewise.
21720         * modules/mbrlen (Depends-on): Likewise.
21721         * modules/mbrtowc (Depends-on): Likewise.
21722         * modules/mbsinit (Depends-on): Likewise.
21723         * modules/mbsnrtowcs (Depends-on): Likewise.
21724         * modules/mbsrtowcs (Depends-on): Likewise.
21725         * modules/mbtowc (Depends-on): Likewise.
21726         * modules/memcmp (Depends-on): Likewise.
21727         * modules/mkdir (Depends-on): Likewise.
21728         * modules/mkdtemp (Depends-on): Likewise.
21729         * modules/mkfifo (Depends-on): Likewise.
21730         * modules/mkfifoat (Depends-on): Likewise.
21731         * modules/mknod (Depends-on): Likewise.
21732         * modules/mkostemp (Depends-on): Likewise.
21733         * modules/mkostemps (Depends-on): Likewise.
21734         * modules/mkstemp (Depends-on): Likewise.
21735         * modules/mkstemps (Depends-on): Likewise.
21736         * modules/mktime (Depends-on): Likewise.
21737         * modules/nanosleep (Depends-on): Likewise.
21738         * modules/open (Depends-on): Likewise.
21739         * modules/openat (Depends-on): Likewise.
21740         * modules/perror (Depends-on): Likewise.
21741         * modules/poll (Depends-on): Likewise.
21742         * modules/popen (Depends-on): Likewise.
21743         * modules/posix_spawn (Depends-on): Likewise.
21744         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21745         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21746         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21747         * modules/posix_spawnp (Depends-on): Likewise.
21748         * modules/pread (Depends-on): Likewise.
21749         * modules/printf-posix (Depends-on): Likewise.
21750         * modules/ptsname (Depends-on): Likewise.
21751         * modules/putenv (Depends-on): Likewise.
21752         * modules/pwrite (Depends-on): Likewise.
21753         * modules/readline (Depends-on): Likewise.
21754         * modules/readlink (Depends-on): Likewise.
21755         * modules/readlinkat (Depends-on): Likewise.
21756         * modules/recv (Depends-on): Likewise.
21757         * modules/recvfrom (Depends-on): Likewise.
21758         * modules/regex (Depends-on): Likewise.
21759         * modules/remove (Depends-on): Likewise.
21760         * modules/rename (Depends-on): Likewise.
21761         * modules/renameat (Depends-on): Likewise.
21762         * modules/rmdir (Depends-on): Likewise.
21763         * modules/round (Depends-on): Likewise.
21764         * modules/roundf (Depends-on): Likewise.
21765         * modules/roundl (Depends-on): Likewise.
21766         * modules/rpmatch (Depends-on): Likewise.
21767         * modules/select (Depends-on): Likewise.
21768         * modules/send (Depends-on): Likewise.
21769         * modules/sendto (Depends-on): Likewise.
21770         * modules/setenv (Depends-on): Likewise.
21771         * modules/setlocale (Depends-on): Likewise.
21772         * modules/setsockopt (Depends-on): Likewise.
21773         * modules/shutdown (Depends-on): Likewise.
21774         * modules/sigaction (Depends-on): Likewise.
21775         * modules/signbit (Depends-on): Likewise.
21776         * modules/sigprocmask (Depends-on): Likewise.
21777         * modules/sinl (Depends-on): Likewise.
21778         * modules/sleep (Depends-on): Likewise.
21779         * modules/snprintf (Depends-on): Likewise.
21780         * modules/snprintf-posix (Depends-on): Likewise.
21781         * modules/socket (Depends-on): Likewise.
21782         * modules/sprintf-posix (Depends-on): Likewise.
21783         * modules/sqrtl (Depends-on): Likewise.
21784         * modules/stat (Depends-on): Likewise.
21785         * modules/strchrnul (Depends-on): Likewise.
21786         * modules/strdup-posix (Depends-on): Likewise.
21787         * modules/strerror (Depends-on): Likewise.
21788         * modules/strerror_r-posix (Depends-on): Likewise.
21789         * modules/strndup (Depends-on): Likewise.
21790         * modules/strnlen (Depends-on): Likewise.
21791         * modules/strptime (Depends-on): Likewise.
21792         * modules/strsep (Depends-on): Likewise.
21793         * modules/strsignal (Depends-on): Likewise.
21794         * modules/strstr-simple (Depends-on): Likewise.
21795         * modules/strtod (Depends-on): Likewise.
21796         * modules/strtoimax (Depends-on): Likewise.
21797         * modules/strtok_r (Depends-on): Likewise.
21798         * modules/strtoumax (Depends-on): Likewise.
21799         * modules/symlink (Depends-on): Likewise.
21800         * modules/symlinkat (Depends-on): Likewise.
21801         * modules/tanl (Depends-on): Likewise.
21802         * modules/tcgetsid (Depends-on): Likewise.
21803         * modules/tmpfile (Depends-on): Likewise.
21804         * modules/trunc (Depends-on): Likewise.
21805         * modules/truncf (Depends-on): Likewise.
21806         * modules/truncl (Depends-on): Likewise.
21807         * modules/uname (Depends-on): Likewise.
21808         * modules/unlink (Depends-on): Likewise.
21809         * modules/unlockpt (Depends-on): Likewise.
21810         * modules/unsetenv (Depends-on): Likewise.
21811         * modules/usleep (Depends-on): Likewise.
21812         * modules/utimensat (Depends-on): Likewise.
21813         * modules/vasprintf (Depends-on): Likewise.
21814         * modules/vdprintf (Depends-on): Likewise.
21815         * modules/vdprintf-posix (Depends-on): Likewise.
21816         * modules/vfprintf-posix (Depends-on): Likewise.
21817         * modules/vprintf-posix (Depends-on): Likewise.
21818         * modules/vsnprintf (Depends-on): Likewise.
21819         * modules/vsnprintf-posix (Depends-on): Likewise.
21820         * modules/vsprintf-posix (Depends-on): Likewise.
21821         * modules/wcrtomb (Depends-on): Likewise.
21822         * modules/wcscasecmp (Depends-on): Likewise.
21823         * modules/wcscspn (Depends-on): Likewise.
21824         * modules/wcsdup (Depends-on): Likewise.
21825         * modules/wcsncasecmp (Depends-on): Likewise.
21826         * modules/wcsnrtombs (Depends-on): Likewise.
21827         * modules/wcspbrk (Depends-on): Likewise.
21828         * modules/wcsrtombs (Depends-on): Likewise.
21829         * modules/wcsspn (Depends-on): Likewise.
21830         * modules/wcsstr (Depends-on): Likewise.
21831         * modules/wcstok (Depends-on): Likewise.
21832         * modules/wcswidth (Depends-on): Likewise.
21833         * modules/wctob (Depends-on): Likewise.
21834         * modules/wctomb (Depends-on): Likewise.
21835         * modules/wctype (Depends-on): Likewise.
21836         * modules/wcwidth (Depends-on): Likewise.
21837         * modules/write (Depends-on): Likewise.
21838
21839 2011-05-03  Bruno Haible  <bruno@clisp.org>
21840
21841         Support for conditional dependencies.
21842         * doc/gnulib.texi (Module description): Document the syntax of
21843         conditional dependencies.
21844         * gnulib-tool: New option --conditional-dependencies.
21845         (func_usage): Document it.
21846         (cond_dependencies): New variable.
21847         (func_get_automake_snippet_conditional,
21848         func_get_automake_snippet_unconditional): New functions, extracted from
21849         func_get_automake_snippet.
21850         (func_get_automake_snippet): Use them.
21851         (sed_first_32_chars): New variable.
21852         (func_module_shellfunc_name): New function.
21853         (func_module_shellvar_name): New function.
21854         (func_module_conditional_name): New function.
21855         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21856         func_cond_module_condition): New functions.
21857         (func_modules_transitive_closure): Add support for conditional
21858         dependencies.
21859         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21860         conditional automake snippet in an automake conditional.
21861         (func_emit_autoconf_snippets): Emit shell functions that contain the
21862         code for conditional modules.
21863         (func_import, func_create_testdir): Update specification.
21864
21865 2011-05-03  Eric Blake  <eblake@redhat.com>
21866
21867         test-getaddrinfo: report error information
21868         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21869
21870 2011-05-03  Jim Meyering  <meyering@redhat.com>
21871
21872         bootstrap: avoid build failure when $GZIP is set
21873         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21874         program name.  If defined at all, it is supposed to list gzip options.
21875         Reported by Alan Curry in http://debbugs.gnu.org/8609
21876
21877 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21878
21879         readme-release: new module with release instructions
21880         * modules/readme-release: New module.
21881         * top/README-release: New file, from coreutils, grep, diffutils.
21882         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21883
21884 2011-05-02  Eric Blake  <eblake@redhat.com>
21885
21886         fflush: also replace fclose when fixing fflush
21887         * modules/fflush (Depends-on): Add fclose.
21888         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21889         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21890         memstreams with no backing fd.
21891         * doc/posix-functions/fclose.texi (fclose): Document the use of
21892         fflush module to fix the bug.
21893         * tests/test-fclose.c (main): Relax test when fclose is used in
21894         isolation.
21895
21896         fclose: add some tests
21897         * modules/fclose-tests: New test module.
21898         * tests/test-fclose.c: New file.
21899         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21900
21901         fclose: reduced dependencies
21902         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21903         simpler lseek.
21904         * lib/fclose.c (rpl_fclose): Likewise.
21905         Reported by Simon Josefsson.
21906
21907         exit: drop remaining clients
21908         * modules/argmatch (Depends-on): Replace exit with stdlib.
21909         * modules/copy-file (Depends-on): Likewise.
21910         * modules/execute (Depends-on): Likewise.
21911         * modules/exitfail (Depends-on): Likewise.
21912         * modules/obstack (Depends-on): Likewise.
21913         * modules/pagealign_alloc (Depends-on): Likewise.
21914         * modules/pipe-filter-gi (Depends-on): Likewise.
21915         * modules/pipe-filter-ii (Depends-on): Likewise.
21916         * modules/savewd (Depends-on): Likewise.
21917         * modules/spawn-pipe (Depends-on): Likewise.
21918         * modules/wait-process (Depends-on): Likewise.
21919         * modules/xsetenv (Depends-on): Likewise.
21920         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21921         * modules/git-merge-changelog (Depends-on): Likewise.
21922         * modules/long-options (Depends-on): Likewise.
21923         * modules/pt_chown (Depends-on): Likewise.
21924         * modules/sysexits (Depends-on): Likewise.
21925
21926         freading: relax license from LGPLv3+ to LGPLv2+
21927         * modules/freading (License): Relax LGPL version.
21928
21929 2011-05-02  Bruno Haible  <bruno@clisp.org>
21930
21931         fchdir: Remove unused dependencies.
21932         * modules/fchdir (Depends-on): Remove include_next.
21933
21934 2011-05-02  Bruno Haible  <bruno@clisp.org>
21935
21936         gnulib-tool: Refactor.
21937         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21938         from func_emit_autoconf_snippets.
21939         (func_emit_autoconf_snippets): Use it.
21940
21941 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21942
21943         * NEWS: Document removal of 'exit'.
21944         * modules/exit: Remove file.
21945
21946 2011-05-01  Bruno Haible  <bruno@clisp.org>
21947
21948         Update DEPENDENCIES.
21949         * DEPENDENCIES (gettext): Recommend the newest release.
21950         Reported by Simon Josefsson.
21951
21952 2011-05-01  Bruno Haible  <bruno@clisp.org>
21953
21954         gnulib-tool: Reduce code duplication.
21955         * gnulib-tool (func_emit_autoconf_snippets): New function.
21956         (func_import, func_create_testdir): Use it.
21957
21958 2011-04-30  Eric Blake  <eblake@redhat.com>
21959
21960         fclose: don't fail on non-seekable input stream
21961         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21962         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21963         since fflush is allowed to fail in that case.
21964
21965 2011-04-30  Bruno Haible  <bruno@clisp.org>
21966
21967         dup3: cleanup
21968         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21969
21970 2011-04-30  Bruno Haible  <bruno@clisp.org>
21971
21972         netdb: Make it work in C++ mode.
21973         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21974         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21975         module.
21976         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21977         gl_MODULE_INDICATOR_FOR_TESTS.
21978         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21979         * modules/netdb-c++-tests: New file.
21980         * tests/test-netdb-c++.cc: New file.
21981
21982 2011-04-30  Bruno Haible  <bruno@clisp.org>
21983
21984         New modules 'vfscanf', 'vscanf'.
21985         * modules/vfscanf: New file.
21986         * modules/vscanf: New file.
21987         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21988         here.
21989         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21990         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21991
21992 2011-04-30  Bruno Haible  <bruno@clisp.org>
21993
21994         passfd: Add comments.
21995         * lib/passfd.c: Add comments about platforms.
21996
21997 2011-04-30  Bruno Haible  <bruno@clisp.org>
21998
21999         sys_uio: Make <sys/uio.h> self-contained.
22000         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22001         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22002
22003 2011-04-30  Bruno Haible  <bruno@clisp.org>
22004
22005         sys_socket: Ensure 'struct iovec' definition.
22006         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22007         <sys/socket.h>.
22008         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22009
22010 2011-04-30  Bruno Haible  <bruno@clisp.org>
22011
22012         sys_uio: Protect definition of 'struct iovec'.
22013         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22014         it as a C struct.
22015
22016 2011-04-30  Bruno Haible  <bruno@clisp.org>
22017
22018         manywarnings: fix indentation
22019         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22020
22021 2011-04-30  Pádraig Brady <P@draigBrady.com>
22022
22023         manywarnings: add -Wno-missing-field-initializers if needed.
22024         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22025         option if it's needed to allow initialization with { 0, }
22026
22027 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22028
22029         announce-gen: cosmetic improvement
22030         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22031
22032 2011-04-29  Jim Meyering  <meyering@redhat.com>
22033
22034         vc-list-files: indent with spaces, not TABs
22035         * build-aux/vc-list-files: Convert leading TABs to spaces,
22036         to match the style of most other files in gnulib.
22037
22038         announce-gen: indent with spaces, not TABs
22039         * build-aux/announce-gen: Convert all TABs to spaces, to match
22040         the style of most other files in gnulib.
22041
22042 2011-04-29  Eric Blake  <eblake@redhat.com>
22043
22044         quotearg: avoid uninitialized variable use
22045         * lib/quotearg.c (quoting_options_from_style): Initialize
22046         remaining fields, and ensure that custom styles are only used via
22047         quoting_options rather than quoting_style.
22048
22049 2011-04-29  Jim Meyering  <meyering@redhat.com>
22050
22051         maint.mk: remove unused VC-tag variable
22052         * top/maint.mk (VC-tag): Remove unused variable.
22053
22054 2011-04-29  Bruno Haible  <bruno@clisp.org>
22055
22056         netdb: fix gai_strerror replacements
22057         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22058         * modules/netdb: Substitute it.
22059
22060 2011-04-29  Jim Meyering  <meyering@redhat.com>
22061
22062         test-getcwd.c: avoid new set-but-not-used warning
22063         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22064         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22065         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22066         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22067
22068         test-hash.c: avoid a new shadowing warning
22069         * tests/test-hash.c (main): Don't shadow "dup".
22070
22071 2011-04-28  Eric Blake  <eblake@redhat.com>
22072
22073         getaddrinfo: fix gai_strerror signature
22074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22075         and work around mingw with UNICODE defined.
22076         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22077         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22078         * modules/netdb (Makefile.am): Substitute it.
22079         * lib/netdb.in.h (gai_strerror): Declare replacement.
22080         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22081         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22082         the fix.
22083
22084         getsockopt: avoid compiler warning
22085         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22086         Reported by Matthias Bolte.
22087
22088         tests: drop unused link dependency
22089         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22090         * modules/dirent-safer-tests (Makefile.am): Likewise.
22091         * modules/fdopendir-tests (Makefile.am): Likewise.
22092         * modules/mkfifoat-tests (Makefile.am): Likewise.
22093         * modules/openat-safer-tests (Makefile.am): Likewise.
22094         * modules/openat-tests (Makefile.am): Likewise.
22095         * modules/readlinkat-tests (Makefile.am): Likewise.
22096         * modules/symlinkat-tests (Makefile.am): Likewise.
22097         * modules/linkat-tests (Makefile.am): Likewise.
22098         (Depends-on): Switch to filenamecat-lgpl.
22099         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22100         LIBINTL.
22101         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22102         * tests/test-linkat.c (main): Don't require xalloc.
22103
22104         hash, mgetgroups: drop xalloc dependency
22105         * lib/hash.c (includes): Adjust includes.
22106         * lib/mgetgroups.c (includes): Likewise.
22107         (xgetgroups): Move...
22108         * lib/xgetgroups.c: ...to new file.
22109         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22110         * modules/xgetgroups: New file, split from...
22111         * modules/mgetgroups: ...here.
22112         (Depends-on): Add xalloc-oversized.
22113         * modules/hash (Depends-on): Likewise.
22114         * modules/hash-tests (Depends-on): Drop xalloc.
22115         (test_hash_LDADD): Drop unused library.
22116         * tests/test-hash.c (main): Break xalloc dependency.
22117         (includes): Drop unused include.
22118
22119         xalloc-oversized: new module
22120         * modules/xalloc-oversized: New module.
22121         * modules/xalloc (Depends-on): Add it.
22122         * lib/xalloc.h (xalloc_oversized): Move...
22123         * lib/xalloc-oversized.h: ...into new file.
22124
22125         utimecmp: drop dependency on xmalloc
22126         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22127         due to memory pressure.
22128         * modules/utimecmp (Depends-on): Drop xalloc.
22129
22130 2011-04-27  Eric Blake  <eblake@redhat.com>
22131
22132         getcwd: fix mingw bugs
22133         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22134         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22135         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22136
22137 2011-04-27  Bruno Haible  <bruno@clisp.org>
22138
22139         mkstemps: Ensure declaration on MacOS X 10.5.
22140         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22141         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22142         MacOS X.
22143
22144 2011-04-27  Bruno Haible  <bruno@clisp.org>
22145
22146         mkstemp: More documentation.
22147         * doc/posix-functions/mkstemp.texi: Document header file problem on
22148         MacOS X.
22149
22150 2011-04-27  Bruno Haible  <bruno@clisp.org>
22151
22152         mkstemp: Tweak configure message when cross-compiling.
22153         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22154         result as a guess.
22155
22156 2011-04-27  Bruno Haible  <bruno@clisp.org>
22157
22158         clean-temp: Clarify what it does.
22159         * lib/clean-temp.h: Add more comments.
22160         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22161         module.
22162         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22163         * doc/glibc-functions/mkstemps.texi: Likewise.
22164         * doc/glibc-functions/mkostemps.texi: Likewise.
22165
22166 2011-04-27  Eric Blake  <eblake@redhat.com>
22167
22168         fchdir: avoid extra chdir and fix test
22169         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22170         getcwd-lgpl.
22171         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22172         have to be canonical.
22173         (canonicalize_file_name): Drop unused macro.
22174         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22175
22176         filenamecat-lgpl: fix licence
22177         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22178         when it was first created.
22179
22180         linkat, renameat: add missing dependency
22181         * modules/linkat (Depends-on): Require getcwd-lgpl.
22182         * modules/renameat (Depends-on): Likewise.
22183
22184         tests: reduce dependencies
22185         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22186         * tests/test-renameat.c (main): Likewise.
22187         * modules/linkat-tests (Depends-on): Relax dependency.
22188         * modules/renameat-tests (Depends-on): Likewise.
22189         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22190         dependency explicit.
22191
22192         save-cwd: reduce default dependency
22193         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22194         * lib/save-cwd.c: Update comments.
22195         * NEWS: Document the semantic change.
22196
22197         getcwd: enhance tests
22198         * tests/test-getcwd-lgpl.c: New file, taken from...
22199         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22200         repeat long path stress tests from m4 probe.
22201         * modules/getcwd-lgpl-tests: New module.
22202         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22203         * m4/getcwd-abort-bug.m4: Update comment.
22204         * m4/getcwd-path-max.m4: Likewise.
22205
22206         getcwd-lgpl: new module
22207         * modules/getcwd-lgpl: New module.
22208         * lib/getcwd-lgpl.c: New file.
22209         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22210         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22211         * modules/getcwd (configure.ac): Set C witness.
22212         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22213
22214         getcwd: tweak comments
22215         * m4/getcwd-abort-bug.m4: Fix comments.
22216         * m4/getcwd-path-max.m4: Likewise.
22217         * m4/getcwd.m4: Likewise.
22218
22219 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22220         and Eric Blake  <eblake@redhat.com>
22221
22222         mkstemp: replace if system version uses wrong permissions
22223         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22224         read/write mode bits set in file created by mkstemp.
22225         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22226
22227 2011-04-27  Eric Blake  <eblake@redhat.com>
22228
22229         passfd: avoid compiler warning
22230         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22231         Reported by Laine Stump.
22232
22233 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22234
22235         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22236         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22237
22238 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22239         and Eric Blake  <eblake@redhat.com>
22240
22241         mkstemp: mention clean-temp module
22242         * lib/mkstemp.c: Add comment.
22243         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22244
22245 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22246
22247         inttypes: also provide default values for 32-bit tests
22248         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22249         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22250
22251 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22252
22253         strtoumax: remove dependency on strtoimax
22254         This is like the strtoull change of yesterday.
22255         * modules/strtoumax (Files): Add lib/strtoimax.c.
22256         (Depends-on): Remove strtoimax and add verify.
22257
22258         inttypes-incomplete: new module
22259         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22260         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22261         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22262         of gl_INTTYPES_H.
22263         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22264         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22265         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22266         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22267         * modules/strtoumax, modules/xstrtol (Depends-on):
22268         Depend on inttypes-incomplete, not inttypes.
22269         * modules/inttypes-incomplete: New module, containing the contents
22270         of the old modules/inttypes module, except that the Files: section
22271         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22272         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22273         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22274         (Depends-on): Depend only on inttypes-incomplete.
22275         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22276
22277         inttypes: omit now-redundant strtoimax and strtoumax work
22278         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22279         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22280
22281         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22282         This supports apps that need pointers to strtoimax and strtoumax,
22283         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22284         nonexistent functions.  See
22285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22286         et seq.
22287         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22288         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22289         a macro.
22290         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22291
22292 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22293
22294         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22295
22296 2011-04-25  Bruno Haible  <bruno@clisp.org>
22297
22298         strtol, strtoul: Mark modules as obsolete.
22299         * modules/strtol (Status, Notice): New sections.
22300         * modules/strtoul (Status, Notice): New sections.
22301
22302 2011-04-25  Bruno Haible  <bruno@clisp.org>
22303
22304         strtod: Remove check for strtod, unless supporting old platforms.
22305         * modules/strtod-obsolete: New file.
22306         * m4/strtod-obsolete.m4: New file.
22307         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22308         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22309         * modules/strtod (Depends-on): Add strtod-obsolete.
22310         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22311
22312 2011-04-25  Bruno Haible  <bruno@clisp.org>
22313
22314         strcase: Make module obsolete.
22315         * modules/strcase (Status, Notice): New sections.
22316
22317 2011-04-25  Bruno Haible  <bruno@clisp.org>
22318
22319         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22320         * modules/dup2-obsolete: New file.
22321         * m4/dup2-obsolete.m4: New file.
22322         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22323         gl_FUNC_DUP2_OBSOLETE is not also defined.
22324         * modules/dup2 (Depends-on): Add dup2-obsolete.
22325         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22326
22327 2011-04-25  Bruno Haible  <bruno@clisp.org>
22328
22329         strnlen: Avoid memchr related link error on old obsolete platforms.
22330         * modules/memchr-obsolete: New file.
22331         * m4/memchr-obsolete.m4: New file.
22332         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22333         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22334         * modules/memchr (Depends-on): Add memchr-obsolete.
22335         * modules/strnlen (Depends-on): Likewise.
22336         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22337
22338 2011-04-25  Jim Meyering  <meyering@redhat.com>
22339
22340         maint.mk: makefile_at_at_check extend and clean up
22341         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22342         in addition to */Makefile.am.
22343         Exempt legitimate uses of @VAR@ notation, e.g.,
22344         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22345         Remove obsolete coreutils-specific comment.
22346         Prompted by discussion here:
22347         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22348
22349 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22350
22351         strtoul: remove dependency on strtol
22352         This is so that 'configure' need not check for strtol merely because
22353         the application needs strtoul.
22354         * modules/strtoul (Files): Add lib/strtol.c.
22355         (Depends-on): Remove strtol.
22356
22357         strtoull: remove dependency on strtoul
22358         This is like the strtoll change.
22359         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22360         (Depends-on): Remove strtoul.
22361
22362         strtoll: remove dependency on strtol
22363         This is so that 'configure' need not check for strtol merely because
22364         the application needs strtoll.
22365         * modules/strtoll (Files): Add lib/strtol.c.
22366         (Depends-on): Remove strtol.
22367
22368 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22369
22370         inttypes: Move some configure check to module 'imaxdiv'.
22371         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22372         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22373         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22374
22375 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22376
22377         inttypes: Move some configure check to module 'imaxabs'.
22378         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22379         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22380         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22381
22382 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22383
22384         inttypes: Remove configure tests that are not needed since 2009-12-31.
22385         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22386         gl_cv_header_working_inttypes_h.
22387
22388 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22389
22390         * modules/strnlen (Depends-on): Remove memchr.
22391         The strnlen implementation doesn't need the memchr module's fixes; see
22392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22393
22394         strtol: remove dependency on wchar
22395         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22396         * modules/strtol (Depends-on): Remove wchar.
22397
22398 2011-04-21  Eric Blake  <eblake@redhat.com>
22399
22400         passfd: fix test regression on Linux
22401         * modules/passfd-tests (configure.ac): Correct socketpair check.
22402
22403         passfd: speed up configure and drop unused code
22404         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22405         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22406         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22407         Instead of probing at configure for unix_scm_rights_bsd44_way,
22408         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22409         check to a struct member probe.
22410         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22411         (sendfd, recvfd): Update preprocessor checks.
22412         * modules/passfd (Files): Reflect rename, and drop unused file.
22413         (Depends-on): Drop unused dependency.
22414
22415         passfd: allow compilation on mingw
22416         * modules/sys_socket (Depends-on): Add sys_uio.
22417         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22418         iovec and a minimal struct msghdr.
22419         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22420         * tests/test-sys_socket.c (main): Enhance test.
22421         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22422         guaranteed to provide what we need.
22423         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22424         * modules/passfd-tests (Depends-on): Add sys_wait.
22425         * tests/test-passfd.c (main): Skip test on mingw, for now.
22426         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22427         partial 'struct msghdr' implementation.
22428
22429         sys_uio: new module
22430         * modules/sys_uio: New module.
22431         * modules/sys_uio-tests: Likewise.
22432         * lib/sys_uio.in.h: New file.
22433         * m4/sys_uio_h.m4: Likewise.
22434         * tests/test-sys_uio.c: Likewise.
22435         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22436         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22437
22438 2011-04-20  Jim Meyering  <meyering@redhat.com>
22439
22440         useless-if-before-free: avoid false-positive
22441         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22442         disjunct so that it too requires a terminating ";".  Without that,
22443         this script would identify as useless one statement from gcc that
22444         was not:
22445           if (aligned_ptr)
22446             free (((void **) aligned_ptr) [-1]);
22447
22448 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22449
22450         doc: update users.txt.
22451         * users.txt: Add barcode.
22452
22453 2011-04-19  Bruno Haible  <bruno@clisp.org>
22454
22455         ioctl: Remove link dependency on native Windows.
22456         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22457         (gl_close_fn, gl_ioctl_fn): New types.
22458         (struct fd_hook): Renamed from struct close_hook. Change type of
22459         private_close_fn field. Add private_ioctl_fn field.
22460         (close_hook_fn): Add parameter for primary close method.
22461         (execute_close_hooks, execute_all_close_hooks): Likewise.
22462         (ioctl_hook_fn): New type.
22463         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22464         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22465         argument.
22466         (unregister_fd_hook): Renamed from unregister_close_hook.
22467         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22468         Don't include <unistd.h>.
22469         (close): Remove undef.
22470         (anchor): Update.
22471         (execute_close_hooks): Add argument for primary close method.
22472         (execute_all_close_hooks): Likewise.
22473         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22474         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22475         argument. Allow each argument to be NULL.
22476         (unregister_fd_hook): Renamed from unregister_close_hook.
22477         * lib/close.c (rpl_close): Pass 'close' function pointer to
22478         execute_all_close_hooks.
22479         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22480         (primary_ioctl): New function.
22481         (ioctl): Don't call ioctlsocket here. Instead, call
22482         execute_all_ioctl_hooks.
22483         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22484         close method.
22485         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22486         (fd_sockets_hook): Renamed from close_sockets_hook.
22487         (gl_sockets_startup, gl_sockets_cleanup): Update.
22488         * modules/fd-hook: Renamed from modules/close-hook. Update.
22489         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22490         * modules/sockets (Depends-on): Likewise.
22491         * modules/ioctl (Depends-on): Add fd-hook.
22492         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22493         GNULIB_SOCKET.
22494
22495 2011-04-19  Bruno Haible  <bruno@clisp.org>
22496
22497         Move the support of O_NONBLOCK in open() to the 'open' module.
22498         * modules/nonblocking (Depends-on): Remove 'open'.
22499         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22500         gl_cv_have_open_O_NONBLOCK.
22501         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22502         O_NONBLOCK support.
22503         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22504
22505 2011-04-17  Bruno Haible  <bruno@clisp.org>
22506
22507         pipe2: Simplify code.
22508         * lib/pipe2.c (pipe2): Reduce code duplication.
22509
22510 2011-04-17  Bruno Haible  <bruno@clisp.org>
22511
22512         nonblocking: Add comment.
22513         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22514
22515 2011-04-17  Bruno Haible  <bruno@clisp.org>
22516
22517         nonblocking: Add tests for sockets.
22518         * tests/test-nonblocking-socket.sh: New file.
22519         * tests/test-nonblocking-socket-main.c: New file.
22520         * tests/test-nonblocking-socket-child.c: New file.
22521         * tests/test-nonblocking-socket.h: New file.
22522         * tests/socket-server.h: New file.
22523         * tests/socket-client.h: New file.
22524         * modules/nonblocking-socket-tests: New file.
22525         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22526
22527 2011-04-17  Bruno Haible  <bruno@clisp.org>
22528
22529         nonblocking: Add tests for pipes.
22530         * tests/test-nonblocking-pipe.sh: New file.
22531         * tests/test-nonblocking-pipe-main.c: New file.
22532         * tests/test-nonblocking-pipe-child.c: New file.
22533         * tests/test-nonblocking-pipe.h: New file.
22534         * tests/test-nonblocking-writer.h: New file.
22535         * tests/test-nonblocking-reader.h: New file.
22536         * tests/test-nonblocking-misc.h: New file.
22537         * modules/nonblocking-pipe-tests: New file.
22538         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22539
22540 2011-04-16  Bruno Haible  <bruno@clisp.org>
22541
22542         gettext: Clarify the needed programmer actions.
22543         * modules/gettext (Notice): New field.
22544         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22545
22546 2011-04-16  Bruno Haible  <bruno@clisp.org>
22547
22548         strchrnul: Tweak last commit.
22549         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22550         bug.
22551         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22552         as in _GL_FUNCDECL_SYS.
22553         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22554         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22555
22556 2011-04-15  Eric Blake  <eblake@redhat.com>
22557
22558         strchrnul: work around cygwin bug
22559         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22560         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22562         * modules/string (Makefile.am): Substitute it.
22563         * lib/string.in.h (strchrnul): Use it.
22564
22565 2011-04-15  Bruno Haible  <bruno@clisp.org>
22566
22567         Don't require lib/stdio-write.c when only module 'stdio' is used.
22568         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22569         invocation.
22570         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22571
22572 2011-04-14  Bruno Haible  <bruno@clisp.org>
22573
22574         Support non-blocking pipe I/O in read() on native Windows.
22575         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22576         (read): New declaration.
22577         * lib/read.c: New file.
22578         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22579         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22580         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22581         vscanf): New declarations.
22582         * lib/stdio-read.c: New file.
22583         * m4/read.m4: New file.
22584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22585         REPLACE_READ.
22586         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22587         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22588         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22589         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22590         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22591         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22592         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22593         * modules/read: New file.
22594         * modules/nonblocking (Files): Add lib/stdio-read.c.
22595         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22596         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22597         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22598         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22599         * modules/pread (Depends-on): Add read.
22600         * modules/safe-read (Depends-on): Likewise.
22601         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22602         gets, scanf, vfscanf, vscanf): Verify signatures.
22603         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22604         problem with non-blocking pipes.
22605         * doc/posix-functions/fgetc.texi: Likewise.
22606         * doc/posix-functions/fgets.texi: Likewise.
22607         * doc/posix-functions/fread.texi: Likewise.
22608         * doc/posix-functions/fscanf.texi: Likewise.
22609         * doc/posix-functions/getc.texi: Likewise.
22610         * doc/posix-functions/getchar.texi: Likewise.
22611         * doc/posix-functions/gets.texi: Likewise.
22612         * doc/posix-functions/scanf.texi: Likewise.
22613         * doc/posix-functions/vfscanf.texi: Likewise.
22614         * doc/posix-functions/vscanf.texi: Likewise.
22615
22616 2011-04-14  Bruno Haible  <bruno@clisp.org>
22617
22618         Support non-blocking pipe I/O in write() on native Windows.
22619         * lib/write.c (rpl_write): Split a write request that failed merely
22620         because the byte count was larger than the pipe buffer's size.
22621         * doc/posix-functions/write.texi: Mention the problem with large byte
22622         counts.
22623
22624 2011-04-14  Bruno Haible  <bruno@clisp.org>
22625
22626         wchar: Ensure that wchar_t gets defined on uClibc.
22627         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22628         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22629
22630 2011-04-13  Bruno Haible  <bruno@clisp.org>
22631
22632         safe-write, full-read: Avoid unnecessary compilation units.
22633         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22634         (Depends-on): Remove safe-read. Add ssize_t.
22635         * modules/full-read (Files): Add lib/full-write.c.
22636         (Depends-on): Add full-write.
22637
22638 2011-04-13  Bruno Haible  <bruno@clisp.org>
22639
22640         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22641         * modules/pwrite (Depends-on): Add 'write'.
22642
22643 2011-04-13  Bruno Haible  <bruno@clisp.org>
22644
22645         Support non-blocking pipe I/O in write() on native Windows.
22646         * lib/unistd.in.h (write): Enable replacement also if
22647         GNULIB_UNISTD_H_NONBLOCKING is 1.
22648         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22649         (rpl_write): When failing to write on a non-blocking pipe, change
22650         errno from ENOSPC to EAGAIN.
22651         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22652         putchar, puts, vfprintf, vprintf): Enable replacement also if
22653         GNULIB_STDIO_H_NONBLOCKING is 1.
22654         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22655         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22656         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22657         CALL_WITH_SIGPIPE_EMULATION.
22658         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22659         * m4/nonblocking.m4: New file.
22660         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22661         for non-blocking I/O support.
22662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22663         GNULIB_UNISTD_H_NONBLOCKING.
22664         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22665         required for non-blocking I/O support.
22666         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22667         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22668         lib/stdio-write.c, m4/asm-underscore.m4.
22669         (Depends-on): Add stdio, unistd.
22670         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22671         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22672         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22673         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22674         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22675         problem with non-blocking pipes.
22676         * doc/posix-functions/fputc.texi: Likewise.
22677         * doc/posix-functions/fputs.texi: Likewise.
22678         * doc/posix-functions/fwrite.texi: Likewise.
22679         * doc/posix-functions/printf.texi: Likewise.
22680         * doc/posix-functions/putc.texi: Likewise.
22681         * doc/posix-functions/putchar.texi: Likewise.
22682         * doc/posix-functions/puts.texi: Likewise.
22683         * doc/posix-functions/vfprintf.texi: Likewise.
22684         * doc/posix-functions/vprintf.texi: Likewise.
22685         * doc/posix-functions/write.texi: Likewise.
22686
22687 2011-04-10  Jim Meyering  <meyering@redhat.com>
22688
22689         maint.mk: prohibit doubled words
22690         Detect them also when they're separated by a newline.
22691         There are 3 ways to customize it:
22692           - disable the test on a per file basis, as usual with rules using
22693             $(VC_LIST_EXCEPT)
22694           - replace the default doubled-word-selecting regexp (affects all files)
22695           - ignore a particular file-vs-doubled-word match
22696         I nearly used that last one to ignore the "is is" match in
22697         coreutils' NEWS file, since the text was "ls -is is ..."
22698         To do that, I would have added this line to cfg.mk:
22699           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22700         but it would have ignored any "is is" match in NEWS.
22701         Low probability, but still...
22702         Instead, I changed the text, slightly:
22703           -  ls -is is now consistent with ls -lis in ignoring values returned
22704           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22705         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22706         (prohibit_doubled_word_): Define.
22707         (sc_prohibit_doubled_word): New rule.
22708         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22709
22710 2011-04-10  Jim Meyering  <meyering@redhat.com>
22711
22712         maint: fix doubled-word typo in comment
22713         * m4/gethostname.m4: s/is is/it is/
22714         * m4/getdomainname.m4: Likewise.
22715
22716 2011-04-10  Jim Meyering  <meyering@redhat.com>
22717
22718         maint: remove doubled word: s/it it/it/
22719         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22720
22721 2011-04-10  Jim Meyering  <meyering@redhat.com>
22722
22723         maint.mk: remove useless semicolon and backslash
22724         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22725         semicolon and backslash.
22726
22727 2011-04-10  Bruno Haible  <bruno@clisp.org>
22728
22729         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22730         * modules/stdint-tests (Depends-on): Add wchar.
22731
22732 2011-04-10  Jim Meyering  <meyering@redhat.com>
22733
22734         maint: remove doubled words in comments, e.g., s/a a/a/
22735         * lib/strptime.c (day_of_the_week): s/the the/the/
22736         * tests/test-chown.h (test_chown): s/a a/a/
22737
22738         test-chown.h: correct a cast
22739         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22740         when the destination is a stat.st_gid.
22741
22742 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22743
22744         getaddrinfo: Fix test for sa_len member.
22745         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22746         include <sys/types.h> before <sys/socket.h>.
22747
22748 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22749
22750         maint: change "can not" to "cannot"
22751         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22752         boundaries.
22753
22754 2011-04-09  Jim Meyering  <meyering@redhat.com>
22755
22756         maint: change "a a" to "a"
22757         * tests/test-lchown.h (test_lchown): s/a a/a/
22758
22759         maint.mk: prohibit \<the the\>
22760         * top/maint.mk (sc_prohibit_the_the): New rule.
22761
22762         maint: fix "the the" in comment
22763         * lib/count-one-bits.h: s/the the/the/
22764
22765         maint: change "can not" to "cannot"
22766         But do not change the occurrences in maintain.texi or in
22767         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22768         * doc/gnulib-tool.texi: s/can not/cannot/
22769         * doc/posix-functions/accept.texi (accept): Likewise.
22770         * doc/posix-functions/socket.texi (socket): Likewise.
22771         * lib/mbrtowc.c: Likewise.
22772
22773         maint.mk: prohibit use of "can not"
22774         * top/maint.mk (sc_prohibit_can_not): New rule.
22775         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22776
22777 2011-04-09  Bruno Haible  <bruno@clisp.org>
22778
22779         careadlinkat: Guard against misuse of careadlinkatcwd.
22780         * lib/careadlinkat.c: Include <stdlib.h>.
22781         (careadlinkatcwd): Check that the fd argument is as expected.
22782
22783 2011-04-09  Bruno Haible  <bruno@clisp.org>
22784
22785         careadlinkat: Use common coding style.
22786         * lib/careadlinkat.c: Move gnulib includes after system includes.
22787
22788 2011-04-09  Bruno Haible  <bruno@clisp.org>
22789
22790         careadlinkat: Clarify specification.
22791         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22792         (careadlinkatcwd): Add comment.
22793         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22794
22795 2011-04-09  Bruno Haible  <bruno@clisp.org>
22796
22797         areadlinkat: Avoid link error on many platforms.
22798         * modules/areadlinkat (Depends-on): Add areadlink.
22799
22800 2011-04-09  Bruno Haible  <bruno@clisp.org>
22801
22802         allocator, careadlinkat: Fix double-inclusion guard.
22803         * lib/allocator.h: Fix double-inclusion guard.
22804         * lib/careadlinkat.h: Likewise.
22805
22806 2011-04-09  Bruno Haible  <bruno@clisp.org>
22807
22808         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22809         * lib/relocwrapper.c: Update dependencies hierarchy.
22810         * build-aux/install-reloc: Update list of files to be compiled.
22811         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22812         lib/allocator.[hc].
22813
22814 2011-04-08  Eric Blake  <eblake@redhat.com>
22815
22816         strftime: silence gnulib-tool warning
22817         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22818
22819 2011-04-08  Bruno Haible  <bruno@clisp.org>
22820
22821         verify: Fix syntax error with GCC 4.6 in C++ mode.
22822         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22823         (HAVE_STATIC_ASSERT): New macro.
22824         (verify_true, verify): Use 'static_assert' if it is supported and
22825         '_Static_assert' is not supported.
22826
22827 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22828
22829         allocator: New module.
22830         * modules/allocator, lib/allocator.c: New files.
22831         * lib/allocator.h (stdlib_allocator): New decl.
22832         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22833         Remove.  Do not include <stdlib.h>.
22834         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22835         * modules/careadlinkat (Files): Remove lib/allocator.h.
22836         (Depends-on): Add allocator.
22837
22838         stdlib: let modules use system malloc, realloc
22839         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22840         if !_GL_USE_STDLIB_ALLOC.
22841         (malloc, realloc): Limit this change to a smaller scope.
22842
22843         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22844         (malloc, realloc): Don't #undef; no longer needed.
22845         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22846         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22847         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22848         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22849         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22850         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22851         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22852         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22853
22854         careadlinkat: rename members to avoid problem
22855         * lib/allocator.h (struct allocator): Rename members from
22856         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22857         and realloc are #define'd.  Reported by Eric Blake in
22858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22859         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22860
22861 2011-04-08  Eric Blake  <eblake@redhat.com>
22862
22863         nonblocking: reduce dependency
22864         * tests/test-nonblocking.c: Only test sockets when in use.
22865         * modules/nonblocking-tests (Depends-on): Drop socket.
22866         (Makefile.am): Link even if sockets are not present.
22867         * modules/pipe2-tests (Makefile.am): Likewise.
22868         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22869
22870         pipe2: fix O_NONBLOCK support on mingw
22871         * modules/pipe2 (Depends-on): Add nonblocking.
22872         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22873         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22874         * tests/test-nonblocking.c (main): Likewise.
22875         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22876
22877         fcntl-h: fix O_ACCMODE on cygwin
22878         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22879         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22880
22881         pipe-filter: drop O_NONBLOCK workarounds
22882         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22883         * modules/pipe-filter-ii (Depends-on): Likewise.
22884         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22885
22886         nonblocking: provide O_NONBLOCK for mingw
22887         * modules/nonblocking (Depends-on): Add open.
22888         (configure.ac): Set new witness macro.
22889         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22890         * modules/fcntl-h (Makefile.am): Substitute it.
22891         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22892         nonblocking module is in use.
22893         * lib/nonblocking.c: Adjust portability test.
22894         * lib/open.c (open): Don't let native open see gnulib flag.
22895         * tests/test-fcntl-h.c (main): Enhance test.
22896         * tests/test-open.h (test_open): Likewise.
22897         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22898
22899         careadlinkat: fix compilation error on mingw
22900         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22901         within struct allocator.
22902
22903 2011-04-06  Eric Blake  <eblake@redhat.com>
22904
22905         binary-io: relicense under LGPLv2+
22906         * modules/binary-io (License): Relax to LGPLv2+.
22907         Requested for libvirt, and required by pipe2.
22908
22909 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22910
22911         verify: use _Static_assert if available
22912         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22913         (verify_true, verify): Use it if available.  This generates better
22914         diagnostics with GCC 4.6.0 and later.
22915
22916 2011-04-05  Bruno Haible  <bruno@clisp.org>
22917
22918         Remove leftover generated .h files after config.status changed.
22919
22920         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22921         GL_GENERATE_ALLOCA_H.
22922         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22923         GL_GENERATE_ALLOCA_H evaluates to false.
22924
22925         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22926         GL_GENERATE_ARGZ_H.
22927         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22928         evaluates to false.
22929
22930         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22931         GL_GENERATE_BYTESWAP_H.
22932         * modules/byteswap (Makefile.am): Remove byteswap.h if
22933         GL_GENERATE_BYTESWAP_H evaluates to false.
22934
22935         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22936         GL_GENERATE_ERRNO_H.
22937         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22938         evaluates to false.
22939
22940         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22941         GL_GENERATE_FLOAT_H.
22942         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22943         evaluates to false.
22944
22945         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22946         GL_GENERATE_FNMATCH_H.
22947         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22948         GL_GENERATE_FNMATCH_H evaluates to false.
22949
22950         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22951         GL_GENERATE_GLOB_H.
22952         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22953         evaluates to false.
22954
22955         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22956         automake conditional GL_GENERATE_ICONV_H.
22957         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22958         evaluates to false.
22959
22960         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22961         GL_GENERATE_NETINET_IN_H.
22962         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22963         GL_GENERATE_NETINET_IN_H evaluates to false.
22964
22965         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22966         conditional GL_GENERATE_PTHREAD_H.
22967         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22968         * modules/pthread (Makefile.am): Remove pthread.h if
22969         GL_GENERATE_PTHREAD_H evaluates to false.
22970
22971         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22972         GL_GENERATE_SCHED_H.
22973         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22974         evaluates to false.
22975
22976         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22977         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22978         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22979         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22980
22981         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22982         GL_GENERATE_STDARG_H.
22983         * modules/stdarg (Makefile.am): Remove stdarg.h if
22984         GL_GENERATE_STDARG_H evaluates to false.
22985
22986         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22987         GL_GENERATE_STDBOOL_H.
22988         * modules/stdbool (Makefile.am): Remove stdbool.h if
22989         GL_GENERATE_STDBOOL_H evaluates to false.
22990
22991         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22992         conditional GL_GENERATE_STDDEF_H.
22993         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22994         * modules/stddef (Makefile.am): Remove stddef.h if
22995         GL_GENERATE_STDDEF_H evaluates to false.
22996
22997         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22998         GL_GENERATE_STDINT_H.
22999         * modules/stdint (Makefile.am): Remove stdint.h if
23000         GL_GENERATE_STDINT_H evaluates to false.
23001
23002         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23003         GL_GENERATE_SYSEXITS_H.
23004         * modules/sysexits (Makefile.am): Remove sysexits.h if
23005         GL_GENERATE_SYSEXITS_H evaluates to false.
23006
23007         Reported by Karl Berry and Ralf Wildenhues.
23008
23009 2011-04-05  Bruno Haible  <bruno@clisp.org>
23010
23011         Ensure to rebuild generated .h files when config.status has changed.
23012         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23013         config.status.
23014         * modules/ctype (Makefile.am): Likewise.
23015         * modules/dirent (Makefile.am): Likewise.
23016         * modules/errno (Makefile.am): Likewise.
23017         * modules/fcntl-h (Makefile.am): Likewise.
23018         * modules/float (Makefile.am): Likewise.
23019         * modules/getopt-posix (Makefile.am): Likewise.
23020         * modules/glob (Makefile.am): Likewise.
23021         * modules/iconv-h (Makefile.am): Likewise.
23022         * modules/inttypes (Makefile.am): Likewise.
23023         * modules/langinfo (Makefile.am): Likewise.
23024         * modules/locale (Makefile.am): Likewise.
23025         * modules/math (Makefile.am): Likewise.
23026         * modules/netdb (Makefile.am): Likewise.
23027         * modules/netinet_in (Makefile.am): Likewise.
23028         * modules/poll-h (Makefile.am): Likewise.
23029         * modules/pthread (Makefile.am): Likewise.
23030         * modules/pty (Makefile.am): Likewise.
23031         * modules/sched (Makefile.am): Likewise.
23032         * modules/search (Makefile.am): Likewise.
23033         * modules/selinux-h (Makefile.am): Likewise.
23034         * modules/signal (Makefile.am): Likewise.
23035         * modules/spawn (Makefile.am): Likewise.
23036         * modules/stdarg (Makefile.am): Likewise.
23037         * modules/stdbool (Makefile.am): Likewise.
23038         * modules/stddef (Makefile.am): Likewise.
23039         * modules/stdint (Makefile.am): Likewise.
23040         * modules/stdio (Makefile.am): Likewise.
23041         * modules/stdlib (Makefile.am): Likewise.
23042         * modules/string (Makefile.am): Likewise.
23043         * modules/strings (Makefile.am): Likewise.
23044         * modules/sys_file (Makefile.am): Likewise.
23045         * modules/sys_ioctl (Makefile.am): Likewise.
23046         * modules/sys_select (Makefile.am): Likewise.
23047         * modules/sys_socket (Makefile.am): Likewise.
23048         * modules/sys_stat (Makefile.am): Likewise.
23049         * modules/sys_time (Makefile.am): Likewise.
23050         * modules/sys_times (Makefile.am): Likewise.
23051         * modules/sys_utsname (Makefile.am): Likewise.
23052         * modules/sys_wait (Makefile.am): Likewise.
23053         * modules/sysexits (Makefile.am): Likewise.
23054         * modules/termios (Makefile.am): Likewise.
23055         * modules/time (Makefile.am): Likewise.
23056         * modules/unistd (Makefile.am): Likewise.
23057         * modules/wchar (Makefile.am): Likewise.
23058         * modules/wctype-h (Makefile.am): Likewise.
23059         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23060
23061 2011-04-05  Bruno Haible  <bruno@clisp.org>
23062
23063         pipe2: Relicense under LGPLv2+.
23064         * modules/pipe2 (License): Change to LGPLv2+.
23065         Requested by Eric Blake, for libvirt.
23066
23067 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23068
23069         bootstrap: compute gnulib_extra_files after updating build_aux
23070         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23071         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23072
23073 2011-04-05  Eric Blake  <eblake@redhat.com>
23074
23075         bootstrap: preserve git whitelist item sorting
23076         * build-aux/bootstrap (sort_patterns): New function.
23077         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23078
23079 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23080
23081         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23082         sc_space_tab check.
23083
23084 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23085
23086         areadlink, areadlinkat: rewrite in terms of careadlinkat
23087         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23088         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23089         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23090         (malloc, realloc): Remove #undefs.
23091         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23092         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23093         readlink, ssize_t, stdint, unistd.
23094         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23095         areadlink, stdint.
23096
23097         careadlinkat: new module
23098         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23099         * modules/careadlinkat: New files, written by me with
23100         a review and feedback from Ben Pfaff in
23101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23102
23103 2011-04-01  Bruno Haible  <bruno@clisp.org>
23104
23105         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23106         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23107         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23108         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23109         Reported by Bruce Korb <bruce.korb@gmail.com>.
23110
23111 2011-04-01  Bruno Haible  <bruno@clisp.org>
23112
23113         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23114         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23115         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23116         * modules/wcpcpy (Depends-on): Add extensions.
23117         * modules/wcpncpy (Depends-on): Likewise.
23118         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23119         systems.
23120         * doc/posix-functions/wcpncpy.texi: Likewise.
23121         * doc/posix-functions/wcwidth.texi: Likewise.
23122
23123 2011-03-31  Eric Blake  <eblake@redhat.com>
23124
23125         nonblocking: fix mingw test failures
23126         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23127         non-blocking flag on regular file.
23128         (get_nonblocking_flag): Set errno on invalid fd.
23129         * tests/test-nonblocking.c (main): Avoid test failure on
23130         directories if fchdir is not active.
23131         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23132
23133 2011-03-31  Bruno Haible  <bruno@clisp.org>
23134
23135         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23136         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23137         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23138         Reported by Simon Josefsson <simon@josefsson.org>.
23139
23140 2011-03-31  Bruno Haible  <bruno@clisp.org>
23141         and Eric Blake  <eblake@redhat.com>
23142
23143         nonblocking: new module
23144         * modules/nonblocking: New module.
23145         * modules/nonblocking-tests: Likewise.
23146         * lib/nonblocking.h: New file.
23147         * lib/nonblocking.c: Likewise.
23148         * tests/test-nonblocking.c: New test.
23149         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23150
23151 2011-03-30  Bruno Haible  <bruno@clisp.org>
23152
23153         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23154         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23155         instead of 'printf' format for GCC >= 4.4.
23156         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23157         (fprintf, printf, vfprintf, vprintf): Declare with
23158         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23159         the system's vfprintf() function.
23160         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23161
23162 2011-03-30  Eric Blake  <eblake@redhat.com>
23163
23164         passfd: fix scoping bug
23165         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23166         before sendmsg/recvmsg.
23167
23168         passfd: standardize coding conventions
23169         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23170         can be learned at compile time.
23171         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23172         ifdefs.
23173         (sendfd, recvfd): Follow gnulib code conventions.
23174
23175         passfd: fix incorrect sendmsg arguments
23176         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23177         incorrect msg_controllen value.
23178         * modules/passfd-tests (Depends-on): Check for alarm.
23179         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23180         Reported by Bastien ROUCARIES.
23181
23182 2011-03-30  Bruno Haible  <bruno@clisp.org>
23183
23184         c-strcasestr: Relicense under LGPLv2+.
23185         * modules/c-strcasestr (License): Change to LGPLv2+.
23186         Requested by Eric Blake, for libvirt.
23187
23188 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23189
23190         * users.txt: Add libidn2.  Fix libtasn1 link.
23191
23192 2011-03-30  Jim Meyering  <meyering@redhat.com>
23193
23194         tests: readlink* ("",... fails with EINVAL on newer kernels
23195         readlink and readlinkat have typically failed with ENOENT for
23196         the invalid, empty file name,  "".  However, with the advent
23197         of linux-2.6.39, they fail with EINVAL.
23198         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23199         when operating on the empty file name.
23200         * tests/test-readlink.h (test_readlink): Likewise.
23201
23202 2011-03-29  Bruno Haible  <bruno@clisp.org>
23203
23204         Relicense some modules under LGPLv2+, for libidn2.
23205         * modules/array-mergesort (License): Change to LGPLv2+.
23206         * modules/c-strcaseeq (License): Likewise.
23207         * modules/striconveh (License): Likewise.
23208         * modules/striconveha (License): Likewise.
23209         * modules/uniconv/base (License): Likewise.
23210         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23211         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23212         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23213         * modules/unictype/base (License): Likewise.
23214         * modules/unictype/bidiclass-of (License): Likewise.
23215         * modules/unictype/category-M (License): Likewise.
23216         * modules/unictype/category-none (License): Likewise.
23217         * modules/unictype/category-of (License): Likewise.
23218         * modules/unictype/category-test (License): Likewise.
23219         * modules/unictype/category-test-withtable (License): Likewise.
23220         * modules/unictype/combining-class (License): Likewise.
23221         * modules/unictype/joiningtype-of (License): Likewise.
23222         * modules/unictype/scripts (License): Likewise.
23223         * modules/uninorm/base (License): Likewise.
23224         * modules/uninorm/canonical-decomposition (License): Likewise.
23225         * modules/uninorm/composition (License): Likewise.
23226         * modules/uninorm/decompose-internal (License): Likewise.
23227         * modules/uninorm/decomposition-table (License): Likewise.
23228         * modules/uninorm/nfc (License): Likewise.
23229         * modules/uninorm/nfd (License): Likewise.
23230         * modules/uninorm/u32-normalize (License): Likewise.
23231         * modules/unistr/base (License): Likewise.
23232         * modules/unistr/u32-cpy (License): Likewise.
23233         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23234         * modules/unistr/u32-to-u8 (License): Likewise.
23235         * modules/unistr/u32-uctomb (License): Likewise.
23236         * modules/unistr/u8-check (License): Likewise.
23237         * modules/unistr/u8-mblen (License): Likewise.
23238         * modules/unistr/u8-mbtouc (License): Likewise.
23239         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23240         * modules/unistr/u8-mbtoucr (License): Likewise.
23241         * modules/unistr/u8-prev (License): Likewise.
23242         * modules/unistr/u8-strlen (License): Likewise.
23243         * modules/unistr/u8-to-u32 (License): Likewise.
23244         * modules/unistr/u8-uctomb (License): Likewise.
23245         * modules/unitypes (License): Likewise.
23246         Requested by Simon Josefsson.
23247
23248 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23249
23250         lib-symbol-visibility: Add a notice.
23251         * modules/lib-symbol-visibility (Notice): New field.
23252
23253 2011-03-29  Bruno Haible  <bruno@clisp.org>
23254
23255         getaddrinfo: Doc fix.
23256         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23257         section "fixed in Gnulib".
23258
23259 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23260
23261         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23262         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23263
23264 2011-03-26  Bruno Haible  <bruno@clisp.org>
23265
23266         unictype/property-byname: Reduce the number of load-time relocations.
23267         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23268         (UC_PROPERTY_INDEX_*): New enumeration values.
23269         (uc_property_byname): Convert an index from the lookup table to an
23270         uc_property_t.
23271         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23272         values.
23273
23274 2011-03-26  Bruno Haible  <bruno@clisp.org>
23275
23276         unictype/property-byname: Allow omitted word separators and aliases.
23277         * lib/unictype/pr_byname.gperf: Add property names without word
23278         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23279         for 'space'.
23280
23281 2011-03-26  Bruno Haible  <bruno@clisp.org>
23282
23283         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23284         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23285         also hyphens to space.
23286         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23287         without spaces.
23288         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23289
23290 2011-03-26  Bruno Haible  <bruno@clisp.org>
23291
23292         unictype/joiningtype-byname: Recognize long names as well.
23293         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23294         a long name.
23295         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23296         unictype/joiningtype_byname.h.
23297         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23298         * lib/unictype/joiningtype_byname.gperf: New file.
23299         * modules/unictype/joiningtype-byname (Files): Add
23300         lib/unictype/joiningtype_byname.gperf.
23301         (Depends-on): Add gperf.
23302         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23303         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23304         long names.
23305
23306         Tests for module 'unictype/joiningtype-longname'.
23307         * modules/unictype/joiningtype-longname-tests: New file.
23308         * tests/unictype/test-joiningtype_longname.c: New file.
23309
23310         New module 'unictype/joiningtype-longname'.
23311         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23312         * lib/unictype/joiningtype_longname.c: New file.
23313         * modules/unictype/joiningtype-longname: New file.
23314         * modules/unictype/joiningtype-all (Depends-on): Add
23315         unictype/joiningtype-longname.
23316
23317 2011-03-26  Bruno Haible  <bruno@clisp.org>
23318
23319         unictype/bidiclass-byname: Recognize long names as well.
23320         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23321         name.
23322         * lib/unictype/bidi_byname.c: Include <string.h>,
23323         unictype/bidi_byname.h.
23324         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23325         * lib/unictype/bidi_byname.gperf: New file.
23326         * modules/unictype/bidiclass-byname (Files): Add
23327         lib/unictype/bidi_byname.gperf.
23328         (Depends-on): Add gperf.
23329         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23330         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23331         long names.
23332
23333         Tests for module 'unictype/bidiclass-longname'.
23334         * modules/unictype/bidiclass-longname-tests: New file.
23335         * tests/unictype/test-bidi_longname.c: New file.
23336
23337         New module 'unictype/bidiclass-longname'.
23338         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23339         * lib/unictype/bidi_longname.c: New file.
23340         * modules/unictype/bidiclass-longname: New file.
23341         * modules/unictype/bidiclass-all (Depends-on): Add
23342         unictype/bidiclass-longname.
23343
23344 2011-03-26  Bruno Haible  <bruno@clisp.org>
23345
23346         unictype/bidi*: Rename modules.
23347         * modules/unictype/bidiclass-all: Renamed from
23348         modules/unictype/bidicategory-all.
23349         * modules/unictype/bidiclass-name: Renamed from
23350         modules/unictype/bidiclass-name.
23351         (Description): Update.
23352         * modules/unictype/bidiclass-name-tests: Renamed from
23353         modules/unictype/bidicategory-name-tests.
23354         * modules/unictype/bidiclass-byname: Renamed from
23355         modules/unictype/bidicategory-byname.
23356         (Description): Update.
23357         * modules/unictype/bidiclass-byname-tests: Renamed from
23358         modules/unictype/bidicategory-byname-tests.
23359         * modules/unictype/bidiclass-of: Renamed from
23360         modules/unictype/bidicategory-of.
23361         (Description): Update.
23362         * modules/unictype/bidiclass-of-tests: Renamed from
23363         modules/unictype/bidicategory-of-tests.
23364         * modules/unictype/bidiclass-test: Renamed from
23365         modules/unictype/bidicategory-test.
23366         (Description): Update.
23367         * modules/unictype/bidiclass-test-tests: Renamed from
23368         modules/unictype/bidicategory-test-tests.
23369         * modules/unictype/bidicategory-all: New file, a simple redirection.
23370         * modules/unictype/bidicategory-name: Likewise.
23371         * modules/unictype/bidicategory-byname: Likewise.
23372         * modules/unictype/bidicategory-of: Likewise.
23373         * modules/unictype/bidicategory-test: Likewise.
23374         * modules/unictype/property-bidi-* (Dependencies): Update.
23375         * lib/unictype/bidi_*.c: Update comment.
23376
23377 2011-03-26  Bruno Haible  <bruno@clisp.org>
23378
23379         unictype/bidi*: Rename functions, part 2.
23380         * modules/unictype/bidicategory-name (configure.ac): Update required
23381         libunistring version.
23382         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23383
23384 2011-03-25  Bruno Haible  <bruno@clisp.org>
23385
23386         New module 'unictype/combining-class-all'.
23387         * modules/unictype/combining-class-all: New file.
23388
23389         Tests for module 'unictype/combining-class-byname'.
23390         * modules/unictype/combining-class-byname-tests: New file.
23391         * tests/unictype/test-combiningclass_byname.c: New file.
23392
23393         New module 'unictype/combining-class-byname'.
23394         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23395         * lib/unictype/combiningclass_byname.c: New file.
23396         * lib/unictype/combiningclass_byname.gperf: New file.
23397         * modules/unictype/combining-class-byname: New file.
23398
23399         Tests for module 'unictype/combining-class-longname'.
23400         * modules/unictype/combining-class-longname-tests: New file.
23401         * tests/unictype/test-combiningclass_longname.c: New file.
23402
23403         New module 'unictype/combining-class-longname'.
23404         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23405         * lib/unictype/combiningclass_longname.c: New file.
23406         * modules/unictype/combining-class-longname: New file.
23407
23408         Tests for module 'unictype/combining-class-name'.
23409         * modules/unictype/combining-class-name-tests: New file.
23410         * tests/unictype/test-combiningclass_name.c: New file.
23411
23412         New module 'unictype/combining-class-name'.
23413         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23414         * lib/unictype/combiningclass_name.c: New file.
23415         * modules/unictype/combining-class-name: New file.
23416
23417 2011-03-25  Bruno Haible  <bruno@clisp.org>
23418
23419         unictype/combining-class: Rename source files.
23420         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23421         of unictype/combining.h.
23422         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23423         Update.
23424         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23425         * modules/unictype/combining-class (Description): Fix.
23426         (Files, Makefile.am): Update.
23427         * tests/unictype/test-combiningclass.c: Renamed from
23428         tests/unictype/test-combining.c.
23429         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23430
23431 2011-03-25  Bruno Haible  <bruno@clisp.org>
23432
23433         unictype: Update list of canonical combining classes.
23434         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23435
23436 2011-03-25  Bruno Haible  <bruno@clisp.org>
23437
23438         unictype/category-byname: Recognize long names as well.
23439         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23440         a long name.
23441         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23442         unictype/categ_byname.h.
23443         (UC_CATEGORY_INDEX_*): New enumeration values.
23444         (uc_general_category_byname): Use uc_general_category_lookup and
23445         convert from index to value.
23446         * lib/unictype/categ_byname.gperf: New file.
23447         * modules/unictype/category-byname (Files): Add
23448         lib/unictype/categ_byname.gperf.
23449         (Depends-on): Add gperf.
23450         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23451         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23452         long names.
23453
23454         Tests for module 'unictype/category-longname'.
23455         * modules/unictype/category-longname-tests: New file.
23456         * tests/unictype/test-categ_longname.c: New file.
23457
23458         New module 'unictype/category-longname'.
23459         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23460         * lib/unictype/categ_longname.c: New file.
23461         * modules/unictype/category-longname: New file.
23462         * modules/unictype/category-all (Depends-on): Add it.
23463
23464 2011-03-25  Bruno Haible  <bruno@clisp.org>
23465
23466         Tests for module 'unictype/category-LC'.
23467         * modules/unictype/category-LC-tests: New file.
23468         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23469
23470         New module 'unictype/category-LC'.
23471         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23472         (UC_CATEGORY_LC): New declaration.
23473         (UC_CASED_LETTER): New macro.
23474         * lib/gen-uni-tables.c (is_category_LC): New function.
23475         (output_categories): Also handle category LC.
23476         (UC_CATEGORY_MASK_LC): New enumeration value.
23477         (general_category_byname): Also handle category LC.
23478         * lib/unictype/categ_LC.c: New file.
23479         * lib/unictype/categ_LC.h: New file, automatically generated.
23480         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23481         category LC.
23482         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23483         * modules/unictype/category-LC: New file.
23484         * modules/unictype/category-byname (Depends-on): Add
23485         unictype/category-LC.
23486         * modules/unictype/category-all (Depends-on): Likewise.
23487
23488 2011-03-25  Eric Blake  <eblake@redhat.com>
23489
23490         xmalloc: revert yesterday's regression
23491         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23492         realloc's underlying behavior (allowing allocation of zero-size
23493         objects, especially if malloc-gnu is also in use).
23494
23495 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23496
23497         maint.mk: add missing version to VC-tag
23498         * top/maint.mk: git tag was missing actual tag name; add it.
23499
23500         valgrind: do leak checking, and exit with code 1 on error (not 0)
23501         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23502         to VALGRIND.
23503
23504 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23505
23506         posix-modules: say what it does.
23507         * posix-modules: Add a line to the --help output saying what it does.
23508
23509 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23510
23511         xmalloc: Do not leak if underlying realloc is C99 compatible.
23512         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23513         This avoids a leak on C99-based systems.  See
23514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23515
23516 2011-03-24  Eric Blake  <eblake@redhat.com>
23517
23518         realloc: document portability problem
23519         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23520         passing 0 size to realloc.
23521
23522 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23523
23524         doc: update users.txt
23525         * users.txt: Add cvsps, tmpwatch
23526
23527 2011-03-23  Matt Rice  <ratmice@gmail.com>
23528
23529         doc: update users.txt
23530         * users.txt: Add gdb.
23531
23532 2011-03-23  Jim Meyering  <meyering@redhat.com>
23533
23534         doc: update users.txt
23535         Looking through matches up to the following URL (there are still
23536         several more pages), I found several projects that use gnulib:
23537         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23538         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23539         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23540
23541 2011-03-22  Bruno Haible  <bruno@clisp.org>
23542
23543         unictype/bidi*: Rename functions.
23544         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23545         uc_bidi_class, uc_is_bidi_class): New declarations.
23546         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23547         uc_bidi_category_byname.
23548         (uc_bidi_category_byname): New function.
23549         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23550         u_bidi_category_name.
23551         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23552         (uc_bidi_category_name): New function.
23553         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23554         uc_bidi_category.
23555         (uc_bidi_category): New function.
23556         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23557         uc_is_bidi_category. Invoke uc_bidi_class.
23558         (uc_is_bidi_category): New function.
23559         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23560         instead of uc_bidi_category_byname.
23561         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23562         instead of uc_bidi_category_name.
23563         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23564         uc_bidi_category.
23565         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23566         instead of uc_is_bidi_category.
23567
23568 2011-03-21  Bruno Haible  <bruno@clisp.org>
23569
23570         New module 'unictype/joininggroup-all'.
23571         * modules/unictype/joininggroup-all: New file.
23572
23573         Tests for module 'unictype/joininggroup-of'.
23574         * modules/unictype/joininggroup-of-tests: New file.
23575         * tests/unictype/test-joininggroup_of.c: New file.
23576         * tests/unictype/test-joininggroup_of.h: New file, automatically
23577         generated by gen-uni-tables.
23578
23579         New module 'unictype/joininggroup-of'.
23580         * modules/unictype/joininggroup-of: New file.
23581         * lib/unictype/joininggroup_of.c: New file.
23582         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23583         gen-uni-tables.
23584
23585         Tests for module 'unictype/joininggroup-byname'.
23586         * modules/unictype/joininggroup-byname-tests: New file.
23587         * tests/unictype/test-joininggroup_byname.c: New file.
23588
23589         New module 'unictype/joininggroup-byname'.
23590         * modules/unictype/joininggroup-byname: New file.
23591         * lib/unictype/joininggroup_byname.c: New file.
23592         * lib/unictype/joininggroup_byname.gperf: New file.
23593
23594         Tests for module 'unictype/joininggroup-name'.
23595         * modules/unictype/joininggroup-name-tests: New file.
23596         * tests/unictype/test-joininggroup_name.c: New file.
23597
23598         New module 'unictype/joininggroup-name'.
23599         * modules/unictype/joininggroup-name: New file.
23600         * lib/unictype/joininggroup_name.c: New file.
23601         * lib/unictype/joininggroup_name.h: New file.
23602
23603         New module 'unictype/joiningtype-all'.
23604         * modules/unictype/joiningtype-all: New file.
23605
23606         Tests for module 'unictype/joiningtype-of'.
23607         * modules/unictype/joiningtype-of-tests: New file.
23608         * tests/unictype/test-joiningtype_of.c: New file.
23609         * tests/unictype/test-joiningtype_of.h: New file, automatically
23610         generated by gen-uni-tables.
23611
23612         New module 'unictype/joiningtype-of'.
23613         * modules/unictype/joiningtype-of: New file.
23614         * lib/unictype/joiningtype_of.c: New file.
23615         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23616         gen-uni-tables.
23617
23618         Tests for module 'unictype/joiningtype-byname'.
23619         * modules/unictype/joiningtype-byname-tests: New file.
23620         * tests/unictype/test-joiningtype_byname.c: New file.
23621
23622         New module 'unictype/joiningtype-byname'.
23623         * modules/unictype/joiningtype-byname: New file.
23624         * lib/unictype/joiningtype_byname.c: New file.
23625
23626         Tests for module 'unictype/joiningtype-name'.
23627         * modules/unictype/joiningtype-name-tests: New file.
23628         * tests/unictype/test-joiningtype_name.c: New file.
23629
23630         New module 'unictype/joiningtype-name'.
23631         * modules/unictype/joiningtype-name: New file.
23632         * lib/unictype/joiningtype_name.c: New file.
23633
23634         unictype: Add support for Arabic shaping properties.
23635         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23636         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23637         declarations.
23638         (UC_JOINING_GROUP_*): New enumeration values.
23639         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23640         declarations.
23641         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23642         (unicode_joining_type): New variable.
23643         (UC_JOINING_GROUP_*): New enumeration values.
23644         (unicode_joining_group): New variable.
23645         (fill_arabicshaping, joining_type_as_c_identifier,
23646         output_joining_type_test, output_joining_type,
23647         joining_group_as_c_identifier, output_joining_group_test,
23648         output_joining_group): New functions.
23649         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23650         fill_arabicshaping and output_joining_type_test, output_joining_type,
23651         output_joining_group_test, output_joining_group.
23652         Reported by Simon Josefsson.
23653
23654 2011-03-21  Jim Meyering  <meyering@redhat.com>
23655
23656         strftime: fix a bug in yesterday's change
23657         * lib/strftime.c (add): Accommodate width's initial value of -1.
23658         Otherwise, nstrftime would copy uninitialized data into
23659         the result buffer.
23660
23661 2011-03-21  Jim Meyering  <meyering@redhat.com>
23662
23663         tests: add strftime-tests module
23664         * tests/test-strftime.c: New file.
23665         * modules/strftime-tests: New module.
23666
23667 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23668
23669         strftime: don't assume a byte count fits in 'int'
23670         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23671         found this problem by static analysis, using gcc -Wstrict-overflow
23672         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23673         on an integer overflow having undefined behavior, but it turns out
23674         that the argument is a size, which might not fit in 'int' anyway,
23675
23676 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23677
23678         stdio: don't require ignore_value around fwrite
23679
23680         This patch works around libc bug 11959
23681         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23682         Without this patch, applications must often write
23683         ignore_value (fwrite (...)) even though the ignore_value is
23684         not helpful here.  It's common to write many objects, using
23685         fwrite/printf/etc., and then use ferror to detect output error.
23686
23687         I considered making this patch optional, but decided against it,
23688         because libc is obviously being inconsistent here: there is no
23689         reason libc should insist that user code must inspect fwrite
23690         return's value without also insisting that it inspect printf's,
23691         putchar's, etc.  If user code wants to have a strict style where
23692         all these functions' values are checked (so that ferror need not
23693         be checked), we could add support for that style in a new gnulib
23694         module, but in the meantime it's better to be consistent and to
23695         support common usage.
23696
23697         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23698         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23699         that we are compiling in checking mode, and if not C++, and
23700         if not already wrapping fwrite for some other reason.
23701         (fwrite): #define to rpl_fwrite if the latter is defined.
23702
23703 2011-03-20  Bruno Haible  <bruno@clisp.org>
23704
23705         verror: Fix compilation error introduced on 2011-02-13.
23706         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23707         instead of __attribute__.
23708         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23709
23710 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23711             Bruno Haible  <bruno@clisp.org>
23712
23713         socklen: do not depend on sys_socket
23714         While trying to modify Emacs to use gnulib's socklen module,
23715         I discovered a circular dependency: socklen depends on sys_socket
23716         and vice versa.  Emacs can use socklen, but it does not need
23717         sys_socket because it has its own substitute for sys/socket.h.
23718         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23719         gl_TYPE_SOCKLEN_T.
23720         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23721         gl_PREREQ_SYS_H_SOCKET.
23722         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23723         gl_PREREQ_SYS_H_SOCKET.
23724         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23725         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23726         * modules/socklen (Depends-on): Do not depend on sys_socket.
23727         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23728
23729 2011-03-20  Jim Meyering  <meyering@redhat.com>
23730
23731         maint.mk: sort file names *after* new transformation
23732         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23733         prefix would have led to an unwarranted failure in GNU parted.
23734         Sort after that transformation.
23735
23736 2011-03-19  Jim Meyering  <meyering@redhat.com>
23737
23738         maint.mk: fix po-file syntax-check rule
23739         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23740         Patch by Bruno Haible.
23741
23742 2011-03-19  Bruno Haible  <bruno@clisp.org>
23743
23744         socklen: Update comment.
23745         * m4/socklen.m4: Update comment about platforms.
23746
23747 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23748             Bruno Haible  <bruno@clisp.org>
23749
23750         inet_ntop, inet_pton: Simplify.
23751         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23752         documented to provide socklen_t and we already depend on sys_socket.
23753         * modules/inet_pton (Depends-on): Likewise.
23754         * lib/arpa_inet.in.h: Adjust comment.
23755
23756 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23757             Bruno Haible  <bruno@clisp.org>
23758
23759         netdb: Simplify.
23760         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23761         documented to provide socklen_t and we already depend on sys_socket.
23762         * lib/netdb.in.h: Adjust comment.
23763
23764 2011-03-19  Bruno Haible  <bruno@clisp.org>
23765
23766         sys_socket, netdb: Document problem with socklen_t.
23767         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23768         platforms.
23769         * doc/posix-headers/netdb.texi: Likewise.
23770
23771 2011-03-18  Eric Blake  <eblake@redhat.com>
23772
23773         maint.mk: let po check work in VPATH build
23774         * top/maint.mk (po_file): Allow cfg.mk override.
23775         (sc_po_check): Allow VPATH use.
23776         Reported by Jiri Denemark.
23777
23778 2011-03-16  Jim Meyering  <meyering@redhat.com>
23779
23780         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23781         Before, you would have had to create one .x-sc_ file per rule in order
23782         to exempt offending files.  Now, you may instead use a Make variable --
23783         usually defined in cfg.mk -- whose name identifies the affected rule.
23784         * top/maint.mk (_sc_excl): Define.
23785         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23786         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23787
23788 2011-03-13  Bruno Haible  <bruno@clisp.org>
23789
23790         ignore-value tests: Avoid warnings.
23791         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23792         empty for gcc < 3.4.
23793
23794 2011-03-13  Bruno Haible  <bruno@clisp.org>
23795
23796         passfd: Fix link error on Solaris.
23797         * modules/passfd (Description): Correct.
23798         (Depends-on): Add socketlib.
23799         (Link): New section.
23800         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23801
23802 2011-03-13  Bruno Haible  <bruno@clisp.org>
23803
23804         passfd: Fix link error on AIX 5.2.
23805         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23806
23807 2011-03-13  Bruno Haible  <bruno@clisp.org>
23808
23809         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23810         * lib/sys_socket.in.h: Include <stddef.h>.
23811         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23812         CMSG_FIRSTHDR. Remove unused variable.
23813
23814 2011-03-13  Bruno Haible  <bruno@clisp.org>
23815
23816         passfd: Fix compilation error on OpenBSD.
23817         * lib/passfd.c: Include <sys/uio.h>.
23818
23819 2011-03-13  Bruno Haible  <bruno@clisp.org>
23820
23821         passfd test: Fix warnings.
23822         * tests/test-passfd.c: Include <sys/wait.h>.
23823         (main): Fix typo.
23824
23825 2011-03-13  Bruno Haible  <bruno@clisp.org>
23826
23827         passfd module, part 4, tweaks.
23828         * tests/test-passfd.c: Reorder includes.
23829         (main): Fix perror and printf calls.
23830
23831 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23832
23833         passfd module, part 4.
23834         * modules/passfd-tests: New file.
23835         * tests/test-passfd.c: New file.
23836
23837 2011-03-13  Jim Meyering  <meyering@redhat.com>
23838
23839         Makefile: rely on GNU make; derive syntax-check rule names
23840         Rather than requiring that each sc_ rule be listed as a dependent
23841         of "check", use features of GNU make to derive the list.
23842         * Makefile (syntax-check-rules): Define.
23843         (check): Depend on the new variable, not the hard-coded list.
23844
23845 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23846             Bruno Haible  <bruno@clisp.org>
23847
23848         passfd module, part 3.
23849         * lib/passfd.h (recvfd): Add a flags argument.
23850         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23851         (recvfd): Add a flags argument.
23852         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23853         exists.
23854         * modules/passfd (Depends-on): Add cloexec.
23855         Suggested by Eric Blake.
23856
23857 2011-03-13  Bruno Haible  <bruno@clisp.org>
23858
23859         passfd module, part 2, tweaks.
23860         * modules/passfd (Files): Reorder.
23861         (Depends-on): Remove errno.
23862         (Include): Remove <sys/socket.h>, <sys/un.h>.
23863         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23864         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23865         specification header. Include <sys/socket.h> always. Don't include
23866         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23867         (sendfd): Clarify that it sets errno when it fails.
23868         (recvfd): Fix specification.
23869
23870 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23871
23872         passfd module, part 2.
23873         * modules/passfd: New file.
23874         * lib/passfd.h: New file.
23875         * lib/passfd.c: New file.
23876
23877 2011-03-12  Bruno Haible  <bruno@clisp.org>
23878
23879         wcswidth, mbswidth: Avoid integer overflow.
23880         * lib/wcswidth.c: Include <limits.h>.
23881         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23882         * lib/mbswidth.c: Include <limits.h>.
23883         (mbsnwidth): Avoid 'int' overflow.
23884         Reported by Jim Meyering.
23885
23886 2011-03-12  Bruno Haible  <bruno@clisp.org>
23887
23888         futimens, utimensat: Avoid endless recursion on Solaris 10.
23889         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23890         Solaris.
23891         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23892         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23893
23894 2011-03-11  Jim Meyering  <meyering@redhat.com>
23895
23896         maint.mk: relax a regexp to accommodate other formatting styles
23897         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23898         between "ngettext" and the following "(".
23899
23900 2011-03-11  Pádraig Brady <P@draigBrady.com>
23901
23902         maint.mk: suppress a false positive warning
23903         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23904         diagnostics are marked with ngettext.
23905
23906 2011-03-10  Eric Blake  <eblake@redhat.com>
23907
23908         wchar: add explicit dependencies, for Tru64
23909         * modules/mbmemcasecoll (Depends-on): Add wchar.
23910         * modules/mbtowc (Depends-on): Likewise.
23911         * modules/vasnprintf (Depends-on): Likewise.
23912         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23913         * modules/wctomb (Depends-on): Likewise.
23914         Reported by Peter O'Gorman.
23915
23916 2011-03-08  Bruno Haible  <bruno@clisp.org>
23917
23918         passfd module, part 1, tweaks.
23919         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23920         Improve indentation. Improve AC_MSG_CHECKING messages.
23921         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23922         gl_SOCKET_FAMILIES.
23923
23924 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23925
23926         passfd module, part 1.
23927         * m4/afunix.m4: New file.
23928         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23929         sockets.
23930
23931 2011-03-08  Bruno Haible  <bruno@clisp.org>
23932
23933         regex-quote: New API.
23934         * lib/regex-quote.h: Include <stdbool.h>.
23935         (struct regex_quote_spec): New type.
23936         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23937         New declarations.
23938         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23939         'const struct regex_quote_spec *' argument.
23940         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23941         (pcre_special): New constant.
23942         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23943         New functions.
23944         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23945         'const struct regex_quote_spec *' argument.
23946         * modules/regex-quote (Depends-on): Add stdbool.
23947         * tests/test-regex-quote.c (check): Update for new API. Add test for
23948         anchored results.
23949         * NEWS: Mention the API change.
23950         Reported by Reuben Thomas and Eric Blake.
23951
23952 2011-03-06  Bruno Haible  <bruno@clisp.org>
23953
23954         regex-quote: Fix creation of POSIX extended regular expressions.
23955         * lib/regex-quote.c (ere_special): Add grouping and alternation
23956         operators.
23957
23958 2011-03-05  Bruno Haible  <bruno@clisp.org>
23959
23960         doc: Improve doc regarding autopoint vs. gnulib.
23961         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23962         disable autopoint while running autoreconf.
23963         Suggested by Ralf Wildenhues.
23964
23965 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23966
23967         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23968         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23969
23970 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23971
23972         parse-duration: remove xalloc.h dependency
23973         * lib/parse-duration.c (parse_period): handle NULL return from
23974         strdup instead of calling xstrdup().
23975         * modules/parse-duration: remove "xalloc" dependency
23976
23977 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23978
23979         bootstrap: honor m4_base when running aclocal
23980         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23981
23982 2011-03-02  Jim Meyering  <meyering@redhat.com>
23983
23984         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23985         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23986         on request from Matt Booth.
23987
23988 2011-03-01  Eric Blake  <eblake@redhat.com>
23989
23990         test-link: work on Hurd
23991         * tests/test-link.h (test_link): Hurd rejects linking directories
23992         with EISDIR instead of the POSIX-mandated EPERM.
23993
23994 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23995
23996         stdio: simplify by moving files to printf-posix, sigpipe
23997         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23998         since this symbol is needed only if printf is replaced.
23999         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24000         Require gl_ASM_SYMBOL_PREFIX.
24001         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24002         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24003         (Depends-on): Add 'raise'.
24004         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24005         * modules/stdio (Files): Remove lib/stdio-write.c,
24006         m4/asm-underscore.m4.
24007         (Depends-on): Remove 'raise'.
24008
24009         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24010         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24011         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24012         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24013
24014 2011-02-28  Bruno Haible  <bruno@clisp.org>
24015
24016         localcharset: Assume ANSI C behaviour of free().
24017         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24018         calling free().
24019         Suggested by Simon Josefsson <simon@josefsson.org>.
24020
24021 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24022             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24023             Bruno Haible  <bruno@clisp.org>  (tiny change)
24024
24025         On Cygwin, use /proc file system instead of win32 API.
24026         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24027         Win32 file names.
24028         (DllMain): Simplify by removing Cygwin specific code.
24029         (find_shared_library_fullname): Use Linux specific implementation also
24030         for Cygwin.
24031         (get_shared_library_fullname): Update accordingly.
24032         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24033         Win32 file names.
24034         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24035         Cygwin specific code.
24036
24037 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24038             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24039
24040         Fix OpenMP flag detection for various Fortran compilers.
24041         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24042         OpenMP-conditional compilation construct, to force compile
24043         failure with missing OpenMP flag.
24044         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24045
24046 2011-02-25  Eric Blake  <eblake@redhat.com>
24047
24048         strstr: expand test coverage
24049         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24050         compilation.
24051         * tests/test-memmem.c (main): Duplicate tests.
24052         * tests/test-strcasestr.c (main): Likewise.
24053         * tests/test-c-strcasestr.c (main): Likewise.
24054
24055 2011-02-25  Jim Meyering  <meyering@redhat.com>
24056
24057         maint.mk: detect missing-NL-at-EOF, too
24058         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24059         it also detects when a file lacks a newline at EOF.
24060         (require_exactly_one_NL_at_EOF_): Renamed from
24061         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24062         since people may well have .x-sc_... file names tied to the
24063         existing name.  Suggested by Eric Blake.
24064
24065 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24066
24067         dirname: move m4/dos.m4 functionality into lib/dosname.h
24068
24069         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24070         extracts symbols from it, puts them into config.h; but it's much
24071         easier to use the symbols directly.  filename.h already does this,
24072         but it disagrees with dos.m4 in some respects.  This patch
24073         introduces a different include file dosname.h that packages up
24074         dos.m4, and then later we can work on merging filename.h and
24075         dosname.h.  Applications that need only the easy-to-configure
24076         symbols should consider including dosname.h rather than dirname.h.
24077         * NEWS: Mention incompatible changes.
24078         * m4/dos.m4: Remove.
24079         * lib/dosname.h, modules/dosname: New files.
24080         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24081         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24082         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24083         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24084         Include dosname.h, not dirname.h.
24085         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24086         Include dosname.h, for definitions of symbols like ISSLASH
24087         that used to be in config.h.
24088         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24089         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24090         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24091         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24092         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24093         * modules/rmdir (Files): Likewise.
24094         * modules/stat (Files): Likewise.
24095         * modules/unlink (Files): Likewise.
24096         * modules/dirname-lgpl (Depends-on): Add dosname.
24097         * modules/lstat (Depends-on): Likewise.
24098         * modules/openat (Depends-on): Likewise.
24099         * modules/rmdir (Depends-on): Likewise.
24100         * modules/savewd (Depends-on): Likewise.
24101         * modules/stat (Depends-on): Likewise.
24102         * modules/unlink (Depends-on): Likewise.
24103         * modules/openat (Depends-on): Remove dirname-lgpl.
24104         * modules/savewd (Depends-on): Likewise.
24105         * tests/test-dirname.c: Do not use removed symbols like
24106         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24107         the remaining symbols, e.g., ISSLASH ('\\').
24108
24109 2011-02-25  Eric Blake  <eblake@redhat.com>
24110
24111         strstr: revert patches that introduced bug and pessimization
24112         * lib/str-two-way.h: Add another reference.
24113         (two_way_short_needle, two_way_long_needle): Revert changes from
24114         2011-02-24; they pessimize search speed.
24115         (critical_factorization): Partially revert changes from
24116         2010-06-22; they violate the requirement that the left half of the
24117         needle be smaller than the period of the needle.
24118
24119 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24120
24121         filenamecat: remove unnecessary dependency on dirname-lgpl
24122         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24123         is no direct dependency, just an indirect one via filenamecat-lgpl.
24124
24125         remove: remove unnecessary use of m4/dos.m4
24126         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24127         * modules/remove (FILES): Remove m4/dos.m4.
24128
24129         * lib/openat-proc.c: Don't include dirname.h; not needed.
24130
24131         backupfile: remove unnecessary use of m4/dos.m4
24132         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24133         of its symbols are used by the backupfile code.  backupfile.c does
24134         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24135         for the rare case of programs that want all their backup file
24136         names to live within 8+3 limits, and dos.m4 doesn't address that.
24137         * modules/backupfile (Files): Remove m4/dos.m4.
24138
24139 2011-02-24  Jim Meyering  <meyering@redhat.com>
24140
24141         strstr: fix a bug whereby strstr would mistakenly return NULL
24142         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24143         in period calculation.
24144         (two_way_long_needle): Likewise.
24145         The original problem was reported by Mike Stump in
24146         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24147         Ralf Wildenhues provided the short needle and haystack.
24148         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24149         Add a more involved test to trigger the bug in two_way_long_needle.
24150
24151 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24152
24153         gnulib-tool: remove use of bold display in help screen
24154         * gnulib-tool (func_usage): Do not use bold display anymore in the
24155         help screen.  That was just meant to be a temporary emphasis for a
24156         backward-incompatible change.
24157
24158 2011-02-23  Bruno Haible  <bruno@clisp.org>
24159
24160         Fix misindentation of preprocessor directives.
24161         * lib/argp-namefrob.h: Reindent preprocessor directives.
24162         * lib/getopt_int.h (struct _getopt_data): Likewise.
24163         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24164         * lib/vasnprintf.c (decode_long_double): Likewise.
24165         * tests/test-argmatch.c: Insert blank lines, for clarity.
24166         * tests/test-exclude.c: Likewise.
24167
24168 2011-02-22  Bruno Haible  <bruno@clisp.org>
24169
24170         ioctl: Fix for MacOS X in 64-bit mode.
24171         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24172         value.
24173         Suggested by Eric Blake.
24174         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24175
24176 2011-02-22  Jim Meyering  <meyering@redhat.com>
24177
24178         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24179         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24180         in lib/.
24181
24182 2011-02-22  Eric Blake  <eblake@redhat.com>
24183
24184         maint: avoid any CDPATH issue
24185         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24186
24187         maint: adjust cpp indentation for my modules, as well
24188         * Makefile (sc_cpp_indent_check): Add my name.
24189         * lib/fbufmode.c: Filter through cppi.
24190         * lib/fpurge.c: Likewise.
24191         * lib/freadable.c: Likewise.
24192         * lib/freading.c: Likewise.
24193         * lib/fwritable.c: Likewise.
24194         * lib/fwriting.c: Likewise.
24195         * lib/sigaction.c: Likewise.
24196
24197 2011-02-22  Jim Meyering  <meyering@redhat.com>
24198
24199         maint: adjust cpp indentation to reflect nesting depth
24200         I.e., in a block of code that begins with an unnested "#if",
24201         put one space between the "#" in column 1 and following token.
24202         For example,
24203         -#include <sys/vfs.h>
24204         +# include <sys/vfs.h>
24205         Do this only in .c files that are part of a module I maintain.
24206         * lib/linkat.c: Filter through cppi.
24207         * lib/nanosleep.c: Likewise.
24208         * lib/openat.c: Likewise.
24209         * lib/openat-die.c: Likewise.
24210         * lib/dup3.c: Likewise.
24211         * lib/fchownat.c: Likewise.
24212         * lib/flock.c: Likewise.
24213         * lib/fsync.c: Likewise.
24214         * lib/fts.c: Likewise.
24215         * lib/getpass.c: Likewise.
24216         * lib/gettimeofday.c: Likewise.
24217         * lib/userspec.c: Likewise.
24218         * Makefile (sc_cpp_indent_check): New rule, to check this.
24219
24220 2011-02-22  Bruno Haible  <bruno@clisp.org>
24221
24222         New module 'wctomb'.
24223         * lib/stdlib.in.h (wctomb): New declaration.
24224         * lib/wctomb.c: New file.
24225         * lib/wctomb-impl.h: New file.
24226         * m4/wctomb.m4: New file.
24227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24228         REPLACE_WCTOMB.
24229         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24230         REPLACE_WCTOMB.
24231         * modules/wctomb: New file.
24232         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24233         * doc/posix-functions/wctomb.texi: Mention the new module.
24234         * modules/wctob (Depends-on): Add wctomb.
24235
24236 2011-02-22  Bruno Haible  <bruno@clisp.org>
24237
24238         New module 'mbtowc'.
24239         * lib/stdlib.in.h (mbtowc): New declaration.
24240         * lib/mbtowc.c: New file.
24241         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24242         * m4/mbtowc.m4: New file.
24243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24244         REPLACE_MBTOWC.
24245         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24246         REPLACE_MBTOWC.
24247         * modules/mbtowc: New file.
24248         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24249         * doc/posix-functions/mbtowc.texi: Mention the new module.
24250         * modules/btowc (Depends-on): Add mbtowc.
24251
24252 2011-02-22  Bruno Haible  <bruno@clisp.org>
24253
24254         wcrtomb: Add more tests for native Windows platforms.
24255         * tests/test-wcrtomb-w32-1.sh: New file.
24256         * tests/test-wcrtomb-w32-2.sh: New file.
24257         * tests/test-wcrtomb-w32-3.sh: New file.
24258         * tests/test-wcrtomb-w32-4.sh: New file.
24259         * tests/test-wcrtomb-w32-5.sh: New file.
24260         * tests/test-wcrtomb-w32.c: New file.
24261         * modules/wcrtomb-tests (Files): Add them.
24262         (Makefile.am): Arrange to run these tests.
24263         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24264         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24265
24266 2011-02-20  Bruno Haible  <bruno@clisp.org>
24267
24268         wcrtomb: Enhance test.
24269         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24270
24271 2011-02-20  Bruno Haible  <bruno@clisp.org>
24272
24273         mbrtowc: Tiny optimization.
24274         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24275
24276 2011-02-20  Jim Meyering  <meyering@redhat.com>
24277
24278         test-exclude.c: remove unmatched #endif
24279         * tests/test-exclude.c: Remove stray #endif, left over from
24280         the change of a week ago.
24281
24282 2011-02-19  Jim Meyering  <meyering@redhat.com>
24283
24284         git-version-gen: skip "-dirty" check when appropriate
24285         * build-aux/git-version-gen: Don't run any git commands when the
24286         version string comes from .tarball-version.  Prior to this, we
24287         would run git update-index --refresh even from a just-unpacked
24288         tarball directory, and that could affect a .git/ directory in a
24289         parent of the build directory.  Reported by Mike Frysinger.
24290
24291 2011-02-19  Bruno Haible  <bruno@clisp.org>
24292
24293         unictype/property-byname: Reduce the size of the 'data' segment.
24294         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24295
24296 2011-02-19  Bruno Haible  <bruno@clisp.org>
24297
24298         unictype/scripts: Reduce the size of the 'data' segment.
24299         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24300         '%pic'.
24301         * lib/unictype/scripts_byname.gperf: Regenerated.
24302
24303 2011-02-19  Bruno Haible  <bruno@clisp.org>
24304
24305         stdint: Update documentation.
24306         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24307
24308 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24309
24310         stdint: omit redundant check for wchar.h
24311         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24312         always tests whether wchar.h exists, so remove the now-redundant test.
24313
24314 2011-02-18  Bruno Haible  <bruno@clisp.org>
24315
24316         stdint: Cut dependency to module 'wchar'.
24317         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24318         include the necessary prerequisites.
24319         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24320         * modules/stdint (Depends-on): Remove wchar.
24321         (Makefile.am): Substitute HAVE_WCHAR_H.
24322         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24323
24324 2011-02-18  Eric Blake  <eblake@redhat.com>
24325
24326         longlong: skip, rather than fail, on cross-compilation
24327         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24328         when cross-compiling; regression from 2011-02-16.
24329
24330 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24331
24332         * NEWS: Mention 2011-02-08 change to stdlib.
24333
24334 2011-02-17  Bruno Haible  <bruno@clisp.org>
24335
24336         getloadavg: Add comments about platforms.
24337         * m4/getloadavg.m4: Add comment.
24338         * lib/getloadavg.c: Likewise.
24339
24340 2011-02-17  Bruno Haible  <bruno@clisp.org>
24341
24342         getloadavg: Fix link error on Solaris 2.6.
24343         * modules/getloadavg (Link): New section.
24344         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24345         linking test-getloadavg.
24346         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24347         getloadavg.
24348
24349 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24350
24351         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24352         It was 'int', but this doesn't match the IRIX 6.5 manual.
24353         Suggested by Bruno Haible in
24354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24355
24356 2011-02-17  Bruno Haible  <bruno@clisp.org>
24357
24358         havelib: Fix comments.
24359         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24360         change.
24361
24362 2011-02-17  Bruno Haible  <bruno@clisp.org>
24363
24364         havelib: Update config.rpath.
24365         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24366
24367 2011-02-17  Bruno Haible  <bruno@clisp.org>
24368
24369         getloadavg test: Add some plausibility checks.
24370         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24371         is improbable.
24372
24373 2011-02-16  Eric Blake  <eblake@redhat.com>
24374
24375         maintainer-makefile: make syntax-check a no-op from tarballs
24376         * top/maint.mk (no-vc-detected): New rule.
24377         (local-checks-available): Use it to avoid hanging if someone tries
24378         'make syntax-check' from a tarball.  Also append to any non-syntax
24379         checks already defined in cfg.mk.
24380
24381 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24382
24383         longlong: tune, particularly for common case of c99
24384
24385         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24386         or running anything if c99, or if unsigned long long int does not
24387         work.  In either case, we know the answer without further tests.
24388         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24389         it at most once, and use its results for both long long int and
24390         unsigned long long int.  This is more likely to be efficient in
24391         the common case where the program wants to check for both long
24392         long int and unsigned long long int.
24393         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24394         since the answer is already known.
24395
24396 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24397
24398         getloadavg: set errno
24399         * lib/getloadavg.c: Set errno when returning -1.  If no other
24400         error number looks appropriate, set it to ENOSYS if the getloadavg
24401         looks like it can't possibly ever work, ENOTSUP otherwise.
24402         Suggested by Bruno Haible in
24403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24404
24405         getloadavg: trim unused parts and speed up 'configure'
24406         * NEWS: Document this.
24407         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24408         always compiled if getloadavg is absent.
24409         Move test code to ...
24410         * tests/test-getloadavg.c: New file, containing previous
24411         contents of test from lib/getloadavg.c.  It also contains
24412         suggestions by Bruno Haible in
24413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24414         * modules/getloadavg-tests: New file.
24415         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24416         Do tests in the same order as they're needed for getloadavg.c.
24417         Omit setgid-related tests that generate symbols KMEM_GROUP,
24418         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24419         Do only the tests that are needed to see whether the system has
24420         getloadavg, moving the other tests into ...
24421         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24422         NLIST_NAME_UNION; nobody should be using it.  Do not define
24423         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24424         relevant, as the user of this module shouldn't care how getloadavg
24425         is implemented.
24426
24427         getloadavg: omit unused var
24428         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24429
24430 2011-02-15  Jim Meyering  <meyering@redhat.com>
24431
24432         doc: update users.txt
24433         * users.txt: Update iwhd's URL.
24434
24435 2011-02-13  Bruno Haible  <bruno@clisp.org>
24436
24437         Consistent macro naming for macros that use GCC __attribute__.
24438         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24439         _ATTRIBUTE_NONNULL_.
24440         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24441         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24442         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24443         ATTRIBUTE_DEPRECATED.
24444         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24445         ATTRIBUTE_NORETURN.
24446         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24447         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24448         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24449         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24450         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24451         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24452         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24453         ATTRIBUTE_SENTINEL.
24454         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24455         ATTRIBUTE_RETURN_CHECK.
24456         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24457         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24458         ATTRIBUTE_NORETURN.
24459         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24460         Reported by Paul Eggert.
24461
24462 2011-02-13  Bruno Haible  <bruno@clisp.org>
24463
24464         Don't interfere with a program's definition of __attribute__.
24465         * lib/argp.h (__attribute__): Remove definition.
24466         (_GL_ATTRIBUTE_FORMAT): New macro.
24467         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24468         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24469         (_GL_ATTRIBUTE_FORMAT): New macro.
24470         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24471         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24472         GCC 3 or newer.
24473         * lib/error.h (__attribute__): Remove definition.
24474         (_GL_ATTRIBUTE_FORMAT): New macro.
24475         (error, error_at_line): Use it.
24476         * lib/hash.h (__attribute__): Remove definition.
24477         (ATTRIBUTE_WUR): Update definition. Define always.
24478         * lib/openat.h (__attribute__): Remove definition.
24479         (ATTRIBUTE_NORETURN): Update definition. Define always.
24480         * lib/sigpipe-die.h (__attribute__): Remove definition.
24481         (ATTRIBUTE_NORETURN): Update definition. Define always.
24482         * lib/vasnprintf.h (__attribute__): Remove definition.
24483         (_GL_ATTRIBUTE_FORMAT): New macro.
24484         (asnprintf, vasnprintf): Use it.
24485         * lib/xalloc.h (__attribute__): Remove definition.
24486         (ATTRIBUTE_NORETURN): Update definition. Define always.
24487         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24488         * lib/xmemdup0.h (__attribute__): Remove definition.
24489         (ATTRIBUTE_NORETURN): Update definition. Define always.
24490         * lib/xprintf.h (__attribute__): Remove definition.
24491         (_GL_ATTRIBUTE_FORMAT): New macro.
24492         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24493         * lib/xstrtol.h (__attribute__): Remove definition.
24494         (ATTRIBUTE_NORETURN): Update definition. Define always.
24495         * lib/xvasprintf.h (__attribute__): Remove definition.
24496         (_GL_ATTRIBUTE_FORMAT): New macro.
24497         (xasprintf, xvasprintf): Use it.
24498         * tests/test-argmatch.c (__attribute__): Remove definition.
24499         (ATTRIBUTE_NORETURN): Update definition. Define always.
24500         * tests/test-exclude.c (__attribute__): Remove definition.
24501         (ATTRIBUTE_NORETURN): Update definition. Define always.
24502         Reported by Paul Eggert.
24503
24504 2011-02-13  Bruno Haible  <bruno@clisp.org>
24505
24506         mbrtowc: Add more tests for native Windows platforms.
24507         * tests/test-mbrtowc-w32-1.sh: New file.
24508         * tests/test-mbrtowc-w32-2.sh: New file.
24509         * tests/test-mbrtowc-w32-3.sh: New file.
24510         * tests/test-mbrtowc-w32-4.sh: New file.
24511         * tests/test-mbrtowc-w32-5.sh: New file.
24512         * tests/test-mbrtowc-w32.c: New file.
24513         * modules/mbrtowc-tests (Files): Add them.
24514         (Makefile.am): Arrange to run these tests.
24515         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24516         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24517
24518 2011-02-13  Bruno Haible  <bruno@clisp.org>
24519
24520         mbrtowc: Work around native Windows bug.
24521         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24522         guess when no suitable locale for testing was found.
24523         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24524
24525 2011-02-13  Bruno Haible  <bruno@clisp.org>
24526
24527         mbsinit: Work around mingw bug.
24528         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24529         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24530         Windows.
24531         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24532
24533 2011-02-13  Bruno Haible  <bruno@clisp.org>
24534
24535         mbsinit: Don't crash for a NULL argument.
24536         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24537         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24538
24539 2011-02-13  Bruno Haible  <bruno@clisp.org>
24540
24541         Don't interfere with a program's definition of __attribute__.
24542         * lib/stdio.in.h (__attribute__): Remove definition.
24543         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24544         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24545         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24546         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24547         * lib/string.in.h (__attribute__): Remove definition.
24548         Reported by Paul Eggert.
24549
24550 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24551
24552         stdlib: don't get in the way of non-GCC __attribute__
24553         See thread starting at
24554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24555         Revert previous stdlib change, installing the following instead:
24556         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24557         to get in the way of a non-GCC compiler that supports __attribute__.
24558         (_GL_ATTRIBUTE_RETURN): New macro.
24559         (_Exit): Use it instead of __attribute__.
24560
24561 2011-02-12  Bruno Haible  <bruno@clisp.org>
24562
24563         quotearg test: Avoid test failure on mingw.
24564         * tests/test-quotearg.sh: Convert the locale identifier from native
24565         Windows syntax to Unix syntax.
24566
24567 2011-02-12  Bruno Haible  <bruno@clisp.org>
24568
24569         setlocale: Prefer gnulib's override over libintl's override.
24570         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24571         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24572         GNULIB_defined_setlocale is set.
24573
24574 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24575
24576         stdlib: support non-GCC __attribute__
24577
24578         Fix a serious and tricky problem encountered when attempting to
24579         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24580         5.5, but it crashed due to memory corruption on Solaris 10 with
24581         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24582         bits that are otherwise zero.  This tagging is optional inside
24583         Emacs but is preferred and is used when __attribute__ ((__aligned
24584         (8))) works, as it does with both recent-enough GCC and with Sun C
24585         5.11.  However, Sun C 5.11 is not GCC and does not #define
24586         __GNUC__ and __GNUC_MINOR__.
24587
24588         When I added the getloadavg module to Emacs, it brought in
24589         stdlib.in.h, which contained this fragment:
24590
24591            #ifndef __attribute__
24592            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24593            #  define __attribute__(Spec)   /* empty */
24594            # endif
24595            #endif
24596
24597         When files that include <stdlib.h> were compiled with Sun C 5.11,
24598         the above code disabled __attribute__ ((__aligned (8))), which
24599         caused variables to not be properly aligned, which eventually led
24600         to the pointer corruption mentioned above.  (This was a bit hard
24601         to diagnose, unfortunately.)
24602
24603         Several "#define __attribute__(X) /* empty */" code snippets need
24604         to be eradicated from Gnulib to work with non-GCC compilers that
24605         support __attribute__.  The Autoconf way to do this is to test for
24606         each kind of attribute that we want support for, and selectively
24607         enable that in source code.
24608
24609         Fix this problem just for stdlib.h, by adding a test for the
24610         __noreturn__ attribute, and change stdlib.in.h to use that test
24611         when needed.  This technique can be easily generalized to the
24612         other *.in.h files and attributes, and a similar technique can be
24613         used for *.h and *.c files.  This patch is enough to solve the
24614         problem for Emacs + getloadavg, and I thought I'd publish it for
24615         feedback before undertaking further, similar fixes in other
24616         modules.
24617
24618         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24619         because it's not needed for stdlib.h.  It merely substitutes the
24620         value directly into stdlib.h.  We may well need to #define it, or
24621         similar symbols, for other modules, but it's nice to also have an
24622         option to not #define it for applications like Emacs that do not
24623         need it.
24624
24625         * lib/stdlib.in.h (__attribute__): Do not #define.
24626         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24627         be defined only if the _Exit module is also used.
24628         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24630         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24631         platforms.
24632         * modules/_Exit (Files): Add m4/attribute.m4.
24633         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24634         * m4/attribute.m4: New file.
24635
24636 2011-02-12  Bruno Haible  <bruno@clisp.org>
24637
24638         wcsrtombs: Work around bug on native Windows.
24639         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24640         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24641         instead of len.
24642         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24643
24644 2011-02-12  Bruno Haible  <bruno@clisp.org>
24645
24646         mbsrtowcs: Work around bug on native Windows.
24647         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24648         against mingw bug.
24649         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24650
24651 2011-02-12  Bruno Haible  <bruno@clisp.org>
24652
24653         Avoid setlocale bugs in tests.
24654         * modules/btowc (Dependencies): Add setlocale.
24655         * modules/c-strcase (Dependencies): Likewise.
24656         * modules/mbmemcasecmp (Dependencies): Likewise.
24657         * modules/mbmemcasecoll (Dependencies): Likewise.
24658         * modules/mbrtowc (Dependencies): Likewise.
24659         * modules/mbscasecmp (Dependencies): Likewise.
24660         * modules/mbscasestr (Dependencies): Likewise.
24661         * modules/mbschr (Dependencies): Likewise.
24662         * modules/mbscspn (Dependencies): Likewise.
24663         * modules/mbsinit (Dependencies): Likewise.
24664         * modules/mbsncasecmp (Dependencies): Likewise.
24665         * modules/mbsnrtowcs (Dependencies): Likewise.
24666         * modules/mbspbrk (Dependencies): Likewise.
24667         * modules/mbspcasecmp (Dependencies): Likewise.
24668         * modules/mbsrchr (Dependencies): Likewise.
24669         * modules/mbsrtowcs (Dependencies): Likewise.
24670         * modules/mbsspn (Dependencies): Likewise.
24671         * modules/mbsstr (Dependencies): Likewise.
24672         * modules/nl_langinfo (Dependencies): Likewise.
24673         * modules/quotearg (Dependencies): Likewise.
24674         * modules/unicase/locale-language (Dependencies): Likewise.
24675         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24676         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24677         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24678         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24679         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24680         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24681         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24682         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24683         * modules/vasnprintf-posix (Dependencies): Likewise.
24684         * modules/wcrtomb (Dependencies): Likewise.
24685         * modules/wcsnrtombs (Dependencies): Likewise.
24686         * modules/wcsrtombs (Dependencies): Likewise.
24687
24688 2011-02-12  Bruno Haible  <bruno@clisp.org>
24689
24690         setlocale: Workaround native Windows bug.
24691         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24692         succeeds but sets LC_CTYPE to "C", report a failure.
24693         * tests/test-setlocale2.sh: New file.
24694         * tests/test-setlocale2.c: New file.
24695         * modules/setlocale-tests (Files): Add the new files.
24696         (Makefile.am): Enable test-setlocale2.sh test.
24697         * doc/posix-functions/setlocale.texi: Mention workaround.
24698
24699 2011-02-11  Bruno Haible  <bruno@clisp.org>
24700
24701         Tests for module 'setlocale'.
24702         * modules/setlocale-tests: New file.
24703         * tests/test-setlocale1.sh: New file.
24704         * tests/test-setlocale1.c: New file.
24705
24706         New module 'setlocale'.
24707         * lib/locale.in.h (setlocale): New declaration.
24708         * lib/setlocale.c: New file, based on
24709         gettext/gettext-runtime/intl/setlocale.c.
24710         * m4/setlocale.m4: New file.
24711         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24712         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24713         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24714         REPLACE_SETLOCALE.
24715         * modules/setlocale: New file.
24716         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24717         * doc/posix-functions/setlocale.texi: Mention the new module.
24718
24719 2011-02-11  Bruno Haible  <bruno@clisp.org>
24720
24721         Prepare for locale dependent tests on mingw.
24722         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24723         because it has the wrong locale encoding.
24724         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24725         French_France.1252 instead of "fr".
24726         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24727         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24728         because it has the wrong locale encoding.
24729         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24730         native Windows, try Turkish_Turkey.65001.
24731         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24732         Chinese_China.54936.
24733
24734         Prepare for locale dependent tests on mingw.
24735         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24736         differently.
24737         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24738         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24739         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24740         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24741
24742 2011-02-11  Eric Blake  <eblake@redhat.com>
24743
24744         strptime: avoid compiler warnings
24745         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24746         compiler warnings about dead code.
24747         Reported by Daniel P. Berrange.
24748
24749 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24750
24751         doc: update users.txt
24752         * users.txt: Add rcs.
24753
24754 2011-02-10  John W. Eaton  <jwe@gnu.org>
24755
24756         doc: update users.txt
24757         * users.txt: Add octave.
24758
24759 2011-02-10  Jim Meyering  <meyering@redhat.com>
24760
24761         doc: update users.txt
24762         * users.txt: Add iwhd.
24763
24764 2011-02-09  Bruno Haible  <bruno@clisp.org>
24765
24766         gnulib-tool: Make copyright notice adjustment more robust.
24767         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24768         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24769         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24770         License".
24771         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24772
24773 2011-02-06  Bruno Haible  <bruno@clisp.org>
24774
24775         New module 'towctrans'.
24776         * modules/towctrans: New file.
24777         * lib/wctype.in.h (towctrans): New declaration.
24778         * lib/towctrans.c: New file.
24779         * lib/towctrans-impl.h: New file.
24780         * m4/towctrans.m4: New file.
24781         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24782         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24783         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24784         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24785         * doc/posix-functions/towctrans.texi: Mention the new module.
24786
24787 2011-02-06  Bruno Haible  <bruno@clisp.org>
24788
24789         New module 'wctrans'.
24790         * modules/wctrans: New file.
24791         * lib/wctype.in.h (wctrans): New declaration.
24792         * lib/wctrans.c: New file.
24793         * lib/wctrans-impl.h: New file.
24794         * m4/wctrans.m4: New file.
24795         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24796         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24797         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24798         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24799         * doc/posix-functions/wctrans.texi: Mention the new module.
24800
24801 2011-02-06  Bruno Haible  <bruno@clisp.org>
24802
24803         New module 'iswctype'.
24804         * modules/iswctype: New file.
24805         * lib/wctype.in.h (iswctype): New declaration.
24806         * lib/iswctype.c: New file.
24807         * lib/iswctype-impl.h: New file.
24808         * m4/iswctype.m4: New file.
24809         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24810         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24811         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24812         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24813         * doc/posix-functions/iswctype.texi: Mention the new module and the
24814         HP-UX 11.00 problem.
24815
24816 2011-02-06  Bruno Haible  <bruno@clisp.org>
24817
24818         New module 'wctype'.
24819         * modules/wctype: Change to represent the wctype() substitute.
24820         * lib/wctype.in.h (wctype): New declaration.
24821         * lib/wctype.c: New file.
24822         * lib/wctype-impl.h: New file.
24823         * m4/wctype.m4: New file.
24824         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24825         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24826         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24827         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24828         * doc/posix-functions/wctype.texi: Mention the new module and the
24829         HP-UX 11.00 problem.
24830
24831 2011-02-06  Bruno Haible  <bruno@clisp.org>
24832
24833         wctype-h: Ensure wctype_t and wctrans_t are defined.
24834         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24835         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24836         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24837         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24838         HAVE_WCTRANS_T.
24839         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24840
24841 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24842
24843         flock: fix license typo
24844
24845         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24846         omitted.
24847
24848 2011-02-08  Bruno Haible  <bruno@clisp.org>
24849
24850         Split large sed scripts, for HP-UX sed.
24851         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24852         to avoid HP-UX limit of 99 commands, in the near future.
24853         * modules/stdlib (Makefile.am): Likewise.
24854         * modules/unistd (Makefile.am): Likewise.
24855         * modules/wchar (Makefile.am): Likewise.
24856         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24857         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24858         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24859
24860 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24861             Bruno Haible  <bruno@clisp.org>
24862
24863         stdlib: improve random_r modularization
24864         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24865         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24866         you also need the random_r module to get this material right.
24867         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24868         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24869         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24870
24871 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24872
24873         stdlib: don't depend on stdint
24874         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24875         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24876         be independent of whether stdint.h is needed.
24877         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24878         here, instead of ...
24879         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24880         struct random_data should be using the random_r module, not just
24881         the stdlib module (which wouldn't make sense: what package needs
24882         just struct random_data without also needing random_r?).
24883         * modules/stdlib (Depends-on): Remove stdint.
24884
24885         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24886         See the thread rooted at
24887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24888         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24889         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24890         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24891         __VMS)); previously it was always included (via fcntl--.h).
24892         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24893         hand; this is good enough for load averages.  Also, do not use
24894         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24895         flags directly if available and don't bother otherwise.  (Packages
24896         that need the extra reliability should use the modules that define
24897         these flags on older platforms that lack them.)
24898         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24899         fcntl-safer.
24900
24901 2011-02-08  Jim Meyering  <meyering@redhat.com>
24902
24903         di-set.h, ino-map.h: add multiple-inclusion guard
24904         Technically, the guard is required only for ino-map.h, due to its
24905         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24906         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24907         * lib/ino-map.h: Likewise.
24908
24909 2011-02-06  Bruno Haible  <bruno@clisp.org>
24910
24911         iswblank: Ensure declaration on glibc systems.
24912         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24913         * modules/iswblank (Dependencies): Add 'extensions'.
24914         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24915
24916 2011-02-06  Bruno Haible  <bruno@clisp.org>
24917
24918         New module 'iswblank'.
24919         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24920         * modules/iswblank: New file.
24921         * modules/wctype-h (Files): Remove lib/iswblank.c.
24922         (Makefile.am): Substitute GNULIB_ISWBLANK.
24923         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24924         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24925         (gl_WCTYPE_H_DEFAULTS): New macro.
24926         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24927         * modules/iswblank-tests: New file.
24928         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24929         * tests/test-wctype-h.c (main): Remove iswblank tests.
24930         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24931         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24932         of 'wctype-h'.
24933         * NEWS: Mention the change.
24934         * modules/mbchar (Depends-on): Add iswblank.
24935
24936 2011-02-08  Bruno Haible  <bruno@clisp.org>
24937
24938         di-set tests: Refactor.
24939         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24940         unnecessary includes.
24941         (ASSERT): Remove macro.
24942         (main): Make C90 compliant by avoiding variable declaration after
24943         statement.
24944         * modules/di-set-tests (Files): Add tests/macros.h.
24945
24946 2011-02-08  Bruno Haible  <bruno@clisp.org>
24947
24948         ino-map tests: Refactor.
24949         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24950         unnecessary includes.
24951         (ASSERT): Remove macro.
24952         (main): Make C90 compliant by avoiding variable declaration after
24953         statement.
24954         * modules/ino-map-tests (Files): Add tests/macros.h.
24955
24956 2011-02-08  Jim Meyering  <meyering@redhat.com>
24957
24958         di-set: add "const" to a cast
24959         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24960         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24961
24962 2011-02-06  Bruno Haible  <bruno@clisp.org>
24963
24964         Rename module 'wctype' to 'wctype-h'.
24965         * modules/wctype-h: Renamed from modules/wctype.
24966         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24967         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24968         (Files, Depends-on, Makefile.am): Update.
24969         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24970         (Files, Makefile.am): Update.
24971         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24972         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24973         * doc/posix-headers/wctype.texi: Update.
24974         * doc/posix-functions/iswalnum.texi: Update.
24975         * doc/posix-functions/iswalpha.texi: Update.
24976         * doc/posix-functions/iswblank.texi: Update.
24977         * doc/posix-functions/iswcntrl.texi: Update.
24978         * doc/posix-functions/iswdigit.texi: Update.
24979         * doc/posix-functions/iswgraph.texi: Update.
24980         * doc/posix-functions/iswlower.texi: Update.
24981         * doc/posix-functions/iswprint.texi: Update.
24982         * doc/posix-functions/iswpunct.texi: Update.
24983         * doc/posix-functions/iswspace.texi: Update.
24984         * doc/posix-functions/iswupper.texi: Update.
24985         * doc/posix-functions/iswxdigit.texi: Update.
24986         * doc/posix-functions/towlower.texi: Update.
24987         * doc/posix-functions/towupper.texi: Update.
24988         * NEWS: Mention the change.
24989         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24990         * modules/mbchar (Dependencies): Likewise.
24991         * modules/mbswidth (Dependencies): Likewise.
24992         * modules/quotearg (Dependencies): Likewise.
24993         * modules/regex (Dependencies): Likewise.
24994         * modules/wcscasecmp (Dependencies): Likewise.
24995         * modules/wcsncasecmp (Dependencies): Likewise.
24996         * modules/wcwidth (Dependencies): Likewise.
24997
24998 2011-02-06  Bruno Haible  <bruno@clisp.org>
24999
25000         New module 'wcswidth'.
25001         * modules/wcswidth: New file.
25002         * lib/wchar.in.h (wcswidth): New declaration.
25003         * lib/wcswidth.c: New file.
25004         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25005         * m4/wcswidth.m4: New file.
25006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25008         REPLACE_WCSWIDTH.
25009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25010         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25011         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25012         * doc/posix-functions/wcswidth.texi: Mention the new module.
25013
25014 2011-02-06  Bruno Haible  <bruno@clisp.org>
25015
25016         New module 'wcstok'.
25017         * modules/wcstok: New file.
25018         * lib/wchar.in.h (wcstok): New declaration.
25019         * lib/wcstok.c: New file.
25020         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25021         * m4/wcstok.m4: New file.
25022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25024         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25025         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25026         * doc/posix-functions/wcstok.texi: Mention the new module.
25027
25028 2011-02-06  Bruno Haible  <bruno@clisp.org>
25029
25030         New module 'wcsstr'.
25031         * modules/wcsstr: New file.
25032         * lib/wchar.in.h (wcsstr): New declaration.
25033         * lib/wcsstr.c: New file.
25034         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25035         * m4/wcsstr.m4: New file.
25036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25038         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25039         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25040         * doc/posix-functions/wcsstr.texi: Mention the new module.
25041
25042 2011-02-06  Bruno Haible  <bruno@clisp.org>
25043
25044         New module 'wcspbrk'.
25045         * modules/wcspbrk: New file.
25046         * lib/wchar.in.h (wcspbrk): New declaration.
25047         * lib/wcspbrk.c: New file.
25048         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25049         * m4/wcspbrk.m4: New file.
25050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25052         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25053         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25054         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25055
25056 2011-02-06  Bruno Haible  <bruno@clisp.org>
25057
25058         New module 'wcsspn'.
25059         * modules/wcsspn: New file.
25060         * lib/wchar.in.h (wcsspn): New declaration.
25061         * lib/wcsspn.c: New file.
25062         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25063         * m4/wcsspn.m4: New file.
25064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25066         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25067         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25068         * doc/posix-functions/wcsspn.texi: Mention the new module.
25069
25070 2011-02-06  Bruno Haible  <bruno@clisp.org>
25071
25072         New module 'wcscspn'.
25073         * modules/wcscspn: New file.
25074         * lib/wchar.in.h (wcscspn): New declaration.
25075         * lib/wcscspn.c: New file.
25076         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25077         * m4/wcscspn.m4: New file.
25078         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25079         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25080         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25081         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25082         * doc/posix-functions/wcscspn.texi: Mention the new module.
25083
25084 2011-02-06  Bruno Haible  <bruno@clisp.org>
25085
25086         New module 'wcsrchr'.
25087         * modules/wcsrchr: New file.
25088         * lib/wchar.in.h (wcsrchr): New declaration.
25089         * lib/wcsrchr.c: New file.
25090         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25091         * m4/wcsrchr.m4: New file.
25092         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25093         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25094         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25095         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25096         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25097
25098 2011-02-06  Bruno Haible  <bruno@clisp.org>
25099
25100         New module 'wcschr'.
25101         * modules/wcschr: New file.
25102         * lib/wchar.in.h (wcschr): New declaration.
25103         * lib/wcschr.c: New file.
25104         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25105         * m4/wcschr.m4: New file.
25106         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25107         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25108         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25109         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25110         * doc/posix-functions/wcschr.texi: Mention the new module.
25111
25112 2011-02-06  Bruno Haible  <bruno@clisp.org>
25113
25114         New module 'wcsdup'.
25115         * modules/wcsdup: New file.
25116         * lib/wchar.in.h (wcsdup): New declaration.
25117         * lib/wcsdup.c: New file.
25118         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25119         * m4/wcsdup.m4: New file.
25120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25123         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25124         * doc/posix-functions/wcsdup.texi: Mention the new module.
25125
25126 2011-02-06  Bruno Haible  <bruno@clisp.org>
25127
25128         New module 'wcsxfrm'.
25129         * modules/wcsxfrm: New file.
25130         * lib/wchar.in.h (wcsxfrm): New declaration.
25131         * lib/wcsxfrm.c: New file.
25132         * lib/wcsxfrm-impl.h: New file.
25133         * m4/wcsxfrm.m4: New file.
25134         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25135         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25136         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25137         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25138         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25139
25140 2011-02-06  Bruno Haible  <bruno@clisp.org>
25141
25142         New module 'wcscoll'.
25143         * modules/wcscoll: New file.
25144         * lib/wchar.in.h (wcscoll): New declaration.
25145         * lib/wcscoll.c: New file.
25146         * lib/wcscoll-impl.h: New file.
25147         * m4/wcscoll.m4: New file.
25148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25150         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25151         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25152         * doc/posix-functions/wcscoll.texi: Mention the new module.
25153
25154 2011-02-06  Bruno Haible  <bruno@clisp.org>
25155
25156         New module 'wcsncasecmp'.
25157         * modules/wcsncasecmp: New file.
25158         * lib/wchar.in.h (wcsncasecmp): New declaration.
25159         * lib/wcsncasecmp.c: New file.
25160         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25161         * m4/wcsncasecmp.m4: New file.
25162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25164         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25165         HAVE_WCSNCASECMP.
25166         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25167         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25168
25169 2011-02-06  Bruno Haible  <bruno@clisp.org>
25170
25171         New module 'wcscasecmp'.
25172         * modules/wcscasecmp: New file.
25173         * lib/wchar.in.h (wcscasecmp): New declaration.
25174         * lib/wcscasecmp.c: New file.
25175         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25176         * m4/wcscasecmp.m4: New file.
25177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25179         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25180         HAVE_WCSCASECMP.
25181         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25182         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25183
25184 2011-02-05  Bruno Haible  <bruno@clisp.org>
25185
25186         New module 'wcsncmp'.
25187         * modules/wcsncmp: New file.
25188         * lib/wchar.in.h (wcsncmp): New declaration.
25189         * lib/wcsncmp.c: New file.
25190         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25191         * m4/wcsncmp.m4: New file.
25192         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25193         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25194         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25195         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25196         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25197
25198 2011-02-05  Bruno Haible  <bruno@clisp.org>
25199
25200         New module 'wcscmp'.
25201         * modules/wcscmp: New file.
25202         * lib/wchar.in.h (wcscmp): New declaration.
25203         * lib/wcscmp.c: New file.
25204         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25205         * m4/wcscmp.m4: New file.
25206         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25207         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25209         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25210         * doc/posix-functions/wcscmp.texi: Mention the new module.
25211
25212 2011-02-05  Bruno Haible  <bruno@clisp.org>
25213
25214         New module 'wcsncat'.
25215         * modules/wcsncat: New file.
25216         * lib/wchar.in.h (wcsncat): New declaration.
25217         * lib/wcsncat.c: New file.
25218         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25219         * m4/wcsncat.m4: New file.
25220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25222         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25223         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25224         * doc/posix-functions/wcsncat.texi: Mention the new module.
25225
25226 2011-02-05  Bruno Haible  <bruno@clisp.org>
25227
25228         New module 'wcscat'.
25229         * modules/wcscat: New file.
25230         * lib/wchar.in.h (wcscat): New declaration.
25231         * lib/wcscat.c: New file.
25232         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25233         * m4/wcscat.m4: New file.
25234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25237         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25238         * doc/posix-functions/wcscat.texi: Mention the new module.
25239
25240 2011-02-05  Bruno Haible  <bruno@clisp.org>
25241
25242         New module 'wcpncpy'.
25243         * modules/wcpncpy: New file.
25244         * lib/wchar.in.h (wcpncpy): New declaration.
25245         * lib/wcpncpy.c: New file.
25246         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25247         * m4/wcpncpy.m4: New file.
25248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25250         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25251         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25252         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25253
25254 2011-02-05  Bruno Haible  <bruno@clisp.org>
25255
25256         New module 'wcsncpy'.
25257         * modules/wcsncpy: New file.
25258         * lib/wchar.in.h (wcsncpy): New declaration.
25259         * lib/wcsncpy.c: New file.
25260         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25261         * m4/wcsncpy.m4: New file.
25262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25265         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25266         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25267
25268 2011-02-05  Bruno Haible  <bruno@clisp.org>
25269
25270         New module 'wcpcpy'.
25271         * modules/wcpcpy: New file.
25272         * lib/wchar.in.h (wcpcpy): New declaration.
25273         * lib/wcpcpy.c: New file.
25274         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25275         * m4/wcpcpy.m4: New file.
25276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25278         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25279         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25280         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25281
25282 2011-02-05  Bruno Haible  <bruno@clisp.org>
25283
25284         New module 'wcscpy'.
25285         * modules/wcscpy: New file.
25286         * lib/wchar.in.h (wcscpy): New declaration.
25287         * lib/wcscpy.c: New file.
25288         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25289         * m4/wcscpy.m4: New file.
25290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25293         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25294         * doc/posix-functions/wcscpy.texi: Mention the new module.
25295
25296 2011-02-05  Bruno Haible  <bruno@clisp.org>
25297
25298         New module 'wcsnlen'.
25299         * modules/wcsnlen: New file.
25300         * lib/wchar.in.h (wcsnlen): New declaration.
25301         * lib/wcsnlen.c: New file.
25302         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25303         * m4/wcsnlen.m4: New file.
25304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25307         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25308         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25309
25310 2011-02-05  Bruno Haible  <bruno@clisp.org>
25311
25312         New module 'wcslen'.
25313         * modules/wcslen: New file.
25314         * lib/wchar.in.h (wcslen): New declaration.
25315         * lib/wcslen.c: New file.
25316         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25317         * m4/wcslen.m4: New file.
25318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25321         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25322         * doc/posix-functions/wcslen.texi: Mention the new module.
25323
25324 2011-02-05  Bruno Haible  <bruno@clisp.org>
25325
25326         New module 'wmemset'.
25327         * modules/wmemset: New file.
25328         * lib/wchar.in.h (wmemset): New declaration.
25329         * lib/wmemset.c: New file.
25330         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25331         * m4/wmemset.m4: New file.
25332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25334         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25335         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25336         * doc/posix-functions/wmemset.texi: Mention the new module.
25337
25338 2011-02-05  Bruno Haible  <bruno@clisp.org>
25339
25340         New module 'wmemmove'.
25341         * modules/wmemmove: New file.
25342         * lib/wchar.in.h (wmemmove): New declaration.
25343         * lib/wmemmove.c: New file.
25344         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25345         * m4/wmemmove.m4: New file.
25346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25348         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25349         HAVE_WMEMMOVE.
25350         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25351         * doc/posix-functions/wmemmove.texi: Mention the new module.
25352
25353 2011-02-05  Bruno Haible  <bruno@clisp.org>
25354
25355         New module 'wmemcpy'.
25356         * modules/wmemcpy: New file.
25357         * lib/wchar.in.h (wmemcpy): New declaration.
25358         * lib/wmemcpy.c: New file.
25359         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25360         * m4/wmemcpy.m4: New file.
25361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25363         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25364         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25365         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25366
25367 2011-02-05  Bruno Haible  <bruno@clisp.org>
25368
25369         New module 'wmemcmp'.
25370         * modules/wmemcmp: New file.
25371         * lib/wchar.in.h (wmemcmp): New declaration.
25372         * lib/wmemcmp.c: New file.
25373         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25374         * m4/wmemcmp.m4: New file.
25375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25377         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25378         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25379         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25380
25381 2011-02-07  Jim Meyering  <meyering@redhat.com>
25382
25383         di-set, ino-map: new modules, from coreutils
25384         * lib/di-set.c: New file.
25385         * lib/di-set.h: Likewise.
25386         * lib/ino-map.c: Likewise.
25387         * lib/ino-map.h: Likewise.
25388         * modules/di-set: Likewise.
25389         * modules/di-set-tests: Likewise.
25390         * modules/ino-map: Likewise.
25391         * modules/ino-map-tests: Likewise.
25392         * tests/test-di-set.c: Likewise.
25393         * tests/test-ino-map.c: Likewise.
25394
25395 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25396
25397         getloadavg: merge minor changes from Emacs
25398
25399         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25400         (getloadavg): Use memset, not bzero.
25401
25402         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25403         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25404         clash (bug#86).
25405
25406 2010-11-14  Bruno Haible  <bruno@clisp.org>
25407
25408         Allow multiple gnulib generated replacements to coexist.
25409         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25410         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25411         * lib/langinfo.in.h (nl_item): Likewise.
25412         * lib/math.in.h (_NaN, NAN): Likewise.
25413         * lib/netdb.in.h (struct addrinfo): Likewise.
25414         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25415         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25416         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25417         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25418         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25419         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25420         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25421         pthread_mutexattr_init, pthread_mutexattr_settype,
25422         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25423         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25424         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25425         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25426         * lib/sched.in.h (struct sched_param): Likewise.
25427         * lib/se-selinux.in.h (security_class_t, security_context_t,
25428         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25429         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25430         lsetfilecon, fsetfilecon, security_check_context,
25431         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25432         Likewise.
25433         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25434         Likewise.
25435         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25436         _gl_function_taking_int_returning_void_t, union sigval,
25437         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25438         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25439         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25440         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25441         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25442         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25443         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25444         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25445         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25446         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25447         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25448         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25449         socklen_t, rpl_fd_isset): Likewise.
25450         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25451         * lib/sys_time.in.h (struct timeval): Likewise.
25452         * lib/sys_times.in.h (struct tms): Likewise.
25453         * lib/sys_utsname.in.h (struct utsname):
25454         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25455         * lib/unistd.in.h (getpagesize): Likewise.
25456         * lib/wchar.in.h (mbstate_t): Likewise.
25457         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25458         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25459         towlower, towupper): Likewise.
25460         Reported by Sam Steingold <sds@gnu.org>.
25461
25462 2011-02-05  Eric Blake  <eblake@redhat.com>
25463
25464         unsetenv: work around Haiku issues
25465         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25466         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25467
25468 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25469
25470         libposix: avoid calling error() within libposix
25471         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25472         is defined.
25473
25474 2011-02-05  Eric Blake  <eblake@redhat.com>
25475
25476         strerror_r-posix: port to cygwin
25477         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25478         implementation.
25479         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25480         * tests/test-strerror_r.c (main): Fix test.
25481         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25482         issue.
25483
25484 2011-02-05  Bruno Haible  <bruno@clisp.org>
25485
25486         New module 'wmemchr'.
25487         * modules/wmemchr: New file.
25488         * lib/wchar.in.h (wmemchr): New declaration.
25489         * lib/wmemchr.c: New file.
25490         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25491         * m4/wmemchr.m4: New file.
25492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25494         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25495         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25496         * doc/posix-functions/wmemchr.texi: Mention the new module.
25497
25498 2011-02-04  Eric Blake  <eblake@redhat.com>
25499
25500         fdopendir: detect FreeBSD bug
25501         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25502         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25503
25504 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25505
25506         stdbool: do not define HAVE_STDBOOL_H
25507         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25508         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25509         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25510         imported from the latest Autoconf git.  It was motivated by Emacs,
25511         which uses gnulib but does not need HAVE_STDBOOL_H.
25512
25513 2011-02-04  Bruno Haible  <bruno@clisp.org>
25514
25515         wcsnrtombs: Prepare for new module wwcsnrtombs.
25516         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25517         * lib/wcsnrtombs.c: Include it.
25518         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25519
25520         wcsrtombs: Prepare for new module wwcsrtombs.
25521         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25522         * lib/wcsrtombs.c: Include it.
25523         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25524
25525         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25526         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25527         * lib/mbsnrtowcs.c: Include it.
25528         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25529
25530         mbsrtowcs: Prepare for new module mbsrtowwcs.
25531         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25532         * lib/mbsrtowcs.c: Include it.
25533         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25534
25535 2011-02-04  Bruno Haible  <bruno@clisp.org>
25536
25537         vasnprintf: Reduce use of malloc for small format strings.
25538         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25539         (arguments): Add room for the first 7 arguments.
25540         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25541         (char_directives, u8_directives, u16_directives, u32_directives): Add
25542         room for the first 7 directives.
25543         * lib/printf-parse.c: Include <string.h>.
25544         (PRINTF_PARSE): Change memory handling code so that it uses the first
25545         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25546         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25547         Reported by Pádraig Brady <P@draigbrady.com>.
25548
25549 2011-01-31  Eric Blake  <eblake@redhat.com>
25550
25551         dup2: work around Haiku bug
25552         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25553         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25554         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25555         * tests/test-dup2.c (main): Enhance test.
25556
25557 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25558
25559         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25560         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25561         declared by eglibc 2.11.2.
25562         * lib/stdio.in.h: Likewise.
25563
25564 2011-01-31  Eric Blake  <eblake@redhat.com>
25565
25566         ignore-value: add missing test dependency
25567         * tests/test-ignore-value.c: Revert previous change; stdio.h
25568         provides off_t.
25569         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25570
25571 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25572
25573         mktime: clarify long_int width checking
25574         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25575         the top level, to make it clearer that the assumption about
25576         long_int width is being checked.  See
25577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25578
25579 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25580
25581         ignore-value: Fix self-test.
25582         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25583
25584 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25585
25586         TYPE_MAXIMUM: avoid theoretically undefined behavior
25587         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25588         negative number, which the C Standard says has undefined behavior.
25589         In practice this is not a problem, but might as well do it by the book.
25590         Reported by Rich Felker and Eric Blake; see
25591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25592         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25593         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25595         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25596         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25597         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25598
25599         mktime: #undef mktime before #defining it
25600         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25601
25602         mktime: systematically normalize tm_isdst comparisons
25603         * lib/mktime.c (isdst_differ): New function.
25604         (__mktime_internal): Use it systematically for all isdst comparisons.
25605         This completes the fix for libc BZ #6723, and removes the need for
25606         normalizing tm_isdst.  See
25607         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25608         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25609
25610         mktime: fix some integer overflow issues and sidestep the rest
25611
25612         This was prompted by a bug report by Benjamin Lindner for MinGW
25613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25614         His bug is due to signed integer overflow (0 - INT_MIN), and I
25615         I scanned through mktime.c looking for other integer overflow
25616         problems, fixing all the bugs I found.
25617
25618         Although the C Standard says the resulting code is still not safe
25619         in the presence of integer overflow, in practice it should be good
25620         enough for all real-world two's-complement implementations, except
25621         for debugging environments that deliberately trap on integer
25622         overflow (e.g., gcc -ftrapv).
25623
25624         * lib/mktime.c (WRAPV): New macro.
25625         (SHR): Also check that long_int and time_t shift right in the
25626         usual way, before using the fast-but-unportable method.
25627         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25628         used.  The code already assumed two's complement, so there's
25629         no need to test for alternatives.  All uses removed.
25630         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25631         the C standard.  Problem reported by Rich Felker in
25632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25633         (twos_complement_arithmetic): Also check long_int and time_t.
25634         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25635         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25636         (__mktime_internal): Avoid integer overflow with unary subtraction
25637         in two instances where -1 - X is an adequate replacement for -X,
25638         since the calculations are approximate.
25639
25640 2011-01-29  Eric Blake  <eblake@redhat.com>
25641
25642         mktime: avoid infinite loop
25643         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25644         type; behavior is still undefined but portable to all known targets.
25645         Reported by Rich Felker.
25646
25647 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25648
25649         rename, unlink, same-inode: Relicense.
25650         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25651         * modules/unlink (License): Likewise.
25652         * modules/same-inode (License): Likewise.
25653
25654 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25655
25656         mktime: avoid problems on NetBSD 5 / i386
25657         * lib/mktime.c (long_int): New type.  This works around a problem
25658         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25659         but time_t is 64 bits, and where I expect the existing code is
25660         wrong in some cases.
25661         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25662         (ydhms_diff): Bring back the compile-time check for wide-enough
25663         year and yday.
25664
25665         mktime: fix misspelling in comment
25666         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25667         This merges all recent glibc changes of importance.
25668
25669 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25670
25671         move-if-change: cope with concurrent mv of identical file.
25672         * build-aux/move-if-change (CMPPROG): Accept environment
25673         variable as an override for `cmp'.
25674         (usage): Document CMPPROG.
25675         Adjust comparison to drop stdout.  Cope with failure of mv if
25676         the target file exists and is identical to the source, for
25677         parallel builds.
25678         Report from H.J. Lu against binutils in PR binutils/12283.
25679
25680 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25681
25682         * users.txt: Mention sharutils.
25683
25684 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25685
25686         * users.txt: Mention OATH Toolkit.
25687
25688 2011-01-27  Bruno Haible  <bruno@clisp.org>
25689
25690         Prepare for supporting FreeBSD 10.
25691         * build-aux/config.libpath: Remove handling of freebsd1*.
25692
25693 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25694
25695         Prepare for supporting FreeBSD 10.
25696         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25697         match FreeBSD 10.0.
25698
25699 2011-01-27  Bruno Haible  <bruno@clisp.org>
25700
25701         vma-iter, get-rusage-as: Add OpenBSD support.
25702         * modules/vma-iter (configure.ac): Test for mquery.
25703         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25704         * lib/vma-iter.c: Include <sys/mman.h>.
25705         (vma_iterate): Add an implementation based on mquery().
25706         * lib/resource-ext.h (get_rusage_as): Update comments.
25707         * lib/get-rusage-as.c: Likewise.
25708         * lib/get-rusage-data.c: Likewise.
25709
25710 2011-01-26  Karl Berry  <karl@gnu.org>
25711
25712         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25713         variables to make it easier to override the makeinfo program used.
25714
25715 2011-01-26  Eric Blake  <eblake@redhat.com>
25716
25717         fcntl: work around Haiku F_DUPFD bugs
25718         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25719         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25720         cloexec bit on duplication.
25721         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25722
25723 2011-01-26  Bruno Haible  <bruno@clisp.org>
25724
25725         Enable memory leak tests on AIX.
25726         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25727         * tests/test-fprintf-posix3.c (main): Likewise.
25728
25729 2011-01-26  Bruno Haible  <bruno@clisp.org>
25730
25731         Tests for module 'get-rusage-data'.
25732         * modules/get-rusage-data-tests: New file.
25733         * tests/test-get-rusage-data.c: New file.
25734
25735         New module 'get-rusage-data'.
25736         * lib/resource-ext.h (get_rusage_data): New declaration.
25737         * lib/get-rusage-data.c: New file.
25738         * modules/get-rusage-data: New file.
25739
25740 2011-01-25  Bruno Haible  <bruno@clisp.org>
25741
25742         get-rusage-as: Allow for easier testing.
25743         * lib/resource-ext.h (get_rusage_as): Add comment.
25744         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25745         (main): New function for interactive testing.
25746
25747 2011-01-25  Bruno Haible  <bruno@clisp.org>
25748
25749         vma-iter: Treat Haiku like BeOS.
25750         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25751         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25752
25753 2011-01-25  Eric Blake  <eblake@redhat.com>
25754
25755         c-stack: fix regression on cygwin when libsigsegv is present
25756         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25757
25758 2011-01-24  Bruno Haible  <bruno@clisp.org>
25759
25760         vma-iter: Avoid empty intervals.
25761         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25762         on an empty interval.
25763
25764 2011-01-24  Jim Meyering  <meyering@redhat.com>
25765
25766         u64: remove unnecessary #include
25767         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25768
25769 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25770
25771         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25772         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25773
25774 2011-01-23  Bruno Haible  <bruno@clisp.org>
25775
25776         New module 'vma-iter'.
25777         * lib/vma-iter.h: New file.
25778         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25779         * modules/vma-iter: New file.
25780         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25781         for get_rusage_as_via_iterator.
25782         (vma_iterate_callback): New function.
25783         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25784         * modules/get-rusage-as (Depends-on): Add vma-iter.
25785
25786 2011-01-23  Bruno Haible  <bruno@clisp.org>
25787
25788         uninorm: Tweak includes.
25789         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25790         Reported by Jim Meyering.
25791
25792 2011-01-23  Bruno Haible  <bruno@clisp.org>
25793
25794         get-rusage-as: Improve on NetBSD.
25795         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25796         /proc, like on FreeBSD.
25797
25798 2011-01-23  Jim Meyering  <meyering@redhat.com>
25799
25800         xreadlink.h: remove unnecessary #include
25801         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25802
25803         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25804         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25805
25806 2011-01-23  Bruno Haible  <bruno@clisp.org>
25807
25808         get-rusage-as: Fix bug.
25809         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25810         original limit when aborting the first loop.
25811
25812 2011-01-23  Bruno Haible  <bruno@clisp.org>
25813
25814         wctype: Ensure valid C syntax.
25815         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25816         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25817
25818 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25819
25820         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25822         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25823         as they are needed only for configure's test case.
25824         This removes two unnecessary symbols from config.h.
25825
25826         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25827         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25829         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25830         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25831         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25832         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25833         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25834         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25835         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25836         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25837         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25838         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25839         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25840         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25841         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25842         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25843         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25844
25845 2011-01-21  Eric Blake  <eblake@redhat.com>
25846
25847         maintainer-makefile: work with older git for submodule check
25848         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25849         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25850         Reported by Matthias Bolte.
25851
25852         bootstrap: minor portability fixes
25853         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25854         (usage): Omit leading capital and trailing . on help phrases, per
25855         GNU Coding Standards.
25856         (check_versions, top level): Prefix messages with script name.
25857
25858 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25859
25860         bootstrap: support --no-git option
25861         * build-aux/bootstrap: Add --no-git option, to be used when
25862         --gnulib-srcdir points to the exact desired checkout.
25863
25864 2011-01-21  Eric Blake  <eblake@redhat.com>
25865
25866         strerror_r-posix: work with glibc 2.13
25867         * lib/strerror_r.c (strerror_r): Fix return type.
25868
25869 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25870             Bruno Haible  <bruno@clisp.org>
25871
25872         uN_strstr: New unit tests.
25873         * modules/unistr/u8-strstr-tests: New file.
25874         * modules/unistr/u16-strstr-tests: New file.
25875         * modules/unistr/u32-strstr-tests: New file.
25876         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25877         * tests/unistr/test-u8-strstr.c: New file.
25878         * tests/unistr/test-u16-strstr.c: New file.
25879         * tests/unistr/test-u32-strstr.c: New file.
25880
25881 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25882             Bruno Haible  <bruno@clisp.org>
25883
25884         Make uN_strstr functions O(n) worst-case.
25885         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25886         16-bit and 32-bit unit cases, use the unibyte algorithm from
25887         lib/mbsstr.c.
25888         * lib/unistr/u8-strstr.c: Include <string.h>.
25889         (UNIT_IS_UINT8_T): New macro.
25890         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25891         (U_STRLEN, U_STRNLEN): New macros.
25892         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25893         (U_STRLEN, U_STRNLEN): New macros.
25894         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25895         (configure.ac): Update required libunistring version.
25896         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25897         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25898         malloca.
25899         (configure.ac): Update required libunistring version.
25900         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25901         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25902         malloca.
25903         (configure.ac): Update required libunistring version.
25904
25905 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25906             Bruno Haible  <bruno@clisp.org>
25907
25908         Prepare for faster uN_strstr functions.
25909         * lib/str-kmp.h: Support definable UNITs.
25910         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25911         needle_len argument.
25912         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25913         * lib/mbscasestr.c (mbscasestr): Likewise.
25914
25915 2011-01-21  Pádraig Brady <P@draigBrady.com>
25916
25917         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25918         * tests/test-malloca.c (main): Unset the environment variable
25919         to greatly speed up the test.
25920         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25921         * modules/malloca-tests: Depend on unsetenv.
25922
25923 2011-01-21  Pádraig Brady <P@draigBrady.com>
25924
25925         ignore-value: remove stdint dependency
25926         * lib/ignore-value.h: Remove <stdint.h>
25927         * modules/ignore-value: Remove stdint dependency.
25928
25929 2011-01-21  Jim Meyering  <meyering@redhat.com>
25930
25931         maint.mk: adjust variable name to be consistent with other gl_ vars
25932         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25933         to be lower case.
25934
25935 2011-01-20  Jim Meyering  <meyering@redhat.com>
25936
25937         maint.mk: make "check" depend on public-submodule-commit by default
25938         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25939
25940 2011-01-20  Bruno Haible  <bruno@clisp.org>
25941
25942         mbfile, mbiter: Complete change from 2008-12-21.
25943         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25944         * m4/mbiter.m4 (gl_MBITER): Likewise.
25945
25946 2011-01-20  Jim Meyering  <meyering@redhat.com>
25947
25948         init.sh: insert space between each function name and "()"
25949         * tests/init.sh: Make it a little easier to see that a function's
25950         name is "warn_", and not "warn" when looking at the first part of
25951         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25952
25953 2011-01-20  Jim Meyering  <meyering@redhat.com>
25954
25955         mountlist: clean up code formatting
25956         * lib/mountlist.c (read_file_system_list): Split a long line,
25957         correct bracing style, use NULL in place of "(struct statfs *)0",
25958         don't parenthesize return value, add spaces around "=" and after
25959         ";-in-for-stmt".
25960
25961 2011-01-14  Markus Duft <mduft@gentoo.org>
25962
25963         mountlist: add support for Interix
25964         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25965         Apply statvfs to all entries of /dev/fs.
25966         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25967         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25968
25969 2011-01-20  Jim Meyering  <meyering@redhat.com>
25970
25971         maint.mk: improve the public-submodule-commit rule
25972         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25973         to suppress printing of its commands... unless V=1.
25974         Add git submodule's --quiet option to suppress printing of e.g.,
25975         "Entering gnulib" output.
25976         "cd" into $(srcdir) before running git submodule.
25977
25978 2011-01-20  Bruno Haible  <bruno@clisp.org>
25979
25980         include_next: Fix bug introduced on 2011-01-18.
25981         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25982         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25983         ac_cv_header_... variable if the second argument is not 'check'.
25984         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25985         gl_NEXT_HEADERS_INTERNAL.
25986
25987 2011-01-20  Bruno Haible  <bruno@clisp.org>
25988
25989         Allow the user to avoid the GNULIB_TEST_* macros.
25990         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25991         Suggested by Paul Eggert.
25992
25993 2011-01-14  Jim Meyering  <meyering@redhat.com>
25994
25995         bootstrap: avoid failure when there is no .gitmodules file
25996         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25997         has been assigned to, even when its value is the empty string.
25998         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25999         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26000         Reported by John W. Eaton <jwe@gnu.org>.
26001
26002 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26003
26004         assume <ctype.h>, ..., <time.h> exist
26005         For years gnulib has been assuming the existence of the headers
26006         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26007         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26008         them, since they don't appear to be needed.
26009         * README (Portability guidelines): Document this.
26010         * lib/flock.c: Assume <fcntl.h> exists.
26011         * lib/regex_internal.h: Assume <locale.h> exists.
26012         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26013         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26014         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26015         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26016         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26017         * m4/regex.m4 (gl_REGEX): Likewise.
26018         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26019         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26020         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26021         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26022         * tests/test-argp.c: Likewise.
26023         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26024
26025         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26026         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26027         AA_APPLE_UNIVERSAL_BUILD.  See
26028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26029         * NEWS: Document this.
26030
26031 2011-01-19  Eric Blake  <eblake@redhat.com>
26032
26033         c-stack: assume stack overflow if SA_SIGINFO unsupported
26034         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26035         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26036         sigaction will work.
26037         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26038         behavior match Linux.
26039         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26040
26041         stdbool-tests: accommodate Haiku
26042         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26043
26044         binary-io: fix O_TEXT on Haiku
26045         * modules/binary-io (Depends-on): Add fcntl-h.
26046         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26047         than blindly undefining O_TEXT.
26048         Reported by Scott McCreary.
26049
26050 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26051
26052         include_next: do not check for standard headers like stddef.h
26053
26054         I found this problem when modifying Emacs to use gnulib.
26055         I noticed that it added HAVE_STDDEF_H to config.h, even though
26056         gnulib always assumes <stddef.h> exists as per README and this
26057         symbol is unnecessary.
26058         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26059         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26060         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26061         faster for headers like stddef.h that are known to exist.
26062         (gl_CHECK_NEXT_HEADERS): Use it.
26063         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26064         rather than gl_CHECK_NEXT_HEADERS.
26065         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26066         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26067
26068 2011-01-18  Eric Blake  <eblake@redhat.com>
26069
26070         ansi-c++-opt: skip C++ dependency style if C++ is unused
26071         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26072         tests when we know C++ compilation is not desired.
26073         Reported by Scott McCreary.
26074
26075 2011-01-18  Bruno Haible  <bruno@clisp.org>
26076
26077         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26078         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26079         (main): Perform test also when getrlimit and setrlimit don't exist or
26080         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26081         limiting the address space size using setrlimit, compare the address
26082         space size before and after the the test.
26083         * tests/test-dprintf-posix2.c: Likewise.
26084         * tests/test-fprintf-posix3.sh: Update skip messages.
26085         * tests/test-dprintf-posix2.sh: Likewise.
26086         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26087         * modules/dprintf-posix-tests (Depends-on): Likewise.
26088         Reported by Bruce Korb <bkorb@gnu.org> and
26089         Gary V. Vaughan <gary@gnu.org>.
26090
26091 2011-01-18  Bruno Haible  <bruno@clisp.org>
26092
26093         get-rusage-as: Improvement for Cygwin.
26094         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26095         areas that are merely reserved.
26096
26097 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26098
26099         strftime: remove dependencies on multibyte modules
26100
26101         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26102         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26103         only if __osf__ is defined, and I suspect OSF doesn't need these
26104         other modules.  If my guess is wrong, we'll need to come up with a
26105         variant of strftime that doesn't need the multibyte modules.
26106
26107         I discovered this problem when attempting modify Emacs to use the
26108         strftime module.  With the previous gnulib, this caused Emacs to
26109         need 31 new files, ranging from lib/config.charset to
26110         m4/wint_t.m4.  This was overkill and I expect would be offputting
26111         to the Emacs maintainers.  After this change, only 6 new files are
26112         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26113         stdbool.m4, and tm_gmtoff.m4.
26114
26115         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26116         Suggested by Bruno Haible in
26117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26118         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26119         and do not check for wchar.h.
26120         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26121         (Depends-on): Remove mbrlen, mbsinit, wchar.
26122
26123 2011-01-18  Bruno Haible  <bruno@clisp.org>
26124
26125         Tests for module 'get-rusage-as'.
26126         * modules/get-rusage-as-tests: New file.
26127         * tests/test-get-rusage-as.c: New file.
26128
26129         New module 'get-rusage-as'.
26130         * modules/get-rusage-as: New file.
26131         * lib/resource-ext.h: New file.
26132         * lib/get-rusage-as.c: New file.
26133
26134 2011-01-17  Eric Blake  <eblake@redhat.com>
26135
26136         sigaction: relax license from LGPLv3+ to LGPLv2+
26137         * modules/sigaction (License): Relax to LGPLv2+.
26138
26139 2011-01-14  Bruno Haible  <bruno@clisp.org>
26140
26141         filemode: Make function declarations usable in C++ mode.
26142         * lib/filemode.h: Enclose function declarations in extern "C" block.
26143         Reported by John W. Eaton <jwe@gnu.org>.
26144
26145 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26146
26147         save-cwd: no longer include "xgetcwd.h"
26148         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26149         This avoids a compilation failure in projects that use save-cwd
26150         without also using the xgetcwd module.
26151
26152 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26153
26154         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26155         This is so that a program like Emacs, which needs only dtoastr,
26156         does not have to bother with distributing and compiling ftoastr
26157         and ldtoastr.
26158         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26159         * modules/dtoastr, modules/ldtoastr: New files.
26160         * modules/ftoastr: Now works just for 'float'.
26161         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26162         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26163         dtoastr.c, ldtoastr.c.
26164
26165 2011-01-11  Jim Meyering  <meyering@redhat.com>
26166
26167         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26168         There is no need to work around the lack of the fchdir function,
26169         since gnulib can now provide a replacement when required.
26170         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26171         * modules/save-cwd (Depends-on): Add fchdir.
26172
26173 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26174
26175         openat, save-cwd: avoid xmalloc
26176
26177         This removes a direct (but undocumented) dependency of openat on
26178         xalloc, along with an indirect dependency via save-cwd.  It also
26179         removes a dependency of save-cwd on xgetcwd, and thereby
26180         indirectly on xalloc.  This change causes the openat substitute
26181         to fall back on save_cwd when memory is tight, and for save_cwd to
26182         fail instead of dying when memory is tight, but that's good enough.
26183         Problem and initial idea for fix reported by Bastien Roucaries in
26184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26185
26186         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26187         xalloc.h (for xmalloc).
26188         (openat_proc_name): Use malloc, not xmalloc.
26189         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26190         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26191
26192         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26193         This avoids heap allocation for file names whose lengths are in
26194         the range 512..1023, with the upper bound increasing to at most
26195         4031 depending on the platform's PATH_MAX.  (We do not want
26196         pathmax.h here as it might supply a non-constant PATH_MAX.)
26197         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26198         Perhaps they should be moved to malloca.h?
26199         (OPENAT_BUFFER_SIZE): Use them.
26200
26201 2011-01-10  Bruno Haible  <bruno@clisp.org>
26202
26203         doc: Update users.txt.
26204         * users.txt: Add recutils.
26205
26206 2011-01-09  Karl Berry  <karl@gnu.org>
26207
26208         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26209
26210         * doc/configmake.texi: New file.
26211         * doc/gnulib.texi: Include it.
26212         * modules/configmake: Move documentation from here.
26213
26214 2011-01-09  Bruno Haible  <bruno@clisp.org>
26215
26216         Update to Unicode 6.0.0.
26217         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26218         (get_lbp): Update for Unicode 6.0.0.
26219         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26220         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26221         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26222         U+11001, U+11038..U+11046. Remove U+06DE.
26223         (uc_width): Fix bounds of planes.
26224         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26225         lib/uniwidth/width.c.
26226         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26227         trailing whitespace removed.
26228         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26229         without comments, but with the original copyright notice.
26230         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26231         * lib/unicase/ignorable.h: Likewise.
26232         * lib/unicase/tocasefold.h: Likewise.
26233         * lib/unicase/tolower.h: Likewise.
26234         * lib/unicase/totitle.h: Likewise.
26235         * lib/unicase/toupper.h: Likewise.
26236         * lib/unictype/bidi_of.h: Likewise.
26237         * lib/unictype/blocks.h: Likewise.
26238         * lib/unictype/categ_C.h: Likewise.
26239         * lib/unictype/categ_Cn.h: Likewise.
26240         * lib/unictype/categ_L.h: Likewise.
26241         * lib/unictype/categ_Ll.h: Likewise.
26242         * lib/unictype/categ_Lm.h: Likewise.
26243         * lib/unictype/categ_Lo.h: Likewise.
26244         * lib/unictype/categ_Lu.h: Likewise.
26245         * lib/unictype/categ_M.h: Likewise.
26246         * lib/unictype/categ_Mc.h: Likewise.
26247         * lib/unictype/categ_Me.h: Likewise.
26248         * lib/unictype/categ_Mn.h: Likewise.
26249         * lib/unictype/categ_N.h: Likewise.
26250         * lib/unictype/categ_Nd.h: Likewise.
26251         * lib/unictype/categ_No.h: Likewise.
26252         * lib/unictype/categ_P.h: Likewise.
26253         * lib/unictype/categ_Po.h: Likewise.
26254         * lib/unictype/categ_S.h: Likewise.
26255         * lib/unictype/categ_Sc.h: Likewise.
26256         * lib/unictype/categ_Sk.h: Likewise.
26257         * lib/unictype/categ_Sm.h: Likewise.
26258         * lib/unictype/categ_So.h: Likewise.
26259         * lib/unictype/categ_of.h: Likewise.
26260         * lib/unictype/combining.h: Likewise.
26261         * lib/unictype/ctype_alnum.h: Likewise.
26262         * lib/unictype/ctype_alpha.h: Likewise.
26263         * lib/unictype/ctype_graph.h: Likewise.
26264         * lib/unictype/ctype_lower.h: Likewise.
26265         * lib/unictype/ctype_print.h: Likewise.
26266         * lib/unictype/ctype_punct.h: Likewise.
26267         * lib/unictype/ctype_upper.h: Likewise.
26268         * lib/unictype/decdigit.h: Likewise.
26269         * lib/unictype/digit.h: Likewise.
26270         * lib/unictype/numeric.h: Likewise.
26271         * lib/unictype/pr_alphabetic.h: Likewise.
26272         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26273         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26274         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26275         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26276         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26277         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26278         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26279         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26280         * lib/unictype/pr_case_ignorable.h: Likewise.
26281         * lib/unictype/pr_cased.h: Likewise.
26282         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26283         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26284         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26285         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26286         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26287         * lib/unictype/pr_combining.h: Likewise.
26288         * lib/unictype/pr_composite.h: Likewise.
26289         * lib/unictype/pr_currency_symbol.h: Likewise.
26290         * lib/unictype/pr_decimal_digit.h: Likewise.
26291         * lib/unictype/pr_deprecated.h: Likewise.
26292         * lib/unictype/pr_format_control.h: Likewise.
26293         * lib/unictype/pr_grapheme_base.h: Likewise.
26294         * lib/unictype/pr_grapheme_extend.h: Likewise.
26295         * lib/unictype/pr_grapheme_link.h: Likewise.
26296         * lib/unictype/pr_id_continue.h: Likewise.
26297         * lib/unictype/pr_id_start.h: Likewise.
26298         * lib/unictype/pr_ideographic.h: Likewise.
26299         * lib/unictype/pr_lowercase.h: Likewise.
26300         * lib/unictype/pr_math.h: Likewise.
26301         * lib/unictype/pr_numeric.h: Likewise.
26302         * lib/unictype/pr_other_alphabetic.h: Likewise.
26303         * lib/unictype/pr_other_id_continue.h: Likewise.
26304         * lib/unictype/pr_other_math.h: Likewise.
26305         * lib/unictype/pr_punctuation.h: Likewise.
26306         * lib/unictype/pr_sentence_terminal.h: Likewise.
26307         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26308         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26309         * lib/unictype/pr_unified_ideograph.h: Likewise.
26310         * lib/unictype/pr_uppercase.h: Likewise.
26311         * lib/unictype/pr_xid_continue.h: Likewise.
26312         * lib/unictype/pr_xid_start.h: Likewise.
26313         * lib/unictype/scripts.h: Likewise.
26314         * lib/unictype/scripts_byname.gperf: Likewise.
26315         * lib/unictype/sy_java_ident.h: Likewise.
26316         * lib/unigbrk/gbrkprop.h: Likewise.
26317         * lib/unilbrk/lbrkprop1.h: Likewise.
26318         * lib/unilbrk/lbrkprop2.h: Likewise.
26319         * lib/uninorm/decomposition-table2.h: Likewise.
26320         * lib/uniwbrk/wbrkprop.h: Likewise.
26321         * tests/unicase/test-cased.c: Likewise.
26322         * tests/unicase/test-ignorable.c: Likewise.
26323         * tests/unicase/test-uc_tolower.c: Likewise.
26324         * tests/unicase/test-uc_totitle.c: Likewise.
26325         * tests/unicase/test-uc_toupper.c: Likewise.
26326         * tests/unictype/test-categ_C.c: Likewise.
26327         * tests/unictype/test-categ_Cn.c: Likewise.
26328         * tests/unictype/test-categ_L.c: Likewise.
26329         * tests/unictype/test-categ_Ll.c: Likewise.
26330         * tests/unictype/test-categ_Lm.c: Likewise.
26331         * tests/unictype/test-categ_Lo.c: Likewise.
26332         * tests/unictype/test-categ_Lu.c: Likewise.
26333         * tests/unictype/test-categ_M.c: Likewise.
26334         * tests/unictype/test-categ_Mc.c: Likewise.
26335         * tests/unictype/test-categ_Me.c: Likewise.
26336         * tests/unictype/test-categ_Mn.c: Likewise.
26337         * tests/unictype/test-categ_N.c: Likewise.
26338         * tests/unictype/test-categ_Nd.c: Likewise.
26339         * tests/unictype/test-categ_No.c: Likewise.
26340         * tests/unictype/test-categ_P.c: Likewise.
26341         * tests/unictype/test-categ_Po.c: Likewise.
26342         * tests/unictype/test-categ_S.c: Likewise.
26343         * tests/unictype/test-categ_Sc.c: Likewise.
26344         * tests/unictype/test-categ_Sk.c: Likewise.
26345         * tests/unictype/test-categ_Sm.c: Likewise.
26346         * tests/unictype/test-categ_So.c: Likewise.
26347         * tests/unictype/test-ctype_alnum.c: Likewise.
26348         * tests/unictype/test-ctype_alpha.c: Likewise.
26349         * tests/unictype/test-ctype_graph.c: Likewise.
26350         * tests/unictype/test-ctype_lower.c: Likewise.
26351         * tests/unictype/test-ctype_print.c: Likewise.
26352         * tests/unictype/test-ctype_punct.c: Likewise.
26353         * tests/unictype/test-ctype_upper.c: Likewise.
26354         * tests/unictype/test-decdigit.h: Likewise.
26355         * tests/unictype/test-digit.h: Likewise.
26356         * tests/unictype/test-numeric.h: Likewise.
26357         * tests/unictype/test-pr_alphabetic.c: Likewise.
26358         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26359         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26360         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26361         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26362         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26363         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26364         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26365         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26366         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26367         * tests/unictype/test-pr_cased.c: Likewise.
26368         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26369         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26370         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26371         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26372         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26373         * tests/unictype/test-pr_combining.c: Likewise.
26374         * tests/unictype/test-pr_composite.c: Likewise.
26375         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26376         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26377         * tests/unictype/test-pr_deprecated.c: Likewise.
26378         * tests/unictype/test-pr_format_control.c: Likewise.
26379         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26380         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26381         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26382         * tests/unictype/test-pr_id_continue.c: Likewise.
26383         * tests/unictype/test-pr_id_start.c: Likewise.
26384         * tests/unictype/test-pr_ideographic.c: Likewise.
26385         * tests/unictype/test-pr_lowercase.c: Likewise.
26386         * tests/unictype/test-pr_math.c: Likewise.
26387         * tests/unictype/test-pr_numeric.c: Likewise.
26388         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26389         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26390         * tests/unictype/test-pr_other_math.c: Likewise.
26391         * tests/unictype/test-pr_punctuation.c: Likewise.
26392         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26393         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26394         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26395         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26396         * tests/unictype/test-pr_uppercase.c: Likewise.
26397         * tests/unictype/test-pr_xid_continue.c: Likewise.
26398         * tests/unictype/test-pr_xid_start.c: Likewise.
26399         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26400         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26401         changes.
26402         * lib/unictype/categ_Cc.h: Likewise.
26403         * lib/unictype/categ_Cf.h: Likewise.
26404         * lib/unictype/categ_Co.h: Likewise.
26405         * lib/unictype/categ_Cs.h: Likewise.
26406         * lib/unictype/categ_Lt.h: Likewise.
26407         * lib/unictype/categ_Nl.h: Likewise.
26408         * lib/unictype/categ_Pc.h: Likewise.
26409         * lib/unictype/categ_Pd.h: Likewise.
26410         * lib/unictype/categ_Pe.h: Likewise.
26411         * lib/unictype/categ_Pf.h: Likewise.
26412         * lib/unictype/categ_Pi.h: Likewise.
26413         * lib/unictype/categ_Ps.h: Likewise.
26414         * lib/unictype/categ_Z.h: Likewise.
26415         * lib/unictype/categ_Zl.h: Likewise.
26416         * lib/unictype/categ_Zp.h: Likewise.
26417         * lib/unictype/categ_Zs.h: Likewise.
26418         * lib/unictype/ctype_blank.h: Likewise.
26419         * lib/unictype/ctype_cntrl.h: Likewise.
26420         * lib/unictype/ctype_digit.h: Likewise.
26421         * lib/unictype/ctype_space.h: Likewise.
26422         * lib/unictype/ctype_xdigit.h: Likewise.
26423         * lib/unictype/mirror.h: Likewise.
26424         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26425         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26426         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26427         * lib/unictype/pr_bidi_control.h: Likewise.
26428         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26429         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26430         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26431         * lib/unictype/pr_bidi_pdf.h: Likewise.
26432         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26433         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26434         * lib/unictype/pr_dash.h: Likewise.
26435         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26436         * lib/unictype/pr_diacritic.h: Likewise.
26437         * lib/unictype/pr_extender.h: Likewise.
26438         * lib/unictype/pr_hex_digit.h: Likewise.
26439         * lib/unictype/pr_hyphen.h: Likewise.
26440         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26441         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26442         * lib/unictype/pr_ignorable_control.h: Likewise.
26443         * lib/unictype/pr_iso_control.h: Likewise.
26444         * lib/unictype/pr_join_control.h: Likewise.
26445         * lib/unictype/pr_left_of_pair.h: Likewise.
26446         * lib/unictype/pr_line_separator.h: Likewise.
26447         * lib/unictype/pr_logical_order_exception.h: Likewise.
26448         * lib/unictype/pr_non_break.h: Likewise.
26449         * lib/unictype/pr_not_a_character.h: Likewise.
26450         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26451         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26452         * lib/unictype/pr_other_id_start.h: Likewise.
26453         * lib/unictype/pr_other_lowercase.h: Likewise.
26454         * lib/unictype/pr_other_uppercase.h: Likewise.
26455         * lib/unictype/pr_paired_punctuation.h: Likewise.
26456         * lib/unictype/pr_paragraph_separator.h: Likewise.
26457         * lib/unictype/pr_pattern_syntax.h: Likewise.
26458         * lib/unictype/pr_pattern_white_space.h: Likewise.
26459         * lib/unictype/pr_private_use.h: Likewise.
26460         * lib/unictype/pr_quotation_mark.h: Likewise.
26461         * lib/unictype/pr_radical.h: Likewise.
26462         * lib/unictype/pr_soft_dotted.h: Likewise.
26463         * lib/unictype/pr_space.h: Likewise.
26464         * lib/unictype/pr_titlecase.h: Likewise.
26465         * lib/unictype/pr_variation_selector.h: Likewise.
26466         * lib/unictype/pr_white_space.h: Likewise.
26467         * lib/unictype/pr_zero_width.h: Likewise.
26468         * lib/unictype/sy_c_ident.h: Likewise.
26469         * lib/unictype/sy_c_whitespace.h: Likewise.
26470         * lib/unictype/sy_java_whitespace.h: Likewise.
26471         * lib/uninorm/composition-table.gperf: Likewise.
26472         * lib/uninorm/decomposition-table1.h: Likewise.
26473         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26474         LB8.
26475         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26476         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26477         * modules/unictype/*: Bump version number of expected libunistring
26478         version.
26479
26480 2011-01-09  Bruno Haible  <bruno@clisp.org>
26481
26482         Update to Unicode 5.2.0.
26483         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26484         trailing whitespace removed.
26485
26486 2011-01-09  Bruno Haible  <bruno@clisp.org>
26487
26488         New Unicode character properties, from Unicode 5.2.0.
26489         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26490         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26491         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26492         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26493         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26494         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26495         uc_is_property_cased, uc_is_property_case_ignorable,
26496         uc_is_property_changes_when_lowercased,
26497         uc_is_property_changes_when_uppercased,
26498         uc_is_property_changes_when_titlecased,
26499         uc_is_property_changes_when_casefolded,
26500         uc_is_property_changes_when_casemapped): New declarations.
26501         * lib/unictype/pr_byname.gperf: Add the new properties.
26502         * modules/unictype/property-byname (Depends-on): Depend on the new
26503         properties modules.
26504         * modules/unictype/property-all (Depends-on): Likewise.
26505         * MODULES.html.sh (Unicode string functions): Add
26506         unictype/property-case-ignorable, unictype/property-cased,
26507         unictype/property-changes-when-casefolded,
26508         unictype/property-changes-when-casemapped,
26509         unictype/property-changes-when-lowercased,
26510         unictype/property-changes-when-titlecased,
26511         unictype/property-changes-when-uppercased.
26512
26513         New module 'unictype/property-changes-when-casemapped'.
26514         * modules/unictype/property-changes-when-casemapped: New file.
26515         * lib/unictype/pr_changes_when_casemapped.c: New file.
26516         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26517         generated by gen-uni-tables.
26518         * modules/unictype/property-changes-when-casemapped-tests: New file.
26519         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26520         automatically generated by gen-uni-tables.
26521
26522         New module 'unictype/property-changes-when-casefolded'.
26523         * modules/unictype/property-changes-when-casefolded: New file.
26524         * lib/unictype/pr_changes_when_casefolded.c: New file.
26525         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26526         generated by gen-uni-tables.
26527         * modules/unictype/property-changes-when-casefolded-tests: New file.
26528         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26529         automatically generated by gen-uni-tables.
26530
26531         New module 'unictype/property-changes-when-titlecased'.
26532         * modules/unictype/property-changes-when-titlecased: New file.
26533         * lib/unictype/pr_changes_when_titlecased.c: New file.
26534         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26535         generated by gen-uni-tables.
26536         * modules/unictype/property-changes-when-titlecased-tests: New file.
26537         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26538         automatically generated by gen-uni-tables.
26539
26540         New module 'unictype/property-changes-when-uppercased'.
26541         * modules/unictype/property-changes-when-uppercased: New file.
26542         * lib/unictype/pr_changes_when_uppercased.c: New file.
26543         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26544         generated by gen-uni-tables.
26545         * modules/unictype/property-changes-when-uppercased-tests: New file.
26546         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26547         automatically generated by gen-uni-tables.
26548
26549         New module 'unictype/property-changes-when-lowercased'.
26550         * modules/unictype/property-changes-when-lowercased: New file.
26551         * lib/unictype/pr_changes_when_lowercased.c: New file.
26552         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26553         generated by gen-uni-tables.
26554         * modules/unictype/property-changes-when-lowercased-tests: New file.
26555         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26556         automatically generated by gen-uni-tables.
26557
26558         New module 'unictype/property-case-ignorable'.
26559         * modules/unictype/property-case-ignorable: New file.
26560         * lib/unictype/pr_case_ignorable.c: New file.
26561         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26562         by gen-uni-tables.
26563         * modules/unictype/property-case-ignorable-tests: New file.
26564         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26565         generated by gen-uni-tables.
26566
26567         New module 'unictype/property-cased'.
26568         * modules/unictype/property-cased: New file.
26569         * lib/unictype/pr_cased.c: New file.
26570         * lib/unictype/pr_cased.h: New file, automatically generated by
26571         gen-uni-tables.
26572         * modules/unictype/property-cased-tests: New file.
26573         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26574         gen-uni-tables.
26575
26576 2011-01-09  Bruno Haible  <bruno@clisp.org>
26577
26578         Update to Unicode 5.2.0.
26579         * lib/gen-uni-tables.c (output_predicate, output_category,
26580         output_combclass, output_bidi_category, output_decimal_digit_test,
26581         output_decimal_digit, output_digit_test, output_digit,
26582         output_numeric_test, output_numeric, output_mirror, output_scripts,
26583         output_scripts_byname, output_blocks, output_ident_category): Fix
26584         comment header.
26585         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26586         get_wbp.
26587         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26588         items.
26589         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26590         Changes_When_Lowercased, Changes_When_Uppercased,
26591         Changes_When_Titlecased, Changes_When_Casefolded,
26592         Changes_When_Casemapped.
26593         (is_property_alphabetic, is_property_default_ignorable_code_point):
26594         Update for Unicode 5.2.0.
26595         (is_property_cased, is_property_case_ignorable,
26596         is_property_changes_when_lowercased,
26597         is_property_changes_when_uppercased,
26598         is_property_changes_when_titlecased,
26599         is_property_changes_when_casefolded,
26600         is_property_changes_when_casemapped): New functions.
26601         (output_properties): Output also the properties cased, case_ignorable,
26602         changes_when_lowercased, changes_when_uppercased,
26603         changes_when_titlecased, changes_when_casefolded,
26604         changes_when_casemapped.
26605         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26606         Unicode TR#11 revision 17 -> 19.
26607         (LBP_CP): New enumeration value.
26608         (LBP_*): Adjust values accordingly.
26609         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26610         TR#14 revision 22 -> 24.
26611         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26612         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26613         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26614         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26615         is_WBP_MIDLETTER.
26616         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26617         the code1 and code2 of each composition rule.
26618         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26619         * lib/unicase/ignorable.h: Likewise.
26620         * lib/unicase/tocasefold.h: Likewise.
26621         * lib/unicase/tolower.h: Likewise.
26622         * lib/unicase/totitle.h: Likewise.
26623         * lib/unicase/toupper.h: Likewise.
26624         * lib/unictype/bidi_of.h: Likewise.
26625         * lib/unictype/blocks.h: Likewise.
26626         * lib/unictype/categ_C.h: Likewise.
26627         * lib/unictype/categ_Cf.h: Likewise.
26628         * lib/unictype/categ_Cn.h: Likewise.
26629         * lib/unictype/categ_L.h: Likewise.
26630         * lib/unictype/categ_Ll.h: Likewise.
26631         * lib/unictype/categ_Lm.h: Likewise.
26632         * lib/unictype/categ_Lo.h: Likewise.
26633         * lib/unictype/categ_Lu.h: Likewise.
26634         * lib/unictype/categ_M.h: Likewise.
26635         * lib/unictype/categ_Mc.h: Likewise.
26636         * lib/unictype/categ_Mn.h: Likewise.
26637         * lib/unictype/categ_N.h: Likewise.
26638         * lib/unictype/categ_Nd.h: Likewise.
26639         * lib/unictype/categ_Nl.h: Likewise.
26640         * lib/unictype/categ_No.h: Likewise.
26641         * lib/unictype/categ_P.h: Likewise.
26642         * lib/unictype/categ_Pd.h: Likewise.
26643         * lib/unictype/categ_Po.h: Likewise.
26644         * lib/unictype/categ_S.h: Likewise.
26645         * lib/unictype/categ_Sc.h: Likewise.
26646         * lib/unictype/categ_So.h: Likewise.
26647         * lib/unictype/categ_of.h: Likewise.
26648         * lib/unictype/combining.h: Likewise.
26649         * lib/unictype/ctype_alnum.h: Likewise.
26650         * lib/unictype/ctype_alpha.h: Likewise.
26651         * lib/unictype/ctype_graph.h: Likewise.
26652         * lib/unictype/ctype_lower.h: Likewise.
26653         * lib/unictype/ctype_print.h: Likewise.
26654         * lib/unictype/ctype_punct.h: Likewise.
26655         * lib/unictype/ctype_upper.h: Likewise.
26656         * lib/unictype/decdigit.h: Likewise.
26657         * lib/unictype/digit.h: Likewise.
26658         * lib/unictype/numeric.h: Likewise.
26659         * lib/unictype/pr_alphabetic.h: Likewise.
26660         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26661         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26662         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26663         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26664         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26665         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26666         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26667         * lib/unictype/pr_combining.h: Likewise.
26668         * lib/unictype/pr_composite.h: Likewise.
26669         * lib/unictype/pr_currency_symbol.h: Likewise.
26670         * lib/unictype/pr_dash.h: Likewise.
26671         * lib/unictype/pr_decimal_digit.h: Likewise.
26672         * lib/unictype/pr_deprecated.h: Likewise.
26673         * lib/unictype/pr_diacritic.h: Likewise.
26674         * lib/unictype/pr_extender.h: Likewise.
26675         * lib/unictype/pr_grapheme_base.h: Likewise.
26676         * lib/unictype/pr_grapheme_extend.h: Likewise.
26677         * lib/unictype/pr_grapheme_link.h: Likewise.
26678         * lib/unictype/pr_id_continue.h: Likewise.
26679         * lib/unictype/pr_id_start.h: Likewise.
26680         * lib/unictype/pr_ideographic.h: Likewise.
26681         * lib/unictype/pr_ignorable_control.h: Likewise.
26682         * lib/unictype/pr_logical_order_exception.h: Likewise.
26683         * lib/unictype/pr_lowercase.h: Likewise.
26684         * lib/unictype/pr_numeric.h: Likewise.
26685         * lib/unictype/pr_other_alphabetic.h: Likewise.
26686         * lib/unictype/pr_punctuation.h: Likewise.
26687         * lib/unictype/pr_sentence_terminal.h: Likewise.
26688         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26689         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26690         * lib/unictype/pr_unified_ideograph.h: Likewise.
26691         * lib/unictype/pr_uppercase.h: Likewise.
26692         * lib/unictype/pr_xid_continue.h: Likewise.
26693         * lib/unictype/pr_xid_start.h: Likewise.
26694         * lib/unictype/pr_zero_width.h: Likewise.
26695         * lib/unictype/scripts.h: Likewise.
26696         * lib/unictype/scripts_byname.gperf: Likewise.
26697         * lib/unictype/sy_java_ident.h: Likewise.
26698         * lib/unigbrk/gbrkprop.h: Likewise.
26699         * lib/unilbrk/lbrkprop1.h: Likewise.
26700         * lib/unilbrk/lbrkprop2.h: Likewise.
26701         * lib/unilbrk/lbrktables.h: Likewise.
26702         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26703         LBP_CP. Implement rule LB30.
26704         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26705         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26706         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26707         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26708         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26709         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26710         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26711         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26712         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26713         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26714         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26715         bits instead of 16 bits in the code1 and code2 of each composition
26716         rule.
26717         (uc_composition): Update for Unicode 5.2.0.
26718         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26719         * lib/uninorm/decomposition-table2.h: Likewise.
26720         * lib/uniwbrk/wbrkprop.h: Likewise.
26721         * tests/unicase/test-cased.c: Likewise.
26722         * tests/unicase/test-ignorable.c: Likewise.
26723         * tests/unicase/test-uc_tolower.c: Likewise.
26724         * tests/unicase/test-uc_totitle.c: Likewise.
26725         * tests/unicase/test-uc_toupper.c: Likewise.
26726         * tests/unictype/test-categ_C.c: Likewise.
26727         * tests/unictype/test-categ_Cf.c: Likewise.
26728         * tests/unictype/test-categ_Cn.c: Likewise.
26729         * tests/unictype/test-categ_L.c: Likewise.
26730         * tests/unictype/test-categ_Ll.c: Likewise.
26731         * tests/unictype/test-categ_Lm.c: Likewise.
26732         * tests/unictype/test-categ_Lo.c: Likewise.
26733         * tests/unictype/test-categ_Lu.c: Likewise.
26734         * tests/unictype/test-categ_M.c: Likewise.
26735         * tests/unictype/test-categ_Mc.c: Likewise.
26736         * tests/unictype/test-categ_Mn.c: Likewise.
26737         * tests/unictype/test-categ_N.c: Likewise.
26738         * tests/unictype/test-categ_Nd.c: Likewise.
26739         * tests/unictype/test-categ_Nl.c: Likewise.
26740         * tests/unictype/test-categ_No.c: Likewise.
26741         * tests/unictype/test-categ_P.c: Likewise.
26742         * tests/unictype/test-categ_Pd.c: Likewise.
26743         * tests/unictype/test-categ_Po.c: Likewise.
26744         * tests/unictype/test-categ_S.c: Likewise.
26745         * tests/unictype/test-categ_Sc.c: Likewise.
26746         * tests/unictype/test-categ_So.c: Likewise.
26747         * tests/unictype/test-ctype_alnum.c: Likewise.
26748         * tests/unictype/test-ctype_alpha.c: Likewise.
26749         * tests/unictype/test-ctype_graph.c: Likewise.
26750         * tests/unictype/test-ctype_lower.c: Likewise.
26751         * tests/unictype/test-ctype_print.c: Likewise.
26752         * tests/unictype/test-ctype_punct.c: Likewise.
26753         * tests/unictype/test-ctype_upper.c: Likewise.
26754         * tests/unictype/test-decdigit.h: Likewise.
26755         * tests/unictype/test-digit.h: Likewise.
26756         * tests/unictype/test-numeric.h: Likewise.
26757         * tests/unictype/test-pr_alphabetic.c: Likewise.
26758         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26759         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26760         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26761         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26762         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26763         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26764         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26765         * tests/unictype/test-pr_combining.c: Likewise.
26766         * tests/unictype/test-pr_composite.c: Likewise.
26767         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26768         * tests/unictype/test-pr_dash.c: Likewise.
26769         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26770         * tests/unictype/test-pr_deprecated.c: Likewise.
26771         * tests/unictype/test-pr_diacritic.c: Likewise.
26772         * tests/unictype/test-pr_extender.c: Likewise.
26773         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26774         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26775         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26776         * tests/unictype/test-pr_id_continue.c: Likewise.
26777         * tests/unictype/test-pr_id_start.c: Likewise.
26778         * tests/unictype/test-pr_ideographic.c: Likewise.
26779         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26780         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26781         * tests/unictype/test-pr_lowercase.c: Likewise.
26782         * tests/unictype/test-pr_numeric.c: Likewise.
26783         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26784         * tests/unictype/test-pr_punctuation.c: Likewise.
26785         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26786         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26787         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26788         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26789         * tests/unictype/test-pr_uppercase.c: Likewise.
26790         * tests/unictype/test-pr_xid_continue.c: Likewise.
26791         * tests/unictype/test-pr_xid_start.c: Likewise.
26792         * tests/unictype/test-pr_zero_width.c: Likewise.
26793         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26794         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26795         changed behaviour: line breaking is now disallowed between a letter
26796         or '=' and '('.
26797         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26798         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26799         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26800         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26801         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26802         lib/uniwidth/width.c.
26803         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26804         without comments, but with the original copyright notice.
26805         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26806         changes.
26807         * lib/unictype/categ_Cc.h: Likewise.
26808         * lib/unictype/categ_Co.h: Likewise.
26809         * lib/unictype/categ_Cs.h: Likewise.
26810         * lib/unictype/categ_Lt.h: Likewise.
26811         * lib/unictype/categ_Me.h: Likewise.
26812         * lib/unictype/categ_Pc.h: Likewise.
26813         * lib/unictype/categ_Pe.h: Likewise.
26814         * lib/unictype/categ_Pf.h: Likewise.
26815         * lib/unictype/categ_Pi.h: Likewise.
26816         * lib/unictype/categ_Ps.h: Likewise.
26817         * lib/unictype/categ_Sk.h: Likewise.
26818         * lib/unictype/categ_Sm.h: Likewise.
26819         * lib/unictype/categ_Z.h: Likewise.
26820         * lib/unictype/categ_Zl.h: Likewise.
26821         * lib/unictype/categ_Zp.h: Likewise.
26822         * lib/unictype/categ_Zs.h: Likewise.
26823         * lib/unictype/ctype_blank.h: Likewise.
26824         * lib/unictype/ctype_cntrl.h: Likewise.
26825         * lib/unictype/ctype_digit.h: Likewise.
26826         * lib/unictype/ctype_space.h: Likewise.
26827         * lib/unictype/ctype_xdigit.h: Likewise.
26828         * lib/unictype/mirror.h: Likewise.
26829         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26830         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26831         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26832         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26833         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26834         * lib/unictype/pr_bidi_control.h: Likewise.
26835         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26836         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26837         * lib/unictype/pr_bidi_pdf.h: Likewise.
26838         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26839         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26840         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26841         * lib/unictype/pr_format_control.h: Likewise.
26842         * lib/unictype/pr_hex_digit.h: Likewise.
26843         * lib/unictype/pr_hyphen.h: Likewise.
26844         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26845         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26846         * lib/unictype/pr_iso_control.h: Likewise.
26847         * lib/unictype/pr_join_control.h: Likewise.
26848         * lib/unictype/pr_left_of_pair.h: Likewise.
26849         * lib/unictype/pr_line_separator.h: Likewise.
26850         * lib/unictype/pr_math.h: Likewise.
26851         * lib/unictype/pr_non_break.h: Likewise.
26852         * lib/unictype/pr_not_a_character.h: Likewise.
26853         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26854         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26855         * lib/unictype/pr_other_id_continue.h: Likewise.
26856         * lib/unictype/pr_other_id_start.h: Likewise.
26857         * lib/unictype/pr_other_lowercase.h: Likewise.
26858         * lib/unictype/pr_other_math.h: Likewise.
26859         * lib/unictype/pr_other_uppercase.h: Likewise.
26860         * lib/unictype/pr_paired_punctuation.h: Likewise.
26861         * lib/unictype/pr_paragraph_separator.h: Likewise.
26862         * lib/unictype/pr_pattern_syntax.h: Likewise.
26863         * lib/unictype/pr_pattern_white_space.h: Likewise.
26864         * lib/unictype/pr_private_use.h: Likewise.
26865         * lib/unictype/pr_quotation_mark.h: Likewise.
26866         * lib/unictype/pr_radical.h: Likewise.
26867         * lib/unictype/pr_soft_dotted.h: Likewise.
26868         * lib/unictype/pr_space.h: Likewise.
26869         * lib/unictype/pr_titlecase.h: Likewise.
26870         * lib/unictype/pr_variation_selector.h: Likewise.
26871         * lib/unictype/pr_white_space.h: Likewise.
26872         * lib/unictype/sy_c_ident.h: Likewise.
26873         * lib/unictype/sy_c_whitespace.h: Likewise.
26874         * lib/unictype/sy_java_whitespace.h: Likewise.
26875         * modules/uni*/*: Bump version number of expected libunistring version.
26876         Reported by Simon Josefsson.
26877
26878 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26879
26880         useless-if-before-free: fix typo in --help and make the internal,
26881         automatic version date update process work once again.
26882         --help output contained a NUL character instead of the
26883         backslash-zero that was intended.  Also, the "must lie within
26884         the first 8 lines" line is on line 9, and hence not getting
26885         automatically updated.
26886         * build-aux/useless-if-before-free: Fix the former by adding a
26887         backslash, and the latter by condensing the three lines of what-it-does
26888         to a single line, leaving one line of slack for the future.
26889
26890 2011-01-09  Bruno Haible  <bruno@clisp.org>
26891
26892         uniwidth/width: Fix width of U+1D173..U+1D17A.
26893         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26894         symbolic_width, output_width_property_test): New functions.
26895         (main): Invoke output_nonspacing_property, output_width_property_test.
26896         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26897         U+1D173..U+1D17A.
26898         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26899         1.
26900         * modules/uniwidth/*: Bump version number of expected libunistring
26901         version.
26902         * modules/unilbrk/*: Likewise.
26903
26904 2011-01-08  Bruno Haible  <bruno@clisp.org>
26905
26906         uninorm tests: Preserve copyright of Unicode data file.
26907         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26908         Mention modifications.
26909
26910 2011-01-08  Bruno Haible  <bruno@clisp.org>
26911
26912         gen-uni-tables: Prepare for Unicode 5.2.0.
26913         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26914         (debug_output_lbp, output_lbp): Update.
26915
26916 2011-01-08  Bruno Haible  <bruno@clisp.org>
26917
26918         unilbrk: Clarify gen-uni-tables.c code.
26919         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26920         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26921         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26922
26923 2011-01-07  Bruno Haible  <bruno@clisp.org>
26924
26925         strtod: Restore errno when successfully parsing Infinity or NaN.
26926         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26927         restore the original errno.
26928
26929 2011-01-07  Bruno Haible  <bruno@clisp.org>
26930
26931         remove test: Avoid failure on HP-UX 11.
26932         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26933
26934 2011-01-07  Bruno Haible  <bruno@clisp.org>
26935
26936         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26937         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26938         error code.
26939
26940 2011-01-07  Pádraig Brady <P@draigBrady.com>
26941
26942         ignore-value: fixup comments, and add Eric Blake
26943         as an author since he rewrote the macros.
26944         * lib/ignore-value.h (ignore_value):  State that
26945         we now support aggregates.  Also specify exactly
26946         when the GCC warn_unused_result feature was added.
26947
26948 2011-01-06  Eric Blake  <eblake@redhat.com>
26949
26950         ignore-value: support aggregate types
26951         * lib/ignore-value.h (ignore_value): Provide separate gcc
26952         definition.
26953         * modules/ignore-value-tests: New test module.
26954         * tests/test-ignore-value.c: New test.
26955
26956         maint.mk: improve sc_prohibit_strcmp regex
26957         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26958         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26959         definition of STRNEQ.
26960
26961         signal: work around Haiku issue with SIGBUS
26962         * lib/siglist.h: Add comment.
26963         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26964         strsignal's favoring of SIGSEGV.
26965         * tests/test-signal.c (main): Avoid test failure.
26966         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26967         Reported by Scott McCreary.
26968
26969         maint.mk: add pre-release check to ensure submodule commits are public
26970         * top/maint.mk (public-submodule-commit): New rule.
26971         (submodule-checks): New variable.
26972         (alpha beta stable): Depend on the variable.
26973
26974 2011-01-05  Pádraig Brady <P@draigBrady.com>
26975         and Jim Meyering  <meyering@redhat.com>
26976
26977         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26978         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26979         (ATTRIBUTE_DEPRECATED): Define.
26980         (_ignore_case): New function.
26981         (ignore_value): New macro, to replace the old function.
26982         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26983         * modules/ignore-value (Depends-on): Add stdint.
26984
26985 2011-01-04  Eric Blake  <eblake@redhat.com>
26986
26987         doc: regenerate INSTALL
26988         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26989         @firstparagraphindent support, now that autoconf dropped it.
26990         (INSTALL_PRELUDE): Reinstate old macro.
26991         * doc/install.texi: Resync from autoconf.
26992         * doc/INSTALL: Reflect recent autoconf update.
26993         * doc/INSTALL.ISO: Likewise.
26994         * doc/INSTALL.UTF-8: Likewise.
26995         Reported by Karl Berry.
26996
26997 2011-01-04  Bruce Korb  <address@hidden>
26998
26999         git-version-gen: avoid a sub-shell
27000         * build-aux/git-version-gen: Redirect stderr in `...` via
27001         "exec 2>...", rather than via an added sub-shell.
27002
27003 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27004
27005         git-version-gen: use (...) rather than sh -c '...'
27006         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27007         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27008
27009 2011-01-03  Jim Meyering  <meyering@redhat.com>
27010
27011         git-version-gen: convert leading TABs to spaces
27012         * build-aux/git-version-gen: Expand leading TABs.
27013
27014         git-version-gen: handle failed "git rev-list"
27015         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27016         from git and proceeding as if it had succeeded but printed no SHA1
27017         checksums, suppress the diagnostic and handle the failure.
27018         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27019
27020         git-version-gen: include command name in one more diagnostic
27021         * build-aux/git-version-gen: When the required .tarball-version file
27022         was missing or unreadable, you might see the diagnostic from "cat",
27023         but no trace of the name of the invoking script.  Now, you still see
27024         the diagnostic from cat, but also get one from "git-version-gen: ".
27025         Inspired by a patch from Bruce Korb.
27026
27027         update-copyright: adjust test to match changed code
27028         * tests/test-update-copyright.sh: Change test's expected output
27029         to match new actual output.
27030
27031 2011-01-02  Bruno Haible  <bruno@clisp.org>
27032
27033         getlogin_r: Avoid test failure on HP-UX 11.
27034         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27035         ERANGE when the second argument is zero.
27036         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27037         portability problem.
27038
27039 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27040
27041         * build-aux/update-copyright: doc Simon's changes
27042
27043 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27044
27045         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27046         environment variable.
27047
27048 2011-01-02  Bruno Haible  <bruno@clisp.org>
27049
27050         unigbrk: Avoid gcc warnings.
27051         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27052         unused variable.
27053         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27054         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27055         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27056         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27057         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27058         Change type of first argument to 'const char *'.
27059         (main): Remove unused variable.
27060         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27061         type of first argument to 'const char *'.
27062         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27063         Likewise.
27064         (main): Change type of variable 's'.
27065         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27066         to 'int'.
27067
27068 2011-01-02  Bruno Haible  <bruno@clisp.org>
27069
27070         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27071         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27072         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27073         bug.
27074         * lib/pwrite.c: Undo 2010-12-31 patch.
27075         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27076
27077 2011-01-02  Bruno Haible  <bruno@clisp.org>
27078
27079         pread: Fix test whether it works.
27080         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27081
27082 2011-01-02  Bruno Haible  <bruno@clisp.org>
27083
27084         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27085         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27086         ends in "6". Don't require a specific month name. Try also the locale
27087         names found on HP-UX 11 and Solaris 7.
27088
27089 2011-01-02  Bruno Haible  <bruno@clisp.org>
27090
27091         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27092         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27093         C linkage.
27094         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27095
27096 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27097
27098         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27099         for consistency, since the "cluster" term is not used elsewhere.
27100         * lib/unigbrk.in.h: Update name.
27101         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27102         * lib/unigbrk/u16-grapheme-next.c: Update name.
27103         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27104         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27105         * lib/unigbrk/u32-grapheme-next.c: Update name.
27106         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27107         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27108         * lib/unigbrk/u8-grapheme-next.c: Update name.
27109         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27110         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27111         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27112         Suggested by Bruno Haible.
27113
27114 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27115
27116         Remove module 'u8-grapheme-len' as too redundant with
27117         'u8-grapheme-next'.
27118         * modules/unigbrk/u8-grapheme-len: Delete file.
27119         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27120         * lib/unigbrk.in.h: Remove prototype for deleted function.
27121         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27122         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27123
27124         Remove module 'u16-grapheme-len' as too redundant with
27125         'u16-grapheme-next'.
27126         * modules/unigbrk/u16-grapheme-len: Delete file.
27127         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27128         * lib/unigbrk.in.h: Remove prototype for deleted function.
27129         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27130         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27131
27132         Remove module 'u32-grapheme-len' as too redundant with
27133         'u32-grapheme-next'.
27134         * modules/unigbrk/u32-grapheme-len: Delete file.
27135         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27136         * lib/unigbrk.in.h: Remove prototype for deleted function.
27137         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27138         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27139
27140         Suggested by Bruno Haible.
27141
27142 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27143
27144         * unigbrk.in.h: Fix typo: "ben" => "been".
27145         Reported by Bruno Haible.
27146
27147 2011-01-01  Jim Meyering  <meyering@redhat.com>
27148
27149         maint: update almost all copyright ranges to include 2011
27150         Run the new "make update-copyright" rule.
27151
27152 2011-01-01  Jim Meyering  <meyering@redhat.com>
27153
27154         maint: update-copyright: exempt doc/INSTALL*
27155         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27156         since they are generated.  Suggested by Bruno Haible.
27157
27158 2011-01-01  Jim Meyering  <meyering@redhat.com>
27159
27160         maint: refine the update-copyright rule
27161         * Makefile (update-copyright): Also exclude any file that includes
27162         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27163         code that merely generates the comment.
27164
27165 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27166
27167         New module 'u8-grapheme-len'.
27168         * modules/unigbrk/u8-grapheme-len: New file.
27169         * modules/unigbrk/u8-grapheme-len-tests: New file.
27170         * lib/unigbrk.in.h: Add prototype for new function.
27171         * lib/unigbrk/u8-grapheme-len.c: New file.
27172         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27173
27174         New module 'u16-grapheme-len'.
27175         * modules/unigbrk/u16-grapheme-len: New file.
27176         * modules/unigbrk/u16-grapheme-len-tests: New file.
27177         * lib/unigbrk.in.h: Add prototype for new function.
27178         * lib/unigbrk/u16-grapheme-len.c: New file.
27179         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27180
27181         New module 'u32-grapheme-len'.
27182         * modules/unigbrk/u32-grapheme-len: New file.
27183         * modules/unigbrk/u32-grapheme-len-tests: New file.
27184         * lib/unigbrk.in.h: Add prototype for new function.
27185         * lib/unigbrk/u32-grapheme-len.c: New file.
27186         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27187
27188         New module 'u8-grapheme-next'.
27189         * modules/unigbrk/u8-grapheme-next: New file.
27190         * modules/unigbrk/u8-grapheme-next-tests: New file.
27191         * lib/unigbrk.in.h: Add prototype for new function.
27192         * lib/unigbrk/u8-grapheme-next.c: New file.
27193         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27194
27195         New module 'u16-grapheme-next'.
27196         * modules/unigbrk/u16-grapheme-next: New file.
27197         * modules/unigbrk/u16-grapheme-next-tests: New file.
27198         * lib/unigbrk.in.h: Add prototype for new function.
27199         * lib/unigbrk/u16-grapheme-next.c: New file.
27200         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27201
27202         New module 'u32-grapheme-next'.
27203         * modules/unigbrk/u32-grapheme-next: New file.
27204         * modules/unigbrk/u32-grapheme-next-tests: New file.
27205         * lib/unigbrk.in.h: Add prototype for new function.
27206         * lib/unigbrk/u32-grapheme-next.c: New file.
27207         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27208
27209         New module 'u8-grapheme-prev'.
27210         * modules/unigbrk/u8-grapheme-prev: New file.
27211         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27212         * lib/unigbrk.in.h: Add prototype for new function.
27213         * lib/unigbrk/u8-grapheme-prev.c: New file.
27214         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27215
27216         New module 'u16-grapheme-prev'.
27217         * modules/unigbrk/u16-grapheme-prev: New file.
27218         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27219         * lib/unigbrk.in.h: Add prototype for new function.
27220         * lib/unigbrk/u16-grapheme-prev.c: New file.
27221         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27222
27223         New module 'u32-grapheme-prev'.
27224         * modules/unigbrk/u32-grapheme-prev: New file.
27225         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27226         * lib/unigbrk.in.h: Add prototype for new function.
27227         * lib/unigbrk/u32-grapheme-prev.c: New file.
27228         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27229
27230         New module 'u8-grapheme-breaks'.
27231         * modules/unigbrk/u8-grapheme-breaks: New file.
27232         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27233         * lib/unigbrk.in.h: Add prototype for new function.
27234         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27235         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27236
27237         New module 'u16-grapheme-breaks'.
27238         * modules/unigbrk/u16-grapheme-breaks: New file.
27239         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27240         * lib/unigbrk.in.h: Add prototype for new function.
27241         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27242         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27243
27244         New module 'u32-grapheme-breaks'.
27245         * modules/unigbrk/u32-grapheme-breaks: New file.
27246         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27247         * lib/unigbrk.in.h: Add prototype for new function.
27248         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27249         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27250
27251         New module 'ulc-grapheme-breaks'.
27252         * modules/unigbrk/ulc-grapheme-breaks: New file.
27253         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27254         * m4/locale-ar.m4: New file.
27255         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27256         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27257         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27258
27259 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27260
27261         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27262         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27263         modified how this file was generated before I initially submitted
27264         the module, but failed to regenerate it.  This meant that several
27265         of the level2 entries were wrong.
27266         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27267         Remove the division-by-2 that is folded into the table now that
27268         gbrkprop.h has been regenerated properly.  Now -1 entries are
27269         handled correctly.
27270
27271         New module 'unigbrk/uc-gbrk-prop-tests'.
27272         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27273         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27274         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27275         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27276
27277 2011-01-01  Bruno Haible  <bruno@clisp.org>
27278
27279         Avoid use of hexadecimal escapes.
27280         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27281         instead of hexadecimal escapes.
27282
27283 2011-01-01  Jim Meyering  <meyering@redhat.com>
27284
27285         maint: new rule to update copyright year ranges
27286         * Makefile (update-copyright): New rule.
27287
27288         maint: indent with TABs in Makefile
27289         * Makefile: Expand leading sequences of spaces to TABs
27290
27291         version-etc: update the copyright year it reports
27292         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27293
27294 2010-12-31  Bruno Haible  <bruno@clisp.org>
27295
27296         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27297         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27298         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27299         zero.
27300
27301 2010-12-31  Bruno Haible  <bruno@clisp.org>
27302
27303         pwrite: Work around HP-UX 11.11 bug.
27304         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27305         works and set REPLACE_PWRITE if not.
27306         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27307         function.
27308         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27309
27310 2010-12-31  Bruno Haible  <bruno@clisp.org>
27311
27312         pread: Work around HP-UX 11 bugs.
27313         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27314         and set REPLACE_PREAD if not.
27315         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27316
27317 2010-12-31  Eric Blake  <eblake@redhat.com>
27318
27319         nl_langinfo: fix YESEXPR on Irix 6.5
27320         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27321         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27322         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27323         it.
27324
27325 2010-12-31  Bruno Haible  <bruno@clisp.org>
27326
27327         iconv: Document HP-UX 11 bug.
27328         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27329
27330 2010-12-31  Bruno Haible  <bruno@clisp.org>
27331
27332         ldexpl: Fix link error on HP-UX 11.
27333         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27334         LDEXPL_LIBM, using $ISNANL_LIBM.
27335
27336 2010-12-31  Eric Blake  <eblake@redhat.com>
27337
27338         ftello: avoid compilation failure with SunStudio c89
27339         * lib/ftello.c (ftello): Use lseek, not llseek.
27340
27341         tests: avoid failing coreutils tests on cygwin
27342         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27343         (create_exe_shims_): Return 0 when skipping.
27344
27345 2010-12-31  Bruno Haible  <bruno@clisp.org>
27346
27347         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27348         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27349
27350 2010-12-31  Bruno Haible  <bruno@clisp.org>
27351
27352         waitpid: Fix link error in C++ mode.
27353         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27354
27355 2010-12-31  Bruno Haible  <bruno@clisp.org>
27356
27357         isnan: Use GCC built-ins when possible.
27358         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27359         __builtin_isnan.
27360         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27361         (isnan): Define using GCC built-ins for GCC >= 4.0.
27362
27363 2010-12-31  Bruno Haible  <bruno@clisp.org>
27364
27365         isnand: Fix mistake.
27366         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27367         __builtin_isnand.
27368
27369 2010-12-31  Bruno Haible  <bruno@clisp.org>
27370
27371         open: Avoid C++ error on HP-UX 11.
27372         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27373
27374 2010-12-31  Bruno Haible  <bruno@clisp.org>
27375
27376         time_r: Add missing declarations on HP-UX 11.
27377         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27378         instead of HAVE_LOCALTIME_R.
27379         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27380         HAVE_LOCALTIME_R always.
27381         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27382         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27383         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27384         HAVE_LOCALTIME_R.
27385         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27386         * doc/posix-functions/localtime_r.texi: Likewise.
27387
27388 2010-12-29  Eric Blake  <eblake@redhat.com>
27389
27390         mountlist: tweak previous commit
27391         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27392         Reported by Paul Eggert.
27393
27394         mountlist: fix local drive detection on cygwin
27395         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27396         that works for cygwin.
27397
27398 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27399
27400         ftoastr, snprintf: ftoastr + snprintf module
27401         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27402         since the snprintf module now should be good enough here.
27403         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27404         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27405         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27406         GNULIB_SNPRINTF only for the test directory, and the latter
27407         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27408         seems to suffice by itself.
27409
27410 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27411
27412         alloca: one step towards thread-safety
27413         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27414         need for a static variable.  All callers changed.  This does not
27415         make the alloca replacement thread-safe, but it's one step.
27416
27417         tests: minor indenting change
27418         * tests/init.sh: Sync from coreutils housekeeping patch
27419         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27420         to keep lines within 80 columns.
27421
27422 2010-12-28  Jim Meyering  <meyering@redhat.com>
27423
27424         regex: don't infloop on persistent failing calloc
27425         * lib/regexec.c (build_trtable): Return failure indication upon
27426         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27427         In glibc, this was fixed for version 2.13:
27428         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27429
27430 2010-12-28  Bruno Haible  <bruno@clisp.org>
27431             Paul Eggert <eggert@cs.ucla.edu>
27432
27433         linkat: Make implementation robust against system behaviour variations.
27434         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27435         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27436         way, and to -2 if it needs a generic runtime test.
27437         * lib/linkat.c (solaris_optimized_link_immediate,
27438         solaris_optimized_link_follow): New functions.
27439         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27440         (check_same_link): Use it.
27441
27442 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27443
27444         New module 'unigbrk/base'.
27445         * modules/unigbrk/base: New file.
27446         * lib/unigbrk.in.h: New file.
27447
27448         New module 'unigbrk/uc-gbrk-prop'.
27449         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27450         * modules/unigbrk/uc-gbrk-prop: New file.
27451         * lib/unigbrk/gbrkprop.h: New file.
27452         * lib/unigbrk/uc-gbrk-prop.c: New file.
27453
27454         New module 'unigbrk/uc-is-grapheme-break'.
27455         * modules/unigbrk/uc-is-grapheme-break: New file.
27456         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27457         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27458         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27459         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27460         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27461
27462         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27463
27464 2010-12-27  Bruno Haible  <bruno@clisp.org>
27465
27466         linkat test: Avoid failure on Solaris 11 2010-11.
27467         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27468
27469 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27470
27471         utimens: work around glibc rounding bug on more platforms
27472         * lib/utimens.c (fdutimens): Work around rounding bug even if
27473         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27475
27476 2010-12-27  Bruno Haible  <bruno@clisp.org>
27477
27478         select tests: Improve comments.
27479         * tests/test-select.c (do_select): Add comments.
27480
27481 2010-12-27  Bruno Haible  <bruno@clisp.org>
27482
27483         select tests: Safer way of handling timeout.
27484         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27485         at every invocation.
27486
27487 2010-12-27  Bruno Haible  <bruno@clisp.org>
27488
27489         select tests: Use 'bool' where appropriate.
27490         * tests/test-select.c (connect_to_socket): Change argument type to
27491         'bool'.
27492
27493 2010-12-27  Bruno Haible  <bruno@clisp.org>
27494
27495         select tests: Use existing modules.
27496         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27497         (configure.ac): Don't test for unistd.h.
27498         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27499         declared in <unistd.h>.
27500
27501 2010-12-27  Bruno Haible  <bruno@clisp.org>
27502
27503         mbrtowc: Work around a Solaris 7 bug.
27504         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27505         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27506         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27507         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27508         MBRTOWC_NULL_ARG1_BUG.
27509         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27510         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27511         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27512         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27513
27514 2010-12-27  Jim Meyering  <meyering@redhat.com>
27515
27516         read-file.c: tweak syntax
27517         * lib/read-file.c (fread_file): Remove space after "*" in function
27518         definitions.
27519
27520 2010-12-27  Bruno Haible  <bruno@clisp.org>
27521
27522         times test: Avoid gcc warnings on OSF/1.
27523         * tests/test-times.c (main): Cast printf arguments from clock_t to
27524         'long int'.
27525
27526 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27527
27528         utimens: work around glibc rounding bug on older Linux kernels
27529         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27530         on Linux with a glibc whose utimes might not work, then work
27531         around a longstanding glibc bug involving rounding rather than
27532         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27533         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27534
27535 2010-12-26  Bruno Haible  <bruno@clisp.org>
27536
27537         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27538         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27539         _GL_CXXALIAS_SYS.
27540         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27541
27542 2010-12-26  Bruno Haible  <bruno@clisp.org>
27543
27544         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27545         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27546         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27547         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27548         looking for the declaration.
27549         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27550         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27551         problem.
27552         * doc/posix-functions/inet_pton.texi: Likewise.
27553
27554 2010-12-26  Bruno Haible  <bruno@clisp.org>
27555
27556         arpa_inet: Use the common idioms with C++ support.
27557         * lib/arpa_inet.in.h: Include c++defs.h.
27558         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27559         support.
27560         * modules/arpa_inet (Depends-on): Add c++defs.
27561         (Makefile.am): Substitute the contents of c++defs.h.
27562         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27563         * modules/arpa_inet-c++-tests: New file.
27564         * tests/test-arpa_inet-c++.cc: New file.
27565
27566 2010-12-25  Bruno Haible  <bruno@clisp.org>
27567
27568         Fix more C++ link errors on Solaris 8.
27569         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27570         $(LIB_EACCESS).
27571         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27572         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27573         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27574         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27575         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27576
27577 2010-12-25  Bruno Haible  <bruno@clisp.org>
27578
27579         printf-posix: Fix link error when a non-GCC compiler is used.
27580         * lib/stdio.in.h (printf): When not using GCC, override printf
27581         correctly.
27582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27583
27584 2010-12-25  Bruno Haible  <bruno@clisp.org>
27585
27586         strerror_r-posix: Update doc.
27587         * doc/posix-functions/strerror_r.texi: Update doc about the return
27588         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27589
27590 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27591
27592         utimens: simplify the logic of the previous change
27593         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27594         This should not affect whether the test succeeds or fails.
27595
27596         utimens: configure better on hosts with NFS clock skew
27597         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27598         uses the clock of the local host.  It might use the clock of the
27599         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27600         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27601
27602 2010-12-25  Bruno Haible  <bruno@clisp.org>
27603
27604         ptsname test: Avoid failure on Solaris.
27605         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27606         open a pseudo-terminal; don't use BSD-style ptys.
27607         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27608
27609 2010-12-25  Bruno Haible  <bruno@clisp.org>
27610
27611         ptsname: Avoid ERANGE failure on some systems.
27612         * lib/ptsname.c (buffer): Increase size.
27613
27614 2010-12-25  Bruno Haible  <bruno@clisp.org>
27615
27616         rename, renameat: Avoid test failures at NFS mounted locations.
27617         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27618         so that subsequent mkdir calls succeed.
27619
27620 2010-12-25  Bruno Haible  <bruno@clisp.org>
27621
27622         iswblank: Fix C++ link error on Solaris 8.
27623         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27624         _GL_FUNCDECL_SYS.
27625
27626 2010-12-25  Bruno Haible  <bruno@clisp.org>
27627
27628         unistd: Fix C++ link error on Solaris 8.
27629         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27630
27631 2010-12-25  Bruno Haible  <bruno@clisp.org>
27632
27633         readlink doc: Mention an old glibc bug.
27634         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27635
27636 2010-12-25  Bruno Haible  <bruno@clisp.org>
27637
27638         fcntl-h: Fix for use of C++ on glibc systems.
27639         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27640         also on glibc systems in C++ mode.
27641         Reported by Gary V. Vaughan <gary@gnu.org>.
27642
27643 2010-12-25  Bruno Haible  <bruno@clisp.org>
27644
27645         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27646         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27647
27648 2010-12-25  Bruno Haible  <bruno@clisp.org>
27649
27650         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27651         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27652         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27653         test whether truncl works according to ISO C 99 with IEC 60559.
27654         * m4/truncl-ieee.m4: New file.
27655         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27656         m4/signbit.m4.
27657         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27658
27659 2010-12-25  Bruno Haible  <bruno@clisp.org>
27660
27661         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27662         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27663         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27664         test whether ceill works according to ISO C 99 with IEC 60559.
27665         * m4/ceill-ieee.m4: New file.
27666         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27667         m4/signbit.m4.
27668         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27669
27670 2010-12-25  Bruno Haible  <bruno@clisp.org>
27671
27672         Ensure all prerequisites of <wchar.h> are included.
27673         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27674         before <wchar.h>.
27675         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27676         gl_MBRLEN_NUL_RETVAL): Likewise.
27677         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27678         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27679         AC_FUNC_MBRTOWC): Likewise.
27680         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27681         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27682         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27683         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27684         Likewise.
27685         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27686         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27687         (gl_WCHAR_H): Improve comments.
27688         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27689
27690 2010-12-25  Bruno Haible  <bruno@clisp.org>
27691
27692         strtok_r: Fix C syntax error in autoconf macro.
27693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27694         characters in test program.
27695
27696 2010-12-24  Bruno Haible  <bruno@clisp.org>
27697
27698         ceil, trunc, round: Fix gcc warnings.
27699         * lib/ceil.c (MIN): Undefine before redefining.
27700         * lib/trunc.c (MIN): Likewise.
27701         * lib/round.c (MIN): Likewise.
27702         Include <math.h> first.
27703
27704 2010-12-24  Bruno Haible  <bruno@clisp.org>
27705
27706         select tests: Avoid failures on OSF/1 5.1.
27707         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27708         failure of closing the last socket; it may fail with ECONNRESET.
27709
27710 2010-12-24  Eric Blake  <eblake@redhat.com>
27711
27712         stdint: avoid HP-UX 10.20 preprocessor bug
27713         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27714         than #if.
27715         * tests/test-floor2.c (main): Likewise.
27716         Reported by Peter O'Gorman.
27717
27718         pipe: make obsoletion transition easier
27719         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27720         * modules/pipe (Files): Include revived file.
27721         (Include): Drop reference, to mirror getdate's behavior.
27722
27723 2010-12-24  Bruno Haible  <bruno@clisp.org>
27724
27725         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27726         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27727         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27728         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27729
27730 2010-12-24  Bruno Haible  <bruno@clisp.org>
27731
27732         gethostname: Ensure declaration on NonStop Kernel.
27733         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27734         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27735
27736 2010-12-24  Bruno Haible  <bruno@clisp.org>
27737
27738         sys_select: Ensure all necessary types on NonStop Kernel.
27739         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27740         include <sys/time.h>.
27741         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27742         NonStop Kernel.
27743         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27744
27745 2010-12-24  Bruno Haible  <bruno@clisp.org>
27746
27747         sys_select: Remove unneeded include.
27748         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27749         have <sys/select.h>.
27750
27751 2010-12-24  Bruno Haible  <bruno@clisp.org>
27752
27753         gethostname: Provide a fallback for HOST_NAME_MAX.
27754         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27755         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27756         instead.
27757         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27758
27759 2010-12-24  Bruno Haible  <bruno@clisp.org>
27760
27761         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27762         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27763         (SA_RESTART): Likewise.
27764         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27765
27766 2010-12-24  Bruno Haible  <bruno@clisp.org>
27767
27768         signal: Define NSIG.
27769         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27770         * tests/test-signal.c (nsig): New variable.
27771         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27772
27773 2010-12-24  Bruno Haible  <bruno@clisp.org>
27774
27775         rename, renameat: Avoid test failures on OSF/1 5.1.
27776         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27777         alternative error codes.
27778         * tests/test-renameat.c (main): Likewise.
27779
27780 2010-12-24  Bruno Haible  <bruno@clisp.org>
27781
27782         *printf: Detect large precisions bug on Solaris 10/SPARC.
27783         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27784         by Paul Eggert.
27785         * tests/test-snprintf-posix.h (test_function): Add this test code here
27786         too.
27787         * tests/test-sprintf-posix.h (test_function): Likewise.
27788         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27789         * tests/test-vasprintf-posix.c (test_function): Likewise.
27790         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27791         around by gnulib.
27792         * doc/posix-functions/printf.texi: Likewise.
27793         * doc/posix-functions/snprintf.texi: Likewise.
27794         * doc/posix-functions/sprintf.texi: Likewise.
27795         * doc/posix-functions/vfprintf.texi: Likewise.
27796         * doc/posix-functions/vprintf.texi: Likewise.
27797         * doc/posix-functions/vsnprintf.texi: Likewise.
27798         * doc/posix-functions/vsprintf.texi: Likewise.
27799         * doc/posix-functions/dprintf.texi: Undo last commit.
27800         * doc/posix-functions/vdprintf.texi: Likewise.
27801
27802 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27803
27804         tests: port test-fdutimensat.c to Solaris 8
27805         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27806         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27807         On Solaris 8, it fails with errno == ENOSYS, because there is no
27808         futimens (so it can't use the fd), and there is no lutimens (so it
27809         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27810
27811         vsnprintf: make more consistent with snprintf; doc fixes
27812
27813         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27814         the byte count return problem was promoted from the snprintf-posix
27815         to the snprintf module.
27816         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27817         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27818         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27819         * tests/test-snprintf.c (main): Check the byte count returned.
27820         * tests/test-vsnprintf.c (main): Likewise.
27821
27822 2010-12-23  Eric Blake  <eblake@redhat.com>
27823
27824         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27825         * modules/sigpipe (License): Relax license.
27826
27827 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27828
27829         doc: document Solaris printf bug with large float precisions
27830         * doc/posix-functions/dprintf.texi (dprintf):
27831         * doc/posix-functions/fprintf.texi (fprintf):
27832         * doc/posix-functions/printf.texi (printf):
27833         * doc/posix-functions/snprintf.texi (snprintf):
27834         * doc/posix-functions/sprintf.texi (sprintf):
27835         * doc/posix-functions/vdprintf.texi (vdprintf):
27836         * doc/posix-functions/vfprintf.texi (vfprintf):
27837         * doc/posix-functions/vprintf.texi (vprintf):
27838         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27839         * doc/posix-functions/vsprintf.texi (vsprintf):
27840         Mention that these functions mishandle large floating point
27841         precisions on Solaris 10.  The same bug is also present in Solaris
27842         8, and I assume earlier.  This causes "cd gnulib-tests; make
27843         check" to fail on Solaris 8 (and I assume, later) when building
27844         the latest coreutils, in test-vasprintf-posix's call to
27845         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27846         the wide flavors (e.g., wprintf) so this patch just updates the
27847         documentation for the narrow ones.
27848
27849         test-posixtm.c: add two tests
27850         * tests/test-posixtm.c: Add two tests, to highlight the
27851         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27852         around this bug; this is merely to document it.
27853
27854 2010-12-22  Bruno Haible  <bruno@clisp.org>
27855
27856         getlogin_r: Work around portability problem on OSF/1.
27857         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27858         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27859         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27860         test for a truncated result.
27861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27862         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27863         * modules/getlogin_r (Depends-on): Add memchr.
27864         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27865
27866 2010-12-22  Bruno Haible  <bruno@clisp.org>
27867
27868         ptsname: Avoid test failure on OSF/1 5.1.
27869         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27870         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27871         (same_slave): New function.
27872         (main): Use it to compare ptsname's result with the expected file name.
27873
27874 2010-12-22  Bruno Haible  <bruno@clisp.org>
27875
27876         Port extended stdio modules to HP NonStop Kernel.
27877         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27878         macros.
27879         * lib/fbufmode.c: Update comments.
27880         * lib/fflush.c: Likewise.
27881         * lib/fpurge.c: Likewise.
27882         * lib/freadable.c: Likewise.
27883         * lib/freadahead.c: Likewise.
27884         * lib/freading.c: Likewise.
27885         * lib/freadptr.c: Likewise.
27886         * lib/freadseek.c: Likewise.
27887         * lib/fseeko.c: Likewise.
27888         * lib/fseterr.c: Likewise.
27889         * lib/fwritable.c: Likewise.
27890         * lib/fwriting.c: Likewise.
27891         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27892
27893 2010-12-22  Bruno Haible  <bruno@clisp.org>
27894
27895         ttyname_r: Work around bug on OSF/1 5.1.
27896         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27897         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27898         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27899         present.
27900         * lib/ttyname_r.c (ttyname_r): Update comments.
27901
27902 2010-12-22  Bruno Haible  <bruno@clisp.org>
27903
27904         round: Implement result sign according to IEEE 754.
27905         * lib/round.c (MIN, MINUS_ZERO): New macros.
27906         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27907         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27908         * tests/test-round-ieee.c (main): Likewise.
27909         * tests/test-roundl-ieee.c (main): Likewise.
27910
27911         trunc: Implement result sign according to IEEE 754.
27912         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27913         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27914         * tests/test-trunc2.c: Include minus-zero.h.
27915         (MINUS_ZERO): New macro.
27916         (trunc_reference): Keep in sync with lib/trunc.c.
27917         * tests/test-truncf2.c: Include minus-zero.h.
27918         (MINUS_ZERO): New macro.
27919         (truncf_reference): Keep in sync with lib/trunc.c.
27920         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27921         * tests/test-trunc-ieee.c (main): Likewise.
27922         * tests/test-truncl-ieee.c (main): Likewise.
27923
27924         ceil: Implement result sign according to IEEE 754.
27925         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27926         (FUNC): Return -0.0 for -1 < x < 0.
27927         * tests/test-ceil2.c: Include minus-zero.h.
27928         (MINUS_ZERO): New macro.
27929         (ceil_reference): Keep in sync with lib/ceil.c.
27930         * tests/test-ceilf2.c: Include minus-zero.h.
27931         (MINUS_ZERO): New macro.
27932         (ceilf_reference): Keep in sync with lib/ceil.c.
27933         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27934         * tests/test-ceil-ieee.c (main): Likewise.
27935         * tests/test-ceill-ieee.c (main): Likewise.
27936
27937         floor: Implement result sign according to IEEE 754.
27938         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27939         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27940         * tests/test-floorf2.c (floorf_reference): Likewise.
27941         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27942         * tests/test-floor-ieee.c (main): Likewise.
27943         * tests/test-floorl-ieee.c (main): Likewise.
27944
27945 2010-12-22  Bruno Haible  <bruno@clisp.org>
27946
27947         getaddrinfo: Update doc.
27948         * doc/posix-functions/gai_strerror.texi: Return type is also different
27949         on AIX and HP-UX.
27950
27951 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27952
27953         getaddrinfo, inet_ntop: Update doc for Solaris.
27954         * doc/posix-functions/gai_strerror.texi: Return type is also an
27955         issue on Solaris 9 and earlier.
27956         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27957         on Solaris 10 and earlier.
27958
27959 2010-12-21  Bruno Haible  <bruno@clisp.org>
27960
27961         New module 'roundl-ieee'.
27962         * modules/roundl-ieee: New file.
27963         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27964         test whether roundl works according to ISO C 99 with IEC 60559.
27965         * m4/roundl-ieee.m4: New file.
27966         * modules/roundl-ieee-tests: New file.
27967         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27968         * tests/test-roundl.c (main): Remove signbit tests.
27969         * modules/roundl-tests (Depends-on): Remove signbit.
27970         * doc/posix-functions/roundl.texi: Mention the new module.
27971
27972 2010-12-21  Bruno Haible  <bruno@clisp.org>
27973
27974         New module 'truncl-ieee'.
27975         * modules/truncl-ieee: New file.
27976         * modules/truncl-ieee-tests: New file.
27977         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27978         * tests/test-truncl.c (main): Remove signbit tests.
27979         * modules/truncl-tests (Depends-on): Remove signbit.
27980         * doc/posix-functions/truncl.texi: Mention the new module.
27981
27982 2010-12-21  Bruno Haible  <bruno@clisp.org>
27983
27984         New module 'ceill-ieee'.
27985         * modules/ceill-ieee: New file.
27986         * modules/ceill-ieee-tests: New file.
27987         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27988         * tests/test-ceill.c (main): Remove signbit tests.
27989         * modules/ceill-tests (Depends-on): Remove signbit.
27990         * doc/posix-functions/ceill.texi: Mention the new module.
27991
27992 2010-12-21  Bruno Haible  <bruno@clisp.org>
27993
27994         New module 'floorl-ieee'.
27995         * modules/floorl-ieee: New file.
27996         * modules/floorl-ieee-tests: New file.
27997         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27998         * tests/test-floorl.c (main): Remove signbit tests.
27999         * modules/floorl-tests (Depends-on): Remove signbit.
28000         * doc/posix-functions/floorl.texi: Mention the new module.
28001
28002 2010-12-21  Bruno Haible  <bruno@clisp.org>
28003
28004         New module 'round-ieee'.
28005         * modules/round-ieee: New file.
28006         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28007         whether round works according to ISO C 99 with IEC 60559.
28008         * m4/round-ieee.m4: New file.
28009         * modules/round-ieee-tests: New file.
28010         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28011         * tests/test-round1.c (main): Remove signbit tests.
28012         * modules/round-tests (Depends-on): Remove 'signbit'.
28013         * doc/posix-functions/round.texi: Mention the new module.
28014
28015 2010-12-21  Bruno Haible  <bruno@clisp.org>
28016
28017         New module 'trunc-ieee'.
28018         * modules/trunc-ieee: New file.
28019         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28020         whether trunc works according to ISO C 99 with IEC 60559.
28021         * m4/trunc-ieee.m4: New file.
28022         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28024         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28025         * modules/trunc-ieee-tests: New file.
28026         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28027         * tests/test-trunc1.c (main): Remove signbit tests.
28028         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28029         * doc/posix-functions/trunc.texi: Mention the new module.
28030
28031 2010-12-21  Bruno Haible  <bruno@clisp.org>
28032
28033         New module 'ceil-ieee'.
28034         * modules/ceil-ieee: New file.
28035         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28036         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28037         ISO C 99 with IEC 60559.
28038         * m4/ceil-ieee.m4: New file.
28039         * modules/ceil (Files): Add lib/ceil.c.
28040         (Depends-on): Add 'float'.
28041         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28042         * lib/math.in.h (ceil): New declaration.
28043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28044         REPLACE_CEIL.
28045         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28046         * modules/ceil-ieee-tests: New file.
28047         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28048         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28049         * doc/posix-functions/ceil.texi: Mention the new module.
28050
28051 2010-12-21  Bruno Haible  <bruno@clisp.org>
28052
28053         New module 'floor-ieee'.
28054         * modules/floor-ieee: New file.
28055         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28056         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28057         ISO C 99 with IEC 60559.
28058         * m4/floor-ieee.m4: New file.
28059         * modules/floor (Files): Add lib/floor.c.
28060         (Depends-on): Add 'float'.
28061         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28062         * lib/math.in.h (floor): New declaration.
28063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28064         REPLACE_FLOOR.
28065         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28066         * modules/floor-ieee-tests: New file.
28067         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28068         * tests/test-math-c++.cc: Check the signature of 'floor'.
28069         * doc/posix-functions/floor.texi: Mention the new module.
28070
28071 2010-12-21  Bruno Haible  <bruno@clisp.org>
28072
28073         New module 'roundf-ieee'.
28074         * modules/roundf-ieee: New file.
28075         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28076         test whether roundf works according to ISO C 99 with IEC 60559.
28077         * m4/roundf-ieee.m4: New file.
28078         * modules/roundf-ieee-tests: New file.
28079         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28080         * tests/test-roundf1.c (main): Remove signbit tests.
28081         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28082         * doc/posix-functions/roundf.texi: Mention the new module.
28083
28084 2010-12-21  Bruno Haible  <bruno@clisp.org>
28085
28086         New module 'truncf-ieee'.
28087         * modules/truncf-ieee: New file.
28088         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28089         test whether truncf works according to ISO C 99 with IEC 60559.
28090         * m4/truncf-ieee.m4: New file.
28091         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28093         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28094         * modules/truncf-ieee-tests: New file.
28095         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28096         * tests/test-truncf1.c (main): Remove signbit tests.
28097         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28098         * doc/posix-functions/truncf.texi: Mention the new module.
28099
28100 2010-12-21  Bruno Haible  <bruno@clisp.org>
28101
28102         New module 'ceilf-ieee'.
28103         * modules/ceilf-ieee: New file.
28104         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28105         test whether ceilf works according to ISO C 99 with IEC 60559.
28106         * m4/ceilf-ieee.m4: New file.
28107         * modules/ceilf-ieee-tests: New file.
28108         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28109         * tests/test-ceilf1.c (main): Remove signbit tests.
28110         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28111         * doc/posix-functions/ceilf.texi: Mention the new module.
28112
28113 2010-12-21  Bruno Haible  <bruno@clisp.org>
28114
28115         New module 'floorf-ieee'.
28116         * modules/floorf-ieee: New file.
28117         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28118         test whether floorf works according to ISO C 99 with IEC 60559.
28119         * m4/floorf-ieee.m4: New file.
28120         * modules/floorf-ieee-tests: New file.
28121         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28122         * tests/test-floorf1.c (main): Remove signbit tests.
28123         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28124         * doc/posix-functions/floorf.texi: Mention the new module.
28125
28126 2010-12-21  Bruno Haible  <bruno@clisp.org>
28127
28128         Support for minus zero in autoconf macros.
28129         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28130         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28131         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28132         * tests/minus-zero.h: Update comments.
28133
28134 2010-12-21  Bruno Haible  <bruno@clisp.org>
28135
28136         Tests for module 'ceil'.
28137         * modules/ceil-tests: New file.
28138         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28139         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28140
28141 2010-12-21  Bruno Haible  <bruno@clisp.org>
28142
28143         Tests for module 'floor'.
28144         * modules/floor-tests: New file.
28145         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28146         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28147
28148 2010-12-21  Bruno Haible  <bruno@clisp.org>
28149
28150         math: Fix indentation.
28151         * lib/math.in.h (floorf): Fix indentation.
28152
28153 2010-12-21  Bruno Haible  <bruno@clisp.org>
28154
28155         Fix cross-compilation guesses on Solaris.
28156         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28157         not match "solaris2.10".
28158         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28159         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28160         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28161
28162 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28163
28164         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28165         This fixes a problem observed with the latest coreutils snapshot
28166         that caused a test to fail on Solaris 8.  src/csplit.c's call
28167         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28168         earlier, instead of returning the number of bytes that would have
28169         been generated; this causes csplit to incorrectly report memory
28170         exhaustion.
28171         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28172         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28173         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28174         comments to match.
28175         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28176         Fix typo in matching older versions of Solaris: "solaris2.10"
28177         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28178         only for guessing while cross-compiling.
28179         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28180
28181 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28182
28183         ftoastr: fix comment again
28184         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28185         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28186         Also, simplify example a bit by using flags = 0.
28187
28188 2010-12-20  Bruno Haible  <bruno@clisp.org>
28189
28190         round*, trunc*: Update documentation regarding glibc.
28191         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28192         * doc/posix-functions/round.texi: Likewise.
28193         * doc/posix-functions/roundl.texi: Likewise.
28194         * doc/posix-functions/truncf.texi: Likewise.
28195         * doc/posix-functions/trunc.texi: Likewise.
28196         * doc/posix-functions/truncl.texi: Likewise.
28197
28198 2010-12-20  Bruno Haible  <bruno@clisp.org>
28199
28200         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28201         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28202         * doc/posix-functions/round.texi: Likewise.
28203         * doc/posix-functions/roundl.texi: Likewise.
28204
28205 2010-12-20  Bruno Haible  <bruno@clisp.org>
28206
28207         ttyname_r: Add missing declaration on HP-UX 11.
28208         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28209         HAVE_TTYNAME_R.
28210         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28211         declared. Set HAVE_TTYNAME_R always.
28212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28213         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28214         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28215         HAVE_TTYNAME_R.
28216         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28217
28218 2010-12-20  Bruno Haible  <bruno@clisp.org>
28219
28220         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28221         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28222         * doc/posix-functions/getlogin_r.texi: Likewise.
28223         * tests/test-getlogin.c: Include <errno.h>.
28224         (main): Avoid test failure on HP-UX 11.11.
28225         * tests/test-getlogin_r.c (main): Likewise.
28226
28227 2010-12-20  Bruno Haible  <bruno@clisp.org>
28228
28229         getlogin_r: Add missing declaration on HP-UX 11.
28230         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28231         declared also when it exists as a function.
28232         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28233
28234 2010-12-20  Bruno Haible  <bruno@clisp.org>
28235
28236         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28237         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28238         through wcrtomb.
28239
28240 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28241
28242         ftoastr: fix comment
28243         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28244         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28245
28246 2010-12-19  Bruno Haible  <bruno@clisp.org>
28247
28248         isnan: Ensure it is a macro.
28249         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28250         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28251         Solaris.
28252
28253 2010-12-19  Bruno Haible  <bruno@clisp.org>
28254
28255         ldexpl test: Fix link error on OSF/1 5.1.
28256         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28257
28258 2010-12-19  Bruno Haible  <bruno@clisp.org>
28259
28260         wctype: Make it work in C++ mode on OSF/1 5.1.
28261         * lib/wctype.in.h (iswblank): Declare but not define here.
28262         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28263         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28264         * modules/wctype (Files): Add lib/iswblank.c.
28265
28266 2010-12-19  Bruno Haible  <bruno@clisp.org>
28267
28268         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28269         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28270         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28271
28272 2010-12-19  Bruno Haible  <bruno@clisp.org>
28273
28274         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28276         _POSIX_PII_SOCKET.
28277         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28278         * doc/posix-functions/recvfrom.texi: Likewise.
28279         * doc/posix-functions/send.texi: Likewise.
28280         * doc/posix-functions/sendto.texi: Likewise.
28281
28282 2010-12-19  Bruno Haible  <bruno@clisp.org>
28283
28284         tcgetsid: Add missing declaration on OSF/1 5.1.
28285         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28286         HAVE_TCGETSID.
28287         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28288         Don't set HAVE_TCGETSID.
28289         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28290         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28291         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28292         HAVE_TCGETSID.
28293         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28294
28295 2010-12-19  Bruno Haible  <bruno@clisp.org>
28296
28297         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28298         * lib/stdio.in.h: During the include_next statement, let recursive
28299         includes of this file include only the system header file.
28300
28301 2010-12-19  Bruno Haible  <bruno@clisp.org>
28302
28303         iconv_open: Fix regression from 2010-12-04.
28304         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28305         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28306
28307 2010-12-19  Bruno Haible  <bruno@clisp.org>
28308
28309         stdbool test: Avoid a gcc warning.
28310         * tests/test-stdbool.c (main): Fail if e1 is false.
28311         Reported by Jim Meyering.
28312
28313 2010-12-19  Jim Meyering  <meyering@redhat.com>
28314
28315         setenv: restore to working order
28316         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28317         mistakenly removed.
28318         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28319         HAVE_SETENV.
28320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28321         HAVE_SETENV.
28322
28323 2010-12-19  Bruno Haible  <bruno@clisp.org>
28324
28325         Document some different function declarations on OSF/1 5.1.
28326         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28327         * doc/posix-functions/inet_ntop.texi: Likewise.
28328         * doc/posix-functions/gethostname.texi: Likewise.
28329         * lib/unistd.in.h (gethostname): Update comment.
28330
28331 2010-12-19  Bruno Haible  <bruno@clisp.org>
28332
28333         doc: Mention vasprintf-posix module.
28334         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28335         the 'vasprintf-posix' module.
28336         * doc/glibc-functions/vasprintf.texi: Likewise.
28337
28338 2010-12-19  Bruno Haible  <bruno@clisp.org>
28339
28340         unsetenv: Add missing declaration on OSF/1 5.1.
28341         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28342         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28343         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28345         not HAVE_UNSETENV.
28346         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28347         HAVE_UNSETENV.
28348         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28349
28350 2010-12-19  Bruno Haible  <bruno@clisp.org>
28351
28352         setenv: Add missing declaration on OSF/1 5.1.
28353         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28354         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28355         declared. Don't set HAVE_SETENV.
28356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28357         not HAVE_SETENV.
28358         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28359         HAVE_SETENV.
28360         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28361
28362 2010-12-19  Bruno Haible  <bruno@clisp.org>
28363
28364         nl_langinfo tests: Avoid gcc warning.
28365         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28366
28367 2010-12-19  Bruno Haible  <bruno@clisp.org>
28368
28369         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28370         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28371         _GL_CXXALIAS_SYS.
28372
28373 2010-12-19  Bruno Haible  <bruno@clisp.org>
28374
28375         stdbool: Relax test.
28376         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28377         address to 'bool' work in static initializer, for compilers other than
28378         GCC.
28379
28380 2010-12-19  Bruno Haible  <bruno@clisp.org>
28381
28382         ftello: Add missing declaration on OSF/1 5.1.
28383         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28384         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28386         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28387         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28388
28389 2010-12-19  Bruno Haible  <bruno@clisp.org>
28390
28391         fseeko: Add missing declaration on OSF/1 5.1.
28392         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28393         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28395         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28396         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28397
28398 2010-12-19  Bruno Haible  <bruno@clisp.org>
28399
28400         fchdir: Add missing declaration on OSF/1 5.1.
28401         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28404         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28405         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28406
28407 2010-12-19  Bruno Haible  <bruno@clisp.org>
28408
28409         relocatable-prog-wrapper: Separate from relocatable-prog.
28410         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28411         uninstall-relocwrapper rule here.
28412         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28413         Reported by Ian Beckwith <ianb@erislabs.net>.
28414
28415 2010-12-19  Bruno Haible  <bruno@clisp.org>
28416
28417         unistr/u8-mbsnlen: Add missing dependency.
28418         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28419         Reported by Ian Beckwith <ianb@erislabs.net>.
28420
28421 2010-12-19  Bruno Haible  <bruno@clisp.org>
28422
28423         iconv: Make it possible again to use this module without 'iconv-h'.
28424         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28425         if it is not defined.
28426         Reported by Ian Beckwith <ianb@erislabs.net>.
28427
28428 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28429
28430         acl: port to Solaris 8 when copying from tmpfs to ufs
28431         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28432         error number.  Problem observed on Solaris 8 with latest
28433         coreutils, with "mv A B", where A is on a tmpfs file system and B
28434         is on a ufs file system.  This caused coreutils' mv/part-symlink
28435         test to fail.
28436
28437         tests: set fail=0 at start
28438         * tests/init.sh (setup_): Move fail=0 initialization here ...
28439         (mktempd_): ... from here, so that tests can rely on fail being
28440         set to 0 initially.  This fixes a problem in coreutils; see:
28441         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28442
28443 2010-12-18  Bruno Haible  <bruno@clisp.org>
28444
28445         memmem-simple: Stylistic changes.
28446         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28447         Fix preprocessor directive indentation.
28448
28449 2010-12-15  Pádraig Brady <P@draigBrady.com>
28450
28451         memmem, memmem-simple: reorganize and expand empty needle check
28452         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28453         functional checks to memmem-simple so that one has a fully functional
28454         memmem by using just this module.
28455         Restrict the performance only check to the memmem module.
28456         Also expand the empty needle check to ensure the correct
28457         pointer is returned, not just a non NULL pointer.
28458         * doc/glibc-functions/memmem.texi: Rearrange the portability
28459         documentation to correlate with the rearranged checks.
28460         Clarify exactly how the memmem and memmem-simple modules
28461         relate to each other.
28462
28463 2010-12-15  Pádraig Brady <P@draigBrady.com>
28464             Bruno Haible  <bruno@clisp.org>
28465
28466         Improve cross-compilation guesses for uClibc.
28467         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28468         that uClibc does not have the glibc bug.
28469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28470         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28471
28472 2010-12-14  Eric Blake  <eblake@redhat.com>
28473
28474         configmake: provide fallbacks for oldest supported autotools
28475         * m4/configmake.m4: New file.
28476         * modules/configmake (Files): Ship it.
28477         (configure.ac): Use it to guarantee fallbacks.
28478
28479 2010-12-13  Pádraig Brady <P@draigBrady.com>
28480
28481         read-file: Improve handling of large files
28482         * lib/read-file.c (fread_file): Minimize realloc()s
28483         for regular files, and better manage sizes around SIZE_MAX.
28484
28485 2010-12-13  Eric Blake  <eblake@redhat.com>
28486
28487         cloexec, fcntl: relax license
28488         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28489         consent from all contributors.
28490         * modules/fcntl (License): Likewise.
28491
28492 2010-12-10  Bruno Haible  <bruno@clisp.org>
28493
28494         Tests for module 'pipe-posix'.
28495         * modules/pipe-posix-tests: New file.
28496         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28497
28498 2010-12-10  Bruno Haible  <bruno@clisp.org>
28499
28500         pipe-posix: Make it work in C++ mode.
28501         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28502         (pipe): Use common idiom, not a macro definition.
28503         * lib/pipe.c: New file.
28504         * m4/pipe.m4: New file.
28505         * modules/pipe-posix (Description): Enhance.
28506         (Files): Add lib/pipe.c, m4/pipe.m4.
28507         (configure.ac): Invoke gl_FUNC_PIPE.
28508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28509         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28510         * tests/test-unistd-c++.cc: Check the signature of pipe.
28511
28512 2010-12-10  Bruno Haible  <bruno@clisp.org>
28513
28514         Rename module 'pipe' to 'spawn-pipe'.
28515         * modules/spawn-pipe: New file, renamed from modules/pipe.
28516         (Files, configure.ac, Makefile.am): Update.
28517         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28518         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28519         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28520         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28521         "spawn-pipe.h" instead of "pipe.h".
28522         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28523         to gl_SPAWN_PIPE.
28524         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28525         (Files, Makefile.am): Update.
28526         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28527         Update.
28528         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28529         Include "spawn-pipe.h" instead of "pipe.h".
28530         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28531         * lib/javacomp.c: Likewise.
28532         * lib/javaversion.c: Likewise.
28533         * lib/pipe-filter-gi.c: Likewise.
28534         * lib/pipe-filter-ii.c: Likewise.
28535         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28536         * modules/javacomp (Depends-on): Likewise.
28537         * modules/javaversion (Depends-on): Likewise.
28538         * modules/pipe-filter-gi (Depends-on): Likewise.
28539         * modules/pipe-filter-ii (Depends-on): Likewise.
28540         * MODULES.html.sh (Executing programs): Update.
28541         * NEWS: Mention the change.
28542
28543 2010-12-10  Eric Blake  <eblake@redhat.com>
28544
28545         pipe-posix: new module
28546         * modules/pipe-posix: New file.
28547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28548         (gl_UNISTD_H): Check for declaration.
28549         * modules/unistd (Makefile.am): Substitute it.
28550         * lib/unistd.in.h (pipe): Provide it for mingw.
28551         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28552         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28553
28554 2010-12-07  Bruno Haible  <bruno@clisp.org>
28555
28556         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28557         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28558         u8_strcmp_gnu.
28559         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28560
28561 2010-12-06  Bruno Haible  <bruno@clisp.org>
28562
28563         Update internal documentation.
28564         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28565
28566 2010-12-04  Bruno Haible  <bruno@clisp.org>
28567
28568         Put more information about failed tests into the test return codes.
28569         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28570         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28571         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28573         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28574         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28575         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28576         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28577         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28579         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28580         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28581         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28582         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28583         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28584         returns a bit mask.
28585         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28586         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28587         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28588         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28589         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28590         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28591         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28593         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28594         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28595         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28596         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28597         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28598         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28599         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28600         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28601         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28602         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28603         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28604         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28605         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28606         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28607         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28608         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28609         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28610         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28611         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28612         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28613         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28614         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28615         gl_PRINTF_PRECISION): Likewise.
28616         * m4/regex.m4 (gl_REGEX): Likewise.
28617         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28618         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28619         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28620         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28621         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28622         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28623         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28624         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28625         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28626         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28627         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28628         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28629         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28630         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28631         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28632         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28633         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28634         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28636         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28637         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28638         enumerated value.
28639         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28640
28641 2010-12-04  Bruno Haible  <bruno@clisp.org>
28642
28643         Update for Solaris 11 2010-11.
28644         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28645         Express, released in November 2010.
28646
28647 2010-12-04  Bruno Haible  <bruno@clisp.org>
28648
28649         nproc: Relax license.
28650         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28651         and Paul Eggert.
28652         Requested by Ludovic Courtès <ludo@gnu.org>.
28653
28654 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28655
28656         utimecmp: fine-grained src to nearby coarse-grained dest
28657
28658         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28659         and the source is on a file system with higher-resolution time
28660         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28661         not work, and the time stamps are close together, the algorithm to
28662         determine the exact resolution from the read-back mtime was buggy:
28663         it had a "!=" where it should have had an "==".  This bug has been
28664         in the code ever since it was introduced to gnulib.
28665         Problem reported by Dan Jacobson in
28666         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28667
28668 2010-11-30  Bruno Haible  <bruno@clisp.org>
28669
28670         strerror_r-posix: Fix autoconf test.
28671         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28672
28673 2010-11-28  Bruno Haible  <bruno@clisp.org>
28674             Paul Eggert  <eggert@cs.ucla.edu>
28675
28676         Tests for module 'getdomainname'.
28677         * modules/getdomainname-tests: New file.
28678         * tests/test-getdomainname.c: New file, based on
28679         tests/test-gethostname.c.
28680
28681 2010-11-28  Bruno Haible  <bruno@clisp.org>
28682             Paul Eggert  <eggert@cs.ucla.edu>
28683
28684         getdomainname: Use the system function when possible.
28685         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28686         (getdomainname): Replace if needed. Provide the declaration if it is
28687         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28688         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28689         (getdomainname): When the system has getdomainname, call the system
28690         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28691         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28692         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28693         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28694         the function if its second argument is of type 'int' or if it is found
28695         in libnsl.
28696         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28697         <sys/systeminfo.h> and sysinfo().
28698         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28700         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28701         HAVE_GETDOMAINNAME.
28702         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28703         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28704         * doc/glibc-functions/getdomainname.texi: Document the problems with
28705         the getdomainname declaration.
28706
28707 2010-11-28  Bruno Haible  <bruno@clisp.org>
28708
28709         sys_socket: Ensure ss_family field on AIX.
28710         * lib/sys_socket.in.h (ss_family): New macro definition.
28711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28712         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28713         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28714         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28715         * modules/sys_socket (Makefile.am): Substitute
28716         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28717         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28718
28719 2010-11-27  Bruno Haible  <bruno@clisp.org>
28720
28721         readline: Improve configure output.
28722         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28723         "checking for readline..." result understandable.
28724
28725 2010-11-27  Bruno Haible  <bruno@clisp.org>
28726
28727         *printf-posix: Detect a bug on Solaris 10/x86.
28728         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28729         for floating-point output.
28730         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28731         directive.
28732         * tests/test-snprintf-posix.h (test_function): Likewise.
28733         * tests/test-sprintf-posix.h (test_function): Likewise.
28734         * tests/test-vasprintf-posix.c (test_function): Likewise.
28735         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28736         * doc/posix-functions/printf.texi: Likewise.
28737         * doc/posix-functions/snprintf.texi: Likewise.
28738         * doc/posix-functions/sprintf.texi: Likewise.
28739         * doc/posix-functions/vfprintf.texi: Likewise.
28740         * doc/posix-functions/vprintf.texi: Likewise.
28741         * doc/posix-functions/vsnprintf.texi: Likewise.
28742         * doc/posix-functions/vsprintf.texi: Likewise.
28743         * doc/glibc-functions/obstack_printf.texi: Likewise.
28744         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28745
28746 2010-11-27  Bruno Haible  <bruno@clisp.org>
28747
28748         Fix link error when module libunistring-optional is in use.
28749         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28750         * modules/striconveha-tests (Makefile.am): Likewise.
28751
28752 2010-11-27  Bruno Haible  <bruno@clisp.org>
28753
28754         regex: Mention link dependencies.
28755         * modules/regex (Link): New section.
28756         * modules/rpmatch (Link): Likewise.
28757         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28758
28759 2010-11-27  Bruno Haible  <bruno@clisp.org>
28760
28761         ftoastr: Fix compilation error on Solaris.
28762         * lib/ftoastr.c: Include <config.h>.
28763
28764 2010-11-27  Bruno Haible  <bruno@clisp.org>
28765
28766         getloadavg: Update documentation.
28767         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28768
28769 2010-11-27  Bruno Haible  <bruno@clisp.org>
28770
28771         sys_socket: Fix test whether the functions are declared.
28772         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28773         not <sys/select.h>.
28774
28775 2010-11-27  Bruno Haible  <bruno@clisp.org>
28776
28777         getpass: Make sure to get system declaration on some platforms.
28778         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28779         gl_USE_SYSTEM_EXTENSIONS.
28780         * modules/getpass (Depends-on): Add extensions.
28781
28782 2010-11-26  Bruno Haible  <bruno@clisp.org>
28783
28784         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28785         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28786         'iconv' module is present.
28787         (ICONV_CONST): New macro.
28788         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28789         ICONV_CONST.
28790         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28791         set ICONV_CONST.
28792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28793         here.
28794         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28795         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28796         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28797         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28798         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28799         present.
28800
28801 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28802
28803         ftoastr: comment fix
28804         * lib/ftoastr.c: "little" -> "little or no" in comment
28805
28806 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28807
28808         stdint: port to GCC 4.3 + OSX + Octave
28809         On this platform, stdint.h is buggy and defines int64_t to long
28810         long int.  The replacement defined it to long int, causing
28811         problems with C++ style name mangling.  Instead, trust the system
28812         definition if INT64_MAX is defined, and likewise for the unsigned
28813         variant.   Problem reported by Jarno Rajahalme in
28814         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28815         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28816         and don't mess with int64_t and INT64_MAX in this case.
28817         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28818
28819 2010-11-24  Bruno Haible  <bruno@clisp.org>
28820
28821         doc: Corrections regarding MacOS X 10.4 and 10.5.
28822         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28823         MacOS X.
28824         Reported by Simon Josefsson.
28825
28826 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28827
28828         Uninstall ".bin" files installed by relocwrapper.
28829         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28830         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28831         unless it is already there.
28832
28833 2010-11-21  Bruno Haible  <bruno@clisp.org>
28834
28835         Update for NetBSD 5.0.
28836         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28837         NetBSD; the test fails on NetBSD 5.0.
28838         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28839         about NetBSD.
28840
28841 2010-11-21  Bruno Haible  <bruno@clisp.org>
28842
28843         Update for HP-UX 11.23 and HP-UX 11.31.
28844         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28845         HP-UX.
28846
28847 2010-11-21  Bruno Haible  <bruno@clisp.org>
28848
28849         Update for MacOS X 10.5.
28850         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28851         MacOS X; the test fails on MacOS X 10.5.8.
28852         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28853         about MacOS X.
28854
28855 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28856
28857         bootstrap: add bootstrap_sync option.
28858         See discussion at
28859         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28860         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28861         * build-aux/bootstrap: Accept --bootstrap-sync to update
28862         bootstrap if it is not identical to the local gnulib's
28863         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28864         enable this by default.  Accept --no-bootstrap-sync to disable
28865         it.
28866
28867 2010-11-20  Bruno Haible  <bruno@clisp.org>
28868
28869         Ensure that <features.h> is included before __GLIBC__ is tested.
28870         * lib/printf-parse.h: Include <features.h>.
28871         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28872         Reported by Mike Frysinger <vapier@gentoo.org>.
28873
28874         Ensure that <features.h> is included before __GLIBC__ is tested.
28875         * lib/wchar.in.h: Include <features.h>.
28876         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28877         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28878         Reported by Mike Frysinger <vapier@gentoo.org>.
28879
28880         Ensure that <features.h> is included before __GLIBC__ is tested.
28881         * lib/arpa_inet.in.h: Include <features.h>.
28882         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28883         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28884         Reported by Mike Frysinger <vapier@gentoo.org>.
28885
28886         Ensure that <features.h> is included before __GLIBC__ is tested.
28887         * build-aux/link-warning.h: Include <features.h>.
28888         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28889         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28890         Reported by Mike Frysinger <vapier@gentoo.org>.
28891
28892         Ensure that <features.h> is included before __GLIBC__ is tested.
28893         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28894         Reported by Mike Frysinger <vapier@gentoo.org>.
28895
28896 2010-11-20  Bruno Haible  <bruno@clisp.org>
28897
28898         memmem: Fix autoconf test.
28899         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28900
28901 2010-11-20  Bruno Haible  <bruno@clisp.org>
28902
28903         Port to uClibc.
28904         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28905         * lib/fcntl.in.h: Likewise.
28906         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28907         * lib/mbrtowc.c (mbrtowc): Likewise.
28908         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28909         * lib/strerror_r.c: Likewise.
28910         * lib/unistr/u8-strnlen.c: Likewise.
28911         * lib/vasnprintf.c (decimal_point_char): Likewise.
28912         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28913         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28914         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28915         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28916         * tests/test-sigaction.c (handler, main): Likewise.
28917         * lib/freading.h: Treat uClibc like a non-glibc platform.
28918         * lib/freading.c: Likewise.
28919         * lib/gettext.h: Likewise.
28920         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28921         Likewise.
28922         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28923         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28924         * lib/propername.c (proper_name_utf8): Likewise.
28925         * lib/spawn.in.h: Likewise.
28926         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28927         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28928         mem_cd_iconveh_internal): Likewise.
28929         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28930         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28931         strstr, strcasestr): Likewise.
28932         * lib/unicodeio.c (unicode_to_mb): Likewise.
28933         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28934         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28935         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28936         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28937         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28938         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28939         * lib/unistr/u8-stpncpy.c: Likewise.
28940         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28941         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28942         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28943         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28944         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28945         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28946         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28947         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28949         Likewise.
28950         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28951         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28952         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28953         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28954         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28955         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28956         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28957         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28958         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28959         * tests/test-striconveha.c (main): Likewise.
28960         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28961         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28962         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28963         * doc/posix-functions/getline.texi: Likewise.
28964         Reported by Mike Frysinger <vapier@gentoo.org>.
28965
28966 2010-11-20  Bruno Haible  <bruno@clisp.org>
28967
28968         nproc: Fix condition.
28969         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28970         HAVE_PTHREAD_AFFINITY_NP.
28971
28972 2010-11-20  Bruno Haible  <bruno@clisp.org>
28973
28974         Fix a comment.
28975         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28976
28977 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28978
28979         ftoastr: don't assume snprintf
28980         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28981         Implement a subset of snprintf here, by using sprintf safely.
28982         * modules/ftoastr (Depends-on): Remove snprintf.
28983
28984 2010-11-19  Jim Meyering  <meyering@redhat.com>
28985
28986         test-rename.h: fix compilation failure
28987         * tests/test-rename.h (test_rename): Add omitted "}".
28988
28989 2010-11-17  Jim Meyering  <meyering@redhat.com>
28990
28991         maint.mk: add a URL discussing the no-@acronym policy
28992         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28993
28994 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28995
28996         ftoastr: depend on snprintf, improve comments
28997         * lib/ftoastr.c: Also mention Loitsch's draft.
28998         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28999         needed in the current implementation, but it might simplify
29000         speeding up the code later.
29001         * modules/ftoastr: Depend on snprintf; this improves portability.
29002         Suggested by Bruno Haible in the same email.
29003
29004         ftoastr: port to hosts lacking strtof and strtold
29005         Problem reported by Bruno Haible in
29006         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29007         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29008         environment and strtold (and presumably strtof) are not available.
29009         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29010         (configure.ac): Require gl_C99_STRTOLD.
29011
29012 2010-11-18  Bruno Haible  <bruno@clisp.org>
29013
29014         c-strtold: Avoid link error on AIX 7.
29015         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29016         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29017         (gl_C_STRTOLD): Test whether strtold_l exists.
29018         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29019
29020 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29021
29022         intprops: new macro INT_BITS_STRLEN_BOUND
29023         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29024         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29025         not exposed.  Also, it uses a slightly tighter bound than before;
29026         though this makes no practical difference, we might as well be as
29027         tight as we easily can.
29028
29029         ftoastr: new module, for lossless conversion of floats to short strings
29030         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29031         * modules/ftoastr: New files.
29032
29033 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29034
29035         bootstrap: port to Solaris sed
29036         * build-aux/bootstrap (get_version): Port to Solaris sed.
29037         See Ralf Wildenhues's note in
29038         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29039
29040 2010-11-14  Jim Meyering  <meyering@redhat.com>
29041
29042         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29043         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29044         and move definition closer to sole use.
29045
29046 2010-11-13  Jim Meyering  <meyering@redhat.com>
29047
29048         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29049         Now we require at least autoconf-2.59, which means the work-around
29050         is no longer needed.
29051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29052         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29053         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29054         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29055         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29056
29057 2010-11-13  Bruno Haible  <bruno@clisp.org>
29058
29059         rename, renameat: Avoid test failures at NFS mounted locations.
29060         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29061         functions.
29062         (test_rename): Use assert_nonexistent.
29063         * tests/test-rename.c: Include <dirent.h>.
29064         * tests/test-renameat.c: Likewise.
29065         Reported by Gary V. Vaughan <gary@gnu.org>.
29066
29067         rename, renameat: Document Linux bug with NFS
29068         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29069         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29070         * doc/posix-functions/renameat.texi: Likewise.
29071         Suggested by Eric Blake.
29072
29073 2010-11-13  Bruno Haible  <bruno@clisp.org>
29074
29075         rename test: Add comments.
29076         * tests/test-rename.h (test_rename): Add structure and comments.
29077
29078 2010-11-13  Eric Blake  <eblake@redhat.com>
29079
29080         maintainer-makefile: cover a few more files
29081         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29082         scripts generated within C files, for libvirt.
29083
29084 2010-11-13  Bruno Haible  <bruno@clisp.org>
29085
29086         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29087         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29088         character, return the number of bytes that belong together, not always
29089         1.
29090         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29091         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29092         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29093         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29094         number of bytes of an invalid character.
29095         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29096         (main): Invoke it.
29097         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29098         results.
29099         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29100         malformed byte sequences.
29101         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29102         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29103         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29104         Reported by Ben Pfaff and Paolo Bonzini.
29105
29106 2010-11-13  Bruno Haible  <bruno@clisp.org>
29107
29108         openat: Work around glibc bug with fchownat() and empty file names.
29109         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29110         (gl_FUNC_FCHOWNAT): Invoke it.
29111         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29112         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29113         Reported by Gary V. Vaughan <gary@gnu.org>.
29114
29115 2010-11-13  Bruno Haible  <bruno@clisp.org>
29116
29117         openat: Ensure autoconf macro ordering.
29118         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29119         gl_USE_SYSTEM_EXTENSIONS.
29120         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29121
29122 2010-11-13  Bruno Haible  <bruno@clisp.org>
29123
29124         Update comments.
29125         * lib/unistr/u8-check.c: Update file name in comments.
29126         * lib/unistr/u8-mblen.c: Likewise.
29127         * lib/unistr/u8-prev.c: Likewise.
29128         * lib/unistr/u8-strmblen.c: Likewise.
29129         * lib/unistr/u8-strmbtouc.c: Likewise.
29130
29131 2010-11-13  Jim Meyering  <meyering@redhat.com>
29132
29133         tests: avoid test failure on Solaris 10 due to lack of PATH export
29134         * tests/test-update-copyright.sh: Don't forget to export PATH.
29135
29136         init.sh: ensure that IFS is defined, just in case...
29137         * tests/init.sh (setup_): Ensure that IFS is defined,
29138         so that saving and restoring it works as expected.  This
29139         appears to be useful at least for an old version of dash
29140         from a long time ago (RH 6).  See here for details:
29141         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29142
29143         maint.mk: tighten "test a == b" check
29144         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29145         test to files that contain something like #!/bin/sh.
29146         Without this, coreutils would get two false positives in
29147         the comments of C source files.
29148
29149 2010-11-12  Eric Blake  <eblake@redhat.com>
29150
29151         bootstrap: fix typo in previous attempt
29152         * build-aux/bootstrap (buildreq): Correct the grouping.
29153         Reported by Paul Eggert.
29154
29155         maintainer-makefile: prohibit test x == x
29156         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29157         Based on a report by Matthias Bolte.
29158
29159         bootstrap: allow FreeBSD gzip
29160         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29161         which has no '.' and goes to stderr.
29162         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29163         Reported by Matthias Bolte.
29164
29165         maintainer-makefile: check for i18n setup
29166         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29167         will likely work.
29168
29169 2010-11-12  Bruno Haible  <bruno@clisp.org>
29170
29171         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29172         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29173         * lib/nanosleep.c (nanosleep): Likewise.
29174
29175 2010-11-11  Bruno Haible  <bruno@clisp.org>
29176
29177         fcntl-h: Fix for use of C++ on glibc systems.
29178         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29179         also on glibc systems in C++ mode.
29180         Reported by Gary V. Vaughan <gary@gnu.org>.
29181
29182 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29183
29184         mknod: avoid false failure with dash
29185         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29186
29187 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29188
29189         unlink: Fix "is it should" typo in diagnostic.
29190         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29191         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29192
29193 2010-11-11  Bruno Haible  <bruno@clisp.org>
29194
29195         Tests for module 'strerror_r-posix'.
29196         * modules/strerror_r-posix-tests: New file.
29197         * tests/test-strerror_r.c: New file.
29198         * tests/test-string-c++.cc: Check the signature of strerror_r.
29199
29200         New module 'strerror_r-posix'.
29201         * lib/string.in.h (strerror_r): New declaration.
29202         * lib/strerror_r.c: New file.
29203         * m4/strerror_r.m4: New file.
29204         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29205         of strerror_r.
29206         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29207         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29208         * modules/strerror_r-posix: New file.
29209         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29210         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29211         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29212         portability problems.
29213
29214 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29215
29216         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29217         line is also considered for output. Quoted function name in shell
29218         command, so temporary files for functions like MyClass::operator()
29219         are removed correctly without errors.
29220
29221 2010-11-09  Bruno Haible  <bruno@clisp.org>
29222
29223         * doc/posix-functions/strerror.texi: List more failing platforms.
29224
29225         * doc/posix-functions/strerror.texi: Add a comment.
29226
29227 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29228
29229         fdopendir: fix bug on MacOS X when low on file descriptors
29230
29231         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29232         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29233         All callers changed.
29234         (fdopendir): Invoke save_cwd at the top level, not after using
29235         multiple dup() calls to use up file descriptors.  Then retry
29236         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29237         less than the maximum number of open file descriptors, because
29238         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29239         on Mac OS X 10.6.4 for tar 1.24
29240         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29241         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29242         and for tar 1.25
29243         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29244
29245 2010-11-07  Bruno Haible  <bruno@clisp.org>
29246
29247         vasnprintf: Support I flag on glibc systems.
29248         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29249         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29250         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29251         snprintf function.
29252         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29253         glibc systems.
29254         * tests/test-vasnprintf-posix3.c: New file.
29255         * modules/vasnprintf-posix-tests (Files): Add it.
29256         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29257
29258 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29259
29260         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29261         * MODULES.html.sh: For compiler warnings, use name
29262         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29263
29264 2010-11-05  Eric Blake  <eblake@redhat.com>
29265
29266         ceil, floor: avoid spurious failure with icc
29267         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29268         [denormals-as-zero] when optimizing without -mieee-fp option.
29269         * tests/test-floorf2.c (floorf_reference): Likewise.
29270         * tests/test-ceilf1.c (dummy): New function.
29271         (main): Use it to outsmart icc's optimization.
29272         * tests/test-floorf1.c (dummy, main): Likewise.
29273
29274         tests: require working signbit
29275         * modules/ceilf-tests (Depends-on): Add signbit.
29276         * modules/ceill-tests (Depends-on): Likewise.
29277         * modules/floorf-tests (Depends-on): Likewise.
29278         * modules/floorl-tests (Depends-on): Likewise.
29279         * modules/round-tests (Depends-on): Likewise.
29280         * modules/roundf-tests (Depends-on): Likewise.
29281         * modules/roundl-tests (Depends-on): Likewise.
29282         * modules/trunc-tests (Depends-on): Likewise.
29283         * modules/truncf-tests (Depends-on): Likewise.
29284         * modules/truncl-tests (Depends-on): Likewise.
29285
29286         strtod: work around icc bug
29287         * lib/strtod.c (minus_zero): Define to working value.
29288         (strtod): Use it to avoid icc bug.
29289
29290         copysign: enhance tests
29291         * modules/copysign-tests (Files): Add minus-zero.h.
29292         * tests/test-copysign.c (main): Also test zeros.
29293
29294 2010-11-04  Eric Blake  <eblake@redhat.com>
29295
29296         ceil, floor, round, trunc: enhance tests of -0
29297         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29298         * tests/test-ceill.c (main): Likewise.
29299         * tests/test-floorf1.c (main): Likewise.
29300         * tests/test-floorl.c (main): Likewise.
29301         * tests/test-round1.c (main): Likewise.
29302         * tests/test-roundf1.c (main): Likewise.
29303         * tests/test-roundl.c (main): Likewise.
29304         * tests/test-trunc1.c (main): Likewise.
29305         * tests/test-truncf1.c (main): Likewise.
29306         * tests/test-truncl.c (main): Likewise.
29307
29308 2010-11-04  Eric Blake  <eblake@redhat.com>
29309
29310         frexp, tests: work around ICC bug with -zero
29311         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29312         works with more compilers.
29313         * tests/minus-zero.h: New file.
29314         * modules/ceilf-tests (Files): Include it.
29315         * modules/ceill-tests (Files): Likewise.
29316         * modules/floorf-tests (Files): Likewise.
29317         * modules/floorl-tests (Files): Likewise.
29318         * modules/frexp-nolibm-tests (Files): Likewise.
29319         * modules/frexp-tests (Files): Likewise.
29320         * modules/frexpl-nolibm-tests (Files): Likewise.
29321         * modules/frexpl-tests (Files): Likewise.
29322         * modules/isnan-tests (Files): Likewise.
29323         * modules/isnand-nolibm-tests (Files): Likewise.
29324         * modules/isnand-tests (Files): Likewise.
29325         * modules/isnanf-nolibm-tests (Files): Likewise.
29326         * modules/isnanf-tests (Files): Likewise.
29327         * modules/isnanl-nolibm-tests (Files): Likewise.
29328         * modules/isnanl-tests (Files): Likewise.
29329         * modules/round-tests (Files): Likewise.
29330         * modules/roundf-tests (Files): Likewise.
29331         * modules/roundl-tests (Files): Likewise.
29332         * modules/ldexpl-tests (Files): Likewise.
29333         * modules/signbit-tests (Files): Likewise.
29334         * modules/snprintf-posix-tests (Files): Likewise.
29335         * modules/sprintf-posix-tests (Files): Likewise.
29336         * modules/strtod-tests (Files): Likewise.
29337         * modules/trunc-tests (Files): Likewise.
29338         * modules/truncf-tests (Files): Likewise.
29339         * modules/truncl-tests (Files): Likewise.
29340         * modules/vsnprintf-posix-tests (Files): Likewise.
29341         * modules/vsprintf-posix-tests (Files): Likewise.
29342         * modules/vasnprintf-posix-tests (Files): Likewise.
29343         * modules/vasprintf-posix-tests (Files): Likewise.
29344         * tests/test-ceilf1.c (main): Use it.
29345         * tests/test-ceill.c (main): Likewise.
29346         * tests/test-floorf1.c (main): Likewise.
29347         * tests/test-floorl.c (main): Likewise.
29348         * tests/test-frexp.c (main): Likewise.
29349         * tests/test-frexpl.c (main): Likewise.
29350         * tests/test-isnan.c (main): Likewise.
29351         * tests/test-isnand.h (main): Likewise.
29352         * tests/test-isnanf.h (main): Likewise.
29353         * tests/test-isnanl.h (main): Likewise.
29354         * tests/test-ldexpl.c (main): Likewise.
29355         * tests/test-round.c (main): Likewise.
29356         * tests/test-roundf.c (main): Likewise.
29357         * tests/test-roundl.c (main): Likewise.
29358         * tests/test-signbit.c (test_signbitf, test_signbitd)
29359         (test_signbitl): Likewise.
29360         * tests/test-snprintf-posix.h (test_function): Likewise.
29361         * tests/test-sprintf-posix.h (test_function): Likewise.
29362         * tests/test-strtod.c (main): Likewise.
29363         * tests/test-trunc1.c (main): Likewise.
29364         * tests/test-truncf1.c (main): Likewise.
29365         * tests/test-truncl.c (main): Likewise.
29366
29367         isnanl: work around icc bug
29368         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29369
29370 2010-11-03  Eric Blake  <eblake@redhat.com>
29371
29372         tests: fix compiler warnings
29373         * tests/test-getopt.h (test_getopt): Fix condition.
29374         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29375         * tests/test-pipe2.c (main): Likewise.
29376         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29377
29378         utimens: fix broken m4 test
29379         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29380
29381 2010-10-28  Bruno Haible  <bruno@clisp.org>
29382
29383         posix_spawn*, getdtablesize: Relax license.
29384         * modules/posix_spawn (License): Change to LGPLv2+.
29385         * modules/posix_spawnp (License): Likewise.
29386         * modules/posix_spawn-internal (License): Likewise.
29387         * modules/posix_spawnattr_init (License): Likewise.
29388         * modules/posix_spawnattr_getflags (License): Likewise.
29389         * modules/posix_spawnattr_setflags (License): Likewise.
29390         * modules/posix_spawnattr_getpgroup (License): Likewise.
29391         * modules/posix_spawnattr_setpgroup (License): Likewise.
29392         * modules/posix_spawnattr_getschedparam (License): Likewise.
29393         * modules/posix_spawnattr_setschedparam (License): Likewise.
29394         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29395         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29396         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29397         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29398         * modules/posix_spawnattr_getsigmask (License): Likewise.
29399         * modules/posix_spawnattr_setsigmask (License): Likewise.
29400         * modules/posix_spawnattr_destroy (License): Likewise.
29401         * modules/posix_spawn_file_actions_init (License): Likewise.
29402         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29403         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29404         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29405         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29406         * modules/getdtablesize (License): Likewise.
29407         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29408
29409 2010-10-26  Bruno Haible  <bruno@clisp.org>
29410
29411         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29412         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29413         Cygwin and mingw.
29414         Suggested by Eric Blake.
29415
29416 2010-10-26  Bruno Haible  <bruno@clisp.org>
29417
29418         stdio: Work around compilation error due to renameat() on Solaris 10.
29419         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29420         * lib/renameat.c: Don't include <unistd.h> here.
29421         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29422         Reported by Paul Eggert and Eric Blake.
29423
29424 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29425
29426         renameat: port to Solaris 10, which declares renameat in unistd.h
29427
29428         * lib/renameat.c: Include unistd.h before stdio.h, because
29429         Solaris 10 declares renameat in unistd.h.  Problem encountered
29430         when building GNU tar 1.24 on Solaris 10.
29431
29432 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29433
29434         fdopendir: fix C89 compilation
29435         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29436         compilers.
29437
29438 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29439
29440         inttostr: simplify by removing unnecessary redundancy
29441         * lib/anytostr.c: Don't include verify.h.
29442         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29443         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29444         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29445         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29446         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29447         Likewise.
29448         * modules/inttostr (Depends-on): Remove 'verify'.
29449
29450 2010-10-23  Bruno Haible  <bruno@clisp.org>
29451
29452         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29453         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29454         Reported by Eric Blake.
29455
29456 2010-10-23  Bruno Haible  <bruno@clisp.org>
29457
29458         Tests: Fix LOCALE_JA on MirBSD 10.
29459         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29460         to an UTF-8 locale.
29461         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29462         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29463         Reported by Eric Blake.
29464
29465 2010-10-21  Bruno Haible  <bruno@clisp.org>
29466
29467         nl_langinfo test: Avoid test failure on NetBSD 5.
29468         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29469         Reported by Eric Blake.
29470
29471 2010-10-21  Eric Blake  <eblake@redhat.com>
29472
29473         c-stack: work around libsigsegv 2.8 bug
29474         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29475         overflow on at least PowerPC64.
29476
29477 2010-10-17  Bruno Haible  <bruno@clisp.org>
29478
29479         userspec: Drop redundant file.
29480         * modules/userspec (Files): Remove lib/inttostr.h.
29481
29482 2010-10-17  Bruno Haible  <bruno@clisp.org>
29483
29484         nl_langinfo tests: Silence some warnings.
29485         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29486         Reported by Jim Meyering.
29487
29488 2010-10-17  Bruno Haible  <bruno@clisp.org>
29489
29490         Make use of GCC's attribute __alloc_size__.
29491         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29492         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29493         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29494         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29495         __alloc_size__.
29496         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29497         Suggested by Jim Meyering.
29498
29499 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29500
29501         bootstrap: anchor .gitignore entries.
29502         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29503         with...
29504         (insert_vc_ignore): ... this new function, which prepends `/' to
29505         all .gitignore entries before passing them to
29506         insert_sorted_if_absent.
29507
29508 2010-10-16  Bruno Haible  <bruno@clisp.org>
29509
29510         nextafter: Fix configure check.
29511         * modules/nextafter (configure.ac): Correct expected prototype.
29512
29513 2010-10-16  Bruno Haible  <bruno@clisp.org>
29514
29515         termios: Update documentation.
29516         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29517
29518 2010-10-16  Bruno Haible  <bruno@clisp.org>
29519
29520         tests: Make them compile with TinyCC.
29521         * tests/test-strstr.c (main): Remove parentheses around array
29522         initializer.
29523
29524 2010-10-15  Eric Blake  <eblake@redhat.com>
29525
29526         ignore-value: make header idempotent
29527         * lib/ignore-value.h: Add double-inclusion guards.
29528         Reported by Stefan Berger.
29529
29530 2010-10-15  Jim Meyering  <meyering@redhat.com>
29531
29532         GNUmakefile: handle "stable" target, not "major"
29533         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29534         lists in maint.mk and announce-gen.  Without this, "make stable"
29535         would fail to ensure that $(VERSION) is up to date.
29536
29537 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29538
29539         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29540         & co.
29541
29542 2010-10-14  Bruno Haible  <bruno@clisp.org>
29543
29544         vasnprintf: Don't set errno to 0.
29545         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29546         block that sets it to 0.
29547         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29548
29549 2010-10-14  Bruno Haible  <bruno@clisp.org>
29550
29551         socketlib: Fix.
29552         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29553         gl_PREREQ_SYS_H_WINSOCK2.
29554         Reported by Ian Beckwith <ianb@erislabs.net>.
29555
29556 2010-10-13  Jim Meyering  <meyering@redhat.com>
29557
29558         test-select-stdin.c: avoid warn_unused_result warnings
29559         * tests/test-select-stdin.c: Include "macros.h".
29560         ASSERT that read and fflush succeed.
29561
29562 2010-10-13  Jim Meyering  <meyering@redhat.com>
29563
29564         git-version-gen: do require git-VC'd files in cwd
29565         * build-aux/git-version-gen: Reject a git version string
29566         if there are no commits associated with the current directory.
29567         This avoids an unlikely false-positive (unrelated dir whose parent
29568         repository also contains a tag matching v*), as pointed out
29569         by Giuseppe Scrivano in
29570         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29571
29572 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29573
29574         argv-iter: omit nonconforming declaration
29575         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29576         enum arg_iter_err declaration, which doesn't conform to C99.
29577         Solaris 10 cc warns about this.
29578
29579 2010-10-13  Eric Blake  <eblake@redhat.com>
29580
29581         termios: fix compilation on mingw
29582         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29583         (gl_TERMIOS_H): Adjust it on mingw.
29584         * modules/termios (Makefile.am): Substitute new key.
29585         * lib/termios.in.h (includes): Make include_next conditional.
29586         * doc/posix-headers/termios.texi (termios.h): Update
29587         documentation.
29588         Reported by Daniel P. Berrange.
29589
29590 2010-10-13  Jim Meyering  <meyering@redhat.com>
29591
29592         git-version-gen: don't require that .git/ be in the current dir
29593         * build-aux/git-version-gen: Adjust this script so that it works
29594         when run from any working directory beneath the top-level .git/-
29595         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29596         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29597
29598         test-select: avoid warn_unused_result warnings
29599         * tests/test-select.c: Include "macros.h".
29600         ASSERT that each call to read, write, and pipe succeeds.
29601         While not technically required, also check each "close".
29602         * modules/select-tests (Files): Add tests/macros.h.
29603
29604         test-symlinkat: remove declaration of unused local
29605         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29606
29607         test-inttostr: avoid shadowing warnings
29608         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29609         and use malloc rather than the stack for the same reason as
29610         mentioned in the comment justifying the other allocation.
29611
29612 2010-10-11  Bruno Haible  <bruno@clisp.org>
29613
29614         stdlib: Allow multiple gnulib generated replacements to coexist.
29615         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29616         Reported by Sam Steingold <sds@gnu.org>.
29617
29618 2010-10-11  Jim Meyering  <meyering@redhat.com>
29619
29620         fix a documentation typo
29621         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29622
29623 2010-10-11  Eric Blake  <eblake@redhat.com>
29624
29625         futimens: work around Solaris 11 bug
29626         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29627         * tests/test-futimens.h (test_futimens): Enhance, rather than
29628         weaken test.
29629         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29630
29631 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29632
29633         Indentation.
29634         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29635         higher-level operators more to the left.
29636
29637 2010-10-11  Jim Meyering  <meyering@redhat.com>
29638
29639         test-futimens: avoid unwarranted test failure on Solaris 5.11
29640         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29641         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29642         because it tries to dereference the NULL name argument.
29643
29644 2010-10-11  Bruno Haible  <bruno@clisp.org>
29645
29646         Indentation.
29647         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29648         indentation.
29649
29650 2010-10-11  Jim Meyering  <meyering@redhat.com>
29651
29652         spawn.in.h: make indentation consistent with parentheses
29653         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29654         Make indentation consistent with parentheses.
29655
29656 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29657
29658         Fix mismatched parens in previous commit
29659         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29660         parens.
29661
29662 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29663
29664         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29665
29666         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29667         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29668         * lib/malloca.c: Include "verify.h".
29669         (verify1): Remove, replacing with a verify call.
29670         * lib/relocwrapper.c (verify1): Likewise.
29671         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29672         Likewise.
29673         * modules/malloca (Depends-on): Add 'verify'.
29674         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29675         * modules/vasnprintf (Depends-on): Add 'verify'.
29676         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29677         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29678         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29679         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29680         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29681         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29682         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29683
29684         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29685
29686         Formerly the style was sometimes 2*X - 1, because the C standard
29687         was wrongly thought to disallow ?: in integral constant expressions.
29688         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29689         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29690         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29691         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29692         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29693         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29694         verify that time_t cannot be floating.
29695
29696 2010-10-08  Eric Blake  <eblake@redhat.com>
29697
29698         time: enforce recent POSIX ruling that time_t is integral
29699         * lib/time.in.h (__time_t_must_be_integral): Detect any
29700         problematic systems, allowing the rest of gnulib to assume POSIX.
29701
29702 2010-10-08  Jim Meyering  <meyering@redhat.com>
29703
29704         fdopendir: fix a bug on systems lacking openat and /proc support
29705         OpenBSD 4.7 is one such system.  The most noticeable effect was
29706         failure of any application making nontrivial use of fts: rm, du,
29707         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29708           ./rm: traversal failed: `a': Bad file descriptor
29709         Debugging that, you see that even though FD 6 was closed just
29710         prior to the opendir call in fd_clone_opendir, its resulting
29711         dir->dd_fd was 8, rather than the expected value of 6:
29712
29713         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29714         93                close (fd);
29715         (gdb) n
29716         94                dir = fd_clone_opendir (dupfd);
29717         (gdb) n
29718         95                saved_errno = errno;
29719         (gdb) p dir->dd_fd
29720         $11 = 8
29721
29722         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29723         The problem is that on OpenBSD, fd_clone_opendir has to resort
29724         to using the old-style save/restore CWD mechanism, due to its
29725         lack of openat/proc support, and *that* would steal the FD (6)
29726         that opendir was supposed to use.
29727
29728         The fix is to squirrel away the desired FD so that save_cwd uses a
29729         different one, and then free the dest FD right before calling opendir.
29730         That guarantees opendir will use the required file descriptor.
29731
29732         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29733
29734 2010-10-08  Bruno Haible  <bruno@clisp.org>
29735
29736         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29737         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29738
29739 2010-10-08  Bruno Haible  <bruno@clisp.org>
29740
29741         nanosleep: Make replacement POSIX compliant.
29742         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29743         is out of range.
29744         Reported by Jim Meyering.
29745
29746 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29747
29748         bootstrap: add hook for altering gnulib.mk, for Bison
29749         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29750         the Bison bootstrapping process can rewrite file names and variables
29751         in this file before later parts of 'bootstrap' use the file.
29752         Bison wants to include lib/gnulib.mk from the top-level makefile,
29753         so it needs the file names in this file to be relative to the top
29754         level, not relative to lib; plus it needs variable names to be
29755         rewritten.
29756         (slurp): Use the new function.
29757
29758         bootstrap: reformat for readability
29759         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29760
29761 2010-10-08  Eric Blake  <eblake@redhat.com>
29762
29763         docs: update cygwin progress
29764         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29765         1.7.7.
29766         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29767         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29768         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29769         * doc/posix-functions/carg.texi (carg): Likewise.
29770         * doc/posix-functions/cargf.texi (cargf): Likewise.
29771         * doc/posix-functions/casin.texi (casin): Likewise.
29772         * doc/posix-functions/casinf.texi (casinf): Likewise.
29773         * doc/posix-functions/casinh.texi (casinh): Likewise.
29774         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29775         * doc/posix-functions/catan.texi (catan): Likewise.
29776         * doc/posix-functions/catanf.texi (catanf): Likewise.
29777         * doc/posix-functions/catanh.texi (catanh): Likewise.
29778         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29779         * doc/posix-functions/ccos.texi (ccos): Likewise.
29780         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29781         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29782         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29783         * doc/posix-functions/cexp.texi (cexp): Likewise.
29784         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29785         * doc/posix-functions/cimag.texi (cimag): Likewise.
29786         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29787         * doc/posix-functions/clog.texi (clog): Likewise.
29788         * doc/posix-functions/clogf.texi (clogf): Likewise.
29789         * doc/posix-functions/conj.texi (conj): Likewise.
29790         * doc/posix-functions/conjf.texi (conjf): Likewise.
29791         * doc/posix-functions/cpow.texi (cpow): Likewise.
29792         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29793         * doc/posix-functions/cproj.texi (cproj): Likewise.
29794         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29795         * doc/posix-functions/creal.texi (creal): Likewise.
29796         * doc/posix-functions/crealf.texi (crealf): Likewise.
29797         * doc/posix-functions/csin.texi (csin): Likewise.
29798         * doc/posix-functions/csinf.texi (csinf): Likewise.
29799         * doc/posix-functions/csinh.texi (csinh): Likewise.
29800         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29801         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29802         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29803         * doc/posix-functions/ctan.texi (ctan): Likewise.
29804         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29805         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29806         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29807         * doc/posix-headers/complex.texi (complex.h): Likewise.
29808
29809 2010-10-07  Jim Meyering  <meyering@redhat.com>
29810
29811         parse-datetime: avoid compilation failure on OpenBSD 4.7
29812         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29813         This works around a compilation failure on OpenBSD 4.7:
29814         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29815
29816 2010-10-07  Eric Blake  <eblake@redhat.com>
29817
29818         docs: update cygwin progress
29819         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29820         1.7.6.
29821         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29822         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29823         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29824         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29825         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29826         Likewise.
29827         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29828         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29829         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29830         Likewise.
29831         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29832         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29833         Likewise.
29834         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29835         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29836         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29837         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29838         Likewise.
29839         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29840         Likewise.
29841         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29842
29843         docs: update parse-datetime history
29844         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29845         documentation of this function's history and alternatives.
29846
29847         cygwin: use more robust version check
29848         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29849         exclude an eventual cygwin 1.9.1.
29850         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29852         (gl_FUNC_STRCASESTR): Likewise.
29853         Reported by Bruno Haible.
29854
29855 2010-10-06  Bruno Haible  <bruno@clisp.org>
29856
29857         string, sys_select: Avoid #including large headers unless necessary.
29858         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29859         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29860         OSF/1, BeOS, Haiku.
29861         Reported by Jim Meyering.
29862
29863 2010-10-05  Eric Blake  <eblake@redhat.com>
29864
29865         memmem, strstr, strcasestr: fix bug with long periodic needle
29866         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29867         periodic needle having false positive.
29868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29869         and cygwin 1.7.7.
29870         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29871         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29872         (gl_FUNC_STRCASESTR): Likewise.
29873         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29874         * tests/test-memmem.c (main): Expose the bug.
29875         * tests/test-strcasestr.c (main): Likewise.
29876         * tests/test-strstr.c (main): Likewise.
29877         * tests/test-c-strcasestr.c (main): Likewise.
29878         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29879         * doc/posix-functions/strstr.texi (strstr): Likewise.
29880         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29881         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29882
29883 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29884
29885         parse-datetime: do some more renaming
29886         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29887         parse_datetime, not get_date.  Mention the renaming.
29888         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29889         in comments.
29890         * m4/bison.m4: Likewise.
29891
29892 2010-10-05  Eric Blake  <eblake@redhat.com>
29893
29894         parse-datetime: better name than get_date
29895         * NEWS: Reword the deprecation notice.
29896         * modules/get_date: Rename to modules/parse-datetime.
29897         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29898         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29899         * lib/get_date.y: Rename to lib/parse-datetime.y.
29900         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29901         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29902         * doc/getdate.texi: Provide fallback wrapper.
29903         * lib/getdate.h: Move guts, and wrap...
29904         * lib/parse-datetime.h: ...new file.
29905         * lib/parse-datetime.y (get_date): Rename...
29906         (parse_datetime): ...to this.
29907         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29908         (gl_PARSE_DATETIME): ...to this.
29909         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29910         documentation.
29911         * modules/getdate (Files): Provide fallback docs and header.
29912         (Notice, Depends-on): Update references.
29913         * tests/test-parse-datetime.c: Likewise.
29914         * DEPENDENCIES: Likewise.
29915         * MODULES.html.sh (Date and time <time.h>): Likewise.
29916         * doc/parse-datetime.texi (Date input formats)
29917         (Authors of parse_datetime): Likewise.
29918         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29919         (Include): Likewise.
29920         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29921         * gnulib-tool: Likewise.
29922         * m4/bison.m4 (gl_BISON): Likewise.
29923         Suggested by Bruno Haible.
29924
29925 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29926
29927         more ports to Solaris tr, which needs [] around ranges
29928         * gnulib-tool: Solaris tr needs [] around ranges.
29929         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29930         * tests/test-pipe-filter-gi1.c (main): Likewise.
29931         * tests/test-pipe-filter-ii1.c (main): Likewise.
29932
29933 2010-10-05  Eric Blake  <eblake@redhat.com>
29934
29935         bootstrap: fix Solaris regression
29936         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29937         around ranges.
29938         Reported by Pádraig Brady.
29939
29940         bootstrap: work with pkg-config
29941         * build-aux/bootstrap (check_versions): Also transliterate - in
29942         prerequisite name.
29943         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29944         prerequisites that were already found, to avoid confusion.
29945         Reported by Justin Clift.
29946
29947         faccessat: remove unused wrappers
29948         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29949         presence of these wrappers dragged in -lgen on Solaris.
29950         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29951
29952 2010-10-05  Jim Meyering  <meyering@redhat.com>
29953
29954         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29955         * Makefile (sc_pragma_columns): New syntax-check rule.
29956
29957 2010-10-04  Bruno Haible  <bruno@clisp.org>
29958
29959         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29960         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29961         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29962         Reported by Bruce Korb and Eric Blake.
29963
29964 2010-10-04  Bruno Haible  <bruno@clisp.org>
29965
29966         threadlib: Make option --with-libpth-prefix work.
29967         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29968         use $LIBPTH, not just -lpth.
29969
29970 2010-10-04  Bruno Haible  <bruno@clisp.org>
29971
29972         Avoid line length limitation from HP NonStop system header files.
29973         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29974         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29975         * lib/ctype.in.h: Likewise.
29976         * lib/dirent.in.h: Likewise.
29977         * lib/errno.in.h: Likewise.
29978         * lib/fcntl.in.h: Likewise.
29979         * lib/float.in.h: Likewise.
29980         * lib/getopt.in.h: Likewise.
29981         * lib/iconv.in.h: Likewise.
29982         * lib/inttypes.in.h: Likewise.
29983         * lib/langinfo.in.h: Likewise.
29984         * lib/locale.in.h: Likewise.
29985         * lib/math.in.h: Likewise.
29986         * lib/netdb.in.h: Likewise.
29987         * lib/netinet_in.in.h: Likewise.
29988         * lib/poll.in.h: Likewise.
29989         * lib/pthread.in.h: Likewise.
29990         * lib/pty.in.h: Likewise.
29991         * lib/sched.in.h: Likewise.
29992         * lib/se-selinux.in.h: Likewise.
29993         * lib/search.in.h: Likewise.
29994         * lib/signal.in.h: Likewise.
29995         * lib/spawn.in.h: Likewise.
29996         * lib/stdarg.in.h: Likewise.
29997         * lib/stddef.in.h: Likewise.
29998         * lib/stdint.in.h: Likewise.
29999         * lib/stdio.in.h: Likewise.
30000         * lib/stdlib.in.h: Likewise.
30001         * lib/string.in.h: Likewise.
30002         * lib/strings.in.h: Likewise.
30003         * lib/sys_file.in.h: Likewise.
30004         * lib/sys_ioctl.in.h: Likewise.
30005         * lib/sys_select.in.h: Likewise.
30006         * lib/sys_socket.in.h: Likewise.
30007         * lib/sys_stat.in.h: Likewise.
30008         * lib/sys_time.in.h: Likewise.
30009         * lib/sys_times.in.h: Likewise.
30010         * lib/sys_utsname.in.h: Likewise.
30011         * lib/sys_wait.in.h: Likewise.
30012         * lib/sysexits.in.h: Likewise.
30013         * lib/termios.in.h: Likewise.
30014         * lib/time.in.h: Likewise.
30015         * lib/unistd.in.h: Likewise.
30016         * lib/wchar.in.h: Likewise.
30017         * lib/wctype.in.h: Likewise.
30018         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30019         * modules/ctype (Makefile.am): Likewise.
30020         * modules/dirent (Makefile.am): Likewise.
30021         * modules/errno (Makefile.am): Likewise.
30022         * modules/fcntl-h (Makefile.am): Likewise.
30023         * modules/float (Makefile.am): Likewise.
30024         * modules/getopt-posix (Makefile.am): Likewise.
30025         * modules/iconv-h (Makefile.am): Likewise.
30026         * modules/inttypes (Makefile.am): Likewise.
30027         * modules/langinfo (Makefile.am): Likewise.
30028         * modules/locale (Makefile.am): Likewise.
30029         * modules/math (Makefile.am): Likewise.
30030         * modules/netdb (Makefile.am): Likewise.
30031         * modules/netinet_in (Makefile.am): Likewise.
30032         * modules/poll-h (Makefile.am): Likewise.
30033         * modules/pthread (Makefile.am): Likewise.
30034         * modules/pty (Makefile.am): Likewise.
30035         * modules/sched (Makefile.am): Likewise.
30036         * modules/search (Makefile.am): Likewise.
30037         * modules/selinux-h (Makefile.am): Likewise.
30038         * modules/signal (Makefile.am): Likewise.
30039         * modules/spawn (Makefile.am): Likewise.
30040         * modules/stdarg (Makefile.am): Likewise.
30041         * modules/stddef (Makefile.am): Likewise.
30042         * modules/stdint (Makefile.am): Likewise.
30043         * modules/stdio (Makefile.am): Likewise.
30044         * modules/stdlib (Makefile.am): Likewise.
30045         * modules/string (Makefile.am): Likewise.
30046         * modules/strings (Makefile.am): Likewise.
30047         * modules/sys_file (Makefile.am): Likewise.
30048         * modules/sys_ioctl (Makefile.am): Likewise.
30049         * modules/sys_select (Makefile.am): Likewise.
30050         * modules/sys_socket (Makefile.am): Likewise.
30051         * modules/sys_stat (Makefile.am): Likewise.
30052         * modules/sys_time (Makefile.am): Likewise.
30053         * modules/sys_times (Makefile.am): Likewise.
30054         * modules/sys_utsname (Makefile.am): Likewise.
30055         * modules/sys_wait (Makefile.am): Likewise.
30056         * modules/sysexits (Makefile.am): Likewise.
30057         * modules/termios (Makefile.am): Likewise.
30058         * modules/time (Makefile.am): Likewise.
30059         * modules/unistd (Makefile.am): Likewise.
30060         * modules/wchar (Makefile.am): Likewise.
30061         * modules/wctype (Makefile.am): Likewise.
30062
30063 2010-10-04  Bruno Haible  <bruno@clisp.org>
30064
30065         read-file tests: Avoid a test failure on NonStop Kernel.
30066         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30067         a regular file.
30068         Reported by Joachim Schmitz <schmitz@hp.com>.
30069
30070 2010-10-03  Bruno Haible  <bruno@clisp.org>
30071
30072         gnulib-tool: Fixes for --create-testdir with --libtool.
30073         * gnulib-tool (func_get_automake_snippet): Don't augment
30074         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30075         an executable.
30076         (func_create_testdir): Handle module 'alloca' like func_import.
30077         Reported by Bruce Korb <bruce.korb@gmail.com>.
30078
30079 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30080
30081         Avoid some lines longer than 80 characters.
30082         * lib/stdint.in.h: Break long comment lines.
30083         * lib/math.in.h: Likewise.
30084         (_GL_NUM_UINT_WORDS): New macro, for readability.
30085         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30086         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30087         * lib/stdlib.in.h: Likewise.
30088         * lib/spawn.in.h: Likewise.
30089         * lib/sys_socket.in.h: Update an URL.
30090         * lib/sys_stat.in.h: Break long line.
30091
30092 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30093
30094         Improve pmccabe2html.
30095         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30096         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30097         when the sources change. Remove the line in the HTML about "Used
30098         ranges" (which implied that there might be other unused ranges),
30099         rename "Resume" to "Summary" (easier to understand for more users).
30100         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30101         styles, and some unnecessary blank lines.
30102
30103 2010-10-03  Bruno Haible  <bruno@clisp.org>
30104             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30105
30106         acl: Add support for ACLs on NonStop Kernel.
30107         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30108         Check whether the function aclsort() exists.
30109         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30110         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30111         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30112         (acl_nontrivial [HAVE_ACLSORT]: New function.
30113         (file_has_acl): Implement for NonStop Kernel.
30114         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30115         (qset_acl): Implement for NonStop Kernel.
30116         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30117         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30118         (main): Implement for NonStop Kernel.
30119         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30120         Kernel. Handle this flavor.
30121         * tests/test-set-mode-acl.sh: Likewise.
30122         * tests/test-copy-acl.sh: Likewise.
30123         * tests/test-copy-file.sh: Likewise.
30124
30125 2010-10-03  Bruno Haible  <bruno@clisp.org>
30126
30127         Info about ACLs on NonStop Kernel.
30128         * doc/acl-resources.txt: Add info about NonStop Kernel.
30129         References by Joachim Schmitz <schmitz@hp.com>.
30130
30131 2010-10-02  Bruno Haible  <bruno@clisp.org>
30132
30133         Define missing EDQUOT on NonStop Kernel.
30134         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30135         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30136         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30137         missing.
30138         * doc/posix-headers/errno.texi: Mention the NSK bug.
30139         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30140         Reported by Joachim Schmitz <schmitz@hp.com>.
30141
30142 2010-10-02  Bruno Haible  <bruno@clisp.org>
30143
30144         Update doc for POSIX:2008.
30145         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30146         Update URL of POSIX specification.
30147
30148 2010-10-02  Bruno Haible  <bruno@clisp.org>
30149
30150         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30151         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30152         from gnulib, not from Automake.
30153
30154 2010-10-02  Bruno Haible  <bruno@clisp.org>
30155
30156         New module 'system-posix'.
30157         * modules/system-posix: New file.
30158         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30159         module is present.
30160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30161         GNULIB_SYSTEM_POSIX.
30162         * modules/stdlib (Depends-on): Remove sys_wait.
30163         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30164         * doc/posix-functions/system.texi: Mention the new module.
30165         * doc/posix-headers/stdlib.texi: Likewise.
30166         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30167         define test_sys_wait_macros to a no-op.
30168         Reported by Sam Steingold <sds@gnu.org>.
30169
30170 2010-09-30  Bruno Haible  <bruno@clisp.org>
30171
30172         More renaming from 'getdate' to 'get_date'.
30173         * doc/get_date.texi: Renamed from doc/getdate.texi.
30174         * modules/get_date (Files): Update.
30175         * MODULES.html.sh (Date and time <time.h>): Update.
30176         * DEPENDENCIES: Update.
30177         * gnulib-tool: Update comment.
30178         * m4/bison.m4 (gl_BISON): Likewise.
30179         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30180
30181 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30182
30183         bootstrap: support ACLOCAL_FLAGS during aclocal
30184         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30185         can add additional -I dir for third-party .m4 files.
30186
30187 2010-09-30  Eric Blake  <eblake@redhat.com>
30188
30189         bootstrap: use glibtoolize on MacOS
30190         * build-aux/bootstrap (check_versions): Convert libtool into
30191         libtoolize.
30192         (tool search): Move libtool check earlier, and look for
30193         glibtoolize for MacOS.
30194         (gnulib_tool_options): Auto-add --libtool when appropriate.
30195         Reported by Justin Clift.
30196
30197         poll: fix typo that broke test on MacOS
30198         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30199         Reported by Justin Clift.
30200
30201         getdate: rename to get_date
30202         Note: getdate.h is not renamed, to minimize client impact.
30203         * modules/getdate: Mark obsolete.  Move old contents...
30204         * modules/get_date: ...to new module name.
30205         * modules/getdate-tests: Move...
30206         * modules/get_date-tests: ...here.
30207         * m4/getdate.m4: Move...
30208         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30209         * lib/getdate.y: Move...
30210         * lib/get_date.y: ...here.
30211         * tests/test-getdate.c: Move...
30212         * tests/test-get_date.c: ...here.
30213         * doc/posix-functions/getdate.texi (getdate): Update name.
30214         * NEWS: Mention the change.
30215
30216 2010-09-29  Bruno Haible  <bruno@clisp.org>
30217
30218         Separate the module 'waitpid' from the module 'sys_wait'.
30219         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30220         present.
30221         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30222         gl_MODULE_INDICATOR_FOR_TESTS.
30223         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30224         * modules/sys_wait (Depends-on): Remove waitpid.
30225         (Makefile.am): Substitute GNULIB_WAITPID.
30226         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30227         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30228         signature only if the 'waitpid' module is present.
30229         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30230         * NEWS: Mention the change.
30231         * modules/grantpt (Depends-on): Add waitpid.
30232         * modules/wait-process (Depends-on): Likewise.
30233
30234 2010-09-29  Bruno Haible  <bruno@clisp.org>
30235
30236         More tests for module 'sys_wait'.
30237         * modules/sys_wait-c++-tests: New file.
30238         * tests/test-sys_wait-c++.cc: New file.
30239         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30240         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30241
30242 2010-09-29  Bruno Haible  <bruno@clisp.org>
30243
30244         New module 'waitpid'.
30245         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30246         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30247         Don't include <process.h>.
30248         (waitpid): Declare only, using modern idiom.
30249         * m4/waitpid.m4: New file.
30250         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30251         * modules/waitpid: New file.
30252         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30253         (Makefile.am): Update.
30254         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30255
30256 2010-09-28  Bruno Haible  <bruno@clisp.org>
30257
30258         poll: Assume ANSI C.
30259         * lib/poll.c (poll): Use an ANSI C declaration.
30260
30261 2010-09-28  Bruno Haible  <bruno@clisp.org>
30262
30263         poll-h: Create poll.h on all platforms.
30264         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30265         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30266         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30267         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30268         (gl_REPLACE_POLL_H): Don't set POLL_H.
30269         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30270         * modules/poll-h (Depends-on): Add include_next.
30271         (Makefile.am): Create poll.h unconditionally. Substitute also
30272         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30273
30274 2010-09-28  Bruno Haible  <bruno@clisp.org>
30275
30276         Tests for module 'poll-h'.
30277         * modules/poll-h-c++-tests: New file.
30278         * tests/test-poll-h-c++.cc: New file.
30279
30280         Tests for module 'poll-h'.
30281         * modules/poll-h-tests: New file.
30282         * tests/test-poll-h.c: New file.
30283
30284 2010-09-28  Bruno Haible  <bruno@clisp.org>
30285
30286         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30287         * modules/poll-h (Depends-on): Add 'extensions'.
30288
30289 2010-09-28  Bruno Haible  <bruno@clisp.org>
30290
30291         New module 'poll-h'.
30292         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30293         (poll): Use modern idiom.
30294         * modules/poll-h: New file.
30295         * modules/poll (Files): Remove lib/poll.in.h.
30296         (Depends-on): Add poll-h.
30297         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30298         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30299         * m4/poll_h.m4: New file.
30300         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30301         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30302         and invoke gl_REPLACE_POLL_H.
30303         * lib/poll.c: Use common idiom.
30304         * tests/test-poll.c: Likewise.
30305         * doc/posix-headers/poll.texi: Mention the poll-h module.
30306         Suggested by Eric Blake.
30307
30308 2010-09-26  Bruno Haible  <bruno@clisp.org>
30309
30310         sys_wait: Implement WSTOPSIG.
30311         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30312         Reported by Simon Josefsson.
30313
30314 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30315
30316         stdlib, sys_wait: Avoid compilation error on mingw.
30317         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30318
30319 2010-09-26  Bruno Haible  <bruno@clisp.org>
30320
30321         stdlib tests: Avoid code duplication.
30322         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30323         * modules/sys_wait-tests (Files): Likewise.
30324         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30325         * tests/test-stdlib.c: Include test-sys_wait.h.
30326         (main): Invoke test_sys_wait_macros.
30327         * tests/test-sys_wait.c: Include test-sys_wait.h.
30328         (main): Invoke test_sys_wait_macros.
30329
30330 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30331
30332         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30333         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30334         sure Windows sockets are working before calling getaddrinfo.
30335         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30336         * doc/gnulib.texi (Windows sockets): Fix typo.
30337
30338 2010-09-25  Bruno Haible  <bruno@clisp.org>
30339
30340         Tests for module 'regex-quote'.
30341         * modules/regex-quote-tests: New file.
30342         * tests/test-regex-quote.c: New file.
30343
30344         New module 'regex-quote'.
30345         * lib/regex-quote.h: New file.
30346         * lib/regex-quote.c: New file.
30347         * modules/regex-quote: New file.
30348         Suggested by Reuben Thomas <rrt@sc3d.org>.
30349
30350 2010-09-24  Bruno Haible  <bruno@clisp.org>
30351
30352         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30353         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30354
30355 2010-09-23  Bruno Haible  <bruno@clisp.org>
30356
30357         setenv: Relax license.
30358         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30359         Blake.
30360         Requested by Eric Blake.
30361
30362 2010-09-22  Bruno Haible  <bruno@clisp.org>
30363
30364         termios: Relax license.
30365         * modules/termios (License): Change to LGPLv2+.
30366         Requested by Eric Blake.
30367
30368 2010-09-22  Bruno Haible  <bruno@clisp.org>
30369
30370         threadlib: Allow the package to change the default to 'no'.
30371         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30372         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30373         Reported by Paul Eggert.
30374
30375 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30376             Bruno Haible  <bruno@clisp.org>
30377
30378         Fix endless loop in mbmemcasecoll.
30379         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30380         byte.
30381         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30382
30383 2010-09-22  Bruno Haible  <bruno@clisp.org>
30384
30385         Tests for module 'memcoll'.
30386         * modules/memcoll-tests: New file.
30387         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30388
30389         memcoll, xmemcoll: Clarify size vs. length.
30390         * modules/memcoll.c (memcoll0): Clarify specification.
30391         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30392         passed to collate_error.
30393
30394 2010-09-22  Bruno Haible  <bruno@clisp.org>
30395
30396         Tests for module 'memcasecmp'.
30397         * modules/memcasecmp-tests: New file.
30398         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30399
30400 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30401
30402         * lib/pthread.in.h: Add split double-inclusion guard, and include
30403         system <pthread.h> if there is one.  Use @@-style as in other
30404         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30405         pthread.h doesn't.
30406         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30407         (pthread_mutexattr_settype, pthread_mutex_trylock):
30408         New static inline functions, if there's no system <pthread.h>.
30409         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30410         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30411         Approximate with mutexes if the system lacks spinlocks, as in
30412         MacOS.
30413         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30414         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30415         @@-style.  Check for spinlocks separately.
30416         (gl_PTHREAD_DEFAULTS): New macro.
30417         * modules/pthread: Redo to use a more typical style for in.h files.
30418
30419 2010-09-21  Eric Blake  <eblake@redhat.com>
30420
30421         net_if: enhance tests
30422         * tests/test-net_if.c (main): Move signature checks earlier.
30423         Print failures to stderr.
30424         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30425         Document the bug that we do not yet fix.
30426
30427 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30428
30429         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30430         about gnulib, not GSS.
30431
30432 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30433
30434         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30435         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30436         for Emacs.
30437         * build-aux/pmccabe2html: Make Makefile.am example code more
30438         cut-and-paste friendly.
30439
30440 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30441
30442         * tests/test-net_if.c: New file.
30443         * modules/net_if-tests: New file.
30444
30445 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30446
30447         pthread: add pthread_spin_destroy
30448         * lib/pthread.in.h (pthread_spin_destroy): New function.
30449
30450 2010-09-19  Bruno Haible  <bruno@clisp.org>
30451
30452         gnulib-tool: Fix --help output.
30453         * gnulib-tool (func_usage): Fix help message.
30454         Reported by Reuben Thomas <rrt@sc3d.org>.
30455
30456 2010-09-18  Jim Meyering  <meyering@redhat.com>
30457
30458         maint.mk: avoid unexpanded \n in two diagnostics
30459         * top/maint.mk (sc_prohibit_always_true_header_tests):
30460         Don't use a literal \n in a halt=... assignment.  It would not be
30461         expanded, and the two \n bytes would appear in the diagnostic output
30462         rather than the desired newline.  Use halt=$$(printf ... instead.
30463         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30464
30465 2010-09-18  Bruno Haible  <bruno@clisp.org>
30466
30467         netinet_in: Doc tweak.
30468         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30469         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30470
30471 2010-09-18  Jim Meyering  <meyering@redhat.com>
30472
30473         init.sh: correct an outdated comment
30474         * tests/init.sh (create_exe_shims_):  s/function/alias/
30475
30476         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30477         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30478         a file named "*.exe" is removed between the glob expansion and the
30479         processing of that oddly named file.
30480
30481 2010-09-17  Eric Blake  <eblake@redhat.com>
30482
30483         mirbsd: add some more support
30484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30485         in BSD family.
30486         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30487         devices as OpenBSD.
30488         * m4/host-os.m4 (mirbsd): Add MirBSD.
30489
30490         tests: fix unportable assumption on sys/wait.h
30491         * tests/test-sys_wait.c (main): Relax test.
30492         * tests/test-stdlib.c (main): Likewise.
30493
30494         init.sh: accommodate directory with no .exes
30495         * tests/init.sh: Accomodate directory containing only scripts.
30496
30497         tests: avoid compiler warning
30498         * tests/test-stdlib.c (main): Use the variable.
30499
30500         fdutimens, fdutimensat: update signature, again
30501         * lib/utimens.h (gl_futimens): Delete, and move signature...
30502         (fdutimens): ...here.
30503         (fdutimensat): Rearrange signature.
30504         (lutimensat): Rename variable for clarity.
30505         * lib/fdutimensat.c (fdutimensat): Update signature.
30506         * lib/utimens.c (fdutimens): Likewise.
30507         (gl_futimens): Delete.
30508         (utimens, lutimens): Update callers.
30509         * lib/futimens.c (futimens): Likewise.
30510         * tests/test-fdutimensat.c: Likewise.
30511         * tests/test-utimens.c: Likewise.
30512         * tests/test-futimens.h: Update comment.
30513         * NEWS: Mention this.
30514         Suggested by Paul Eggert.
30515
30516 2010-09-17  Bruno Haible  <bruno@clisp.org>
30517
30518         Take over the maintenance of some older macros from Autoconf.
30519         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30520         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30521         GNU Autoconf.
30522         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30523         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30524
30525 2010-09-17  Eric Blake  <eblake@redhat.com>
30526
30527         fdutimensat: drop atflag validation
30528         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30529         with valid fd, to close a race scenario where futimens is
30530         unsupported and FILE was replaced by a symlink.
30531         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30532         accordingly.
30533         Suggested by Paul Eggert.
30534
30535 2010-09-16  Bruno Haible  <bruno@clisp.org>
30536
30537         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30538         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30539
30540 2010-09-16  Bruno Haible  <bruno@clisp.org>
30541
30542         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30543         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30544         login_tty exists.
30545         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30546
30547 2010-09-16  Bruno Haible  <bruno@clisp.org>
30548
30549         login_tty: Make the replacement code work on BSD systems.
30550         * lib/login_tty.c: Include <sys/ioctl.h>.
30551         (login_tty): Use ioctl TIOCSCTTY when available.
30552         * modules/login_tty (Depends-on): Add sys_ioctl.
30553         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30554
30555 2010-09-16  Bruno Haible  <bruno@clisp.org>
30556
30557         login_tty: Stricter unit test.
30558         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30559         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30560         and tcgetsid() after login_tty.
30561         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30562
30563 2010-09-16  Bruno Haible  <bruno@clisp.org>
30564
30565         New module 'tcgetsid'.
30566         * lib/tcgetsid.c: New file.
30567         * m4/tcgetsid.m4: New file.
30568         * modules/tcgetsid: New file.
30569         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30570         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30571         GNULIB_TCGETSID, HAVE_TCGETSID.
30572         * lib/termios.in.h: Include <sys/types.h>.
30573         (tcgetsid): New declaration.
30574         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30575         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30576         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30577         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30578
30579 2010-09-16  Bruno Haible  <bruno@clisp.org>
30580
30581         Tests for module 'termios'.
30582         * modules/termios-c++-tests: New file.
30583         * modules/termios-tests: New file.
30584         * tests/test-termios-c++.cc: New file.
30585         * tests/test-termios.c: New file.
30586
30587         New module 'termios'.
30588         * modules/termios: New file.
30589         * lib/termios.in.h: New file.
30590         * m4/termios_h.m4: New file.
30591         * doc/posix-headers/termios.texi: Mention the new module.
30592
30593 2010-09-16  Eric Blake  <eblake@redhat.com>
30594
30595         fdutimensat: add an atflag parameter
30596         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30597         * lib/utimens.h (fdutimensat): Update prototype.
30598         * tests/test-fdutimensat.c: Adjust test to match.
30599         * NEWS: Document the change.
30600         Suggested by Paul Eggert.
30601
30602 2010-09-16  Bruno Haible  <bruno@clisp.org>
30603
30604         Fix typos in comments.
30605         * lib/striconveh.h: Fix typo in comment.
30606         * lib/login_tty.c (login_tty): Likewise.
30607
30608 2010-09-15  Bruno Haible  <bruno@clisp.org>
30609
30610         stdlib: clarify MirBSD WEXITSTATUS bug
30611         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30612         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30613
30614 2010-09-15  Eric Blake  <eblake@redhat.com>
30615
30616         stdlib: work around MirBSD WEXITSTATUS bug
30617         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30618         * modules/stdlib (Depends-on): Add sys_wait.
30619         * tests/test-sys_wait.c (main): Enhance test.
30620         * tests/test-stdlib.c (main): Likewise.
30621         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30622
30623         docs: mention MacOS issue with WEXITSTATUS(constant)
30624         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30625         issue.
30626         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30627
30628         strnlen: add tests
30629         * modules/strnlen-tests: New file.
30630         * tests/test-strnlen.c: Likewise.
30631
30632 2010-09-14  Bruno Haible  <bruno@clisp.org>
30633
30634         unistr/base: Avoid link errors when module 'libunistring' is also used.
30635         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30636         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30637         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30638         Declare also when HAVE_LIBUNISTRING is set.
30639         Reported by Pádraig Brady <P@draigbrady.com>.
30640
30641 2010-09-14  Eric Blake  <eblake@redhat.com>
30642
30643         test-rawmemchr: make more robust
30644         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30645         (Depends-on, configure.ac): Add needed prerequisites to use it.
30646         * modules/memchr-tests (Files, Depends-on, configure.ac):
30647         Likewise, to avoid implicit reliance on memchr module prereqs.
30648         * tests/test-memchr.c (main): Ensure proper masking.
30649         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30650         reads.
30651
30652         memchr: detect glibc Alpha bug
30653         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30654         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30655         Alpha.
30656         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30657         * tests/test-memchr.c (main): Enhance test.
30658         Reported by Nelson H. F. Beebe.
30659
30660 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30661
30662         fts, getcwd, glob: audit for dirfd returning -1
30663         * lib/fts.c (opendir): Remove #define; no longer used.
30664         (opendirat): New arg PDIR_FD.  All callers changed.
30665         (fts_build, _opendir2): Use new opendirat to avoid the need for
30666         dirfd, or for checking whether dirfd returns a negative value.
30667         Don't use opendir; always use openat followed by fdopendir.
30668         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30669         it.
30670         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30671         returns -1 here.
30672         * modules/fts (Depends-on): Remove dirfd.
30673         * modules/getcwd (Depends-on): Likewise.
30674
30675 2010-09-13  Eric Blake  <eblake@redhat.com>
30676
30677         float: fix broken MirBSD header
30678         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30679         * doc/posix-headers/float.texi (float.h): Document it.
30680
30681 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30682
30683         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30684         * lib/fts.c (opendirat): New arg extra_flags.
30685         (__opendir2): Use it to avoid following symlinks when opening
30686         a directory, if symlinks are not supposed to be followed.  See
30687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30688
30689         fdopendir: preserve argument fd before returning
30690         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30691         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30692         (fdopendir): Use them, arranging for FD to be open to the same
30693         directory that it was when it started.  (It might be temporarily
30694         closed while fdopendir is running, so this not thread- or
30695         signal-safe.)  Be careful to do the right thing even when file
30696         descriptors are scarce and dup fails with errno == EMFILE.  See
30697         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30698
30699 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30700
30701         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30702         * NEWS: Document change.
30703         * m4/regex.m4: Disable test for regoff_t size.
30704
30705 2010-09-13  Jim Meyering  <meyering@redhat.com>
30706
30707         fts: don't operate on an invalid file descriptor after failed dup
30708         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30709         negative file descriptor.
30710
30711 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30712
30713         savedir: add streamsavedir, deprecate fdsavedir
30714         * NEWS: Mention deprecation of fdsavedir.
30715         * lib/savedir.c (streamsavedir): New extern function, whose name
30716         ends in "savedir" to be consistent with the others.  This differs
30717         from savedirstream in that it doesn't close its argument.  The
30718         next version of GNU tar will use this instead of fdsavedir, to
30719         avoid some race conditions and conserve file descriptors.
30720         (savedirstream): Reimplement as a wrapper around streamsavedir.
30721         (fdsavedir): Add a comment deprecating this function.  As far as
30722         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30723         * lib/savedir.h (streamsavedir): New decl.
30724         (fdsavedir): Add a comment deprecating this.
30725
30726 2010-09-10  Bruno Haible  <bruno@clisp.org>
30727
30728         langinfo: Fix last commit.
30729         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30730         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30731         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30732
30733 2010-09-10  Bruno Haible  <bruno@clisp.org>
30734
30735         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30736         * lib/progreloc.c (O_EXEC): Define fallback.
30737
30738 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30739
30740         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30741         * NEWS: Document recent changes to fcntl-h.
30742         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30743         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30744         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30745         Similarly for O_SEARCH; this last was already true, but not documented.
30746         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30747         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30748         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30749         Likewise.
30750         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30751         is zero, not whether it is defined.
30752         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30753         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30754         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30755
30756 2010-09-10  Bruno Haible  <bruno@clisp.org>
30757
30758         langinfo, nl_langinfo: Fix for IRIX 5.3.
30759         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30760         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30761         HAVE_LANGINFO_YESEXPR.
30762         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30763         HAVE_LANGINFO_YESEXPR.
30764         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30765         HAVE_LANGINFO_T_FMT_AMPM is 0.
30766         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30767         HAVE_LANGINFO_YESEXPR is 0.
30768         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30769         NOEXPR.
30770         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30771         * doc/posix-functions/nl_langinfo.texi: Likewise.
30772         Reported by Eric Blake.
30773
30774 2010-09-10  Bruno Haible  <bruno@clisp.org>
30775
30776         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30777         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30778         on FreeBSD 8.0 and OpenBSD 4.6.
30779         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30780         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30781         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30782         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30783         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30784         ac_includes_default.
30785         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30786
30787 2010-09-09  Eric Blake  <eblake@redhat.com>
30788
30789         strsignal: work around NetBSD bug
30790         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30791         * lib/string.in.h (includes): Likewise.
30792         * doc/posix-functions/strsignal.texi (strsignal): Document the
30793         bug.
30794         Reported by Nelson H. F. Beebe.
30795
30796         gnulib-tool: work with NetBSD /bin/sh
30797         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30798         (func_get_description, func_get_comment, func_get_status)
30799         (func_get_notice, func_get_applicability, func_get_filelist)
30800         (func_get_dependencies, func_get_autoconf_early_snippet)
30801         (func_get_autoconf_snippet, func_get_automake_snippet)
30802         (func_get_include_directive, func_get_link_directive)
30803         (func_get_license, func_get_maintainer, func_import): Avoid
30804         shell syntax errors from parsing syntax extensions.
30805
30806 2010-09-09  Bruno Haible  <bruno@clisp.org>
30807
30808         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30809         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30810         a reliable way to determine whether the 'alias' command works.
30811
30812 2010-09-08  Jim Meyering  <meyering@redhat.com>
30813
30814         init.sh: penalize a set-x-impaired shell; don't disqualify it
30815         * tests/init.sh: Too many shells corrupt application stderr when
30816         you set -x, so we can't afford to disqualify them, since at least
30817         on Irix-6.5, that would disqualify all bourne shells.
30818         Instead, use a two-pass approach.
30819         On the first pass, try to find a shell that meets the stricter
30820         condition that set -x does not corrupt stderr.
30821         If no shell meets the stricter condition, retest each candidate
30822         shell, but without that extra condition.  Finally, when
30823         VERBOSE=yes is requested and set -x might cause trouble, simply
30824         issue a warning and refrain from enabling debug output.
30825
30826 2010-09-08  Eric Blake  <eblake@redhat.com>
30827
30828         unsetenv: fix OpenBSD bug
30829         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30830         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30831         documentation.
30832         Reported by Jim Meyering.
30833
30834         strtod: work around IRIX 6.5 bug
30835         * lib/strtod.c (strtod): Reparse number on shorter string if
30836         exponent parse was invalid.
30837         * tests/test-strtod.c (main): Add check for "0x1p 2".
30838         Reported by Tom G. Christensen.
30839
30840         getopt: optimize previous patch
30841         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30842         empty variable.  Speed up awk script.
30843         Reported by Paolo Bonzini.
30844
30845 2010-09-08  Jim Meyering  <meyering@redhat.com>
30846
30847         test.sh: disqualify shells for which set -x corrupts stderr
30848         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30849         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30850         appear in stderr output.  For example, this command:
30851             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30852         prints "P=1" on those two systems:
30853
30854 2010-09-08  Bruno Haible  <bruno@clisp.org>
30855
30856         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30857         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30858         commands, because some shells ignore redirections when there is an
30859         error in the command lookup.
30860         Reported by Eric Blake.
30861
30862 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30863
30864         * lib/regex.h: Fix a mention of `regex_compile' (should be
30865         `re_compile_pattern').
30866         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30867         (re_set_registers): Correct name of parameter in comment.
30868
30869         * doc/regex.texi: Add documentation for missing syntax flags.
30870         Remove commented-out documentation of defunct syntax option
30871         RE_NO_EMPTY_ALTS.
30872         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30873         Add documentation of re_set_registers.
30874         Document trick to re-use a pattern buffer by setting fastmap manually.
30875         Update documentation of struct re_pattern_buffer per public members.
30876         Uncomment documentation of equivalence class operators and
30877         collating symbol operators, since they are now implemented,
30878         Explain leftmost-longest matching in relation to alternatives.
30879         Tidy documentation of substring matching.
30880         Remove POSIX documentation, which is done better in
30881         glibc, and refer the reader there. Keep BSD API documentation, as
30882         that is not readily available elsewhere.
30883
30884 2010-09-07  Eric Blake  <eblake@redhat.com>
30885
30886         getopt: handle POSIXLY_CORRECT set but not exported
30887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30888         export state of POSIXLY_CORRECT, due to bash set -o posix.
30889         Reported by Dustin J. Mitchell.
30890
30891 2010-09-05  Bruno Haible  <bruno@clisp.org>
30892
30893         gnulib-tool: Highlight the changed options.
30894         * gnulib-tool (func_usage): Display the --import, --add-import,
30895         --remove-import explanations in bold font.
30896
30897 2010-09-06  Karl Berry  <karl@gnu.org>
30898
30899         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30900
30901 2010-09-05  Bruno Haible  <bruno@clisp.org>
30902
30903         uniwidth/width: Update comment.
30904         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30905         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30906
30907 2010-09-05  Bruno Haible  <bruno@clisp.org>
30908
30909         isinf, isnan: Relax license.
30910         * modules/isinf (License): Change from GPL to LGPL, with consent from
30911         Ben Pfaff.
30912         * modules/isnan (License): Likewise.
30913         Requested by Ludovic Courtès.
30914
30915 2010-09-04  Bruno Haible  <bruno@clisp.org>
30916
30917         gnulib-tool: Help migration from --import to --add-import or --update.
30918         * gnulib-tool: Emit a verbose error message when --import is used
30919         without any module name.
30920
30921 2010-09-04  Bruno Haible  <bruno@clisp.org>
30922
30923         Update doc about gnulib-tool.
30924         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30925         'gnulib-tool --update' in more detail.
30926         Reported by Eric Blake.
30927
30928 2010-09-04  Bruno Haible  <bruno@clisp.org>
30929
30930         gnulib-tool: Change --import. New options --add/remove-import.
30931         * gnulib-tool: New options --add-import, --remove-import.
30932         (func_usage): Document them.
30933         (have_associative): Define always.
30934         (func_import): In import mode, don't merge the specified settings with
30935         the cached settings. Implement remove-import mode.
30936         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30937         Explain when to use them versus --import.
30938         (Simple update): Use --add-import instead of --import.
30939         * NEWS: Mention the change.
30940
30941 2010-09-04  Bruno Haible  <bruno@clisp.org>
30942
30943         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30944         separate gnulib.mk.
30945
30946 2010-09-04  Bruno Haible  <bruno@clisp.org>
30947
30948         gnulib-tool: Don't talk about CVS any more.
30949         * gnulib-tool (func_usage, func_import): Write "version control"
30950         instead of CVS.
30951
30952 2010-09-04  Jim Meyering  <meyering@redhat.com>
30953
30954         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30955         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30956         false positives (whose names may be ill-chosen) when searching
30957         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30958         would cause a false-positive.
30959
30960         avoid coreutils "make distcheck" failure
30961         Coreutils tests with an absolute build directory name that contains
30962         a space.  Not quoting this directory name caused a failure.
30963         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30964         * tests/test-vc-list-files-cvs.sh: Likewise.
30965
30966 2010-09-04  Bruno Haible  <bruno@clisp.org>
30967
30968         gnulib-tool: Avoid error when run in a package without Makefile.am.
30969         * gnulib-tool: When collecting the m4dirs in a package that does not
30970         have a Makefile.am, eliminate those directories that contain no
30971         gnulib-cache.m4. Fix expression that counts these directories.
30972
30973 2010-09-04  Bruno Haible  <bruno@clisp.org>
30974
30975         update-copyright test: Improve output when perl is missing or too old.
30976         * tests/test-update-copyright.sh: Move test of Perl version down after
30977         the test whether Perl exists. Provide an explanation relating Perl's
30978         error message to Automake's SKIP: message.
30979
30980 2010-09-04  Bruno Haible  <bruno@clisp.org>
30981
30982         Don't augment PATH in TESTS_ENVIRONMENT.
30983         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30984         set abs_aux_dir instead of augmenting PATH.
30985         * modules/vc-list-files-tests (Makefile.am): Likewise.
30986         * tests/test-update-copyright.sh: Augment PATH here.
30987         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30988         path_prepend_.
30989         * tests/test-vc-list-files-git.sh: Likewise.
30990
30991 2010-09-04  Jim Meyering  <meyering@redhat.com>
30992
30993         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30994         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30995
30996 2010-09-04  Bruno Haible  <bruno@clisp.org>
30997
30998         strdup: Fix compilation error in C++ mode.
30999         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31000         the macro.
31001
31002 2010-09-04  Bruno Haible  <bruno@clisp.org>
31003
31004         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31005         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31006         macro into a function.
31007         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31008
31009 2010-09-04  Bruno Haible  <bruno@clisp.org>
31010
31011         Set PATH_SEPARATOR the same way autoconf does.
31012         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31013         the value of PATH_SEPARATOR the same way autoconf-generated configure
31014         scripts do.
31015         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31016         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31017
31018 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31019
31020         Set PATH_SEPARATOR the same way autoconf does.
31021         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31022         the same way autoconf-generated configure scripts do.
31023         * posix-modules: Likewise.
31024
31025 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31026
31027         hash: fix safe_hasher const typo
31028         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31029         const; otherwise, there is a type error later.
31030
31031 2010-09-02  Jim Meyering  <meyering@redhat.com>
31032
31033         test-update-copyright.sh: require perl 5.8.0
31034         * tests/test-update-copyright.sh: Require 5.8.0,
31035         which Tom G. Christensen has confirmed is adequate,
31036         while 5.6.1 is not.
31037
31038 2010-09-02  Eric Blake  <eblake@redhat.com>
31039
31040         tests: init.sh improvements for re-exec'ing with zsh
31041         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31042         -vx through shell re-exec.
31043         Reported by Tom G. Christensen.
31044
31045         wctype: fix typo in previous commit
31046         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31047         Reported by Ludovic Courtès.
31048
31049 2010-09-02  Jim Meyering  <meyering@redhat.com>
31050
31051         test-update-copyright.sh: skip test if Perl is too old
31052         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31053         Reported by Tom G. Christensen.
31054
31055 2010-09-02  Bruno Haible  <bruno@clisp.org>
31056
31057         wctype: Avoid compilation error on IRIX 6.5.30.
31058         * lib/wctype.in.h (iswblank): Declare with a replacement if
31059         REPLACE_ISWBLANK is set.
31060         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31061         declared. Set REPLACE_ISWBLANK.
31062         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31063         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31064         * doc/posix-headers/wctype.texi: Likewise.
31065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31066
31067 2010-09-01  Bruno Haible  <bruno@clisp.org>
31068
31069         New module 'socketlib'.
31070         * modules/socketlib: New file.
31071         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31072         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31073         * modules/sockets (Depends-on): Add socketlib.
31074         Suggested by Sam Steingold <sds@gnu.org>.
31075
31076 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31077
31078         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31079
31080         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31081         when one needs search access to a directory but not read access.
31082         On systems where it is available, it works in some cases where
31083         O_RDONLY does not, namely on directories that are searchable but
31084         not readable, and which need only to be searchable.  If O_SEARCH
31085         is not available, fall back to the traditional method of using
31086         O_RDONLY.
31087
31088         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31089         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31090         when opening a directory that needs only to be searchable.
31091         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31092         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31093         * lib/openat-proc.c (openat_proc_name): Likewise.
31094         * lib/openat.c (openat_needs_fchdir): Likewise.
31095         * lib/save-cwd.c (save_cwd): Likewise.
31096         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31097
31098 2010-08-28  Bruno Haible  <bruno@clisp.org>
31099
31100         New module 'host-cpu-c-abi'.
31101         * modules/host-cpu-c-abi: New file.
31102         * m4/host-cpu-c-abi.m4: New file, based on part of
31103         clisp/src/m4/general.m4.
31104         Requested by Sam Steingold <sds@gnu.org>.
31105
31106 2010-08-31  Eric Blake  <eblake@redhat.com>
31107         and Jim Meyering  <meyering@redhat.com>
31108
31109         hash: factor, and guard against misbehaving hasher function
31110         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31111         of table->hasher's return value.  Also protect against a hash value
31112         so large that adding it to table->bucket results in a NULL pointer.
31113         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31114         Use it in place of open-coded check-and-abort.
31115
31116 2010-08-30  Bruno Haible  <bruno@clisp.org>
31117
31118         hash: silence spurious clang warning
31119         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31120         Reported by Eric Blake.
31121
31122 2010-08-30  Eric Blake  <eblake@redhat.com>
31123
31124         strstr, memmem, strcasestr: avoid leaked shell message
31125         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31126         FreeBSD.
31127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31128         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31129
31130         tests: silence clang warning
31131         * tests/test-malloca.c (do_allocation): Avoid dead store.
31132
31133 2010-08-29  Bruno Haible  <bruno@clisp.org>
31134
31135         gettext: Fix recent mistake.
31136         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31137
31138 2010-08-29  Bruno Haible  <bruno@clisp.org>
31139
31140         selinux-h: Offer a --without-selinux option.
31141         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31142         --without-selinux was specified, skip all tests and define
31143         HAVE_SELINUX_SELINUX_H to 0.
31144         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31145         set LIB_SELINUX to empty.
31146         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31147         gl_LIBSELINUX. If --without-selinux was specified, replace
31148         selinux/context.h.
31149         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31150
31151 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31152             Bruno Haible  <bruno@clisp.org>
31153
31154         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31155         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31156         of HAVE_REALLOC.
31157         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31158         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31159         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31160         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31161
31162 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31163             Bruno Haible  <bruno@clisp.org>
31164
31165         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31166         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31167         HAVE_CALLOC.
31168         * lib/xmalloc.c: Update accordingly.
31169         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31170         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31171         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31172
31173 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31174             Bruno Haible  <bruno@clisp.org>
31175
31176         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31177         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31178         HAVE_MALLOC.
31179         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31180         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31181         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31182
31183 2010-08-29  Bruno Haible  <bruno@clisp.org>
31184
31185         Update modules list.
31186         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31187         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31188         (String handling <string.h>): Add astrxfrm.
31189         (File system functions): Add readlinkat.
31190
31191 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31192
31193         Tests for module 'realloc-gnu'.
31194         * modules/realloc-gnu-tests: New file.
31195         * tests/test-realloc-gnu.c: New file.
31196
31197         Tests for module 'calloc-gnu'.
31198         * modules/calloc-gnu-tests: New file.
31199         * tests/test-calloc-gnu.c: New file.
31200
31201         Tests for module 'malloc-gnu'.
31202         * modules/malloc-gnu-tests: New file.
31203         * tests/test-malloc-gnu.c: New file.
31204
31205 2010-08-28  Bruno Haible  <bruno@clisp.org>
31206
31207         Rename module 'realloc' -> 'realloc-gnu'.
31208         * modules/realloc-gnu: New file, copied from modules/realloc.
31209         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31210         obsolete.
31211         * modules/mgetgroups (Depends-on): Update.
31212         * doc/posix-functions/realloc.texi: Update.
31213         * NEWS: Mention the change.
31214
31215         Rename module 'calloc' -> 'calloc-gnu'.
31216         * modules/calloc-gnu: New file, copied from modules/calloc.
31217         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31218         obsolete.
31219         * doc/posix-functions/calloc.texi: Update.
31220         * NEWS: Mention the change.
31221
31222         Rename module 'malloc' -> 'malloc-gnu'.
31223         * modules/malloc-gnu: New file, copied from modules/malloc.
31224         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31225         obsolete.
31226         * modules/argp (Depends-on): Update.
31227         * modules/regex (Depends-on): Update.
31228         * doc/posix-functions/malloc.texi: Update.
31229         * NEWS: Mention the change.
31230
31231 2010-08-28  Eric Blake  <eblake@redhat.com>
31232
31233         pread, pwrite: add missing dependency
31234         * modules/pread (Depends-on): Add extensions.
31235         * modules/pwrite (Depends-on): Likewise.
31236
31237 2010-08-28  Bruno Haible  <bruno@clisp.org>
31238
31239         unistr/u*-strchr: Fix tests dependencies.
31240         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31241         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31242         Reported by Ian Beckwith <ianb@erislabs.net>.
31243
31244 2010-08-28  Bruno Haible  <bruno@clisp.org>
31245
31246         read-file: Don't occupy too much unused memory.
31247         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31248
31249 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31250             Eric Blake  <eblake@redhat.com>
31251             Bruno Haible  <bruno@clisp.org>
31252
31253         read-file: Avoid memory reallocations with regular files.
31254         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31255         (fread_file): With regular files, use the remaining length as the
31256         initial buffer size.  Check against overflow.
31257         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31258         sys_stat.
31259
31260 2010-08-28  Bruno Haible  <bruno@clisp.org>
31261
31262         ftello: Relax license.
31263         * modules/ftello (License): Relax to LGPLv2+.
31264         Reported by Eric Blake.
31265
31266 2010-08-28  Bruno Haible  <bruno@clisp.org>
31267
31268         Avoid relocwrapper link errors due to gnulib replacement functions.
31269         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31270         function.
31271         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31272
31273 2010-08-28  Bruno Haible  <bruno@clisp.org>
31274
31275         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31276         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31277         defined.
31278         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31279         Suggested by Eric Blake.
31280
31281 2010-08-28  Bruno Haible  <bruno@clisp.org>
31282
31283         sys_socket, netdb: Ensure socklen_t gets defined.
31284         * modules/sys_socket (Depends-on): Add socklen.
31285         * modules/netdb (Depends-on): Likewise.
31286         * modules/getaddrinfo (Depends-on): Remove socklen.
31287         * modules/getsockopt (Depends-on): Likewise.
31288         * modules/setsockopt (Depends-on): Likewise.
31289         * tests/test-sys_socket.c: Check that socklen_t is defined.
31290         * tests/test-netdb.c: Likewise.
31291         * m4/socklen.m4: Update comments.
31292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31293
31294 2010-08-27  Eric Blake  <eblake@redhat.com>
31295
31296         login_tty: add missing dependency
31297         * modules/login_tty (Depends-on): Add pty.
31298
31299 2010-08-26  Eric Blake  <eblake@redhat.com>
31300
31301         lib-symbol-versions: fix m4 quoting
31302         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31303         format for AC_LINK_IFELSE.
31304
31305         glob: fix compile test
31306         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31307
31308         btowc: fix missing file
31309         * modules/btowc (Files): Also ship locale-fr.m4.
31310
31311         lseek: fix link test
31312         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31313         AC_LINK_IFELSE.
31314
31315         include_next: silence autoconf 2.68 warning
31316         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31317         AC_COMPILE_IFELSE as special.
31318         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31319         autoconf < 2.68.
31320
31321         acl: fix compilation test
31322         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31323         AC_COMPILE_IFELSE.
31324
31325 2010-08-26  Bruno Haible  <bruno@clisp.org>
31326
31327         Modernize AC_TRY_RUN invocations.
31328         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31329         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31330         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31331         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31332         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31333         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31334         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31336         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31337         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31338         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31339         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31340         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31341         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31342         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31343         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31344         gl_MBRLEN_NUL_RETVAL): Likewise.
31345         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31346         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31347         Likewise.
31348         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31349         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31350         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31351         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31352         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31353         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31354         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31355         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31356         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31357         Likewise.
31358         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31359         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31360         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31361         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31362         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31363         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31364         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31365         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31366         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31368
31369 2010-08-26  Bruno Haible  <bruno@clisp.org>
31370
31371         Modernize AC_TRY_LINK invocations.
31372         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31373         AC_TRY_LINK.
31374         * m4/argp.m4 (gl_ARGP): Likewise.
31375         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31376         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31377         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31378         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31379         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31380         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31381         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31382         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31383         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31384         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31385         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31386         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31387         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31388         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31389         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31390         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31391         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31392         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31393         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31394         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31395         Likewise.
31396         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31397         Likewise.
31398         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31399         Likewise.
31400         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31401         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31402         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31403         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31404         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31405         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31406         * m4/servent.m4 (gl_SERVENT): Likewise.
31407         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31408         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31409         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31410         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31411         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31412         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31413         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31414         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31415         * modules/tsearch-tests (configure.ac): Likewise.
31416
31417 2010-08-26  Bruno Haible  <bruno@clisp.org>
31418
31419         Modernize AC_TRY_COMPILE invocations.
31420         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31421         AC_TRY_COMPILE.
31422         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31423         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31424         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31425         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31426         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31427         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31428         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31429         * m4/lock.m4 (gl_LOCK): Likewise.
31430         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31431         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31432         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31433         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31434         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31435         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31436         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31437         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31438         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31439         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31440         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31441         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31442         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31443         extraneous semicolon.
31444
31445 2010-08-26  Jim Meyering  <meyering@redhat.com>
31446
31447         stat-time: relax license LGPL
31448         * modules/stat-time (License): Change from GPL to LGPL,
31449         with consent from all contributors, for use in libguile.
31450         Requested by Ludovic Courtès.
31451
31452 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31453
31454         poll: return immediately on POLLHUP.
31455         * lib/poll.c (poll): Always set timeout before wait_timeout is
31456         computed.
31457
31458 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31459
31460         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31461         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31462         rmdir ("dir/.//"), unlinkat.
31463
31464 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31465
31466         stdbool: avoid spurious failure with modern xlc
31467         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31468
31469 2010-08-24  Bruno Haible  <bruno@clisp.org>
31470
31471         getloadavg: simplify code
31472         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31473         gl_have_func. Update comments.
31474
31475 2010-08-24  Eric Blake  <eblake@redhat.com>
31476
31477         getloadavg: don't define SVR4 on cygwin
31478         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31479         only define SVR4 when -lkvm is required.
31480         Reported by Yaakov Selkowitz.
31481
31482 2010-08-24  Bruno Haible  <bruno@clisp.org>
31483
31484         priv-set: fix comment
31485         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31486
31487 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31488
31489         priv-set: fix comments
31490         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31491         to match code, as suggested by David Bartley in:
31492         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31493
31494 2010-08-23  Eric Blake  <eblake@redhat.com>
31495
31496         stdbool: avoid rejecting clang
31497         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31498         * tests/test-stdbool.c: Enable more tests if using the system
31499         <stdbool.h> instead of the gnulib replacement.
31500         (main): Move xlc bug test to a runtime test for all compilers.
31501         Reported by Anders Kaseorg.
31502
31503         argz: fix shell quoting issue
31504         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31505         Reported by Charles Wilson.
31506
31507 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31508             Erik Faye-Lund <kusmabite@gmail.com>
31509
31510         poll, select: handle ERROR_BROKEN_PIPE.
31511         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31512         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31513         * lib/select.c (win32_compute_revents): Do not mark a pipe
31514         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31515
31516 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31517
31518         fts: allow compilation with C++
31519         * lib/fts_.h: Specify extern "C" linkage with C++.
31520
31521 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31522
31523         Fix gnulib-tool sed script de-commentation for AIX sed.
31524         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31525         sed.
31526
31527 2010-08-17  Eric Blake  <eblake@redhat.com>
31528
31529         test-stddef: test for (some) offsetof bugs
31530         * tests/test-stddef.c: Enhance test to ensure correct type of
31531         offsetof.
31532         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31533         that we are not fixing at this time.
31534
31535 2010-08-15  Bruno Haible  <bruno@clisp.org>
31536
31537         stpncpy: Allow stpncpy to be defined as a macro.
31538         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31539         if it's already correctly declared.
31540         * lib/string.in.h (stpncpy): Undefine before redefining.
31541         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31542
31543 2010-08-14  Bruno Haible  <bruno@clisp.org>
31544
31545         Rename module 'memxfrm' to 'amemxfrm'.
31546         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31547         (amemxfrm): Renamed from memxfrm.
31548         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31549         (amemxfrm): Renamed from memxfrm.
31550         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31551         * NEWS: Mention the change.
31552         * MODULES.html.sh (String handling <string.h>): Update.
31553         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31554         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31555         * lib/unicase/u16-casexfrm.c: Likewise.
31556         * lib/unicase/u32-casexfrm.c: Likewise.
31557         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31558         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31559         * lib/uninorm/u16-normxfrm.c: Likewise.
31560         * lib/uninorm/u32-normxfrm.c: Likewise.
31561         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31562         memxfrm.
31563         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31564         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31565         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31566         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31567         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31568         Suggested by Paul Eggert.
31569
31570 2010-08-14  Bruno Haible  <bruno@clisp.org>
31571
31572         Tests for module 'astrxfrm'.
31573         * modules/astrxfrm-tests: New file.
31574         * tests/test-astrxfrm.c: New file.
31575
31576         New module 'astrxfrm'.
31577         * lib/astrxfrm.h: New file.
31578         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31579         * modules/astrxfrm: New file.
31580
31581 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31582
31583         regex: Tweak doc.
31584         * doc/regex.texi (Overview): Don't mention regex.c.
31585         (GNU Regular Expression Compiling): Likewise.
31586         (Match-end-of-line Operator): Mention 'not_eol'.
31587
31588 2010-08-14  Brian Gough  <bjg@gnu.org>
31589             Bruno Haible  <bruno@clisp.org>
31590
31591         git-merge-changelog: add doc relating to use with bzr and hg.
31592         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31593
31594 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31595
31596         pthread: fix pthread.h creation for srcdir != builddir
31597         * modules/pthread (Makefile.am): Fix the rule to work also in a
31598         non-srcdir build.
31599
31600 2010-08-13  Karl Berry  <karl@gnu.org>
31601
31602         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31603         * doc/posix-*/*: force line break before @url of POSIX
31604         specifications.
31605         Suggested by Werner Lemberg.
31606
31607 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31608
31609         strtod: fix const diagnostic
31610         * lib/strtod.c (strtod): Don't assign const char * to char *,
31611         as this elicits a warning from GCC when warnings are enabled.
31612
31613 2010-08-10  Pádraig Brady <P@draigbrady.com>
31614         and Eric Blake  <eblake@redhat.com>
31615
31616         copy-acl: ignore ENOTSUP on HP-UX
31617         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31618         so that it is available for HP-UX.
31619         * lib/copy-acl.c (qcopy_acl): Use it.
31620         Reported by Patrick M. Callahan.
31621
31622 2010-08-10  Eric Blake  <eblake@redhat.com>
31623
31624         open, chown: relax license
31625         * modules/open (License): Change to LGPLv2+, with consent by all
31626         authors, for use in augeas.
31627         * modules/chown (License): Likewise.
31628         * modules/lchown (Likewise): Likewise.
31629         Requested by Adam Stokes.
31630
31631 2010-08-09  Karl Berry  <karl@gnu.org>
31632
31633         * build-aux/ar-lib: new file, import from Automake.
31634         * config/srclist.txt: autocheck for updates.
31635
31636 2010-08-09  Eric Blake  <eblake@redhat.com>
31637
31638         readlinkat: adjust client modules
31639         * modules/areadlinkat (Depends-on): Use readlinkat, not
31640         symlinkat.
31641         * modules/areadlinkat-with-size (Depends-on): Likewise.
31642
31643         mknod: be more vocal about danger of running tests as root
31644         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31645         root, since that is just asking for problems.
31646         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31647
31648         readlinkat: split into its own module
31649         * modules/symlinkat: Split readlinkat...
31650         * modules/readlinkat: ...into separate module.
31651         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31652         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31653         * lib/symlinkat.c (readlinkat): Move...
31654         * lib/readlinkat.c: ...into new file.
31655         * modules/symlinkat-tests: Split readlinkat test...
31656         * modules/readlinkat-tests: ...into separate module.
31657         * tests/test-symlinkat.c: Split...
31658         * tests/test-readlinkat.c: ...into new file.
31659         * NEWS: Document the split.
31660         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31661         * lib/unistd.in.h (readlinkat): Likewise.
31662         Suggested by Bruno Haible.
31663
31664 2010-08-08  Bruno Haible  <bruno@clisp.org>
31665
31666         memxfrm: Speed up.
31667         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31668         that usually only one call to strxfrm is necessary for each string
31669         part.
31670         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31671
31672 2010-08-07  Karl Berry  <karl@gnu.org>
31673
31674         * doc/posix-headers/limits.texi,
31675         * doc/posix-functions/malloc.texi,
31676         * doc/posix-functions/strsignal.texi: missing @item.
31677         * doc/ld-version-script.texi: spurious leading i.
31678         * doc/regex.texi (Interval Operators): no commas inside @var.
31679
31680 2010-08-01  Bruno Haible  <bruno@clisp.org>
31681
31682         Integrate the regex documentation.
31683         * doc/gnulib.texi: Define 'cn' index.
31684         (Regular expressions): New a chapter that includes regex.texi and
31685         regexprops-generic.texi.
31686         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31687         syntax.
31688
31689         Whitespace cleanup.
31690         * doc/regex.texi: Remove trailing spaces.
31691
31692         Add regex documentation.
31693         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31694         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31695         Written by Kathy A. Hargreaves and Karl Berry.
31696
31697 2010-08-01  Bruno Haible  <bruno@clisp.org>
31698
31699         link: Update documentation.
31700         * doc/posix-functions/link.texi: Update regarding Solaris.
31701
31702 2010-07-31  Bruno Haible  <bruno@clisp.org>
31703
31704         Update modules list.
31705         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31706         (String handling <string.h>): Add memcmp2, memxfrm.
31707         (Container data structures): Add xlist, xsublist, xoset.
31708         (Core language properties): Add alignof, unused-parameter.
31709         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31710         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31711         (Unibyte characters <ctype.h>): New section.
31712         (String handling <string.h>): New section.
31713         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31714         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31715         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31716         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31717         tan, tanh, tanl, y0, y1, yn.
31718         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31719         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31720         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31721         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31722         unlockpt, vdprintf, vdprintf-posix.
31723         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31724         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31725         xconcat-filename.
31726         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31727         getdtablesize, pipe2, pipe2-safer.
31728         (Security): New section.
31729         (Networking functions): Add accept4.
31730         (Signal handling): Add sigpipe.
31731         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31732         mbmemcasecoll.
31733         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31734         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31735         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31736         pipe-filter-ii.
31737         (Misc): Add argp-version-etc, login_tty, parse-duration.
31738
31739 2010-07-31  Bruno Haible  <bruno@clisp.org>
31740
31741         Improve doc in MODULES.html.
31742         * modules/linkat (Description): Add the word "function".
31743         * modules/mkfifo (Description): Likewise.
31744         * modules/mknod (Description): Likewise.
31745         * modules/remove (Description): Likewise.
31746         * modules/renameat (Description): Likewise.
31747         * modules/stat (Description): Likewise.
31748         * modules/symlink (Description): Likewise.
31749         * modules/unlink (Description): Likewise.
31750
31751 2010-07-31  Bruno Haible  <bruno@clisp.org>
31752
31753         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31754         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31755         option --enable/disable-c++ instead of --enable/disable-cxx.
31756         * NEWS: Mention the change.
31757
31758 2010-07-31  Bruno Haible  <bruno@clisp.org>
31759
31760         readlink, areadlink: Relax test a bit.
31761         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31762         alternative to ENOTDIR.
31763         * tests/test-areadlink.h (test_areadlink): Likewise.
31764         Reported by Rainer Tammer.
31765
31766 2010-07-31  Bruno Haible  <bruno@clisp.org>
31767
31768         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31769         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31770         character, perform the search using U_STRCHR.
31771         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31772         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31773         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31774         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31775         Suggested by Paolo Bonzini.
31776
31777 2010-07-31  Bruno Haible  <bruno@clisp.org>
31778
31779         unistr/u*-strstr: Fix dependencies.
31780         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31781         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31782         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31783
31784 2010-07-31  Bruno Haible  <bruno@clisp.org>
31785
31786         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31787         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31788         the beginning of the loop.
31789         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31790         cases in 'switch' statement.
31791
31792         unistr/u8-strchr: Fix several bugs.
31793         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31794         the string. When not found, return NULL, not a pointer near the end.
31795
31796         More tests for unistr/u8-strchr.
31797         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31798         that the function does not read past the first occurrence of the byte
31799         being searched.
31800         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31801         * tests/unistr/test-u16-strchr.c (main): New function.
31802         * tests/unistr/test-u32-strchr.c (main): New function.
31803
31804 2010-07-31  Bruno Haible  <bruno@clisp.org>
31805
31806         posix-modules: Ignore backup files of documentation files.
31807         * posix-modules: grep only through files named *.texi.
31808
31809 2010-07-31  Bruno Haible  <bruno@clisp.org>
31810
31811         symlinkat: Fix documentation.
31812         * doc/posix-functions/readlinkat.texi: Fix module name.
31813
31814 2010-07-31  Bruno Haible  <bruno@clisp.org>
31815
31816         fchownat: Replace also when chown has the trailing slash bug.
31817         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31818         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31819         introduced on 2010-04-10.
31820         Reported by Rainer Tammer.
31821
31822 2010-07-31  Bruno Haible  <bruno@clisp.org>
31823
31824         linkat: Work around AIX 7.1 bug.
31825         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31826         whether linkat handles trailing slash correctly. If not, replace linkat
31827         and define LINKAT_TRAILING_SLASH_BUG.
31828         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31829         check whether (fd1,file1) points to a directory if file1 or file2 ends
31830         in a slash. Code taken from lib/link.c.
31831         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31832         Reported by Rainer Tammer.
31833
31834 2010-07-31  Bruno Haible  <bruno@clisp.org>
31835
31836         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31837         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31838         This disables an xlc optimization that was causing wrong test results.
31839         Reported by Rainer Tammer.
31840
31841 2010-07-31  Bruno Haible  <bruno@clisp.org>
31842
31843         iconv: Work around AIX 6.1..7.1 bug.
31844         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31845         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31846         cross-compiling, guess no on all versions of AIX.
31847         Reported by Rainer Tammer.
31848
31849 2010-07-31  Bruno Haible  <bruno@clisp.org>
31850
31851         readlink: Relax test a bit.
31852         * tests/test-readlink.h (test_readlink): Allow different errno value
31853         when readlink is called with a file name that ends in / and refers to
31854         a file.
31855         Suggested by Eric Blake.
31856         Reported by Rainer Tammer.
31857
31858 2010-07-31  Bruno Haible  <bruno@clisp.org>
31859
31860         copysign: Does not require -lm on glibc systems.
31861         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31862         gl_COMMON_DOUBLE_MATHFUNC.
31863         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31864
31865 2010-07-31  Bruno Haible  <bruno@clisp.org>
31866
31867         duplocale: Work around AIX 7.1 bug.
31868         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31869         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31870         * lib/duplocale.c (rpl_duplocale): Update comment.
31871         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31872         Reported by Rainer Tammer.
31873
31874 2010-07-30  Bruno Haible  <bruno@clisp.org>
31875
31876         dirfd: Avoid link error on AIX 7.1.
31877         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31878         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31879         exist, set REPLACE_DIRFD.
31880         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31881         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31882         * doc/posix-functions/dirfd.texi: Update.
31883         Reported by Rainer Tammer.
31884
31885 2010-07-30  Eric Blake  <eblake@redhat.com>
31886
31887         strtod: next round of AIX fixes
31888         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31889         exponent.
31890         * tests/test-strtod.c (main): Enhance tests.
31891         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31892         Reported by Rainer Tammer.
31893
31894         futimens: fix configure check
31895         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31896         Reported by Bruno Haible.
31897
31898 2010-07-30  Bruno Haible  <bruno@clisp.org>
31899
31900         getline: Update regarding AIX.
31901         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31902         Reported by Rainer Tammer.
31903
31904 2010-07-30  Bruno Haible  <bruno@clisp.org>
31905
31906         wcwidth: Drop replacement on AIX 7.
31907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31908         AIX 7.
31909         Reported by Rainer Tammer.
31910
31911 2010-07-30  Bruno Haible  <bruno@clisp.org>
31912
31913         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31914         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31915         a 'char *'.
31916         Reported by Rainer Tammer.
31917
31918 2010-07-30  Bruno Haible  <bruno@clisp.org>
31919
31920         unlink: Update regarding AIX.
31921         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31922         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31923         Reported by Rainer Tammer.
31924
31925 2010-07-30  Bruno Haible  <bruno@clisp.org>
31926
31927         symlink: Update regarding AIX.
31928         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31929         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31930         Reported by Rainer Tammer.
31931
31932 2010-07-30  Bruno Haible  <bruno@clisp.org>
31933
31934         strndup: Update regarding AIX.
31935         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31936         AIX 7.
31937         Reported by Rainer Tammer.
31938
31939 2010-07-30  Bruno Haible  <bruno@clisp.org>
31940
31941         stat: Update regarding AIX.
31942         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31943         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31944         Reported by Rainer Tammer.
31945
31946 2010-07-30  Bruno Haible  <bruno@clisp.org>
31947
31948         truncl: Fix autoconf test.
31949         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31950         whether truncl works.
31951         Reported by Rainer Tammer.
31952
31953 2010-07-30  Bruno Haible  <bruno@clisp.org>
31954
31955         round: Update regarding AIX.
31956         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31957         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31958         Reported by Rainer Tammer.
31959
31960 2010-07-30  Bruno Haible  <bruno@clisp.org>
31961
31962         rename: Update regarding AIX.
31963         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31964         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31965         Reported by Rainer Tammer.
31966
31967 2010-07-30  Bruno Haible  <bruno@clisp.org>
31968
31969         printf.m4: Update regarding AIX.
31970         * m4/printf.m4: Update comments regarding AIX.
31971         Reported by Rainer Tammer.
31972
31973 2010-07-30  Bruno Haible  <bruno@clisp.org>
31974
31975         iconv: Update regarding AIX.
31976         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31977         AIX 7.
31978         Reported by Rainer Tammer.
31979
31980 2010-07-30  Bruno Haible  <bruno@clisp.org>
31981
31982         getopt: Update regarding AIX.
31983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31984         no on AIX.
31985         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31986         Reported by Rainer Tammer.
31987
31988 2010-07-30  Bruno Haible  <bruno@clisp.org>
31989
31990         ldexpl; Update regarding AIX.
31991         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31992         on AIX 7.
31993         Reported by Rainer Tammer.
31994
31995 2010-07-30  Bruno Haible  <bruno@clisp.org>
31996
31997         frexpl: Update regarding AIX.
31998         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31999         on AIX 7.
32000         Reported by Rainer Tammer.
32001
32002 2010-07-30  Bruno Haible  <bruno@clisp.org>
32003
32004         open, fopen: Update regarding AIX.
32005         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32006         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32007         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32008         * doc/posix-functions/fopen.texi: Likewise.
32009         Reported by Rainer Tammer.
32010
32011 2010-07-30  Bruno Haible  <bruno@clisp.org>
32012
32013         chown: Update doc regarding AIX.
32014         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32015         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32016         Reported by Rainer Tammer.
32017
32018 2010-07-30  Eric Blake  <eblake@redhat.com>
32019
32020         strtod: fix bug in replacement function on AIX
32021         * lib/strtod.c (strtod): Special case broken "0x" parse in
32022         underlying strtod.
32023         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32024         * doc/posix-functions/strtod.texi (strtod): Likewise.
32025         Reported by Rainer Tammer.
32026
32027 2010-07-30  Bruno Haible  <bruno@clisp.org>
32028
32029         mbrlen: Fix cross-compilation guess for AIX.
32030         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32031         guess. Leftover from 2008-12-22.
32032
32033 2010-07-30  Bruno Haible  <bruno@clisp.org>
32034
32035         mbrtowc: Fix cross-compilation guess for AIX.
32036         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32037         guess. Leftover from 2008-12-21.
32038
32039 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32040
32041         init.sh: work around trap limitation of some shells
32042         * tests/init.sh (setup_): Move exit trap outside of shell function.
32043
32044 2010-07-29  Eric Blake  <eblake@redhat.com>
32045
32046         strtod: aid debugging
32047         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32048         understanding why strtod is rejected.
32049
32050 2010-07-28  Bruno Haible  <bruno@clisp.org>
32051
32052         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32053         * lib/unistr/u8-chr.c: Include <string.h>.
32054         * tests/unistr/test-u8-chr.c: Likewise.
32055         * tests/unistr/test-u16-chr.c: Likewise.
32056         * tests/unistr/test-u32-chr.c: Likewise.
32057         * tests/unistr/test-u8-strchr.c: Likewise.
32058         * tests/unistr/test-u16-strchr.c: Likewise.
32059         * tests/unistr/test-u32-strchr.c: Likewise.
32060         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32061         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32062         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32063         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32064
32065 2010-07-28  Bruno Haible  <bruno@clisp.org>
32066
32067         Use spaces for indentation, not tabs.
32068         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32069
32070 2010-07-27  Bruno Haible  <bruno@clisp.org>
32071
32072         mbspcasecmp: Fix function specification.
32073         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32074         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32075         Reported by Eric Blake <eblake@redhat.com>.
32076
32077 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32078
32079         timespec: use cast and not conditional, as truncation isn't possible
32080         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32081         instead of a conditional.  Comment about the situation in more detail.
32082         This undoes most of the 2009-10-29 patch.
32083
32084 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32085
32086         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32087         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32088         * lib/unistr/u8-strchr.c: Likewise.
32089         * modules/unistr/u8-chr: Depend on memchr.
32090
32091         unistr/u*-strchr: add tests
32092         * modules/unistr/u8-strchr-tests: New file.
32093         * modules/unistr/u16-strchr-tests: New file.
32094         * modules/unistr/u32-strchr-tests: New file.
32095         * tests/unistr/test-strchr.h: New file.
32096         * tests/unistr/test-u8-strchr.c: New file.
32097         * tests/unistr/test-u16-strchr.c: New file.
32098         * tests/unistr/test-u32-strchr.c: New file.
32099
32100         unistr/u*-chr: test multibyte sequences more
32101         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32102         test vector.
32103         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32104         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32105         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32106
32107         unistr/u*-chr: test multibyte sequences
32108         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32109
32110         unistr/u*-chr: prepare for multibyte tests
32111         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32112         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32113         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32114         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32115         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32116         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32117
32118 2010-07-18  Bruno Haible  <bruno@clisp.org>
32119
32120         unistr/u8-strchr: Optimize non-ASCII argument case.
32121         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32122         because the first byte often matches anyway.
32123         Reported by Pádraig Brady <P@draigbrady.com>.
32124
32125 2010-07-15  Karl Berry  <karl@gnu.org>
32126
32127         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32128
32129 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32130
32131         getcwd: on Solaris, work better if ancestors are inaccessible
32132         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32133         buffer and size, try again with a large buffer.  This works better
32134         on Solaris, since its getcwd succeeds even if the path to the root
32135         is inaccessible, and this is helpful in common cases such as .zfs
32136         hidden directories.  Problem reported by J Chapman Flack in
32137         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32138         Use system getcwd if it's declared, not merely if it's partly
32139         working; use the partly-working test only to avoid needless effort
32140         if the system getcwd fails.
32141         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32142         comment that was already obsolete and is now even more obsolete.
32143         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32144         now might call strdup.
32145
32146 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32147
32148         pthread: Add enough so that coreutils/src/sort.c compiles.
32149         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32150         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32151         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32152         Include <sys/types.h>, in case it defines pthread_t.
32153         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32154         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32155         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32156         (pthread_rwlockattr_t, pthread_spinlock_t):
32157         New typedefs, if HAVE_PTHREAD_T is not defined.
32158         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32159         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32160         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32161         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32162         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32163         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32164         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32165         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32166         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32167         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32168         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32169         New macros.
32170         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32171         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32172         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32173         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32174         (pthread_spin_unlock): New dummy functions.
32175         (pthread_create): Return EAGAIN; don't set errno.
32176         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32177         require AC_C_INLINE.
32178         * modules/pthread (Depends-on): Add sched, time.
32179         (pthread.h): Use AM_V_GEN.
32180
32181 2010-07-13  Bruno Haible  <bruno@clisp.org>
32182
32183         striconveh: Don't malloc memory if the result buffer is sufficient.
32184         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32185         buffer if its size is sufficient.
32186         Reported by Ludovic Courtès <ludo@gnu.org>.
32187
32188 2010-07-13  Bruno Haible  <bruno@clisp.org>
32189
32190         strtod: Add safety check.
32191         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32192
32193 2010-07-12  Bruno Haible  <bruno@clisp.org>
32194
32195         Unify tests that set gl_cv_func_ldexpl_no_libm.
32196         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32197         gl_FUNC_LDEXPL.
32198         (gl_FUNC_LDEXPL): Invoke it.
32199         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32200
32201 2010-07-12  Bruno Haible  <bruno@clisp.org>
32202
32203         Unify tests that set gl_cv_func_ldexp_no_libm.
32204         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32205         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32206         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32207         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32208         * modules/strtod (Files): Add m4/ldexp.m4.
32209
32210 2010-07-12  Bruno Haible  <bruno@clisp.org>
32211
32212         Unify tests that set gl_cv_func_frexpl_no_libm.
32213         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32214         gl_FUNC_FREXPL_NO_LIBM.
32215         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32216         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32217
32218 2010-07-12  Bruno Haible  <bruno@clisp.org>
32219
32220         Unify tests that set gl_cv_func_frexp_no_libm.
32221         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32222         gl_FUNC_FREXP_NO_LIBM.
32223         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32224         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32225
32226 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32227
32228         memcoll: clarify sizes versus lengths, document better, and tweak perf
32229         * lib/memcoll.c (strcoll_loop, memcoll0):
32230         Improve quality of descriptive comments.  Name variables
32231         consistently as to whether they are lengths (which do not include
32232         terminating null) versus sizes (which do).
32233         * lib/xmemcoll.c (xmemcoll0): Likewise.
32234         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32235         returned when s1size == 0; this is easier to compile and saves
32236         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32237
32238 2010-07-12  Bruno Haible  <bruno@clisp.org>
32239
32240         Tests for module '_Exit'.
32241         * modules/_Exit-tests: New file.
32242         * tests/test-_Exit.sh: New file.
32243         * tests/test-_Exit.c: New file.
32244
32245         New module '_Exit'.
32246         * lib/stdlib.in.h (__attribute__): New macro.
32247         (_Exit): New declaration.
32248         * lib/_Exit.c: New file.
32249         * m4/_Exit.m4: New file.
32250         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32251         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32252         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32253         * modules/_Exit: New file.
32254         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32255         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32256
32257 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32258
32259         strtod: make it more-accurate typically, and don't require libm
32260         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32261         Include limits.h.  Don't include string.h.
32262         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32263         (locale_isspace): New function, so that no casts are needed to
32264         check whether *s is a space.
32265         (ldexp): Provide an unused dummy if not available.
32266         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32267         (strtod): Use them.  This implementation prefers to use the
32268         underlying strtod if available, falling back on our own code
32269         only to fix known bugs.  This is more likely to produce an
32270         accurate result.  Also, it avoids the use of libm functions.
32271         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32272         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32273         was absent, but it caused a test failure with coreutils.
32274         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32275         with libm.
32276         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32277         * modules/strtod-tests (Makefile.am): Likewise.
32278
32279 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32280             Bruno Haible  <bruno@clisp.org>
32281
32282         unistr/u8-strchr: Optimize ASCII argument case.
32283         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32284
32285 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32286
32287         (x)memcoll: minor tweaks
32288         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32289         is after the type that it qualifies.
32290         (memcoll0): Likewise.
32291         * lib/memcoll.h (memcoll0): Likewise.
32292         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32293         * lib/xmemcoll.h (xmemcoll0): Likewise.
32294         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32295         differs from memcoll in that the NUL byte is part of the argument.
32296         Omit the abort-checks, as performance is a real issue here.  Plus,
32297         the checks were wrong anyway (an off-by-one error).  Omit local
32298         variable 'diff', as it's a bit clearer that way.
32299         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32300         no longer needed.
32301
32302 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32303
32304         (x)memcoll: speedup when input is known to be NUL delimited
32305         * lib/memcoll.c: Include stdlib.
32306         (memcoll0): New function.
32307         (strcoll_loop): New function, refactored for use in both memcoll
32308         and memcoll0.
32309         * lib/memcoll.h (memcoll0): Add prototype.
32310         * lib/xmemcoll.c (xmemcoll0): New function.
32311         (collate_error): New function, refactored for use in both xmemcoll
32312         and xmemcoll0.
32313         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32314         * m4/memcoll.m4: add inline invocation.
32315
32316 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32317
32318         * build-aux/bootstrap: Remove any local translations
32319         from the translation project synchronization directory,
32320         so that local only translations are not distributed.
32321
32322 2010-07-04  Bruno Haible  <bruno@clisp.org>
32323
32324         fsusage: Clarify which code applies to which platforms.
32325         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32326         platform.
32327         * lib/fsusage.c (get_fs_usage): Likewise.
32328
32329 2010-07-04  Bruno Haible  <bruno@clisp.org>
32330
32331         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32332         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32333         Reported by Martin Lambers <marlam@marlam.de>.
32334
32335 2010-07-04  Jim Meyering  <meyering@redhat.com>
32336
32337         hash: once again explicitly disallow insertion of NULL
32338         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32339         inserting a NULL pointer cannot work with these functions.
32340         Add a comment with details.
32341         This reverts part of the 2010-07-01 commit, 5bef1a35
32342         "hash: extend module to deal with non-pointer keys".
32343
32344 2010-07-01  Bruno Haible  <bruno@clisp.org>
32345
32346         stdbool: Update doc.
32347         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32348         Info from Christian Weisgerber <naddy@mips.inka.de>.
32349
32350 2010-07-01  Jim Meyering  <meyering@redhat.com>
32351
32352         hash: extend module to deal with non-pointer keys
32353         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32354         but that allows insertion of non-pointer entries.
32355         Do not disallow an ENTRY value of NULL.
32356         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32357         * lib/hash.h (hash_insert0): Declare.
32358
32359 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32360
32361         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32362         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32363         not present (i.e. with autoconf 2.59 and when using gettextize, not
32364         gnulib), require AC_GNU_SOURCE instead.
32365
32366 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32367
32368         idpriv-drop: Fix tests.
32369         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32370         not to the test-idpriv-droptemp program.
32371
32372 2010-06-29  Bruno Haible  <bruno@clisp.org>
32373
32374         string: Fix syntax error with g++ 2.96.
32375         * lib/string.in.h (__pure__): Remove definition.
32376         (_GL_ATTRIBUTE_PURE): New macro.
32377         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32378         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32379         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32380
32381 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32382
32383         unitypes: Fix bug introduced on 2010-05-18.
32384         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32385
32386 2010-06-22  Eric Blake  <eblake@redhat.com>
32387
32388         memmem: slight optimization
32389         * lib/str-two-way.h (critical_factorization): Update comments.
32390         Reduce work during factorization phase.
32391         Reported by Carlos Bueno <carlos@bueno.org>.
32392
32393 2010-06-21  Bruno Haible  <bruno@clisp.org>
32394
32395         Fix HAVE_CALLOC_POSIX misnomer.
32396         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32397         !HAVE_CALLOC_POSIX.
32398         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32399         HAVE_CALLOC_POSIX.
32400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32401         instead of HAVE_CALLOC_POSIX.
32402         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32403         HAVE_CALLOC_POSIX.
32404
32405         Use modern idiom for calloc() replacement.
32406         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32407         AC_FUNC_CALLOC.
32408         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32409         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32410         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32411         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32412         (gl_REPLACE_CALLOC): New macro.
32413
32414 2010-06-21  Bruno Haible  <bruno@clisp.org>
32415
32416         Fix HAVE_REALLOC_POSIX misnomer.
32417         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32418         !HAVE_REALLOC_POSIX.
32419         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32420         HAVE_REALLOC_POSIX.
32421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32422         instead of HAVE_REALLOC_POSIX.
32423         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32424         HAVE_REALLOC_POSIX.
32425
32426         Use modern idiom for realloc() replacement.
32427         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32428         AC_FUNC_REALLOC.
32429         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32430         Autoconf's AC_FUNC_REALLOC.
32431         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32432         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32433         (gl_REPLACE_REALLOC): New macro.
32434         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32435
32436 2010-06-21  Bruno Haible  <bruno@clisp.org>
32437
32438         Fix HAVE_MALLOC_POSIX misnomer.
32439         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32440         !HAVE_MALLOC_POSIX.
32441         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32442         HAVE_MALLOC_POSIX.
32443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32444         instead of HAVE_MALLOC_POSIX.
32445         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32446         HAVE_MALLOC_POSIX.
32447
32448         Use modern idiom for malloc() replacement.
32449         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32450         AC_FUNC_MALLOC.
32451         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32452         Autoconf's AC_FUNC_MALLOC.
32453         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32454         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32455         (gl_REPLACE_MALLOC): New macro.
32456         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32457
32458 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32459
32460         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32461         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32462         This macro takes 3 arguments, not 4.
32463
32464 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32465
32466         ipv6: fix detection under mingw
32467         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32468         in6_addr.
32469
32470 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32471
32472         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32473         that strtod() works when cross-compiling to a glibc version known
32474         to work.
32475
32476 2010-06-15  Bruno Haible  <bruno@clisp.org>
32477
32478         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32479
32480 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32481
32482         select: Correct timeout.
32483         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32484
32485 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32486
32487         git-version-gen: init shell var to avoid env var influence
32488         * build-aux/git-version-gen (v): Init shell var to empty.
32489
32490 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32491
32492         priv-set: Don't assume that priv.h exists merely because getppriv does.
32493         See Jan Andersen's bug report about AIX 5L in
32494         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32495         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32496         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32497         * lib/priv-set.h: Likewise.
32498         * tests/test-priv-set.c: Likewise.
32499
32500 2010-06-13  Bruno Haible  <bruno@clisp.org>
32501
32502         relocatable: Make it easier to test whether to install wrappers.
32503         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32504         RELOCATABLE_VIA_WRAPPER.
32505
32506 2010-06-13  Bruno Haible  <bruno@clisp.org>
32507
32508         gnulib-tool: Display specified modules and dependencies differently.
32509         * gnulib-tool (func_show_module_list): New function.
32510         (func_import, func_create_testdir): Invoke it.
32511         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32512
32513 2010-06-13  Bruno Haible  <bruno@clisp.org>
32514
32515         gnulib-tool: Align code of func_import and func_create_testdir.
32516         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32517         specified_modules.
32518
32519 2010-06-12  Jim Meyering  <meyering@redhat.com>
32520
32521         test-inttostr: avoid spurious failure on Solaris 9
32522         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32523         to accept "%ju".  Reported by Bruno Haible.
32524
32525 2010-06-11  Jim Meyering  <meyering@redhat.com>
32526
32527         test-sys_socket: mark variables as used more readably
32528         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32529         as "used" explicitly via (void) statement casts.  This is more
32530         readable than using them in an artificial return expression.
32531         Suggestion from Bruno Haible.
32532
32533 2010-06-11  Bruno Haible  <bruno@clisp.org>
32534
32535         Avoid some more warnings from "gcc -Wwrite-strings".
32536         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32537         to 'const char *'.
32538         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32539         * tests/test-c-strcasestr.c (main): Likewise.
32540         * tests/test-mbscasestr1.c (main): Likewise.
32541         * tests/test-mbscasestr2.c (main): Likewise.
32542         * tests/test-memmem.c (main): Likewise.
32543         * tests/test-strstr.c (main): Likewise.
32544         * tests/test-strcasestr.c (main): Likewise.
32545
32546 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32547
32548         init.sh: change framework_failure_ to fail with status 99, not 1
32549         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32550         automake's parallel-tests rule that this is an unexpected failure,
32551         even if the test is listed in XFAIL_TESTS.
32552
32553 2010-06-11  Jim Meyering  <meyering@redhat.com>
32554
32555         test-inttostr: avoid warnings about 4-6KB literal strings
32556         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32557         Include "macros.h", for its definition of ASSERT.
32558         (CK): s/assert/ASSERT/
32559         * modules/inttostr-tests (Files): Add macros.h.
32560
32561         init.sh: don't use $ME_ or skip_ before they are defined
32562         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32563         their first uses.  Also hoist their companions: warn_, fail_,
32564         framework_failure_, $stderr_fileno.  Prompted by a patch from
32565         Stefano Lattarini.
32566
32567         test-sys_socket: avoid set-but-not-used warnings from gcc
32568         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32569         avoid warning about set-but-not-used variables.
32570
32571         test-xvasprintf: avoid 'const' discard warnings
32572         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32573         "const" when assigning from literal strings.
32574         (test_xasprintf): Add "void" in function argument list to placate
32575         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32576
32577         tests: avoid compilation warnings in argmatch and exclude tests...
32578         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32579         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32580         Since it always exits, declare with the "noreturn" attribute.
32581         * tests/test-argmatch.c: Likewise.
32582
32583         tests: avoid 'const' discard warnings in mbsstr tests
32584         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32585         * tests/test-mbsstr2.c (main): Likewise.
32586
32587         test-verify: avoid warning from gcc's -Wmissing-declarations
32588         * tests/test-verify.c (function): Declare to be static.
32589
32590         test-inttostr.c: include <string.h> for use of strcmp
32591         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32592
32593         test-linkat: avoid failed assertion on "other" architectures
32594         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32595         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32596         sparc: https://bugs.launchpad.net/bugs/591968
32597
32598 2010-06-11  Jim Meyering  <meyering@redhat.com>
32599
32600         printf.m4: avoid autoconf's "Expanded Before Required" warning
32601         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32602         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32603         autoconf warning.
32604
32605 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32606
32607         Replacement header templates are now named with ".in", not "_".
32608         * doc/gnulib-intro.texi: Correct.
32609
32610 2010-06-10  Jim Meyering  <meyering@redhat.com>
32611
32612         inttostr-tests: depend on snprintf, not snprintf-posix
32613         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32614         snprintf-posix, to avoid this aclocal failure:
32615           missing file gnulib-tests/vasnprintf.c
32616           configure.ac:45: error: expected source file, required through \
32617           AC_LIBSOURCES, not found
32618
32619 2010-06-10  Jim Meyering  <meyering@redhat.com>
32620
32621         inttostr: add a new function, inttostr, and tests
32622         The namesake function was not available.  The existence of the
32623         template file, inttostr.c makes its addition nontrivial.
32624         * lib/anytostr.c: Rename from inttostr.c.
32625         (anytostr): Rename from inttostr.
32626         * lib/inttostr.c: New file.
32627         * modules/inttostr (Files): Add anytostr.c.
32628         (Makefile.am): Set lib_SOURCES instead of ...
32629         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32630         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32631         * lib/offtostr.c: Likewise.
32632         * lib/uinttostr.c: Likewise.
32633         * lib/umaxtostr.c: Likewise.
32634         * modules/inttostr-tests: New file.
32635         * tests/test-inttostr.c: New file.  Test these functions.
32636
32637 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32638             Bruno Haible  <bruno@clisp.org>
32639
32640         Add "Extending Gnulib" chapter to manual.
32641         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32642         chapter.
32643         (Extending Gnulib): New chapter.
32644         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32645         chapter.
32646
32647 2010-06-09  Bruno Haible  <bruno@clisp.org>
32648
32649         Avoid relocwrapper link errors due to gnulib replacement functions.
32650         * lib/areadlink.c: Use the system's malloc, realloc functions.
32651         (areadlink): Set errno to ENOMEM explicitly.
32652         * modules/areadlink (Depends-on): Remove malloc-posix.
32653         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32654
32655 2010-06-09  Bruno Haible  <bruno@clisp.org>
32656
32657         Avoid relocwrapper link errors due to gnulib replacement functions.
32658         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32659         * lib/malloca.c: Likewise.
32660         * lib/relocatable.c: Likewise.
32661         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32662         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32663         * lib/setenv.c: Use the system's malloc, realloc functions.
32664         * lib/strerror.c: Use the system's sprintf function.
32665         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32666
32667 2010-06-04  Bruno Haible  <bruno@clisp.org>
32668
32669         Prefer documented low-level autoconf macro names.
32670         * m4/lib-link.m4: Use m4_translit instead of translit.
32671         * m4/environ.m4: Likewise.
32672         * m4/mathfunc.m4: Likewise.
32673         * m4/onceonly.m4: Likewise.
32674         * m4/stdint.m4: Likewise.
32675         Suggested by Eric Blake.
32676
32677 2010-06-04  Martin Lambers  <marlam@marlam.de>
32678             Bruno Haible  <bruno@clisp.org>
32679
32680         havelib: Allow library names with '+' characters.
32681         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32682         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32683
32684 2010-06-09  Bruno Haible  <bruno@clisp.org>
32685
32686         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32687         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32688         realloc failed.
32689
32690 2010-06-08  Peter Simons  <simons@cryp.to>
32691
32692         maint.mk: make the news-check rule more configurable
32693         * top/maint.mk (news-check-lines-spec): New variable.
32694         (news-check): Use "sed -n 1,10p" in place of "head".
32695
32696 2010-06-07  Jim Meyering  <meyering@redhat.com>
32697
32698         do-release-commit-and-tag: fix typo in --help
32699         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32700
32701         regex: avoid new dead-code warning with gcc-4.6.0
32702         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32703         if-block containing a while-loop.  It's been unused for at least
32704         5 years.
32705
32706 2010-06-05  Bruno Haible  <bruno@clisp.org>
32707
32708         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32709         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32710
32711 2010-06-04  Bruno Haible  <bruno@clisp.org>
32712
32713         Update to GNU gettext 0.18.1.
32714         * modules/gettext (configure.ac): Require gettext infrastructure from
32715         version 0.18.1.
32716
32717 2010-06-03  Bruno Haible  <bruno@clisp.org>
32718
32719         Don't use AC_LIBOBJ with file names in subdirectories.
32720         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32721         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32722         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32723         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32724         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32725         gl_LIBUNISTRING_LIBSOURCE.
32726         (Makefile.am): Augment lib_SOURCES here, conditionally.
32727         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32728
32729 2010-06-03  Bruno Haible  <bruno@clisp.org>
32730
32731         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32732         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32733         expansion does not end with a newline.
32734         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32735         unnecessary newline.
32736
32737 2010-06-03  Bruno Haible  <bruno@clisp.org>
32738
32739         Reduce dependencies.
32740         * tests/test-quotearg.h: New file, extracted from
32741         tests/test-quotearg.c.
32742         * tests/test-quotearg-simple.c: New file, extracted from
32743         tests/test-quotearg.c.
32744         * tests/test-quotearg.c: Don't include <ctype.h>.
32745         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32746         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32747         use_quote_double_quotes, use_quotearg_colon): Moved to
32748         tests/test-quotearg.h.
32749         (results_g, flag_results, custom_quotes, custom_results): Moved
32750         to tests/test-quotearg-simple.c.
32751         (main): Moved the part that does not depend on gettext to
32752         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32753         performed.
32754         * modules/quotearg-simple: New file.
32755         * modules/quotearg-simple-tests: New file.
32756         * modules/quotearg (Depends-on): Add quotearg-simple.
32757         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32758         (Files): Add tests/test-quotearg.h.
32759         Reported by Paolo Bonzini.
32760
32761 2010-06-03  Bruno Haible  <bruno@clisp.org>
32762
32763         Reduce dependencies.
32764         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32765
32766 2010-06-03  Bruno Haible  <bruno@clisp.org>
32767
32768         time: Undefine more broken macros.
32769         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32770         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32771         Reported by Eric Blake.
32772
32773 2010-06-03  Bruno Haible  <bruno@clisp.org>
32774
32775         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32776         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32777         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32778         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32779         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32780         Reported by Ludovic Courtès <ludo@gnu.org>.
32781
32782 2010-06-02  Eric Blake  <eblake@redhat.com>
32783
32784         time: work with mingw + pthreads-win32 library
32785         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32786         if timespec is defined only in pthread.h.
32787         * modules/time (Makefile.am): Substitute it.
32788         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32789         <pthread.h>, when needed.
32790         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32791         from the library.
32792
32793 2010-05-31  Bruno Haible  <bruno@clisp.org>
32794
32795         Avoid expanding two macros in the wrong order.
32796         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32797         gl_LIBUNISTRING if it is defined.
32798         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32799         autoconf >= 2.64.
32800         Reported by Ludovic Courtès <ludo@gnu.org>.
32801
32802 2010-05-27  Jim Meyering  <meyering@redhat.com>
32803
32804         maint.mk: also prohibit "#undef" of always-defined symbols
32805         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32806         Allow more than one space before the symbol name.
32807         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32808         the regexp uses alternation.
32809
32810 2010-05-26  Eric Blake  <eblake@redhat.com>
32811
32812         maint.mk: avoid echo -e
32813         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32814         Convert all uses of echo -* to printf.
32815         Reported by Matthias Bolte.
32816
32817 2010-05-25  Bruno Haible  <bruno@clisp.org>
32818
32819         Update to GNU gettext 0.18, part 2.
32820         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32821         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32822
32823 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32824
32825         Add missing include in test-pwrite.c.
32826         * tests/test-pwrite.c: Include string.h, for strcmp.
32827
32828 2010-05-24  Bruno Haible  <bruno@clisp.org>
32829
32830         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32831
32832 2010-05-24  Bruno Haible  <bruno@clisp.org>
32833
32834         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32835         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32836         iconveh_error argument.
32837         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32838         U_STRCONV_TO_LOCALE.
32839         * lib/unistr/u16-strcoll.c: Likewise.
32840         * lib/unistr/u32-strcoll.c: Likewise.
32841         * modules/unistr/u8-strcoll (Depends-on): Add
32842         uniconv/u8-strconv-to-enc, localcharset. Remove
32843         uniconv/u8-strconv-to-locale.
32844         (configure.ac): Bump version number.
32845         * modules/unistr/u16-strcoll (Depends-on): Add
32846         uniconv/u16-strconv-to-enc, localcharset. Remove
32847         uniconv/u16-strconv-to-locale.
32848         (configure.ac): Bump version number.
32849         * modules/unistr/u32-strcoll (Depends-on): Add
32850         uniconv/u32-strconv-to-enc, localcharset. Remove
32851         uniconv/u32-strconv-to-locale.
32852         (configure.ac): Bump version number.
32853
32854 2010-05-24  Bruno Haible  <bruno@clisp.org>
32855
32856         Avoid a test failure on NetBSD 5.0.
32857         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32858         an iconv() bug.
32859
32860 2010-05-24  Bruno Haible  <bruno@clisp.org>
32861
32862         Adjust #include directive style.
32863         * modules/regex (Includes): Recommend to write <regex.h>.
32864
32865 2010-05-24  Bruno Haible  <bruno@clisp.org>
32866
32867         regex: Don't require alloca.
32868         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32869         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32870         only inside if (0).
32871
32872 2010-05-23  Jim Meyering  <meyering@redhat.com>
32873
32874         test-renameat.c: include <sys/stat.h>
32875         * tests/test-renameat.c: Include <sys/stat.h>; required for
32876         definition of S_IS* macros.
32877
32878 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32879
32880         Update maintainer documentation for 'relocatable-prog' module.
32881         * doc/relocatable-maint.texi: Update.
32882         Comments by Bruno Haible.
32883
32884 2010-05-23  Bruno Haible  <bruno@clisp.org>
32885
32886         git-merge-changelog: Enable --split-merged-entry by default.
32887         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32888         (usage): Don't mention this option any more.
32889         Reported by Ralf Wildenhues.
32890
32891 2010-05-23  Jim Meyering  <meyering@redhat.com>
32892
32893         test-pwrite: do not leave behind a test file named "out"
32894         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32895         The trivial-looking use of init.sh is really necessary.
32896         It ensures that the temporary file, "out", is created in
32897         a temporary directory, and removed upon termination.
32898         * tests/test-pwrite.sh: Re-add file.
32899         * modules/pwrite-tests: Reference it.
32900
32901 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32902
32903         Fix output redirection buglet in init.sh.
32904         * tests/init.sh: Fix redirection of stderr.
32905
32906 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32907
32908         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32909
32910 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32911
32912         * modules/valgrind-tests: New file.
32913         * m4/valgrind-tests.m4: New file.
32914         * doc/valgrind-tests.texi: New file.
32915         * doc/gnulib.texi (Running self-tests under valgrind): New
32916         section.
32917
32918 2010-05-19  Bruno Haible  <bruno@clisp.org>
32919
32920         Clean up dead code in recent commit.
32921         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32922         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32923         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32924         Suggested by Paolo Bonzini.
32925
32926 2010-05-19  Bruno Haible  <bruno@clisp.org>
32927
32928         Avoid valgrind error reports from libunistring.
32929         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32930         * modules/libunistring (Files): Add it.
32931         * modules/libunistring-optional (Files): Likewise.
32932
32933 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32934             Bruno Haible  <bruno@clisp.org>
32935
32936         New module 'libunistring-optional'.
32937         * modules/libunistring-optional: New file.
32938         * m4/libunistring-base.m4: New file.
32939         * m4/libunistring-optional.m4: New file.
32940         * lib/unicase.in.h: Renamed from lib/unicase.h.
32941         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32942         * lib/unictype.in.h: Renamed from lib/unictype.h.
32943         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32944         * lib/uniname.in.h: Renamed from lib/uniname.h.
32945         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32946         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32947         * lib/unistr.in.h: Renamed from lib/unistr.h.
32948         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32949         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32950         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32951         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32952         gl_LIBUNISTRING. If the library was found, determine the installed
32953         version and set LIBUNISTRING_VERSION.
32954         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32955         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32956         handle a configuration option --with-included-libunistring.
32957         * modules/libunistring (Files): Add m4/absolute-header.m4.
32958         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32959         Add m4/libunistring-base.m4.
32960         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32961         (Makefile.am): Build unicase.h from unicase.in.h.
32962         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32963         Add m4/libunistring-base.m4.
32964         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32965         (Makefile.am): Build uniconv.h from uniconv.in.h.
32966         * modules/unictype/base (Files): Use unictype.in.h instead of
32967         unictype.h. Add m4/libunistring-base.m4.
32968         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32969         (Makefile.am): Build unictype.h from unictype.in.h.
32970         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32971         Add m4/libunistring-base.m4.
32972         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32973         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32974         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32975         Add m4/libunistring-base.m4.
32976         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32977         (Makefile.am): Build uniname.h from uniname.in.h.
32978         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32979         Add m4/libunistring-base.m4.
32980         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32981         (Makefile.am): Build uninorm.h from uninorm.in.h.
32982         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32983         unistdio.h. Add m4/libunistring-base.m4.
32984         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32985         (Makefile.am): Build unistdio.h from unistdio.in.h.
32986         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32987         Add m4/libunistring-base.m4.
32988         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32989         (Makefile.am): Build unistr.h from unistr.in.h.
32990         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32991         Add m4/libunistring-base.m4.
32992         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32993         (Makefile.am): Build unitypes.h from unitypes.in.h.
32994         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32995         Add m4/libunistring-base.m4.
32996         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32997         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32998         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32999         uniwidth.h. Add m4/libunistring-base.m4.
33000         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33001         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33002         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33003         instead of augmenting lib_SOURCES.
33004         * modules/unicase/empty-suffix-context: Likewise.
33005         * modules/unicase/locale-language: Likewise.
33006         * modules/unicase/tolower: Likewise.
33007         * modules/unicase/totitle: Likewise.
33008         * modules/unicase/toupper: Likewise.
33009         * modules/unicase/u8-casecmp: Likewise.
33010         * modules/unicase/u8-casecoll: Likewise.
33011         * modules/unicase/u8-casefold: Likewise.
33012         * modules/unicase/u8-casexfrm: Likewise.
33013         * modules/unicase/u8-ct-casefold: Likewise.
33014         * modules/unicase/u8-ct-tolower: Likewise.
33015         * modules/unicase/u8-ct-totitle: Likewise.
33016         * modules/unicase/u8-ct-toupper: Likewise.
33017         * modules/unicase/u8-is-cased: Likewise.
33018         * modules/unicase/u8-is-casefolded: Likewise.
33019         * modules/unicase/u8-is-lowercase: Likewise.
33020         * modules/unicase/u8-is-titlecase: Likewise.
33021         * modules/unicase/u8-is-uppercase: Likewise.
33022         * modules/unicase/u8-prefix-context: Likewise.
33023         * modules/unicase/u8-suffix-context: Likewise.
33024         * modules/unicase/u8-tolower: Likewise.
33025         * modules/unicase/u8-totitle: Likewise.
33026         * modules/unicase/u8-toupper: Likewise.
33027         * modules/unicase/u16-casecmp: Likewise.
33028         * modules/unicase/u16-casecoll: Likewise.
33029         * modules/unicase/u16-casefold: Likewise.
33030         * modules/unicase/u16-casexfrm: Likewise.
33031         * modules/unicase/u16-ct-casefold: Likewise.
33032         * modules/unicase/u16-ct-tolower: Likewise.
33033         * modules/unicase/u16-ct-totitle: Likewise.
33034         * modules/unicase/u16-ct-toupper: Likewise.
33035         * modules/unicase/u16-is-cased: Likewise.
33036         * modules/unicase/u16-is-casefolded: Likewise.
33037         * modules/unicase/u16-is-lowercase: Likewise.
33038         * modules/unicase/u16-is-titlecase: Likewise.
33039         * modules/unicase/u16-is-uppercase: Likewise.
33040         * modules/unicase/u16-prefix-context: Likewise.
33041         * modules/unicase/u16-suffix-context: Likewise.
33042         * modules/unicase/u16-tolower: Likewise.
33043         * modules/unicase/u16-totitle: Likewise.
33044         * modules/unicase/u16-toupper: Likewise.
33045         * modules/unicase/u32-casecmp: Likewise.
33046         * modules/unicase/u32-casecoll: Likewise.
33047         * modules/unicase/u32-casefold: Likewise.
33048         * modules/unicase/u32-casexfrm: Likewise.
33049         * modules/unicase/u32-ct-casefold: Likewise.
33050         * modules/unicase/u32-ct-tolower: Likewise.
33051         * modules/unicase/u32-ct-totitle: Likewise.
33052         * modules/unicase/u32-ct-toupper: Likewise.
33053         * modules/unicase/u32-is-cased: Likewise.
33054         * modules/unicase/u32-is-casefolded: Likewise.
33055         * modules/unicase/u32-is-lowercase: Likewise.
33056         * modules/unicase/u32-is-titlecase: Likewise.
33057         * modules/unicase/u32-is-uppercase: Likewise.
33058         * modules/unicase/u32-prefix-context: Likewise.
33059         * modules/unicase/u32-suffix-context: Likewise.
33060         * modules/unicase/u32-tolower: Likewise.
33061         * modules/unicase/u32-totitle: Likewise.
33062         * modules/unicase/u32-toupper: Likewise.
33063         * modules/unicase/ulc-casecmp: Likewise.
33064         * modules/unicase/ulc-casecoll: Likewise.
33065         * modules/unicase/ulc-casexfrm: Likewise.
33066         * modules/uniconv/u8-conv-from-enc: Likewise.
33067         * modules/uniconv/u8-conv-to-enc: Likewise.
33068         * modules/uniconv/u8-strconv-from-enc: Likewise.
33069         * modules/uniconv/u8-strconv-from-locale: Likewise.
33070         * modules/uniconv/u8-strconv-to-enc: Likewise.
33071         * modules/uniconv/u8-strconv-to-locale: Likewise.
33072         * modules/uniconv/u16-conv-from-enc: Likewise.
33073         * modules/uniconv/u16-conv-to-enc: Likewise.
33074         * modules/uniconv/u16-strconv-from-enc: Likewise.
33075         * modules/uniconv/u16-strconv-from-locale: Likewise.
33076         * modules/uniconv/u16-strconv-to-enc: Likewise.
33077         * modules/uniconv/u16-strconv-to-locale: Likewise.
33078         * modules/uniconv/u32-conv-from-enc: Likewise.
33079         * modules/uniconv/u32-conv-to-enc: Likewise.
33080         * modules/uniconv/u32-strconv-from-enc: Likewise.
33081         * modules/uniconv/u32-strconv-from-locale: Likewise.
33082         * modules/uniconv/u32-strconv-to-enc: Likewise.
33083         * modules/uniconv/u32-strconv-to-locale: Likewise.
33084         * modules/unictype/bidicategory-byname: Likewise.
33085         * modules/unictype/bidicategory-name: Likewise.
33086         * modules/unictype/bidicategory-of: Likewise.
33087         * modules/unictype/bidicategory-test: Likewise.
33088         * modules/unictype/block-list: Likewise.
33089         * modules/unictype/block-test: Likewise.
33090         * modules/unictype/category-C: Likewise.
33091         * modules/unictype/category-Cc: Likewise.
33092         * modules/unictype/category-Cf: Likewise.
33093         * modules/unictype/category-Cn: Likewise.
33094         * modules/unictype/category-Co: Likewise.
33095         * modules/unictype/category-Cs: Likewise.
33096         * modules/unictype/category-L: Likewise.
33097         * modules/unictype/category-Ll: Likewise.
33098         * modules/unictype/category-Lm: Likewise.
33099         * modules/unictype/category-Lo: Likewise.
33100         * modules/unictype/category-Lt: Likewise.
33101         * modules/unictype/category-Lu: Likewise.
33102         * modules/unictype/category-M: Likewise.
33103         * modules/unictype/category-Mc: Likewise.
33104         * modules/unictype/category-Me: Likewise.
33105         * modules/unictype/category-Mn: Likewise.
33106         * modules/unictype/category-N: Likewise.
33107         * modules/unictype/category-Nd: Likewise.
33108         * modules/unictype/category-Nl: Likewise.
33109         * modules/unictype/category-No: Likewise.
33110         * modules/unictype/category-P: Likewise.
33111         * modules/unictype/category-Pc: Likewise.
33112         * modules/unictype/category-Pd: Likewise.
33113         * modules/unictype/category-Pe: Likewise.
33114         * modules/unictype/category-Pf: Likewise.
33115         * modules/unictype/category-Pi: Likewise.
33116         * modules/unictype/category-Po: Likewise.
33117         * modules/unictype/category-Ps: Likewise.
33118         * modules/unictype/category-S: Likewise.
33119         * modules/unictype/category-Sc: Likewise.
33120         * modules/unictype/category-Sk: Likewise.
33121         * modules/unictype/category-Sm: Likewise.
33122         * modules/unictype/category-So: Likewise.
33123         * modules/unictype/category-Z: Likewise.
33124         * modules/unictype/category-Zl: Likewise.
33125         * modules/unictype/category-Zp: Likewise.
33126         * modules/unictype/category-Zs: Likewise.
33127         * modules/unictype/category-and: Likewise.
33128         * modules/unictype/category-and-not: Likewise.
33129         * modules/unictype/category-byname: Likewise.
33130         * modules/unictype/category-name: Likewise.
33131         * modules/unictype/category-none: Likewise.
33132         * modules/unictype/category-of: Likewise.
33133         * modules/unictype/category-or: Likewise.
33134         * modules/unictype/category-test: Likewise.
33135         * modules/unictype/combining-class: Likewise.
33136         * modules/unictype/ctype-alnum: Likewise.
33137         * modules/unictype/ctype-alpha: Likewise.
33138         * modules/unictype/ctype-blank: Likewise.
33139         * modules/unictype/ctype-cntrl: Likewise.
33140         * modules/unictype/ctype-digit: Likewise.
33141         * modules/unictype/ctype-graph: Likewise.
33142         * modules/unictype/ctype-lower: Likewise.
33143         * modules/unictype/ctype-print: Likewise.
33144         * modules/unictype/ctype-punct: Likewise.
33145         * modules/unictype/ctype-space: Likewise.
33146         * modules/unictype/ctype-upper: Likewise.
33147         * modules/unictype/ctype-xdigit: Likewise.
33148         * modules/unictype/decimal-digit: Likewise.
33149         * modules/unictype/digit: Likewise.
33150         * modules/unictype/mirror: Likewise.
33151         * modules/unictype/numeric: Likewise.
33152         * modules/unictype/property-alphabetic: Likewise.
33153         * modules/unictype/property-ascii-hex-digit: Likewise.
33154         * modules/unictype/property-bidi-arabic-digit: Likewise.
33155         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33156         * modules/unictype/property-bidi-block-separator: Likewise.
33157         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33158         * modules/unictype/property-bidi-common-separator: Likewise.
33159         * modules/unictype/property-bidi-control: Likewise.
33160         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33161         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33162         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33163         * modules/unictype/property-bidi-european-digit: Likewise.
33164         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33165         * modules/unictype/property-bidi-left-to-right: Likewise.
33166         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33167         * modules/unictype/property-bidi-other-neutral: Likewise.
33168         * modules/unictype/property-bidi-pdf: Likewise.
33169         * modules/unictype/property-bidi-segment-separator: Likewise.
33170         * modules/unictype/property-bidi-whitespace: Likewise.
33171         * modules/unictype/property-byname: Likewise.
33172         * modules/unictype/property-combining: Likewise.
33173         * modules/unictype/property-composite: Likewise.
33174         * modules/unictype/property-currency-symbol: Likewise.
33175         * modules/unictype/property-dash: Likewise.
33176         * modules/unictype/property-decimal-digit: Likewise.
33177         * modules/unictype/property-default-ignorable-code-point: Likewise.
33178         * modules/unictype/property-deprecated: Likewise.
33179         * modules/unictype/property-diacritic: Likewise.
33180         * modules/unictype/property-extender: Likewise.
33181         * modules/unictype/property-format-control: Likewise.
33182         * modules/unictype/property-grapheme-base: Likewise.
33183         * modules/unictype/property-grapheme-extend: Likewise.
33184         * modules/unictype/property-grapheme-link: Likewise.
33185         * modules/unictype/property-hex-digit: Likewise.
33186         * modules/unictype/property-hyphen: Likewise.
33187         * modules/unictype/property-id-continue: Likewise.
33188         * modules/unictype/property-id-start: Likewise.
33189         * modules/unictype/property-ideographic: Likewise.
33190         * modules/unictype/property-ids-binary-operator: Likewise.
33191         * modules/unictype/property-ids-trinary-operator: Likewise.
33192         * modules/unictype/property-ignorable-control: Likewise.
33193         * modules/unictype/property-iso-control: Likewise.
33194         * modules/unictype/property-join-control: Likewise.
33195         * modules/unictype/property-left-of-pair: Likewise.
33196         * modules/unictype/property-line-separator: Likewise.
33197         * modules/unictype/property-logical-order-exception: Likewise.
33198         * modules/unictype/property-lowercase: Likewise.
33199         * modules/unictype/property-math: Likewise.
33200         * modules/unictype/property-non-break: Likewise.
33201         * modules/unictype/property-not-a-character: Likewise.
33202         * modules/unictype/property-numeric: Likewise.
33203         * modules/unictype/property-other-alphabetic: Likewise.
33204         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33205         * modules/unictype/property-other-grapheme-extend: Likewise.
33206         * modules/unictype/property-other-id-continue: Likewise.
33207         * modules/unictype/property-other-id-start: Likewise.
33208         * modules/unictype/property-other-lowercase: Likewise.
33209         * modules/unictype/property-other-math: Likewise.
33210         * modules/unictype/property-other-uppercase: Likewise.
33211         * modules/unictype/property-paired-punctuation: Likewise.
33212         * modules/unictype/property-paragraph-separator: Likewise.
33213         * modules/unictype/property-pattern-syntax: Likewise.
33214         * modules/unictype/property-pattern-white-space: Likewise.
33215         * modules/unictype/property-private-use: Likewise.
33216         * modules/unictype/property-punctuation: Likewise.
33217         * modules/unictype/property-quotation-mark: Likewise.
33218         * modules/unictype/property-radical: Likewise.
33219         * modules/unictype/property-sentence-terminal: Likewise.
33220         * modules/unictype/property-soft-dotted: Likewise.
33221         * modules/unictype/property-space: Likewise.
33222         * modules/unictype/property-terminal-punctuation: Likewise.
33223         * modules/unictype/property-test: Likewise.
33224         * modules/unictype/property-titlecase: Likewise.
33225         * modules/unictype/property-unassigned-code-value: Likewise.
33226         * modules/unictype/property-unified-ideograph: Likewise.
33227         * modules/unictype/property-uppercase: Likewise.
33228         * modules/unictype/property-variation-selector: Likewise.
33229         * modules/unictype/property-white-space: Likewise.
33230         * modules/unictype/property-xid-continue: Likewise.
33231         * modules/unictype/property-xid-start: Likewise.
33232         * modules/unictype/property-zero-width: Likewise.
33233         * modules/unictype/scripts: Likewise.
33234         * modules/unictype/syntax-c-ident: Likewise.
33235         * modules/unictype/syntax-c-whitespace: Likewise.
33236         * modules/unictype/syntax-java-ident: Likewise.
33237         * modules/unictype/syntax-java-whitespace: Likewise.
33238         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33239         * modules/unilbrk/u8-width-linebreaks: Likewise.
33240         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33241         * modules/unilbrk/u16-width-linebreaks: Likewise.
33242         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33243         * modules/unilbrk/u32-width-linebreaks: Likewise.
33244         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33245         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33246         * modules/uniname/uniname: Likewise.
33247         * modules/uninorm/canonical-decomposition: Likewise.
33248         * modules/uninorm/composition: Likewise.
33249         * modules/uninorm/decomposing-form: Likewise.
33250         * modules/uninorm/decomposition: Likewise.
33251         * modules/uninorm/filter: Likewise.
33252         * modules/uninorm/nfc: Likewise.
33253         * modules/uninorm/nfd: Likewise.
33254         * modules/uninorm/nfkc: Likewise.
33255         * modules/uninorm/nfkd: Likewise.
33256         * modules/uninorm/u8-normalize: Likewise.
33257         * modules/uninorm/u8-normcmp: Likewise.
33258         * modules/uninorm/u8-normcoll: Likewise.
33259         * modules/uninorm/u8-normxfrm: Likewise.
33260         * modules/uninorm/u16-normalize: Likewise.
33261         * modules/uninorm/u16-normcmp: Likewise.
33262         * modules/uninorm/u16-normcoll: Likewise.
33263         * modules/uninorm/u16-normxfrm: Likewise.
33264         * modules/uninorm/u32-normalize: Likewise.
33265         * modules/uninorm/u32-normcmp: Likewise.
33266         * modules/uninorm/u32-normcoll: Likewise.
33267         * modules/uninorm/u32-normxfrm: Likewise.
33268         * modules/unistdio/u8-asnprintf: Likewise.
33269         * modules/unistdio/u8-asprintf: Likewise.
33270         * modules/unistdio/u8-snprintf: Likewise.
33271         * modules/unistdio/u8-sprintf: Likewise.
33272         * modules/unistdio/u8-u8-asnprintf: Likewise.
33273         * modules/unistdio/u8-u8-asprintf: Likewise.
33274         * modules/unistdio/u8-u8-snprintf: Likewise.
33275         * modules/unistdio/u8-u8-sprintf: Likewise.
33276         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33277         * modules/unistdio/u8-u8-vasprintf: Likewise.
33278         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33279         * modules/unistdio/u8-u8-vsprintf: Likewise.
33280         * modules/unistdio/u8-vasnprintf: Likewise.
33281         * modules/unistdio/u8-vasprintf: Likewise.
33282         * modules/unistdio/u8-vsnprintf: Likewise.
33283         * modules/unistdio/u8-vsprintf: Likewise.
33284         * modules/unistdio/u16-asnprintf: Likewise.
33285         * modules/unistdio/u16-asprintf: Likewise.
33286         * modules/unistdio/u16-snprintf: Likewise.
33287         * modules/unistdio/u16-sprintf: Likewise.
33288         * modules/unistdio/u16-u16-asnprintf: Likewise.
33289         * modules/unistdio/u16-u16-asprintf: Likewise.
33290         * modules/unistdio/u16-u16-snprintf: Likewise.
33291         * modules/unistdio/u16-u16-sprintf: Likewise.
33292         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33293         * modules/unistdio/u16-u16-vasprintf: Likewise.
33294         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33295         * modules/unistdio/u16-u16-vsprintf: Likewise.
33296         * modules/unistdio/u16-vasnprintf: Likewise.
33297         * modules/unistdio/u16-vasprintf: Likewise.
33298         * modules/unistdio/u16-vsnprintf: Likewise.
33299         * modules/unistdio/u16-vsprintf: Likewise.
33300         * modules/unistdio/u32-asnprintf: Likewise.
33301         * modules/unistdio/u32-asprintf: Likewise.
33302         * modules/unistdio/u32-snprintf: Likewise.
33303         * modules/unistdio/u32-sprintf: Likewise.
33304         * modules/unistdio/u32-u32-asnprintf: Likewise.
33305         * modules/unistdio/u32-u32-asprintf: Likewise.
33306         * modules/unistdio/u32-u32-snprintf: Likewise.
33307         * modules/unistdio/u32-u32-sprintf: Likewise.
33308         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33309         * modules/unistdio/u32-u32-vasprintf: Likewise.
33310         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33311         * modules/unistdio/u32-u32-vsprintf: Likewise.
33312         * modules/unistdio/u32-vasnprintf: Likewise.
33313         * modules/unistdio/u32-vasprintf: Likewise.
33314         * modules/unistdio/u32-vsnprintf: Likewise.
33315         * modules/unistdio/u32-vsprintf: Likewise.
33316         * modules/unistdio/ulc-asnprintf: Likewise.
33317         * modules/unistdio/ulc-asprintf: Likewise.
33318         * modules/unistdio/ulc-fprintf: Likewise.
33319         * modules/unistdio/ulc-snprintf: Likewise.
33320         * modules/unistdio/ulc-sprintf: Likewise.
33321         * modules/unistdio/ulc-vasnprintf: Likewise.
33322         * modules/unistdio/ulc-vasprintf: Likewise.
33323         * modules/unistdio/ulc-vfprintf: Likewise.
33324         * modules/unistdio/ulc-vsnprintf: Likewise.
33325         * modules/unistdio/ulc-vsprintf: Likewise.
33326         * modules/unistr/u8-check: Likewise.
33327         * modules/unistr/u8-chr: Likewise.
33328         * modules/unistr/u8-cmp: Likewise.
33329         * modules/unistr/u8-cmp2: Likewise.
33330         * modules/unistr/u8-cpy: Likewise.
33331         * modules/unistr/u8-cpy-alloc: Likewise.
33332         * modules/unistr/u8-endswith: Likewise.
33333         * modules/unistr/u8-mblen: Likewise.
33334         * modules/unistr/u8-mbsnlen: Likewise.
33335         * modules/unistr/u8-mbtouc: Likewise.
33336         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33337         * modules/unistr/u8-mbtoucr: Likewise.
33338         * modules/unistr/u8-move: Likewise.
33339         * modules/unistr/u8-next: Likewise.
33340         * modules/unistr/u8-prev: Likewise.
33341         * modules/unistr/u8-set: Likewise.
33342         * modules/unistr/u8-startswith: Likewise.
33343         * modules/unistr/u8-stpcpy: Likewise.
33344         * modules/unistr/u8-stpncpy: Likewise.
33345         * modules/unistr/u8-strcat: Likewise.
33346         * modules/unistr/u8-strchr: Likewise.
33347         * modules/unistr/u8-strcmp: Likewise.
33348         * modules/unistr/u8-strcoll: Likewise.
33349         * modules/unistr/u8-strcpy: Likewise.
33350         * modules/unistr/u8-strcspn: Likewise.
33351         * modules/unistr/u8-strdup: Likewise.
33352         * modules/unistr/u8-strlen: Likewise.
33353         * modules/unistr/u8-strmblen: Likewise.
33354         * modules/unistr/u8-strmbtouc: Likewise.
33355         * modules/unistr/u8-strncat: Likewise.
33356         * modules/unistr/u8-strncmp: Likewise.
33357         * modules/unistr/u8-strncpy: Likewise.
33358         * modules/unistr/u8-strnlen: Likewise.
33359         * modules/unistr/u8-strpbrk: Likewise.
33360         * modules/unistr/u8-strrchr: Likewise.
33361         * modules/unistr/u8-strspn: Likewise.
33362         * modules/unistr/u8-strstr: Likewise.
33363         * modules/unistr/u8-strtok: Likewise.
33364         * modules/unistr/u8-to-u16: Likewise.
33365         * modules/unistr/u8-to-u32: Likewise.
33366         * modules/unistr/u8-uctomb: Likewise.
33367         * modules/unistr/u16-check: Likewise.
33368         * modules/unistr/u16-chr: Likewise.
33369         * modules/unistr/u16-cmp: Likewise.
33370         * modules/unistr/u16-cmp2: Likewise.
33371         * modules/unistr/u16-cpy: Likewise.
33372         * modules/unistr/u16-cpy-alloc: Likewise.
33373         * modules/unistr/u16-endswith: Likewise.
33374         * modules/unistr/u16-mblen: Likewise.
33375         * modules/unistr/u16-mbsnlen: Likewise.
33376         * modules/unistr/u16-mbtouc: Likewise.
33377         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33378         * modules/unistr/u16-mbtoucr: Likewise.
33379         * modules/unistr/u16-move: Likewise.
33380         * modules/unistr/u16-next: Likewise.
33381         * modules/unistr/u16-prev: Likewise.
33382         * modules/unistr/u16-set: Likewise.
33383         * modules/unistr/u16-startswith: Likewise.
33384         * modules/unistr/u16-stpcpy: Likewise.
33385         * modules/unistr/u16-stpncpy: Likewise.
33386         * modules/unistr/u16-strcat: Likewise.
33387         * modules/unistr/u16-strchr: Likewise.
33388         * modules/unistr/u16-strcmp: Likewise.
33389         * modules/unistr/u16-strcoll: Likewise.
33390         * modules/unistr/u16-strcpy: Likewise.
33391         * modules/unistr/u16-strcspn: Likewise.
33392         * modules/unistr/u16-strdup: Likewise.
33393         * modules/unistr/u16-strlen: Likewise.
33394         * modules/unistr/u16-strmblen: Likewise.
33395         * modules/unistr/u16-strmbtouc: Likewise.
33396         * modules/unistr/u16-strncat: Likewise.
33397         * modules/unistr/u16-strncmp: Likewise.
33398         * modules/unistr/u16-strncpy: Likewise.
33399         * modules/unistr/u16-strnlen: Likewise.
33400         * modules/unistr/u16-strpbrk: Likewise.
33401         * modules/unistr/u16-strrchr: Likewise.
33402         * modules/unistr/u16-strspn: Likewise.
33403         * modules/unistr/u16-strstr: Likewise.
33404         * modules/unistr/u16-strtok: Likewise.
33405         * modules/unistr/u16-to-u32: Likewise.
33406         * modules/unistr/u16-to-u8: Likewise.
33407         * modules/unistr/u16-uctomb: Likewise.
33408         * modules/unistr/u32-check: Likewise.
33409         * modules/unistr/u32-chr: Likewise.
33410         * modules/unistr/u32-cmp: Likewise.
33411         * modules/unistr/u32-cmp2: Likewise.
33412         * modules/unistr/u32-cpy: Likewise.
33413         * modules/unistr/u32-cpy-alloc: Likewise.
33414         * modules/unistr/u32-endswith: Likewise.
33415         * modules/unistr/u32-mblen: Likewise.
33416         * modules/unistr/u32-mbsnlen: Likewise.
33417         * modules/unistr/u32-mbtouc: Likewise.
33418         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33419         * modules/unistr/u32-mbtoucr: Likewise.
33420         * modules/unistr/u32-move: Likewise.
33421         * modules/unistr/u32-next: Likewise.
33422         * modules/unistr/u32-prev: Likewise.
33423         * modules/unistr/u32-set: Likewise.
33424         * modules/unistr/u32-startswith: Likewise.
33425         * modules/unistr/u32-stpcpy: Likewise.
33426         * modules/unistr/u32-stpncpy: Likewise.
33427         * modules/unistr/u32-strcat: Likewise.
33428         * modules/unistr/u32-strchr: Likewise.
33429         * modules/unistr/u32-strcmp: Likewise.
33430         * modules/unistr/u32-strcoll: Likewise.
33431         * modules/unistr/u32-strcpy: Likewise.
33432         * modules/unistr/u32-strcspn: Likewise.
33433         * modules/unistr/u32-strdup: Likewise.
33434         * modules/unistr/u32-strlen: Likewise.
33435         * modules/unistr/u32-strmblen: Likewise.
33436         * modules/unistr/u32-strmbtouc: Likewise.
33437         * modules/unistr/u32-strncat: Likewise.
33438         * modules/unistr/u32-strncmp: Likewise.
33439         * modules/unistr/u32-strncpy: Likewise.
33440         * modules/unistr/u32-strnlen: Likewise.
33441         * modules/unistr/u32-strpbrk: Likewise.
33442         * modules/unistr/u32-strrchr: Likewise.
33443         * modules/unistr/u32-strspn: Likewise.
33444         * modules/unistr/u32-strstr: Likewise.
33445         * modules/unistr/u32-strtok: Likewise.
33446         * modules/unistr/u32-to-u16: Likewise.
33447         * modules/unistr/u32-to-u8: Likewise.
33448         * modules/unistr/u32-uctomb: Likewise.
33449         * modules/uniwbrk/u8-wordbreaks: Likewise.
33450         * modules/uniwbrk/u16-wordbreaks: Likewise.
33451         * modules/uniwbrk/u32-wordbreaks: Likewise.
33452         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33453         * modules/uniwbrk/wordbreak-property: Likewise.
33454         * modules/uniwidth/u8-strwidth: Likewise.
33455         * modules/uniwidth/u8-width: Likewise.
33456         * modules/uniwidth/u16-strwidth: Likewise.
33457         * modules/uniwidth/u16-width: Likewise.
33458         * modules/uniwidth/u32-strwidth: Likewise.
33459         * modules/uniwidth/u32-width: Likewise.
33460         * modules/uniwidth/width: Likewise.
33461         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33462         with $(LIBUNISTRING).
33463         * modules/unicase/ignorable-tests: Likewise.
33464         * modules/unicase/locale-language-tests: Likewise.
33465         * modules/unicase/tolower-tests: Likewise.
33466         * modules/unicase/totitle-tests: Likewise.
33467         * modules/unicase/toupper-tests: Likewise.
33468         * modules/unicase/u8-casecmp-tests: Likewise.
33469         * modules/unicase/u8-casecoll-tests: Likewise.
33470         * modules/unicase/u8-casefold-tests: Likewise.
33471         * modules/unicase/u8-is-cased-tests: Likewise.
33472         * modules/unicase/u8-is-casefolded-tests: Likewise.
33473         * modules/unicase/u8-is-lowercase-tests: Likewise.
33474         * modules/unicase/u8-is-titlecase-tests: Likewise.
33475         * modules/unicase/u8-is-uppercase-tests: Likewise.
33476         * modules/unicase/u8-tolower-tests: Likewise.
33477         * modules/unicase/u8-totitle-tests: Likewise.
33478         * modules/unicase/u8-toupper-tests: Likewise.
33479         * modules/unicase/u16-casecmp-tests: Likewise.
33480         * modules/unicase/u16-casecoll-tests: Likewise.
33481         * modules/unicase/u16-casefold-tests: Likewise.
33482         * modules/unicase/u16-is-cased-tests: Likewise.
33483         * modules/unicase/u16-is-casefolded-tests: Likewise.
33484         * modules/unicase/u16-is-lowercase-tests: Likewise.
33485         * modules/unicase/u16-is-titlecase-tests: Likewise.
33486         * modules/unicase/u16-is-uppercase-tests: Likewise.
33487         * modules/unicase/u16-tolower-tests: Likewise.
33488         * modules/unicase/u16-totitle-tests: Likewise.
33489         * modules/unicase/u16-toupper-tests: Likewise.
33490         * modules/unicase/u32-casecmp-tests: Likewise.
33491         * modules/unicase/u32-casecoll-tests: Likewise.
33492         * modules/unicase/u32-casefold-tests: Likewise.
33493         * modules/unicase/u32-is-cased-tests: Likewise.
33494         * modules/unicase/u32-is-casefolded-tests: Likewise.
33495         * modules/unicase/u32-is-lowercase-tests: Likewise.
33496         * modules/unicase/u32-is-titlecase-tests: Likewise.
33497         * modules/unicase/u32-is-uppercase-tests: Likewise.
33498         * modules/unicase/u32-tolower-tests: Likewise.
33499         * modules/unicase/u32-totitle-tests: Likewise.
33500         * modules/unicase/u32-toupper-tests: Likewise.
33501         * modules/unicase/ulc-casecmp-tests: Likewise.
33502         * modules/unicase/ulc-casecoll-tests: Likewise.
33503         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33504         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33505         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33506         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33507         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33508         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33509         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33510         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33511         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33512         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33513         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33514         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33515         * modules/unictype/bidicategory-byname-tests: Likewise.
33516         * modules/unictype/bidicategory-name-tests: Likewise.
33517         * modules/unictype/bidicategory-of-tests: Likewise.
33518         * modules/unictype/bidicategory-test-tests: Likewise.
33519         * modules/unictype/block-list-tests: Likewise.
33520         * modules/unictype/block-of-tests: Likewise.
33521         * modules/unictype/block-test-tests: Likewise.
33522         * modules/unictype/category-C-tests: Likewise.
33523         * modules/unictype/category-Cc-tests: Likewise.
33524         * modules/unictype/category-Cf-tests: Likewise.
33525         * modules/unictype/category-Cn-tests: Likewise.
33526         * modules/unictype/category-Co-tests: Likewise.
33527         * modules/unictype/category-Cs-tests: Likewise.
33528         * modules/unictype/category-L-tests: Likewise.
33529         * modules/unictype/category-Ll-tests: Likewise.
33530         * modules/unictype/category-Lm-tests: Likewise.
33531         * modules/unictype/category-Lo-tests: Likewise.
33532         * modules/unictype/category-Lt-tests: Likewise.
33533         * modules/unictype/category-Lu-tests: Likewise.
33534         * modules/unictype/category-M-tests: Likewise.
33535         * modules/unictype/category-Mc-tests: Likewise.
33536         * modules/unictype/category-Me-tests: Likewise.
33537         * modules/unictype/category-Mn-tests: Likewise.
33538         * modules/unictype/category-N-tests: Likewise.
33539         * modules/unictype/category-Nd-tests: Likewise.
33540         * modules/unictype/category-Nl-tests: Likewise.
33541         * modules/unictype/category-No-tests: Likewise.
33542         * modules/unictype/category-P-tests: Likewise.
33543         * modules/unictype/category-Pc-tests: Likewise.
33544         * modules/unictype/category-Pd-tests: Likewise.
33545         * modules/unictype/category-Pe-tests: Likewise.
33546         * modules/unictype/category-Pf-tests: Likewise.
33547         * modules/unictype/category-Pi-tests: Likewise.
33548         * modules/unictype/category-Po-tests: Likewise.
33549         * modules/unictype/category-Ps-tests: Likewise.
33550         * modules/unictype/category-S-tests: Likewise.
33551         * modules/unictype/category-Sc-tests: Likewise.
33552         * modules/unictype/category-Sk-tests: Likewise.
33553         * modules/unictype/category-Sm-tests: Likewise.
33554         * modules/unictype/category-So-tests: Likewise.
33555         * modules/unictype/category-Z-tests: Likewise.
33556         * modules/unictype/category-Zl-tests: Likewise.
33557         * modules/unictype/category-Zp-tests: Likewise.
33558         * modules/unictype/category-Zs-tests: Likewise.
33559         * modules/unictype/category-and-not-tests: Likewise.
33560         * modules/unictype/category-and-tests: Likewise.
33561         * modules/unictype/category-byname-tests: Likewise.
33562         * modules/unictype/category-name-tests: Likewise.
33563         * modules/unictype/category-none-tests: Likewise.
33564         * modules/unictype/category-of-tests: Likewise.
33565         * modules/unictype/category-or-tests: Likewise.
33566         * modules/unictype/category-test-withtable-tests: Likewise.
33567         * modules/unictype/combining-class-tests: Likewise.
33568         * modules/unictype/ctype-alnum-tests: Likewise.
33569         * modules/unictype/ctype-alpha-tests: Likewise.
33570         * modules/unictype/ctype-blank-tests: Likewise.
33571         * modules/unictype/ctype-cntrl-tests: Likewise.
33572         * modules/unictype/ctype-digit-tests: Likewise.
33573         * modules/unictype/ctype-graph-tests: Likewise.
33574         * modules/unictype/ctype-lower-tests: Likewise.
33575         * modules/unictype/ctype-print-tests: Likewise.
33576         * modules/unictype/ctype-punct-tests: Likewise.
33577         * modules/unictype/ctype-space-tests: Likewise.
33578         * modules/unictype/ctype-upper-tests: Likewise.
33579         * modules/unictype/ctype-xdigit-tests: Likewise.
33580         * modules/unictype/decimal-digit-tests: Likewise.
33581         * modules/unictype/digit-tests: Likewise.
33582         * modules/unictype/mirror-tests: Likewise.
33583         * modules/unictype/numeric-tests: Likewise.
33584         * modules/unictype/property-alphabetic-tests: Likewise.
33585         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33586         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33587         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33588         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33589         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33590         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33591         * modules/unictype/property-bidi-control-tests: Likewise.
33592         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33593         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33594         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33595         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33596         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33597         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33598         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33599         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33600         * modules/unictype/property-bidi-pdf-tests: Likewise.
33601         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33602         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33603         * modules/unictype/property-byname-tests: Likewise.
33604         * modules/unictype/property-combining-tests: Likewise.
33605         * modules/unictype/property-composite-tests: Likewise.
33606         * modules/unictype/property-currency-symbol-tests: Likewise.
33607         * modules/unictype/property-dash-tests: Likewise.
33608         * modules/unictype/property-decimal-digit-tests: Likewise.
33609         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33610         * modules/unictype/property-deprecated-tests: Likewise.
33611         * modules/unictype/property-diacritic-tests: Likewise.
33612         * modules/unictype/property-extender-tests: Likewise.
33613         * modules/unictype/property-format-control-tests: Likewise.
33614         * modules/unictype/property-grapheme-base-tests: Likewise.
33615         * modules/unictype/property-grapheme-extend-tests: Likewise.
33616         * modules/unictype/property-grapheme-link-tests: Likewise.
33617         * modules/unictype/property-hex-digit-tests: Likewise.
33618         * modules/unictype/property-hyphen-tests: Likewise.
33619         * modules/unictype/property-id-continue-tests: Likewise.
33620         * modules/unictype/property-id-start-tests: Likewise.
33621         * modules/unictype/property-ideographic-tests: Likewise.
33622         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33623         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33624         * modules/unictype/property-ignorable-control-tests: Likewise.
33625         * modules/unictype/property-iso-control-tests: Likewise.
33626         * modules/unictype/property-join-control-tests: Likewise.
33627         * modules/unictype/property-left-of-pair-tests: Likewise.
33628         * modules/unictype/property-line-separator-tests: Likewise.
33629         * modules/unictype/property-logical-order-exception-tests: Likewise.
33630         * modules/unictype/property-lowercase-tests: Likewise.
33631         * modules/unictype/property-math-tests: Likewise.
33632         * modules/unictype/property-non-break-tests: Likewise.
33633         * modules/unictype/property-not-a-character-tests: Likewise.
33634         * modules/unictype/property-numeric-tests: Likewise.
33635         * modules/unictype/property-other-alphabetic-tests: Likewise.
33636         * modules/unictype/property-other-default-ignorable-code-point-tests:
33637         Likewise.
33638         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33639         * modules/unictype/property-other-id-continue-tests: Likewise.
33640         * modules/unictype/property-other-id-start-tests: Likewise.
33641         * modules/unictype/property-other-lowercase-tests: Likewise.
33642         * modules/unictype/property-other-math-tests: Likewise.
33643         * modules/unictype/property-other-uppercase-tests: Likewise.
33644         * modules/unictype/property-paired-punctuation-tests: Likewise.
33645         * modules/unictype/property-paragraph-separator-tests: Likewise.
33646         * modules/unictype/property-pattern-syntax-tests: Likewise.
33647         * modules/unictype/property-pattern-white-space-tests: Likewise.
33648         * modules/unictype/property-private-use-tests: Likewise.
33649         * modules/unictype/property-punctuation-tests: Likewise.
33650         * modules/unictype/property-quotation-mark-tests: Likewise.
33651         * modules/unictype/property-radical-tests: Likewise.
33652         * modules/unictype/property-sentence-terminal-tests: Likewise.
33653         * modules/unictype/property-soft-dotted-tests: Likewise.
33654         * modules/unictype/property-space-tests: Likewise.
33655         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33656         * modules/unictype/property-test-tests: Likewise.
33657         * modules/unictype/property-titlecase-tests: Likewise.
33658         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33659         * modules/unictype/property-unified-ideograph-tests: Likewise.
33660         * modules/unictype/property-uppercase-tests: Likewise.
33661         * modules/unictype/property-variation-selector-tests: Likewise.
33662         * modules/unictype/property-white-space-tests: Likewise.
33663         * modules/unictype/property-xid-continue-tests: Likewise.
33664         * modules/unictype/property-xid-start-tests: Likewise.
33665         * modules/unictype/property-zero-width-tests: Likewise.
33666         * modules/unictype/scripts-tests: Likewise.
33667         * modules/unictype/syntax-c-ident-tests: Likewise.
33668         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33669         * modules/unictype/syntax-java-ident-tests: Likewise.
33670         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33671         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33672         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33673         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33674         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33675         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33676         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33677         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33678         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33679         * modules/uniname/uniname-tests: Likewise.
33680         * modules/uninorm/canonical-decomposition-tests: Likewise.
33681         * modules/uninorm/compat-decomposition-tests: Likewise.
33682         * modules/uninorm/composition-tests: Likewise.
33683         * modules/uninorm/decomposing-form-tests: Likewise.
33684         * modules/uninorm/decomposition-tests: Likewise.
33685         * modules/uninorm/filter-tests: Likewise.
33686         * modules/uninorm/nfc-tests: Likewise.
33687         * modules/uninorm/nfd-tests: Likewise.
33688         * modules/uninorm/nfkc-tests: Likewise.
33689         * modules/uninorm/nfkd-tests: Likewise.
33690         * modules/uninorm/u8-normcmp-tests: Likewise.
33691         * modules/uninorm/u8-normcoll-tests: Likewise.
33692         * modules/uninorm/u16-normcmp-tests: Likewise.
33693         * modules/uninorm/u16-normcoll-tests: Likewise.
33694         * modules/uninorm/u32-normcmp-tests: Likewise.
33695         * modules/uninorm/u32-normcoll-tests: Likewise.
33696         * modules/unistdio/u8-asnprintf-tests: Likewise.
33697         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33698         * modules/unistdio/u8-vasprintf-tests: Likewise.
33699         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33700         * modules/unistdio/u8-vsprintf-tests: Likewise.
33701         * modules/unistdio/u16-asnprintf-tests: Likewise.
33702         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33703         * modules/unistdio/u16-vasprintf-tests: Likewise.
33704         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33705         * modules/unistdio/u16-vsprintf-tests: Likewise.
33706         * modules/unistdio/u32-asnprintf-tests: Likewise.
33707         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33708         * modules/unistdio/u32-vasprintf-tests: Likewise.
33709         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33710         * modules/unistdio/u32-vsprintf-tests: Likewise.
33711         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33712         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33713         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33714         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33715         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33716         * modules/unistr/u8-check-tests: Likewise.
33717         * modules/unistr/u8-chr-tests: Likewise.
33718         * modules/unistr/u8-cmp-tests: Likewise.
33719         * modules/unistr/u8-cmp2-tests: Likewise.
33720         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33721         * modules/unistr/u8-cpy-tests: Likewise.
33722         * modules/unistr/u8-mblen-tests: Likewise.
33723         * modules/unistr/u8-mbsnlen-tests: Likewise.
33724         * modules/unistr/u8-mbtouc-tests: Likewise.
33725         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33726         * modules/unistr/u8-mbtoucr-tests: Likewise.
33727         * modules/unistr/u8-move-tests: Likewise.
33728         * modules/unistr/u8-next-tests: Likewise.
33729         * modules/unistr/u8-prev-tests: Likewise.
33730         * modules/unistr/u8-set-tests: Likewise.
33731         * modules/unistr/u8-stpcpy-tests: Likewise.
33732         * modules/unistr/u8-stpncpy-tests: Likewise.
33733         * modules/unistr/u8-strcat-tests: Likewise.
33734         * modules/unistr/u8-strcmp-tests: Likewise.
33735         * modules/unistr/u8-strcoll-tests: Likewise.
33736         * modules/unistr/u8-strcpy-tests: Likewise.
33737         * modules/unistr/u8-strdup-tests: Likewise.
33738         * modules/unistr/u8-strlen-tests: Likewise.
33739         * modules/unistr/u8-strmblen-tests: Likewise.
33740         * modules/unistr/u8-strmbtouc-tests: Likewise.
33741         * modules/unistr/u8-strncat-tests: Likewise.
33742         * modules/unistr/u8-strncmp-tests: Likewise.
33743         * modules/unistr/u8-strncpy-tests: Likewise.
33744         * modules/unistr/u8-strnlen-tests: Likewise.
33745         * modules/unistr/u8-to-u16-tests: Likewise.
33746         * modules/unistr/u8-to-u32-tests: Likewise.
33747         * modules/unistr/u8-uctomb-tests: Likewise.
33748         * modules/unistr/u16-check-tests: Likewise.
33749         * modules/unistr/u16-chr-tests: Likewise.
33750         * modules/unistr/u16-cmp-tests: Likewise.
33751         * modules/unistr/u16-cmp2-tests: Likewise.
33752         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33753         * modules/unistr/u16-cpy-tests: Likewise.
33754         * modules/unistr/u16-mblen-tests: Likewise.
33755         * modules/unistr/u16-mbsnlen-tests: Likewise.
33756         * modules/unistr/u16-mbtouc-tests: Likewise.
33757         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33758         * modules/unistr/u16-mbtoucr-tests: Likewise.
33759         * modules/unistr/u16-move-tests: Likewise.
33760         * modules/unistr/u16-next-tests: Likewise.
33761         * modules/unistr/u16-prev-tests: Likewise.
33762         * modules/unistr/u16-set-tests: Likewise.
33763         * modules/unistr/u16-stpcpy-tests: Likewise.
33764         * modules/unistr/u16-stpncpy-tests: Likewise.
33765         * modules/unistr/u16-strcat-tests: Likewise.
33766         * modules/unistr/u16-strcmp-tests: Likewise.
33767         * modules/unistr/u16-strcoll-tests: Likewise.
33768         * modules/unistr/u16-strcpy-tests: Likewise.
33769         * modules/unistr/u16-strdup-tests: Likewise.
33770         * modules/unistr/u16-strlen-tests: Likewise.
33771         * modules/unistr/u16-strmblen-tests: Likewise.
33772         * modules/unistr/u16-strmbtouc-tests: Likewise.
33773         * modules/unistr/u16-strncat-tests: Likewise.
33774         * modules/unistr/u16-strncmp-tests: Likewise.
33775         * modules/unistr/u16-strncpy-tests: Likewise.
33776         * modules/unistr/u16-strnlen-tests: Likewise.
33777         * modules/unistr/u16-to-u32-tests: Likewise.
33778         * modules/unistr/u16-to-u8-tests: Likewise.
33779         * modules/unistr/u16-uctomb-tests: Likewise.
33780         * modules/unistr/u32-check-tests: Likewise.
33781         * modules/unistr/u32-chr-tests: Likewise.
33782         * modules/unistr/u32-cmp-tests: Likewise.
33783         * modules/unistr/u32-cmp2-tests: Likewise.
33784         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33785         * modules/unistr/u32-cpy-tests: Likewise.
33786         * modules/unistr/u32-mblen-tests: Likewise.
33787         * modules/unistr/u32-mbsnlen-tests: Likewise.
33788         * modules/unistr/u32-mbtouc-tests: Likewise.
33789         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33790         * modules/unistr/u32-mbtoucr-tests: Likewise.
33791         * modules/unistr/u32-move-tests: Likewise.
33792         * modules/unistr/u32-next-tests: Likewise.
33793         * modules/unistr/u32-prev-tests: Likewise.
33794         * modules/unistr/u32-set-tests: Likewise.
33795         * modules/unistr/u32-stpcpy-tests: Likewise.
33796         * modules/unistr/u32-stpncpy-tests: Likewise.
33797         * modules/unistr/u32-strcat-tests: Likewise.
33798         * modules/unistr/u32-strcmp-tests: Likewise.
33799         * modules/unistr/u32-strcoll-tests: Likewise.
33800         * modules/unistr/u32-strcpy-tests: Likewise.
33801         * modules/unistr/u32-strdup-tests: Likewise.
33802         * modules/unistr/u32-strlen-tests: Likewise.
33803         * modules/unistr/u32-strmblen-tests: Likewise.
33804         * modules/unistr/u32-strmbtouc-tests: Likewise.
33805         * modules/unistr/u32-strncat-tests: Likewise.
33806         * modules/unistr/u32-strncmp-tests: Likewise.
33807         * modules/unistr/u32-strncpy-tests: Likewise.
33808         * modules/unistr/u32-strnlen-tests: Likewise.
33809         * modules/unistr/u32-to-u16-tests: Likewise.
33810         * modules/unistr/u32-to-u8-tests: Likewise.
33811         * modules/unistr/u32-uctomb-tests: Likewise.
33812         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33813         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33814         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33815         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33816         * modules/uniwidth/u8-strwidth-tests: Likewise.
33817         * modules/uniwidth/u8-width-tests: Likewise.
33818         * modules/uniwidth/u16-strwidth-tests: Likewise.
33819         * modules/uniwidth/u16-width-tests: Likewise.
33820         * modules/uniwidth/u32-strwidth-tests: Likewise.
33821         * modules/uniwidth/u32-width-tests: Likewise.
33822         * modules/uniwidth/width-tests: Likewise.
33823
33824 2010-05-18  Richard Jones  <rjones@redhat.com>
33825
33826         doc: users.txt: list hivex
33827         * users.txt: Add hivex.
33828
33829 2010-05-18  Richard Jones  <rjones@redhat.com>
33830
33831         doc: users.txt: list febootstrap
33832         * users.txt: Add febootstrap.
33833
33834 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33835
33836         bootstrap: fix an error when gnulib is not used as a git submodule
33837         * build-aux/bootstrap (gnulib_path): If its length is zero then
33838         assign "gnulib" to it.
33839         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33840
33841 2010-05-16  Bruno Haible  <bruno@clisp.org>
33842
33843         Avoid autoconf warnings about AM_ICONV.
33844         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33845         2.64.
33846
33847 2010-05-16  Bruno Haible  <bruno@clisp.org>
33848
33849         absolute-header: Make the macro usable in more situations.
33850         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33851         from gl_ABSOLUTE_HEADER.
33852         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33853
33854 2010-05-16  James Youngman  <jay@gnu.org>
33855
33856         doc: update users.txt
33857         * users.txt: Add CSSC.
33858
33859 2010-05-16  Jim Meyering  <meyering@redhat.com>
33860
33861         init.sh: fix an error in the previous change; add more comments
33862         * tests/init.sh: Compare exit code in loop against 9, not 2.
33863         Patch by Bruno Haible.
33864         Make the two tests more similar by adding an empty "then" clause.
33865         Add comments.
33866
33867         init.sh: avoid unnecessary shell re-exec
33868         * tests/init.sh: Improve the re-exec-required check to first test the
33869         current shell.  If it passes the test, do not search for a shell that
33870         does pass, and do not re-exec.  This test is particularly contorted to
33871         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33872         of $(...) evokes a syntax error and causes immediate shell exit with
33873         status 2.  Bruno Haible reported that the re-exec made it impossible
33874         to single-step through any init.sh-using script.
33875
33876 2010-05-16  Bruno Haible  <bruno@clisp.org>
33877
33878         Fix collision between gnulib's and libintl's printf replacements.
33879         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33880         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33881         (printf): When using GNU C, map the __printf__ function to rpl_printf
33882         via __asm__. When not using GNU C, define rpl_printf instead of
33883         __printf__.
33884         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33885         commit.
33886         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33887         commit.
33888         * m4/asm-underscore.m4: New file.
33889         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33890         * modules/stdio (Files): Add m4/asm-underscore.m4.
33891         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33892         Reported by Ben Pfaff.
33893
33894 2010-05-16  Bruno Haible  <bruno@clisp.org>
33895
33896         verify: Avoid skipping the test on openSUSE 11.0.
33897         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33898
33899 2010-05-13  Bruno Haible  <bruno@clisp.org>
33900
33901         Avoid useless warnings from G++.
33902         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33903         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33904         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33905
33906 2010-05-11  Jim Meyering  <meyering@redhat.com>
33907
33908         maint.mk: tweak preceding change
33909         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33910         regexps tighter by anchoring at EOL, and make the new group "shy"
33911         for slightly decreased overhead.
33912
33913 2010-05-11  Eric Blake  <eblake@redhat.com>
33914
33915         maint.mk: gnulib doesn't guarantee NSIG
33916         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33917
33918 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33919
33920         test-pwrite.c: Remove unused variable declaration.
33921         * tests/test-pwrite.c (main): Remove read_buf declaration.
33922
33923         Remove useless test-pwrite.sh file.
33924         * tests/test-pwrite.sh: Delete file.
33925         * modules/pwrite-tests: Remove references.
33926         Reported by Bruno Haible.
33927
33928 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33929
33930         init.sh: fix a typo
33931         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33932
33933 2010-05-10  Jim Meyering  <meyering@redhat.com>
33934
33935         maint.mk: avoid using a temporary file in the always-defined-macros check
33936         * top/maint.mk (.re-defmac): Remove rule.
33937         (gl_trap_): Remove definition.
33938         (sc_prohibit_always-defined_macros): Rewrite not to create and
33939         depend on a temporary file.  Instead, depend on GNU grep's ability
33940         to read a list of regular expressions from stdin when given "-f -".
33941
33942 2010-05-09  Bruno Haible  <bruno@clisp.org>
33943
33944         Update to GNU gettext 0.18, part 1.
33945         * m4/gettext.m4: Update to GNU gettext 0.18.
33946         * m4/intl.m4: Likewise.
33947         * m4/po.m4: Likewise.
33948         * modules/gettext (Files): Add m4/fcntl-o.m4.
33949         (configure.ac): Require gettext infrastructure from version 0.18.
33950
33951 2010-05-09  Jim Meyering  <meyering@redhat.com>
33952
33953         init.sh: enable MALLOC_PERTURB_
33954         * tests/init.sh: Enable glibc's malloc-perturbing option.
33955
33956         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33957         With my recent change in init.sh from the two-line form:
33958             -#   : ${srcdir=.}
33959             -#   . "$srcdir/init.sh"; path_prepend_ .
33960             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33961         I noticed that using the one-line form would cause this test
33962         to fail with a false-positive, or to stop working altogether,
33963         depending on whether help-version changed or all the tests did.
33964         * top/maint.mk (_hv_regex): Remove this definition.
33965         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33966         (_hv_regex_strong): Use a stronger regex to check for conformance.
33967         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33968         Give a separate diagnostic for lack of conforming use.
33969
33970         maint.mk: prohibit definition of symbols defined by gnulib
33971         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33972         definition of symbols defined by gnulib.
33973
33974 2010-05-09  Bruno Haible  <bruno@clisp.org>
33975
33976         acl: Avoid test failure on Cygwin-hosted mingw.
33977         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33978
33979 2010-05-09  Bruno Haible  <bruno@clisp.org>
33980
33981         error: Use system's fcntl function.
33982         * lib/error.c (fcntl): Undefine.
33983
33984 2010-05-09  Jim Meyering  <meyering@redhat.com>
33985
33986         verify: adjust formatting to be more consistent
33987         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33988         argument-list '('s, and after one comma.
33989
33990 2010-05-09  Bruno Haible  <bruno@clisp.org>
33991
33992         error: More reliable output on mingw.
33993         * lib/error.c: Include <windows.h>.
33994         (is_open): New function.
33995         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33996         defined.
33997
33998 2010-05-09  Bruno Haible  <bruno@clisp.org>
33999
34000         vasnprintf: Fix syntax errors in libintl build on mingw.
34001         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34002         pad_ourselves and prec_ourselves after use.
34003
34004 2010-05-08  Bruno Haible  <bruno@clisp.org>
34005
34006         * lib/config.charset: Update comments for Cygwin 1.7.
34007         * lib/localcharset.c: Likewise.
34008
34009 2010-05-07  Jim Meyering  <meyering@redhat.com>
34010
34011         init.sh: improve comments
34012         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34013         . "${srcdir=.}/init.sh"; path_prepend_ .
34014         Add a note about path_prepend_ and the alternative of using
34015         TESTS_ENVIRONMENT.
34016
34017 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34018
34019         exclude: Unescape hashed patterns in wildcard mode.
34020         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34021         to the hash list.
34022         * tests/test-exclude8.sh: New test case.
34023         * modules/exclude-tests: Add new test.
34024
34025 2010-05-05  Eric Blake  <eblake@redhat.com>
34026
34027         verify: automate tests
34028         * modules/verify-tests: New module.
34029         * tests/test-verify.sh: New file.
34030         * tests/test-verify.c: Guard each negative test with a unique id.
34031         Also avoid warning about unused left hand of comma expressions.
34032
34033 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34034
34035         Further improvements to verify.h, suggested by Eric Blake.
34036         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34037         the GL_* versions, to avoid collision with OpenGL.
34038         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34039         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34040         than testing merely whether it's defined.
34041
34042         Modify verify.h to pacify gcc -Wredundant_decls.
34043         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34044         These use the prefix "GL_" since they're likely to be useful elsewhere.
34045         We may need to break them out into a different .h file.
34046         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34047         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34048         of verify_function__.
34049
34050 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34051
34052         Tests for module pwrite.
34053         * modules/pwrite-tests: New file.
34054         * tests/test-pwrite.sh: New file.
34055         * tests/test-pwrite.c: New file.
34056
34057         New module pwrite.
34058         * lib/unistd.in.h (pwrite): New declaration.
34059         * lib/pwrite.c: New file, from glibc with modifications.
34060         * m4/pwrite.m4: New file.
34061         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34062         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34063         REPLACE_PWRITE.
34064         * modules/pwrite: New file.
34065         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34066         REPLACE_PWRITE.
34067         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34068         * doc/posix-functions/pwrite.texi: Mention the new module.
34069
34070 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34071
34072         pread: Update documentation.
34073         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34074
34075 2010-05-04  Eric Blake  <eblake@redhat.com>
34076
34077         docs: update cygwin progress
34078         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34079         this bug.
34080         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34081         Added in cygwin 1.7.2.
34082         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34083         Likewise.
34084         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34085         Likewise.
34086         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34087         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34088         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34089         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34090         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34091         Mention nproc module.
34092         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34093         bug in cygwin 1.7.5 addition.
34094         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34095         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34096         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34097         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34098         1.7.5.
34099         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34100         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34101         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34102         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34103         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34104         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34105         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34106         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34107         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34108         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34109         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34110         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34111         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34112         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34113         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34114         Likewise.
34115         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34116         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34117         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34118         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34119         Likewise.
34120         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34121         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34122         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34123         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34124         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34125         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34126         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34127         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34128         Likewise.
34129         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34130         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34131         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34132         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34133         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34134         Likewise.
34135         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34136         Likewise.
34137         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34138         Likewise.
34139         * doc/glibc-functions/xdrrec_endofrecord.texi
34140         (xdrrec_endofrecord): Likewise.
34141         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34142         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34143         Likewise.
34144         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34145         Likewise.
34146
34147 2010-05-04  Jim Meyering  <meyering@redhat.com>
34148
34149         gendocs.sh: make its "-s FILE" option more useful
34150         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34151         $PACKAGE to reflect the probably-different basename of "FILE".
34152
34153 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34154
34155         bootstrap: don't ignore download_po_files failure
34156         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34157         failure.
34158
34159 2010-05-03  Jim Meyering  <meyering@redhat.com>
34160
34161         maint.mk: allow to pass options to gendocs.sh
34162         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34163         (gendocs_options_): New overridable variable.
34164
34165         gnu-web-doc-update: don't ignore configure or build failure
34166         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34167
34168         announce-gen: backslash-escape '@'s in --help output
34169         * build-aux/announce-gen: Fix syntax errors.
34170
34171         maint.mk, announce-gen: allow project-specific announcement mail headers
34172         * top/maint.mk (translation_project_): Define default.
34173         (announcement_Cc_, announcement_mail_headers_): Likewise.
34174         (announcement): Invoke announce-gen with new --mail-headers option.
34175         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34176
34177         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34178         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34179         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34180         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34181         line in the "err2" output file when running "make check" in verbose
34182         mode (i.e., with set -x enabled).
34183
34184 2010-05-03  Bruno Haible  <bruno@clisp.org>
34185
34186         wctob: Fix for weird platforms.
34187         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34188         argument value.
34189
34190 2010-05-03  Jim Meyering  <meyering@redhat.com>
34191
34192         maint.mk: prohibit unwarranted use of <strings.h>
34193         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34194         strings.h in a file that does not also use strcasecmp, strncasecmp,
34195         ffs or ffsll.
34196
34197         maint.mk: remove obsolete comments
34198         * top/maint.mk: Remove stale, commented-out rules.
34199
34200 2010-05-02  Bruno Haible  <bruno@clisp.org>
34201
34202         wcwidth: Declare also when it's aliased.
34203         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34204         macro.
34205
34206 2010-05-02  Bruno Haible  <bruno@clisp.org>
34207
34208         Fix regression from 2010-04-25.
34209         * gnulib-tool (func_modules_transitive_closure): Check the status of
34210         all modules, not only of the tests that are of the form foo-tests where
34211         foo is a module.
34212
34213 2010-05-02  Bruno Haible  <bruno@clisp.org>
34214
34215         wctob: Work around nasty Cygwin 1.7.2 bug.
34216         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34217         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34218
34219 2010-05-01  Bruno Haible  <bruno@clisp.org>
34220
34221         fpurge: Sharper test.
34222         * tests/test-fpurge.c (main): Add one more ftell check.
34223         * modules/fpurge-tests (Depends-on): Add ftell.
34224         Suggested by Eric Blake.
34225
34226 2010-05-01  Bruno Haible  <bruno@clisp.org>
34227
34228         ftello: Another test.
34229         * tests/test-ftello3.c: New file.
34230         * modules/ftello-tests (Files): Add it.
34231         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34232         MOSTLYCLEANFILES.
34233
34234         ftell: Another test.
34235         * tests/test-ftell3.c: New file.
34236         * modules/ftell-tests (Files): Add it.
34237         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34238         MOSTLYCLEANFILES.
34239
34240 2010-05-01  Bruno Haible  <bruno@clisp.org>
34241
34242         ftell, ftello: Work around Solaris bug.
34243         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34244         * lib/ftello.c: Include stdio-impl.h.
34245         (ftello): On Solaris, when _IOWRT is set, compute the result without
34246         looking at _IOREAD.
34247         * modules/ftello (Files): Add lib/stdio-impl.h.
34248         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34249         * doc/posix-functions/ftello.texi: Likewise.
34250         Reported by Eric Blake.
34251
34252 2010-05-01  Bruno Haible  <bruno@clisp.org>
34253
34254         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34255         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34256         the _IOWRT flag is also set.
34257
34258 2010-05-01  Bruno Haible  <bruno@clisp.org>
34259
34260         Fix doc about a HP-UX stdio bug.
34261         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34262         * doc/posix-functions/ftello.texi: Likewise.
34263
34264 2010-05-01  Bruno Haible  <bruno@clisp.org>
34265
34266         lseek test: Fix failure on Solaris.
34267         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34268         output.
34269
34270 2010-04-30  Jim Meyering  <meyering@redhat.com>
34271
34272         bootstrap: don't ignore failure to generate po*/Makevars
34273         * build-aux/bootstrap (with_gettext): Don't ignore failure
34274         to create po/Makevars or runtime-po/Makevars.
34275
34276 2010-04-29  Eric Blake  <eblake@redhat.com>
34277
34278         headers: relax license to LGPLv2+
34279         * modules/fcntl-h (License): Relax license.
34280         * modules/getopt-posix (License): Likewise.
34281         * modules/locale (License): Likewise.
34282         * modules/math (License): Likewise.
34283         * modules/pty (License): Likewise.
34284         * modules/sched (License): Likewise.
34285         * modules/search (License): Likewise.
34286         * modules/spawn (License): Likewise.
34287         * modules/stdarg (License): Likewise.
34288         * modules/sysexits (License): Likewise.
34289
34290 2010-04-29  Jim Meyering  <meyering@redhat.com>
34291
34292         inttypes: relax license to LGPLv2+
34293         * modules/inttypes (License): Relax license.
34294
34295 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34296
34297         * top/maint.mk (indent): Run twice to produce idempotent results.
34298
34299 2010-04-28  Bruno Haible  <bruno@clisp.org>
34300
34301         getdate: Generate getdate.c in the source directory.
34302         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34303         MOSTLYCLEANFILES.
34304         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34305
34306 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34307
34308         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34309         is not declared as a const *; avoid warnings in that case.
34310
34311 2010-04-28  Eric Blake  <eblake@redhat.com>
34312
34313         canonicalize-lgpl: avoid compiler warning
34314         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34315         declaration' / 'extraneous semicolon' warning with some compilers.
34316         Reported by Andreas Gruenbacher.
34317
34318 2010-04-28  Jim Meyering  <meyering@redhat.com>
34319
34320         init.sh: ensure a more reliable exit status when exiting via trap
34321         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34322         Inspired by patches from Dmitry V. Levin.
34323         Also trap on signal 3 (SIGQUIT).
34324
34325 2010-04-27  Bruno Haible  <bruno@clisp.org>
34326
34327         Update doc about utimes().
34328         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34329         'utimens' module.
34330         Reported by Andreas Gruenbacher <agruen@suse.de>.
34331
34332 2010-04-27  Eric Blake  <eblake@redhat.com>
34333
34334         full-read, full-write: relax license
34335         * modules/full-read (License): Drop to LGPLv2+.
34336         * modules/full-write (License): Likewise.
34337         * modules/safe-read (License): Likewise.
34338         * modules/safe-write (License): Likewise.
34339
34340         pthread: mention library for linking
34341         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34342
34343 2010-04-27  Jim Meyering  <meyering@redhat.com>
34344
34345         maint.mk: fix a bug introduced in last change
34346         * top/maint.mk (gl_assured_headers_): Now that all names are on
34347         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34348         is not anchored to end of word, it should be adequate.
34349
34350         maint.mk: avoid side-effect in latest syntax-check
34351         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34352         to run commands via $(shell...), and hence to incur cost only when
34353         the new rule is actually run.
34354
34355         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34356         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34357         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34358         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34359         (gl_assured_headers_, az_, AZ_): Define.
34360         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34361
34362 2010-04-26  Jim Meyering  <jim@meyering.net>
34363             Bruno Haible  <bruno@clisp.org>
34364
34365         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34366         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34367         Prompted by an exchange with Gilles Espinasse.
34368
34369 2010-04-26  Jim Meyering  <meyering@redhat.com>
34370
34371         git-version-gen: aesthetic tweak
34372         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34373         so that the command remains on a single line.
34374
34375 2010-04-26  Eric Blake  <eblake@redhat.com>
34376
34377         git-version-gen: allow use on EBCDIC hosts
34378         * build-aux/git-version-gen (dirty): Use literal rather than tying
34379         ourselves to ascii.
34380         Reported by Steve Goetze.
34381
34382 2010-04-25  Bruno Haible  <bruno@clisp.org>
34383
34384         netdb: Add support for GNULIB_POSIXCHECK.
34385         * lib/netdb.in.h: Include warn-on-use.h.
34386         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34387         functions are used when GNULIB_POSIXCHECK is defined and the
34388         getaddrinfo module is not in use.
34389         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34390         freeaddrinfo, gai_strerror, getnameinfo are declared.
34391         * modules/netdb (Depends-on): Add warn-on-use.
34392         (Makefile.am): Include warn-on-use.h in netdb.h.
34393
34394 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34395
34396         build: avoid "make check" failure without .git/ directory
34397         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34398         there is no .git/ directory.
34399
34400 2010-04-25  Bruno Haible  <bruno@clisp.org>
34401
34402         ptsname: Fix misuse of ttyname_r.
34403         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34404         of errno.
34405
34406 2010-04-25  Bruno Haible  <bruno@clisp.org>
34407
34408         ttyname_r: Make it work on Solaris 10.
34409         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34410         if the system function has the POSIX declaration. Test whether the
34411         function fails if the buffer is less than 128 bytes large.
34412         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34413         system's ttyname_r function. Provide a reasonably large buffer.
34414         * modules/ttyname_r (Depends-on): Add extensions.
34415         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34416
34417 2010-04-25  Bruno Haible  <bruno@clisp.org>
34418
34419         Use the 'extensions' module for some more functions on Solaris.
34420         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34421         module.
34422         * doc/posix-functions/ctime_r.texi: Likewise.
34423         * doc/posix-functions/getgrgid_r.texi: Likewise.
34424         * doc/posix-functions/getgrnam_r.texi: Likewise.
34425         * doc/posix-functions/getpwnam_r.texi: Likewise.
34426         * doc/posix-functions/getpwuid_r.texi: Likewise.
34427         * doc/posix-functions/readdir_r.texi: Likewise.
34428         * doc/posix-functions/sigwait.texi: Likewise.
34429         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34430         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34431
34432 2010-04-25  Bruno Haible  <bruno@clisp.org>
34433
34434         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34435         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34436         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34437         * lib/ttyname_r.c: Include <limits.h>.
34438         (ttyname_r): Define using the system's ttyname_r function, if it exists
34439         and not on Solaris.
34440         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34441         set.
34442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34443         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34444         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34445         Reported by Simon Josefsson.
34446
34447 2010-04-25  Bruno Haible  <bruno@clisp.org>
34448
34449         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34450         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34451         * doc/posix-functions/ctime_r.texi: Likewise.
34452         * doc/posix-functions/getgrgid_r.texi: Likewise.
34453         * doc/posix-functions/getgrnam_r.texi: Likewise.
34454         * doc/posix-functions/getlogin_r.texi: Likewise.
34455         * doc/posix-functions/getpwnam_r.texi: Likewise.
34456         * doc/posix-functions/getpwuid_r.texi: Likewise.
34457         * doc/posix-functions/readdir_r.texi: Likewise.
34458         * doc/posix-functions/sigwait.texi: Likewise.
34459         * doc/posix-functions/ttyname_r.texi: Likewise.
34460         Reported by Simon Josefsson.
34461
34462 2010-04-25  Bruno Haible  <bruno@clisp.org>
34463
34464         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34465         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34466         also to --create-testdir.
34467         (func_acceptable): Don't consider the status of *-tests modules here.
34468         (func_modules_transitive_closure): Consider it here, before including a
34469         test module.
34470         (func_import, func_create_testdir): Set inc_all_direct_tests,
34471         inc_all_indirect_tests.
34472         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34473         --create-testdir and --create-megatestdir.
34474
34475 2010-04-25  Bruno Haible  <bruno@clisp.org>
34476
34477         gnulib-tool: Add --without-*-tests options.
34478         * gnulib-tool (func_usage): Document the --without-*-tests options.
34479         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34480         excl_unportable_tests): New variables.
34481         Fail if they are specified with --import or --update.
34482         (func_acceptable): Respect the excl_*_tests variables.
34483         (func_import): Set the excl_*_tests variables to empty.
34484
34485 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34486             Bruno Haible  <bruno@clisp.org>
34487
34488         Work around a MacOS X 10.4 bug with openpty.
34489         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34490         * tests/test-openpty.c (main): Close the master side explicitly.
34491
34492 2010-04-25  Bruno Haible  <bruno@clisp.org>
34493
34494         strnlen: Fix a C++ test error on MacOS X and Solaris.
34495         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34496         the function is not declared.
34497         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34498         Simon Josefsson.
34499
34500 2010-04-24  Bruno Haible  <bruno@clisp.org>
34501
34502         Avoid a gcc warning.
34503         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34504         of correct type for %08lx directive.
34505         Reported by Eric Blake.
34506
34507 2010-04-24  Bruno Haible  <bruno@clisp.org>
34508
34509         vasnprintf: Correct errno value in case of out-of-memory.
34510         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34511         or sprintf. Use the errno value from SNPRINTF or sprintf.
34512         Reported by Ian Beckwith <ianb@erislabs.net>.
34513
34514 2010-04-24  Bruno Haible  <bruno@clisp.org>
34515
34516         ansi-c++-opt: Find correct compiler when cross-compiling.
34517         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34518         AC_CHECK_PROGS.
34519         Reported by Simon Josefsson.
34520
34521 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34522
34523         vc-list-files: Add support for subversion
34524         * build-aux/vc-list-files: Use "svn list" to generate the list of
34525         files controlled by subversion.
34526
34527 2010-04-23  Jim Meyering  <meyering@redhat.com>
34528
34529         vc-list-files tests: convert to use init.sh
34530         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34531         path_prepend_.
34532         Use Exit, not exit.
34533         Use skip_ rather than open coding it.
34534         Remove trap set-up and compare definitions.
34535         * tests/test-vc-list-files-git.sh: Likewise.
34536         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34537
34538 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34539
34540         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34541         backup files.
34542
34543 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34544
34545         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34546
34547 2010-04-20  Eric Blake  <eblake@redhat.com>
34548
34549         tests: be robust to ignored SIGPIPE
34550         * tests/test-select-in.sh: Consume all output.
34551         * tests/test-lseek.sh: Check correct exit status, while avoiding
34552         EPIPE.
34553
34554 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34555             Bruno Haible  <bruno@clisp.org>
34556
34557         visibility: Don't use -fvisibility if it leads to a warning.
34558         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34559         yes, don't pretend that visibility works if it leads to a warning.
34560         Reported by Mike Gran <spk121@yahoo.com>.
34561
34562 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34563
34564         * build-aux/bootstrap: Use "git -h" for testing for supported options
34565         instead of "git --help".  The short-form option only shows a summary,
34566         and doesn't layout the full man page.  Grep for the full option name
34567         in the summary, too.
34568
34569 2010-04-19  Bruno Haible  <bruno@clisp.org>
34570
34571         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34572         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34573         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34574         mention of RELOCATABLE_STRIP.
34575         Reported by Sylvain Beucler <beuc@beuc.net>.
34576
34577 2010-04-19  Bruno Haible  <bruno@clisp.org>
34578
34579         * lib/diffseq.h: Fix typo in comment.
34580         Reported by Eric Blake.
34581
34582 2010-04-19  Bruno Haible  <bruno@clisp.org>
34583
34584         ioctl: Move autoconf macro to a .m4 file.
34585         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34586         * modules/ioctl (Files): Add it.
34587         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34588         Reported by Ian Beckwith <ianb@erislabs.net>.
34589
34590 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34591             Bruno Haible  <bruno@clisp.org>
34592
34593         diffseq: Accommodate use-case with abstract arrays.
34594         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34595         is not defined.
34596         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34597         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34598
34599 2010-04-18  Bruno Haible  <bruno@clisp.org>
34600
34601         * doc/posix-headers/stdbool.texi: More precise wording.
34602
34603 2010-04-17  Jim Meyering  <meyering@redhat.com>
34604
34605         maint.mk: use gnu-style indentation in an embedded perl script
34606         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34607         Rename variable: s/two/last_two_bytes/
34608
34609 2010-04-16  Eric Blake  <eblake@redhat.com>
34610
34611         test-stdbool: skip test that fails with Solaris CC
34612         * tests/test-stdbool.c (f): Skip test that causes compilation
34613         error under buggy C++ compiler.
34614         * lib/stdbool.in.h: Document the limitation.
34615         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34616
34617         setenv: allow compilation with C++
34618         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34619         register keyword.
34620
34621         stdint: allow test to pass with C++
34622         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34623
34624         getopt: allow compilation with C++
34625         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34626         struct.
34627         * lib/getopt.c (_getopt_internal_r): Use correct type.
34628         Reported by Dagobert Michelson, via Joel E. Denny.
34629
34630 2010-04-16  Bruno Haible  <bruno@clisp.org>
34631
34632         Override netdb.h always.
34633         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34634         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34635         Reported by Ludovic Courtès <ludo@gnu.org>.
34636
34637 2010-04-15  Bruno Haible  <bruno@clisp.org>
34638
34639         openpty: Fix mistake from 2010-03-21.
34640         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34641         Reported by Simon Josefsson.
34642
34643 2010-04-15  Eric Blake  <eblake@redhat.com>
34644
34645         test-forkpty: fix expected signature
34646         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34647         Reported by Simon Josefsson.
34648
34649 2010-04-15  Jim Meyering  <meyering@redhat.com>
34650
34651         maint.mk: texinfo_suffix_re_: correct the default regexp
34652         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34653
34654         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34655         make it configurable via texinfo_suffix_re_.
34656
34657 2010-04-14  Eric Blake  <eblake@redhat.com>
34658
34659         strtok_r: relax license to LGPLv2+
34660         * modules/strtok_r (License): Relax license.
34661         Reported by Matthias Bolte.
34662
34663 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34664
34665         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34666         version 1.4.4 by default instead of requiring the libgcrypt
34667         version used during build.  This makes it possible to use the
34668         application with older but still binary compatible libgcrypt
34669         versions.
34670
34671 2010-04-13  Eric Blake  <eblake@redhat.com>
34672
34673         getopt-gnu: match recent glibc fixes and posix ruling
34674         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34675         '+' handling, when requesting extensions.
34676         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34677         'W;' handling.
34678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34679         * doc/posix-functions/getopt.texi (getopt): Document this.
34680         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34681         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34682         Likewise.
34683
34684         getopt: merge bug fixes from glibc
34685         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34686         diagnostics.  Honor '+:' correctly.  Reject ';'.
34687
34688         getopt-posix: detect MacOS bug
34689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34690         optind when missing a required argument.
34691         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34692         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34693         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34694         Likewise.
34695
34696         getopt-posix: avoid spurious failure on Solaris
34697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34698         an indicator that setting optind=1 is sufficient for reset.
34699
34700         getopt-posix: avoid spurious failure on FreeBSD
34701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34702         in POSIX mode, since the m4 test uses it.
34703
34704         gnulib-tool: silence warning on BSD sh
34705         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34706
34707 2010-04-13  Jim Meyering  <meyering@redhat.com>
34708
34709         doc: users.txt: GNU patch now uses gnulib
34710         * users.txt: Add patch.
34711
34712 2010-04-12  Jim Meyering  <meyering@redhat.com>
34713
34714         maint.mk: generate more concise timing data for syntax-check rules
34715         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34716         " done" from each line that reports a syntax-check test duration.
34717
34718 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34719
34720         git-version-gen: use "git update-index..." rather than "git status"
34721         * build-aux/git-version-gen: Use git update-index --refresh, not
34722         "git status".  With some versions of git, "git status" would fail
34723         to update the index and result in an unwarranted "-dirty" suffix.
34724
34725 2010-04-11  Jim Meyering  <meyering@redhat.com>
34726
34727         openat: correct formatting (no semantic change)
34728         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34729         Suggested by Bruno Haible.
34730
34731 2010-04-11  Bruno Haible  <bruno@clisp.org>
34732
34733         Stricter declaration checking in testdirs.
34734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34735         If for_tests is true, augment AM_CPPFLAGS to define
34736         GNULIB_STRICT_CHECKING.
34737         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34738         GNULIB_STRICT_CHECKING is defined, verify that the function is
34739         declared.
34740
34741 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34742             Bruno Haible  <bruno@clisp.org>
34743
34744         libunistring: Improve configure output.
34745         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34746         Don't say "consider installing GNU libunistring" when checking again
34747         with libiconv.
34748
34749 2010-04-11  Bruno Haible  <bruno@clisp.org>
34750
34751         libunistring: Correct value of $LTLIBUNISTRING.
34752         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34753         correct the value of $LTLIBUNISTRING.
34754
34755 2010-04-11  Bruno Haible  <bruno@clisp.org>
34756
34757         havelib: Add static libraries to LIBS in the right order.
34758         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34759         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34760
34761 2010-04-11  Bruno Haible  <bruno@clisp.org>
34762
34763         libunistring: Detect libunistring also when it depends on libiconv.
34764         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34765         the second AC_LIB_HAVE_LINKFLAGS invocation.
34766
34767 2010-04-11  James Youngman  <jay@gnu.org>
34768
34769         close-stream: declare local scalars to be "const"
34770         * lib/close-stream.c (close_stream): Make boolean variables const
34771         to document the fact that we set but do not change them.
34772
34773 2010-04-11  Bruno Haible  <bruno@clisp.org>
34774
34775         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34776
34777 2010-04-11  Jim Meyering  <meyering@redhat.com>
34778
34779         maint.mk: don't include dist-check.mk
34780         * top/maint.mk: Remove bogus include directive.
34781
34782         maint.mk: improve empty-line-at-EOF check
34783         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34784         solution, rather than tail+Perl-based one.  The latter would read
34785         a few kilobytes from the end of each file, and did not handle empty
34786         files properly.
34787
34788         maint.mk: print the elapsed time for each syntax-check rule
34789         * top/maint.mk (sc_m_rules_): Save start time in a file.
34790         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34791         (local-check): Interpose the .z rules
34792
34793 2010-04-11  Jim Meyering  <meyering@redhat.com>
34794
34795         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34796         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34797         empty file with one that ends in an empty line.
34798
34799 2010-04-10  Bruno Haible  <bruno@clisp.org>
34800
34801         mkdir: Make it work on mingw64.
34802         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34803         * lib/mkdir.c: Update comment.
34804         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
34805
34806 2010-04-10  Bruno Haible  <bruno@clisp.org>
34807
34808         Don't override improved macro from newer autoconf.
34809         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34810         autoconf >= 2.62.
34811         Reported by Joel E. Denny <jdenny@clemson.edu>.
34812
34813 2010-04-10  Jim Meyering  <meyering@redhat.com>
34814
34815         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34816         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34817
34818         maint.mk: correct a diagnostic
34819         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34820         in diagnostic; now use $prohibit.
34821
34822 2010-04-10  Bruno Haible  <address@hidden>
34823
34824         fchownat: Fix a C++ test error on Solaris 8.
34825         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34826         the function does not exist.
34827
34828 2010-04-10  Bruno Haible  <bruno@clisp.org>
34829
34830         vasnprintf: Add more tests.
34831         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34832         (test_function): Test converting an invalid wide string.
34833
34834         vasnprintf: Correct handling of unconvertible wide string arguments.
34835         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34836         VASNPRINTF.
34837         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34838         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34839         smaller than the expected maximum need for the directive. Set errno to
34840         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34841         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34843         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34844         * modules/vasnprintf (Files): Add m4/printf.m4.
34845         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34846
34847 2010-04-10  Bruno Haible  <bruno@clisp.org>
34848
34849         vasnprintf: Fix crash in %ls directive.
34850         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34851         string is passed as argument to %ls, with no precision and no width.
34852         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34853
34854 2010-04-10  Bruno Haible  <bruno@clisp.org>
34855
34856         vasnprintf: Fix multiple test failures on mingw.
34857         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34858         _snprintf, or snwprintf, not _snwprintf.
34859
34860 2010-04-10  Bruno Haible  <bruno@clisp.org>
34861
34862         write: Fix a C++ test error on mingw.
34863         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34864
34865 2010-04-10  Bruno Haible  <bruno@clisp.org>
34866
34867         vasnprintf test: Reduce code duplication.
34868         * tests/test-vasnprintf.c (test_function): New function, extracted from
34869         test_vasnprintf.
34870         (test_vasnprintf, test_asnprintf): Invoke it.
34871
34872 2010-04-10  Bruno Haible  <bruno@clisp.org>
34873
34874         strnlen: Fix warning in C++ mode on MacOS X.
34875         * lib/string.in.h (strnlen): Use the modern idiom.
34876         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34877         defining strnlen as a macro already in <config.h>.
34878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34879         REPLACE_STRNLEN.
34880         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34881         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34882
34883 2010-04-08  James Youngman  <jay@gnu.org>
34884
34885         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34886         the example.
34887
34888 2010-04-09  Jim Meyering  <meyering@redhat.com>
34889
34890         maint.mk: print better diagnostic when there is no $(_hv_file)
34891         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34892         announce that when $(_hv_file) (aka help-version) does not exist.
34893
34894         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34895         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34896         not try to interpret its random input bytes.  Jarno Rajahalme reported
34897         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34898         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34899         (mktempd_): Likewise, just in case.
34900
34901         ftruncate: add two years to projected module removal date: 2012
34902         * m4/ftruncate.m4: Adjust comments.
34903
34904         ftruncate: mark module as obsolete; even MinGW provides it, now
34905         * modules/ftruncate (Status): Obsolete.
34906         (Notice): Say that.
34907         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34908         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34909
34910 2010-04-08  Bruno Haible  <bruno@clisp.org>
34911
34912         Fix side effects from tests-related modules.
34913         * modules/dprintf-posix (Comment): New section.
34914         * modules/fprintf-posix (Comment): Likewise.
34915         * modules/obstack-printf-posix (Comment): Likewise.
34916         * modules/printf-posix (Comment): Likewise.
34917         * modules/snprintf-posix (Comment): Likewise.
34918         * modules/sprintf-posix (Comment): Likewise.
34919         * modules/vasnprintf-posix (Comment): Likewise.
34920         * modules/vasprintf-posix (Comment): Likewise.
34921         * modules/vdprintf-posix (Comment): Likewise.
34922         * modules/vfprintf-posix (Comment): Likewise.
34923         * modules/vprintf-posix (Comment): Likewise.
34924         * modules/vsnprintf-posix (Comment): Likewise.
34925         * modules/vsprintf-posix (Comment): Likewise.
34926         * modules/xprintf-posix (Comment): Likewise.
34927         * modules/xvasprintf-posix (Comment): Likewise.
34928         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34929         * modules/floorf-tests (Depends-on): Likewise.
34930         * modules/round-tests (Depends-on): Likewise.
34931         * modules/roundf-tests (Depends-on): Likewise.
34932         * modules/trunc-tests (Depends-on): Likewise.
34933         * modules/truncf-tests (Depends-on): Likewise.
34934         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34935         'fprintf-posix' module is not present.
34936         * tests/test-floorf2.c (check): Likewise.
34937         * tests/test-trunc2.c (check): Likewise.
34938         * tests/test-truncf2.c (check): Likewise.
34939         * tests/test-round2.c (equal): Likewise.
34940         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34941
34942 2010-04-07  Karl Berry  <karl@gnu.org>
34943
34944         * config/srclist.txt,
34945         * config/srclistvars.sh,
34946         * config/srclist-update: doc fixes.
34947
34948 2010-04-07  Jim Meyering  <meyering@redhat.com>
34949
34950         maint.mk: add a PATH crosschecking syntax-check rule
34951         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34952         Useful if you use a test like the one in help-version (coreutils,
34953         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34954         printed by prog --version.
34955
34956 2010-04-06  Bruno Haible  <bruno@clisp.org>
34957
34958         Fix link error on mingw.
34959         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34960         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34961
34962 2010-04-06  Bruno Haible  <bruno@clisp.org>
34963
34964         Assume rmdir exists.
34965         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34966
34967 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34968
34969         doc: update users.txt
34970         * users.txt: Add gcal.
34971
34972 2010-04-06  Jim Meyering  <meyering@redhat.com>
34973
34974         init.sh: simply unset TMPDIR rather than risking env -i
34975         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34976         although it probably works fine on all Unix-based systems, some
34977         systems (Cygwin?) cannot tolerate a totally cleared environment.
34978         Suggestion from Eric Blake.
34979
34980 2010-04-06  Jim Meyering  <meyering@redhat.com>
34981
34982         init.sh: portability fix: use env's POSIX-specified -i option not -u
34983         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34984         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34985
34986 2010-04-05  Bruno Haible  <bruno@clisp.org>
34987
34988         btowc: Work around Cygwin 1.7.2 bug.
34989         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34990         does not map NUL to 0.
34991         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34992
34993 2010-04-05  Bruno Haible  <bruno@clisp.org>
34994
34995         Make the multithread modules work on Cygwin 1.7.2.
34996         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34997         imported symbols can be declared weak, so that it returns "no" on
34998         Cygwin 1.7.2.
34999
35000 2010-04-05  Bruno Haible  <bruno@clisp.org>
35001
35002         Use the module 'strncat'.
35003         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35004
35005         Tests for module 'strncat'.
35006         * modules/strncat-tests: New file.
35007         * tests/test-strncat.c: New file.
35008
35009         New module 'strncat'.
35010         * lib/string.in.h (strncat): New declaration.
35011         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35012         * m4/strncat.m4: New file, based on m4/memchr.m4.
35013         * modules/strncat: New file.
35014         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35015         is declared.
35016         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35017         REPLACE_STRNCAT.
35018         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35019         REPLACE_STRNCAT.
35020         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35021         module.
35022         * tests/test-string-c++.cc: Check signature of strncat.
35023
35024 2010-04-05  Jim Meyering  <meyering@redhat.com>
35025
35026         xstrtoumax-tests: convert to use init.sh
35027         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35028         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35029         Use Exit, not exit.
35030         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35031
35032         xstrtoimax-tests: convert to use init.sh
35033         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35034         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35035         Use Exit, not exit.
35036         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35037
35038 2010-04-05  Bruno Haible  <bruno@clisp.org>
35039
35040         sys_socket: Avoid #define replacements in C++ mode.
35041         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35042         warning to the function if possible, rather than #defining the symbol
35043         to a dysfunctional alias.
35044
35045 2010-04-05  Bruno Haible  <bruno@clisp.org>
35046
35047         fseeko: Fix C++ test error on mingw.
35048         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35049         gl_FUNC_FSEEKO.
35050         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35051         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35052         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35053         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35054
35055 2010-04-05  Bruno Haible  <bruno@clisp.org>
35056
35057         duplocale: Improve test output.
35058         * tests/test-duplocale.c (main): Print reason for skipped test.
35059
35060 2010-04-05  Bruno Haible  <bruno@clisp.org>
35061
35062         Assume rmdir exists.
35063         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35064         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35065
35066 2010-04-05  Bruno Haible  <bruno@clisp.org>
35067
35068         Fix link error on Solaris 8 with cc.
35069         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35070
35071 2010-04-05  Bruno Haible  <bruno@clisp.org>
35072
35073         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35074         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35075
35076 2010-04-05  Bruno Haible  <bruno@clisp.org>
35077
35078         vasprintf: Update documentation.
35079         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35080
35081 2010-04-05  Bruno Haible  <bruno@clisp.org>
35082
35083         ptsname: Improve test.
35084         * tests/test-ptsname.c (main): Also try the various master names of BSD
35085         systems.
35086
35087 2010-04-05  Bruno Haible  <bruno@clisp.org>
35088
35089         memchr: Avoid a possible C++ test error.
35090         * lib/string.in.h (memchr): Provide declaration if function is missing.
35091         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35092         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35094         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35095
35096 2010-04-05  Bruno Haible  <bruno@clisp.org>
35097
35098         strtok_r: Improve idiom.
35099         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35100         AC_LIBOBJ is used.
35101
35102 2010-04-05  Bruno Haible  <bruno@clisp.org>
35103
35104         strdup: Improve idiom.
35105         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35106         AC_LIBOBJ is used.
35107         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35108         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35109         when AC_LIBOBJ is used.
35110
35111 2010-04-05  Bruno Haible  <bruno@clisp.org>
35112
35113         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35114         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35115         don't set REPLACE_MBSINIT to 1.
35116         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35117         don't set REPLACE_MBRTOWC to 1.
35118         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35119         exist, don't set REPLACE_MBSRTOWCS to 1.
35120         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35121         exist, don't set REPLACE_MBSNRTOWCS to 1.
35122         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35123         don't set REPLACE_WCRTOMB to 1.
35124         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35125         exist, don't set REPLACE_WCSRTOMBS to 1.
35126         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35127         exist, don't set REPLACE_WCSNRTOMBS to 1.
35128
35129 2010-04-05  Bruno Haible  <bruno@clisp.org>
35130
35131         ldexpl: Improve idiom.
35132         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35133         make sure to set HAVE_DECL_LDEXPL to 0.
35134
35135 2010-04-05  Jim Meyering  <meyering@redhat.com>
35136
35137         xstrtol-tests: convert to use init.sh
35138         * modules/xstrtol-tests (Files): Add tests/init.sh.
35139         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35140         Use Exit, not exit.
35141         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35142
35143         atexit-tests: convert to use init.sh
35144         * modules/atexit-tests (Files): Add tests/init.sh.
35145         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35146         Use Exit, not exit.
35147         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35148
35149         init.sh: fix typo
35150         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35151
35152         init.sh: make it easier for a test script to write to the tty, ...
35153         when using automake's parallel-tests mode.
35154         * tests/init.sh (stderr_fileno_): Define overridable variable.
35155         (warn_): New function, to use it.
35156         (fail_, skip_, framework_failure_): Use warn_.
35157
35158 2010-04-04  Bruno Haible  <bruno@clisp.org>
35159
35160         btowc: Avoid warning.
35161         * lib/btowc.c: Include <stdlib.h>.
35162         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35163
35164 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35165             Bruno Haible  <bruno@clisp.org>
35166
35167         wchar: Port to NetBSD 1.5.
35168         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35169         * lib/wctype.in.h (WEOF): Likewise.
35170
35171 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35172             Bruno Haible  <bruno@clisp.org>
35173
35174         Port extended stdio to NetBSD 1.5.
35175         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35176         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35177         older.
35178
35179 2010-04-04  Bruno Haible  <bruno@clisp.org>
35180
35181         string: Remove unused substitution.
35182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35183         HAVE_DECL_STRERROR.
35184         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35185
35186 2010-04-04  Bruno Haible  <bruno@clisp.org>
35187
35188         strtod: Avoid a possible C++ test error.
35189         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35190         set REPLACE_STRTOD.
35191
35192 2010-04-04  Bruno Haible  <bruno@clisp.org>
35193
35194         strerror: Update documentation.
35195         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35196
35197 2010-04-04  Bruno Haible  <bruno@clisp.org>
35198
35199         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35200         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35201         _GL_CXXALIAS_SYS_CAST.
35202
35203 2010-04-04  Bruno Haible  <bruno@clisp.org>
35204
35205         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35206         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35207         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35208         REPLACE_FREXPL to 1.
35209         * doc/posix-functions/frexpl.texi: Update documentation.
35210
35211 2010-04-04  Bruno Haible  <bruno@clisp.org>
35212
35213         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35214         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35215
35216 2010-04-04  Bruno Haible  <bruno@clisp.org>
35217
35218         Implement nanosleep for native Windows.
35219         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35220
35221 2010-04-04  Bruno Haible  <bruno@clisp.org>
35222
35223         math: Fix some C++ test errors on Solaris 8.
35224         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35225
35226 2010-04-04  Bruno Haible  <bruno@clisp.org>
35227
35228         math: Fix some C++ test errors on Cygwin.
35229         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35230         truncl): Provide declaration if the system does not have it.
35231         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35232         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35233         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35234         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35235         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35236         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35237         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35238         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35239         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35240         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35241         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35242         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35243         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35244         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35245         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35246         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35248         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35249         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35250         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35251         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35252         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35253
35254 2010-04-04  Bruno Haible  <bruno@clisp.org>
35255
35256         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35257         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35258         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35259         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35260         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35261         * m4/isinf.m4 (gl_ISINF): Likewise.
35262         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35263
35264 2010-04-04  Bruno Haible  <bruno@clisp.org>
35265
35266         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35267         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35268
35269 2010-04-04  Bruno Haible  <bruno@clisp.org>
35270
35271         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35272         * modules/tmpfile (configure.ac): Update.
35273
35274         tmpfile: Fix C++ test error on mingw.
35275         * lib/stdio.in.h (tmpfile): New declaration.
35276         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35277         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35278         * modules/tmpfile (Depends-on): Add stdio.
35279         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35280         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35281         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35282         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35283         REPLACE_TMPFILE.
35284         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35285
35286 2010-04-04  Bruno Haible  <bruno@clisp.org>
35287
35288         ioctl: Fix C++ test error on mingw.
35289         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35290         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35291         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35292
35293 2010-04-03  Bruno Haible  <bruno@clisp.org>
35294
35295         wcwidth: Fix C++ test error on mingw.
35296         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35298         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35299
35300 2010-04-03  Bruno Haible  <bruno@clisp.org>
35301
35302         nanosleep: Fix C++ test error on mingw.
35303         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35304         * lib/time.in.h (nanosleep): Use modern idiom.
35305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35306         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35307         REPLACE_NANOSLEEP to 1.
35308         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35309         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35310
35311 2010-04-03  Bruno Haible  <bruno@clisp.org>
35312
35313         strptime: Fix C++ test error on mingw.
35314         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35315         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35316         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35317         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35318         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35319         not REPLACE_STRPTIME.
35320         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35321         REPLACE_STRPTIME.
35322
35323 2010-04-03  Bruno Haible  <bruno@clisp.org>
35324
35325         timegm: Fix C++ test error on mingw.
35326         * lib/time.in.h (timegm): Use modern idiom.
35327         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35328         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35329         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35330         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35331
35332 2010-04-03  Bruno Haible  <bruno@clisp.org>
35333
35334         timegm: Assume declaration if function exists.
35335         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35336         if it exists. Don't clobber ac_cv_func_timegm.
35337
35338 2010-04-03  Bruno Haible  <bruno@clisp.org>
35339
35340         time_r: Fix C++ test error on mingw.
35341         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35342         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35343         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35344         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35345         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35346
35347 2010-04-03  Bruno Haible  <bruno@clisp.org>
35348
35349         time_r: Minor updates.
35350         * modules/time_r (Description): Mention the provided functions.
35351         * lib/time_r.c: Don't include <string.h>.
35352         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35353         * doc/posix-functions/localtime_r.texi: Likewise.
35354
35355 2010-04-03  Bruno Haible  <bruno@clisp.org>
35356
35357         time: Fix regression introduced on 2010-03-08.
35358         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35359         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35360
35361 2010-04-03  Jim Meyering  <meyering@redhat.com>
35362
35363         maint.mk: don't silently disable project-specific syntax-check rules
35364         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35365         that they need to convert their project-specific syntax-check rules
35366         to use the new _sc_search_regexp.
35367
35368 2010-04-03  Bruno Haible  <bruno@clisp.org>
35369
35370         fchdir: Fix regression introduced on 2010-03-08.
35371         * lib/unistd.in.h (fchdir): Fix declaration.
35372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35374         REPLACE_FCHDIR.
35375         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35376         REPLACE_FCHDIR.
35377
35378 2010-04-03  Bruno Haible  <bruno@clisp.org>
35379
35380         getpagesize: Fix C++ test error on mingw.
35381         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35382         system does not declare the function.
35383         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35384         declared.
35385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35386         HAVE_DECL_GETPAGESIZE.
35387         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35388
35389 2010-04-03  Bruno Haible  <bruno@clisp.org>
35390
35391         stdio: Make C++ tests work on mingw.
35392         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35393         does not declare the function.
35394
35395 2010-04-03  Bruno Haible  <bruno@clisp.org>
35396
35397         ftello: Fix C++ test error on mingw.
35398         * lib/stdio.in.h (ftello): Use modern idiom.
35399         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35400         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35401         is missing and that it needs to be replaced.
35402         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35404         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35405
35406 2010-04-03  Bruno Haible  <bruno@clisp.org>
35407
35408         fseeko: Fix C++ test error on mingw.
35409         * lib/stdio.in.h (fseeko): Use modern idiom.
35410         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35411         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35412         is missing and that it needs to be replaced.
35413         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35415         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35416
35417 2010-04-03  Bruno Haible  <bruno@clisp.org>
35418
35419         mkstemp: Fix C++ test error on mingw.
35420         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35421         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35422         function is missing and that it needs to be replaced.
35423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35424         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35425
35426 2010-04-03  Bruno Haible  <bruno@clisp.org>
35427
35428         stpncpy: Fix C++ test error on mingw.
35429         * lib/string.in.h (stpncpy): Use modern idiom.
35430         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35431         function is missing and that it needs to be replaced.
35432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35433         REPLACE_STPNCPY.
35434         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35435
35436 2010-04-03  Bruno Haible  <bruno@clisp.org>
35437
35438         sys_stat: Fix C++ test error on mingw.
35439         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35440         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35441
35442 2010-04-03  Bruno Haible  <bruno@clisp.org>
35443
35444         pty: Update doc.
35445         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35446
35447 2010-04-03  Bruno Haible  <bruno@clisp.org>
35448
35449         unistd: Fix C++ test error on mingw.
35450         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35451
35452 2010-04-03  Bruno Haible  <bruno@clisp.org>
35453
35454         Update doc regarding mingw.
35455         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35456         * doc/glibc-functions/login_tty.texi: Likewise.
35457         * doc/glibc-functions/forkpty.texi: Likewise.
35458
35459 2010-04-03  Bruno Haible  <bruno@clisp.org>
35460
35461         stdlib: Avoid compilation failure of c-strtold on mingw.
35462         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35463
35464 2010-04-03  Bruno Haible  <bruno@clisp.org>
35465
35466         locale: Make C++ tests work on Cygwin and mingw.
35467         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35468         cannot provide the function.
35469         Reported by Simon Josefsson.
35470
35471 2010-04-03  Bruno Haible  <bruno@clisp.org>
35472
35473         localename: Port to MacOS X 10.6.
35474         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35475         memory layout of the locales in MacOS X 10.6 as well.
35476         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35477
35478 2010-04-02  Bruno Haible  <bruno@clisp.org>
35479
35480         gnulib-tool: Ensure that long-running tests are executed last.
35481         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35482         running tests after the one for the other tests.
35483
35484 2010-04-02  Bruno Haible  <bruno@clisp.org>
35485
35486         gnulib-tool: Ensure the tests in the main directory are executed first.
35487         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35488         start with the current directory.
35489
35490 2010-04-02  Bruno Haible  <bruno@clisp.org>
35491
35492         Tests for module 'havelib', moved here from GNU gettext.
35493         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35494         modifications.
35495         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35496         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35497         with modifications.
35498         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35499         modifications.
35500         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35501         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35502         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35503         with modifications.
35504         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35505         with modifications.
35506         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35507         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35508         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35509         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35510         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35511         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35512         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35513         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35514         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35515         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35516         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35517         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35518         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35519         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35520         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35521         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35522         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35523         with modifications.
35524         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35525         with modifications.
35526         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35527         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35528         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35529         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35530         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35531         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35532         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35533         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35534         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35535         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35536         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35537         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35538         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35539         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35540         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35541         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35542         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35543         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35544         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35545         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35546         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35547         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35548         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35549         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35550         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35551         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35552         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35553         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35554         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35555         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35556         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35557         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35558         * tests/havelib/rpathx/rpathx.c: New file, from
35559         gettext/autoconf-lib-link.
35560         * tests/havelib/rpathx/Makefile.am: New file, from
35561         gettext/autoconf-lib-link.
35562         * tests/havelib/rpathx/configure.ac: New file, from
35563         gettext/autoconf-lib-link with modifications.
35564         * tests/havelib/rpathy/rpathy.c: New file, from
35565         gettext/autoconf-lib-link.
35566         * tests/havelib/rpathy/Makefile.am: New file, from
35567         gettext/autoconf-lib-link.
35568         * tests/havelib/rpathy/configure.ac: New file, from
35569         gettext/autoconf-lib-link with modifications.
35570         * tests/havelib/rpathz/rpathz.c: New file, from
35571         gettext/autoconf-lib-link.
35572         * tests/havelib/rpathz/Makefile.am: New file, from
35573         gettext/autoconf-lib-link.
35574         * tests/havelib/rpathz/configure.ac: New file, from
35575         gettext/autoconf-lib-link with modifications.
35576         * tests/havelib/rpathlx/usex.c: New file, from
35577         gettext/autoconf-lib-link.
35578         * tests/havelib/rpathlx/Makefile.am: New file, from
35579         gettext/autoconf-lib-link.
35580         * tests/havelib/rpathlx/configure.ac: New file, from
35581         gettext/autoconf-lib-link with modifications.
35582         * tests/havelib/rpathly/usey.c: New file, from
35583         gettext/autoconf-lib-link.
35584         * tests/havelib/rpathly/Makefile.am: New file, from
35585         gettext/autoconf-lib-link.
35586         * tests/havelib/rpathly/configure.ac: New file, from
35587         gettext/autoconf-lib-link with modifications.
35588         * tests/havelib/rpathlz/usez.c: New file, from
35589         gettext/autoconf-lib-link.
35590         * tests/havelib/rpathlz/Makefile.am: New file, from
35591         gettext/autoconf-lib-link.
35592         * tests/havelib/rpathlz/configure.ac: New file, from
35593         gettext/autoconf-lib-link with modifications.
35594         * tests/havelib/rpathlyx/usey.c: New file, from
35595         gettext/autoconf-lib-link.
35596         * tests/havelib/rpathlyx/Makefile.am: New file, from
35597         gettext/autoconf-lib-link.
35598         * tests/havelib/rpathlyx/configure.ac: New file, from
35599         gettext/autoconf-lib-link with modifications.
35600         * tests/havelib/rpathlzyx/usez.c: New file, from
35601         gettext/autoconf-lib-link.
35602         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35603         gettext/autoconf-lib-link.
35604         * tests/havelib/rpathlzyx/configure.ac: New file, from
35605         gettext/autoconf-lib-link with modifications.
35606         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35607         with modifications.
35608
35609 2010-04-02  Bruno Haible  <bruno@clisp.org>
35610
35611         gnulib-tool: Create distributed built sources also for the tests.
35612         * gnulib-tool (func_create_testdir): Also generate distributed built
35613         sources in the tests directory.
35614
35615 2010-04-02  Bruno Haible  <bruno@clisp.org>
35616
35617         gnulib-tool: Obey user's environment variables.
35618         * gnulib-tool (func_create_testdir): When creating built sources,
35619         respect the environment variables for autoconf, automake, etc. given by
35620         the user.
35621
35622 2010-04-02  Bruno Haible  <bruno@clisp.org>
35623
35624         gnulib-tool: Provide the value of --m4-base to modules.
35625         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35626         of gl_m4_base.
35627
35628 2010-04-02  Eric Blake  <eblake@redhat.com>
35629
35630         maint.mk: fix some fallout
35631         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35632         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35633
35634 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35635
35636         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35637         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35638         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35639         (sc_cast_of_x_alloc_return_value): Likewise.
35640         (sc_cast_of_alloca_return_value): Likewise.
35641         (sc_space_tab): Likewise.
35642         (sc_prohibit_atoi_atof): Likewise.
35643         (sc_prohibit_magic_number_exit): Likewise.
35644         (sc_error_exit_success): Likewise.
35645         (sc_file_system): Likewise.
35646         (sc_prohibit_have_config_h): Likewise.
35647         (sc_require_config_h): Likewise.
35648         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35649         (sc_obsolete_symbols): Likewise.
35650         (sc_changelog): Likewise.
35651         (sc_program_name): Likewise.
35652         (sc_the_the): Likewise.
35653         (sc_trailing_blank): Likewise.
35654         (sc_two_space_separator_in_usage): Likewise.
35655         (sc_useless_cpp_parens): Likewise.
35656         (sc_GPL_version): Likewise.
35657         (sc_GFDL_version): Likewise.
35658         (sc_texinfo_acronym): Likewise.
35659         (sc_prohibit_cvs_keyword): Likewise.
35660         (sc_prohibit_stat_st_blocks): Likewise.
35661         (sc_prohibit_S_IS_definition): Likewise.
35662         (sc_redundant_const): Likewise.
35663         (sc_makefile_TAB_only_indentation): Likewise.
35664         (sc_m4_quote_check): Likewise.
35665         (sc_makefile_path_separator_check): Likewise.
35666         (sc_copyright_check): Likewise.
35667         (sc_Wundef_boolean): Likewise.
35668         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35669
35670         maint.mk: match 0 or more whitespace-before-function-call '('
35671         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35672         that have zero or two-and-more spaces between the function name
35673         and the open parenthesis.
35674         (sc_error_message_warn_fatal): Likewise.
35675         (sc_error_message_uppercase): Likewise.
35676         (sc_error_message_period): Likewise.
35677
35678 2010-03-31  Eric Blake  <eblake@redhat.com>
35679
35680         maint.mk: check for [ as well as test
35681         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35682         Based on a libvirt report by Matthias Bolte.
35683
35684         gnumakefile: don't squelch _version output
35685         * top/GNUmakefile (_version): Create one-shot dependency rather
35686         than using $(shell) when version must be regenerated.
35687         (_autoreconf): Run verbosely, by default.
35688
35689         sys_time: avoid compiler warnings
35690         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35691         unconditional, fixing regression from 2010-03-29.
35692         Reported by Simon Josefsson.
35693
35694 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35695
35696         maint.mk: s/_header_without_use/_sc_header_without_use/
35697         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35698         (sc_prohibit_assert_without_use): Use the new name.
35699         (sc_prohibit_close_stream_without_use): Likewise.
35700         (sc_prohibit_getopt_without_use): Likewise.
35701         (sc_prohibit_quotearg_without_use): Likewise.
35702         (sc_prohibit_quote_without_use): Likewise.
35703         (sc_prohibit_long_options_without_use): Likewise.
35704         (sc_prohibit_inttostr_without_use): Likewise.
35705         (sc_prohibit_ignore_value_without_use): Likewise.
35706         (sc_prohibit_error_without_use): Likewise.
35707         (sc_prohibit_xalloc_without_use): Likewise.
35708         (sc_prohibit_hash_without_use): Likewise.
35709         (sc_prohibit_hash_pjw_without_use): Likewise.
35710         (sc_prohibit_safe_read_without_use): Likewise.
35711         (sc_prohibit_argmatch_without_use): Likewise.
35712         (sc_prohibit_canonicalize_without_use): Likewise.
35713         (sc_prohibit_root_dev_ino_without_use): Likewise.
35714         (sc_prohibit_openat_without_use): Likewise.
35715         (sc_prohibit_c_ctype_without_use): Likewise.
35716         (sc_prohibit_signal_without_use): Likewise.
35717         (sc_prohibit_intprops_without_use): Likewise.
35718
35719 2010-03-30  Eric Blake  <eblake@redhat.com>
35720
35721         maint: improve module indicators
35722         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35723         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35724         columns, and avoid extra macro expansion.
35725
35726         fdopendir: work around FreeBSD bug
35727         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35728         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35729         * modules/dirent (Makefile.am): Substitute it.
35730         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35731         declaration.
35732         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35733         fix.
35734         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35735
35736 2010-03-29  Bruno Haible  <bruno@clisp.org>
35737
35738         Emit #pragma system_header after the inclusion guard, not before.
35739         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35740         guard that spans the entire file, not before. This enables an
35741         optimization in GCC's preprocessor.
35742         * lib/ctype.in.h: Likewise.
35743         * lib/dirent.in.h: Likewise.
35744         * lib/errno.in.h: Likewise.
35745         * lib/float.in.h: Likewise.
35746         * lib/getopt.in.h: Likewise.
35747         * lib/iconv.in.h: Likewise.
35748         * lib/langinfo.in.h: Likewise.
35749         * lib/locale.in.h: Likewise.
35750         * lib/math.in.h: Likewise.
35751         * lib/netdb.in.h: Likewise.
35752         * lib/netinet_in.in.h: Likewise.
35753         * lib/pty.in.h: Likewise.
35754         * lib/sched.in.h: Likewise.
35755         * lib/se-selinux.in.h: Likewise.
35756         * lib/search.in.h: Likewise.
35757         * lib/spawn.in.h: Likewise.
35758         * lib/stdarg.in.h: Likewise.
35759         * lib/stdint.in.h: Likewise.
35760         * lib/string.in.h: Likewise.
35761         * lib/strings.in.h: Likewise.
35762         * lib/sys_file.in.h: Likewise.
35763         * lib/sys_ioctl.in.h: Likewise.
35764         * lib/sys_time.in.h: Likewise.
35765         * lib/sys_times.in.h: Likewise.
35766         * lib/sys_utsname.in.h: Likewise.
35767         * lib/sys_wait.in.h: Likewise.
35768         * lib/sysexits.in.h: Likewise.
35769         * lib/wctype.in.h: Likewise.
35770
35771 2010-03-28  James Youngman  <jay@gnu.org>
35772
35773         save-cwd: don't leak a file descriptor when the caller execs.
35774         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35775         saved file descriptor.
35776         * modules/save-cwd (Depends-on): Depend on cloexec.
35777
35778 2010-03-29  Bruno Haible  <bruno@clisp.org>
35779
35780         Remove vestiges of fts-lgpl module.
35781         * lib/fts_.h: Assume GNULIB_FTS is 1.
35782         * lib/fts.c: Likewise.
35783         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35784
35785 2010-03-28  Bruno Haible  <bruno@clisp.org>
35786
35787         Fix definition of tests witness macro.
35788         * gnulib-tool (func_import): Fix definition of witness macro.
35789
35790 2010-03-28  Bruno Haible  <bruno@clisp.org>
35791
35792         Fix ioctl's protoype on glibc systems.
35793         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35794         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35795         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35796         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35797         signature. If not, arrange to replace the ioctl function.
35798         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35799         REPLACE_IOCTL.
35800         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35801         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35802         Reported by Ludovic Courtès <ludo@gnu.org>.
35803
35804 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35805
35806         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35807         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35808         made it so grep -r --include=GLOB* ... did not work.
35809
35810 2010-03-26  Jim Meyering  <meyering@redhat.com>
35811             Eric Blake  <eblake@redhat.com>
35812
35813         maint.mk: prohibit use of test's -o and -a operators
35814         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35815
35816 2010-03-28  Bruno Haible  <bruno@clisp.org>
35817
35818         Remove unused GNULIB_XYZ macro definitions.
35819         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35820         invocation.
35821
35822 2010-03-28  Bruno Haible  <bruno@clisp.org>
35823
35824         Mark privileged tests modules.
35825         * modules/idpriv-drop-tests (Status): New section.
35826         * modules/idpriv-droptemp-tests (Status): New section.
35827
35828 2010-03-28  Bruno Haible  <bruno@clisp.org>
35829
35830         Split C++ tests into separate tests modules.
35831         * modules/dirent-c++-tests: New file, extracted from
35832         modules/dirent-tests.
35833         * modules/dirent-tests: Depend on it.
35834         * modules/fcntl-h-c++-tests: New file, extracted from
35835         modules/fcntl-h-tests.
35836         * modules/fcntl-h-tests: Depend on it.
35837         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35838         * modules/glob-tests: Depend on it.
35839         * modules/iconv-h-c++-tests: New file, extracted from
35840         modules/iconv-h-tests.
35841         * modules/iconv-h-tests: Depend on it.
35842         * modules/langinfo-c++-tests: New file, extracted from
35843         modules/langinfo-tests.
35844         * modules/langinfo-tests: Depend on it.
35845         * modules/locale-c++-tests: New file, extracted from
35846         modules/locale-tests.
35847         * modules/locale-tests: Depend on it.
35848         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35849         * modules/math-tests: Depend on it.
35850         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35851         * modules/pty-tests: Depend on it.
35852         * modules/search-c++-tests: New file, extracted from
35853         modules/search-tests.
35854         * modules/search-tests: Depend on it.
35855         * modules/signal-c++-tests: New file, extracted from
35856         modules/signal-tests.
35857         * modules/signal-tests: Depend on it.
35858         * modules/spawn-c++-tests: New file, extracted from
35859         modules/spawn-tests.
35860         * modules/spawn-tests: Depend on it.
35861         * modules/stdio-c++-tests: New file, extracted from
35862         modules/stdio-tests.
35863         * modules/stdio-tests: Depend on it.
35864         * modules/stdlib-c++-tests: New file, extracted from
35865         modules/stdlib-tests.
35866         * modules/stdlib-tests: Depend on it.
35867         * modules/string-c++-tests: New file, extracted from
35868         modules/string-tests.
35869         * modules/string-tests: Depend on it.
35870         * modules/sys_ioctl-c++-tests: New file, extracted from
35871         modules/sys_ioctl-tests.
35872         * modules/sys_ioctl-tests: Depend on it.
35873         * modules/sys_select-c++-tests: New file, extracted from
35874         modules/sys_select-tests.
35875         * modules/sys_select-tests: Depend on it.
35876         * modules/sys_socket-c++-tests: New file, extracted from
35877         modules/sys_socket-tests.
35878         * modules/sys_socket-tests: Depend on it.
35879         * modules/sys_stat-c++-tests: New file, extracted from
35880         modules/sys_stat-tests.
35881         * modules/sys_stat-tests: Depend on it.
35882         * modules/sys_time-c++-tests: New file, extracted from
35883         modules/sys_time-tests.
35884         * modules/sys_time-tests: Depend on it.
35885         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35886         * modules/time-tests: Depend on it.
35887         * modules/unistd-c++-tests: New file, extracted from
35888         modules/unistd-tests.
35889         * modules/unistd-tests: Depend on it.
35890         * modules/wchar-c++-tests: New file, extracted from
35891         modules/wchar-tests.
35892         * modules/wchar-tests: Depend on it.
35893         * modules/wctype-c++-tests: New file, extracted from
35894         modules/wctype-tests.
35895         * modules/wctype-tests: Depend on it.
35896         Reported by Simon Josefsson.
35897
35898 2010-03-28  Bruno Haible  <bruno@clisp.org>
35899
35900         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35901         * gnulib-tool (func_exists_module): New function, extracted from
35902         func_verify_module.
35903         (func_verify_module): Use it.
35904         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35905         'foo' only if 'foo' exists.
35906         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35907         module.
35908
35909 2010-03-28  Bruno Haible  <bruno@clisp.org>
35910
35911         gnulib-tool: Add support for special categories of tests.
35912         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35913         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35914         (func_usage): Document them.
35915         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35916         inc_unportable_tests, inc_all_tests): New variables.
35917         (func_acceptable): Consider these variables.
35918         (func_modules_transitive_closure): Make it work when the 'Status' field
35919         consists of multiple words.
35920         (func_import): Store and restore the values of inc_cxx_tests,
35921         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35922         inc_all_tests in gnulib-comp.m4.
35923         (func_create_testdir): Set inc_all_tests to true.
35924         * doc/gnulib.texi (Extra tests modules): New section.
35925         Suggested by Jim Meyering.
35926
35927 2010-03-28  Bruno Haible  <bruno@clisp.org>
35928
35929         ansi-c++-opt: Allow turning off the C++ build by default.
35930         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35931         gl_CXX_CHOICE_DEFAULT_NO is defined.
35932         Requested by Eric Blake.
35933
35934 2010-03-28  Bruno Haible  <bruno@clisp.org>
35935
35936         unistd: Avoid #define replacements in C++ mode.
35937         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35938         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35939         setsockopt, shutdown, select): In C++, attach a warning to the function
35940         if possible, rather than #defining the symbol to a dysfunctional alias.
35941         Reported by John W. Eaton <jwe@gnu.org>.
35942
35943 2010-03-28  Bruno Haible  <bruno@clisp.org>
35944
35945         Fix link errors on mingw.
35946         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35947         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35948         $(LIBSOCKET).
35949         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35950         $(LIBSOCKET).
35951
35952 2010-03-28  Bruno Haible  <bruno@clisp.org>
35953             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35954
35955         lib-ignore: Determine different options for different compilers.
35956         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35957         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35958         Add comments.
35959         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35960         * NEWS: Mention the change.
35961
35962 2010-03-27  Bruno Haible  <bruno@clisp.org>
35963
35964         Remove unused GNULIB_XYZ macro definitions.
35965         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35966         * modules/fseek (configure.ac): Likewise.
35967         * modules/ioctl (configure.ac): Likewise.
35968         * modules/open (configure.ac): Likewise.
35969         * modules/stdlib-safer (configure.ac): Likewise.
35970
35971 2010-03-27  Bruno Haible  <bruno@clisp.org>
35972
35973         Add a remark about certain modules.
35974         * modules/malloc (Comment): New section.
35975         * modules/realloc (Comment): Likewise.
35976         * modules/sigpipe (Comment): Likewise.
35977
35978 2010-03-27  Bruno Haible  <bruno@clisp.org>
35979
35980         Resolve conflict between the two kinds of module indicators.
35981         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35982         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35983         * modules/canonicalize (configure.ac): Invoke
35984         gl_MODULE_INDICATOR_FOR_TESTS.
35985         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35986         GNULIB_XYZ.
35987         * tests/test-dirent-c++.cc: Likewise.
35988         * tests/test-dirent-safer.c: Likewise.
35989         * tests/test-dup2.c: Likewise.
35990         * tests/test-fchdir.c: Likewise.
35991         * tests/test-fcntl-h-c++.cc: Likewise.
35992         * tests/test-getopt.c: Likewise.
35993         * tests/test-getopt.h: Likewise.
35994         * tests/test-langinfo-c++.cc: Likewise.
35995         * tests/test-locale-c++.cc: Likewise.
35996         * tests/test-math-c++.cc: Likewise.
35997         * tests/test-pty-c++.cc: Likewise.
35998         * tests/test-search-c++.cc: Likewise.
35999         * tests/test-signal-c++.cc: Likewise.
36000         * tests/test-spawn-c++.cc: Likewise.
36001         * tests/test-stdio-c++.cc: Likewise.
36002         * tests/test-stdlib-c++.cc: Likewise.
36003         * tests/test-string-c++.cc: Likewise.
36004         * tests/test-sys_ioctl-c++.cc: Likewise.
36005         * tests/test-sys_select-c++.cc: Likewise.
36006         * tests/test-sys_socket-c++.cc: Likewise.
36007         * tests/test-sys_stat-c++.cc: Likewise.
36008         * tests/test-sys_time-c++.cc: Likewise.
36009         * tests/test-time-c++.cc: Likewise.
36010         * tests/test-unistd-c++.cc: Likewise.
36011         * tests/test-wchar-c++.cc: Likewise.
36012         * tests/uninorm/test-u8-nfc.c: Likewise.
36013         * tests/uninorm/test-u8-nfd.c: Likewise.
36014         * tests/uninorm/test-u8-nfkc.c: Likewise.
36015         * tests/uninorm/test-u8-nfkd.c: Likewise.
36016         * tests/uninorm/test-u16-nfc.c: Likewise.
36017         * tests/uninorm/test-u16-nfd.c: Likewise.
36018         * tests/uninorm/test-u16-nfkc.c: Likewise.
36019         * tests/uninorm/test-u16-nfkd.c: Likewise.
36020         * tests/uninorm/test-u32-nfc.c: Likewise.
36021         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36022         * tests/uninorm/test-u32-nfd.c: Likewise.
36023         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36024         * tests/uninorm/test-u32-nfkc.c: Likewise.
36025         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36026         * tests/uninorm/test-u32-nfkd.c: Likewise.
36027         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36028         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36029
36030 2010-03-27  Bruno Haible  <bruno@clisp.org>
36031
36032         Distinguish two kinds of module indicators.
36033         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36034         gl_MODULE_INDICATOR.
36035         (gl_MODULE_INDICATOR): New macro.
36036         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36037         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36038         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36039         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36040         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36041         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36042         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36043         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36044         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36045         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36046         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36047         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36048         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36049         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36050         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36051         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36052         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36053         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36054         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36055         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36056         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36057         * modules/cloexec (configure.ac): Likewise.
36058         * modules/getopt-gnu (configure.ac): Likewise.
36059         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36060         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36061         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36062         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36063
36064 2010-03-27  Bruno Haible  <bruno@clisp.org>
36065
36066         New module description field 'Comment'.
36067         * gnulib-tool: New option --extract-comment.
36068         (func_usage): Document it.
36069         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36070         (func_get_comment): New function.
36071         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36072
36073 2010-03-27  Bruno Haible  <bruno@clisp.org>
36074
36075         Addendum to 2010-02-07 commit.
36076         * gnulib-tool (func_usage): Document --extract-applicability option.
36077
36078 2010-03-27  Bruno Haible  <bruno@clisp.org>
36079
36080         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36081         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36082         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36083         rather than link errors.
36084
36085 2010-03-27  Bruno Haible  <bruno@clisp.org>
36086
36087         Avoid side effects from tests-related modules on the compilation of lib.
36088         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36089         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36090         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36091         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36092         macro.
36093         (func_import): Define a witness macro. Assign it a value that depends
36094         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36095         tests-related modules.
36096         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36097         Reported by Jim Meyering.
36098
36099 2010-03-27  Bruno Haible  <bruno@clisp.org>
36100
36101         Factorize common .m4 code.
36102         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36103         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36104         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36105         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36106         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36107         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36108         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36109         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36110         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36111         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36112         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36113         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36114         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36115         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36116         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36117         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36118         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36119         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36121         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36122         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36123         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36124         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36125         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36126         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36127         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36128         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36129         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36130         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36131         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36132         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36133         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36134
36135 2010-03-27  Bruno Haible  <bruno@clisp.org>
36136
36137         Fix a compilation error on Cygwin with g++ >= 4.3.
36138         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36139         if it is undefined or if we alias it to chmod.
36140         (lstat): Don't warn about the use of this function if it is undefined
36141         or if we alias it to stat.
36142         Reported by Simon Josefsson.
36143
36144 2010-03-27  Bruno Haible  <bruno@clisp.org>
36145
36146         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36147         * modules/getlogin (configure.ac): Update.
36148
36149         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36150         * modules/getlogin_r (configure.ac): Update.
36151
36152         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36153         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36154         * modules/inet_ntop (configure.ac): Update.
36155
36156         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36157         * modules/inet_pton (configure.ac): Update.
36158
36159         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36160         * modules/mbslen (configure.ac): Update.
36161
36162         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36163         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36164         * modules/forkpty (configure.ac): Update.
36165         * modules/openpty (configure.ac): Update.
36166
36167 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36168
36169         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36170         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36171
36172 2010-03-25  Eric Blake  <eblake@redhat.com>
36173
36174         maint: use pragma consistently across replacement headers
36175         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36176         * lib/dirent.in.h (system_header): Likewise.
36177         * lib/errno.in.h (system_header): Likewise.
36178         * lib/float.in.h (system_header): Likewise.
36179         * lib/getopt.in.h (system_header): Likewise.
36180         * lib/iconv.in.h (system_header): Likewise.
36181         * lib/inttypes.in.h (system_header): Likewise.
36182         * lib/langinfo.in.h (system_header): Likewise.
36183         * lib/locale.in.h (system_header): Likewise.
36184         * lib/math.in.h (system_header): Likewise.
36185         * lib/netdb.in.h (system_header): Likewise.
36186         * lib/netinet_in.in.h (system_header): Likewise.
36187         * lib/pty.in.h (system_header): Likewise.
36188         * lib/sched.in.h (system_header): Likewise.
36189         * lib/se-selinux.in.h (system_header): Likewise.
36190         * lib/search.in.h (system_header): Likewise.
36191         * lib/spawn.in.h (system_header): Likewise.
36192         * lib/stdarg.in.h (system_header): Likewise.
36193         * lib/stdint.in.h (system_header): Likewise.
36194         * lib/string.in.h (system_header): Likewise.
36195         * lib/strings.in.h (system_header): Likewise.
36196         * lib/sys_file.in.h (system_header): Likewise.
36197         * lib/sys_ioctl.in.h (system_header): Likewise.
36198         * lib/sys_socket.in.h (system_header): Likewise.
36199         * lib/sys_times.in.h (system_header): Likewise.
36200         * lib/sys_utsname.in.h (system_header): Likewise.
36201         * lib/sys_wait.in.h (system_header): Likewise.
36202         * lib/sysexits.in.h (system_header): Likewise.
36203         * lib/unistd.in.h (system_header): Likewise.
36204         * lib/wctype.in.h (system_header): Likewise.
36205
36206         arpa/inet: fix mingw compilation warning
36207         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36208         Reported by Matthew Bolte.
36209
36210 2010-03-25  Bruno Haible  <bruno@clisp.org>
36211
36212         Avoid collision between gnulib wrapper and libintl wrapper.
36213         * lib/printf.c (printf): Don't define if a printf wrapper is already
36214         defined in intl/printf.c.
36215         Reported by Michel Boaventura <michel@michelboaventura.com>.
36216
36217 2010-03-25  Bruno Haible  <bruno@clisp.org>
36218
36219         Use ANSI C.
36220         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36221
36222 2010-03-25  Bruno Haible  <bruno@clisp.org>
36223
36224         Minor formatting changes.
36225         * lib/acosl.c: Insert space before function argument list.
36226         * lib/argz.c: Likewise.
36227         * lib/asinl.c: Likewise.
36228         * lib/expl.c: Likewise.
36229         * lib/gen-uni-tables.c: Likewise.
36230         * lib/gettext.h: Likewise.
36231         * lib/glthread/lock.h: Likewise.
36232         * lib/tanl.c: Likewise.
36233         * lib/uniname/uniname.c: Likewise.
36234         * tests/test-idpriv-drop.c: Likewise.
36235         * tests/test-idpriv-droptemp.c: Likewise.
36236         * tests/test-lock.c: Likewise.
36237         * tests/test-tls.c: Likewise.
36238         * lib/argp-help.c: Insert space before function-like macro argument
36239         list.
36240         * lib/memcmp.c: Likewise.
36241         * tests/test-base64.c: Likewise.
36242         * lib/localename.c: Insert space before sizeof's argument list.
36243         * lib/safe-alloc.h: Likewise.
36244         * lib/file-set.h: Insert space before macro argument list.
36245         * tests/test-argp.c: Likewise.
36246         * lib/argp-namefrob.h: Insert space before function parameter list.
36247         * lib/getaddrinfo.c: Likewise.
36248         * lib/netdb.in.h: Likewise.
36249         * lib/parse-duration.h: Likewise.
36250         * lib/parse-duration.c: Likewise.
36251         * lib/poll.c: Likewise.
36252         * lib/select.c: Likewise.
36253         * lib/trim.h: Likewise.
36254         * tests/test-usleep.c: Likewise.
36255         * lib/ldexpl.c: Insert space before function parameter list and before
36256         function argument list.
36257         * lib/logl.c: Likewise.
36258         * lib/sqrtl.c: Likewise.
36259         * lib/trim.c: Likewise.
36260         * lib/cosl.c: Use GNU style indentation. Insert space before function
36261         argument list.
36262         * lib/sinl.c: Likewise.
36263         * lib/tsearch.c: Insert space after 'for'.
36264         Reported by Jim Meyering.
36265
36266 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36267
36268         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36269         config header before grepping, as it's not present before
36270         autoreconf/configure are run.  Reported by Simon Josefsson.
36271
36272 2010-03-23  Bruno Haible  <bruno@clisp.org>
36273
36274         pt_chown: Make it work with automake < 1.11.
36275         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36276         Reported by Simon Josefsson.
36277
36278 2010-03-23  Bruno Haible  <bruno@clisp.org>
36279
36280         pt_chown: Don't depend on GPLed modules.
36281         * lib/pt_chown.c: Don't include idpriv.h.
36282         (main): Don't drop privileges.
36283         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36284         Reported by Simon Josefsson.
36285
36286 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36287
36288         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36289         suggestions from karl@freefriends.org (Karl Berry).
36290
36291 2010-03-22  Eric Blake  <eblake@redhat.com>
36292
36293         gethostname: further tweaks
36294         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36295         are overriding gethostname.
36296         Suggested by Bruno Haible.
36297
36298 2010-03-21  Bruno Haible  <bruno@clisp.org>
36299
36300         Fix comments.
36301         * lib/forkpty.c (rpl_forkpty): Fix comment.
36302         * lib/openpty.c (rpl_openpty): Likewise.
36303         Reported by Eric Blake.
36304
36305 2010-03-22  Eric Blake  <eblake@redhat.com>
36306
36307         gethostname: fix build on mingw
36308         * lib/unistd.in.h (includes): Work around fact that mingw
36309         <winsock2.h> re-includes <unistd.h>, by avoiding any
36310         redeclarations if we are being included by <winsock2.h>.
36311         Reported by Matthias Bolte.
36312
36313 2010-03-21  Bruno Haible  <bruno@clisp.org>
36314
36315         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36316         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36317         modifications.
36318         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36319         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36320         provide the replacement.
36321         * modules/forkpty (Depends-on): Add openpty, login_tty.
36322         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36323         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36324         * doc/glibc-functions/forkpty.texi: More supported platforms.
36325         * config/srclist.txt: Add forkpty.c (commented).
36326
36327 2010-03-21  Bruno Haible  <bruno@clisp.org>
36328
36329         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36330         (Makefile.am): Verify that PTY_LIB is defined.
36331
36332         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36333
36334 2010-03-21  Bruno Haible  <bruno@clisp.org>
36335
36336         Tests for module 'login_tty'.
36337         * modules/login_tty-tests: New file.
36338         * tests/test-login_tty.c: New file.
36339
36340         New module 'login_tty'.
36341         * lib/login_tty.c: New file.
36342         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36343         * modules/login_tty: New file.
36344         * doc/glibc-functions/login_tty.texi: Mention the new module.
36345
36346 2010-03-21  Bruno Haible  <bruno@clisp.org>
36347
36348         login_tty: Documentation.
36349         * doc/glibc-functions/login_tty.texi: New file.
36350         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36351
36352 2010-03-21  Bruno Haible  <bruno@clisp.org>
36353
36354         pty: Consistent macro naming.
36355         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36356         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36357         * modules/pty (configure.ac): Update.
36358
36359 2010-03-21  Bruno Haible  <bruno@clisp.org>
36360
36361         Tests for openpty: Make stricter.
36362         * tests/test-openpty.c (main): Add test of canonical processing and
36363         erase.
36364         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36365
36366         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36367         * lib/openpty.c (openpty): New replacement function.
36368         * lib/pty.in.h: Include <termios.h>.
36369         (openpty): Update declaration. Add comments.
36370         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36371         is not declared, arrange to provide the replacement. Check for _getpty
36372         and posix_openpt.
36373         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36374         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36375         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36376         * modules/pty-tests (test_pty_c___LDADD): New variable.
36377         * doc/glibc-functions/openpty.texi: More supported platforms.
36378
36379 2010-03-21  Bruno Haible  <bruno@clisp.org>
36380
36381         setenv: Tweaks.
36382         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36383         the test program.
36384         * doc/posix-functions/setenv.texi: Update platforms list.
36385
36386 2010-03-21  Bruno Haible  <bruno@clisp.org>
36387
36388         New module 'unlockpt'.
36389         * lib/unlockpt.c: New file, from glibc with modifications.
36390         * m4/unlockpt.m4: New file.
36391         * modules/unlockpt: New file.
36392         * lib/stdlib.in.h (unlockpt): New declaration.
36393         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36394         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36395         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36396         HAVE_UNLOCKPT.
36397         * doc/posix-functions/unlockpt.texi: Mention the new module.
36398         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36399         * config/srclist.txt: Add unlockpt.c (commented).
36400
36401 2010-03-21  Jim Meyering  <meyering@redhat.com>
36402
36403         maint.mk: prohibit inclusion of "intprops.h" without use
36404         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36405
36406 2010-03-21  Bruno Haible  <bruno@clisp.org>
36407
36408         New module 'grantpt'.
36409         * lib/grantpt.c: New file, from glibc with modifications.
36410         * m4/grantpt.m4: New file.
36411         * modules/grantpt: New file.
36412         * lib/stdlib.in.h (grantpt): New declaration.
36413         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36414         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36415         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36416         HAVE_GRANTPT.
36417         * doc/posix-functions/grantpt.texi: Mention the new module.
36418         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36419         * config/srclist.txt: Add grantpt.c (commented).
36420
36421 2010-03-21  Bruno Haible  <bruno@clisp.org>
36422
36423         New module 'pt_chown'.
36424         * lib/pt_chown.c: New file, from glibc with modifications.
36425         * lib/pty-private.h: New file, from glibc with modifications.
36426         * modules/pt_chown: New file.
36427         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36428
36429 2010-03-21  Bruno Haible  <bruno@clisp.org>
36430
36431         Tests for module 'ptsname'.
36432         * modules/ptsname-tests: New file.
36433         * tests/test-ptsname.c: New file.
36434
36435         New module 'ptsname'.
36436         * lib/ptsname.c: New file, from glibc with modifications.
36437         * m4/ptsname.m4: New file.
36438         * modules/ptsname: New file.
36439         * lib/stdlib.in.h (ptsname): New declaration.
36440         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36441         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36442         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36443         HAVE_PTSNAME.
36444         * doc/posix-functions/ptsname.texi: Mention the new module.
36445         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36446         * config/srclist.txt: Add ptsname.c (commented).
36447
36448 2010-03-21  Bruno Haible  <bruno@clisp.org>
36449
36450         Tests for module 'ttyname_r'.
36451         * modules/ttyname_r-tests: New file.
36452         * tests/test-ttyname_r.c: New file.
36453
36454         New module 'ttyname_r'.
36455         * lib/ttyname_r.c: New file.
36456         * m4/ttyname_r.m4: New file.
36457         * modules/ttyname_r: New file.
36458         * lib/unistd.in.h (ttyname_r): New declaration.
36459         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36460         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36461         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36462         HAVE_TTYNAME_R.
36463         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36464         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36465
36466 2010-03-20  Bruno Haible  <bruno@clisp.org>
36467
36468         signal: Undefine macro definitions in C++ mode.
36469         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36470         sigfillset): Undefine macro definitions from the system header in C++
36471         mode.
36472         Reported by John W. Eaton <jwe@gnu.org>.
36473
36474 2010-03-20  Bruno Haible  <bruno@clisp.org>
36475
36476         Ensure no #include statements inside extern "C" { ... }.
36477         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36478         contain #include statements.
36479         * lib/time.in.h: Likewise.
36480
36481 2010-03-20  Bruno Haible  <bruno@clisp.org>
36482
36483         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36484         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36485         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36486         Reported by John W. Eaton <jwe@gnu.org>.
36487
36488 2010-03-20  Bruno Haible  <bruno@clisp.org>
36489
36490         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36491         Reported by Jim Meyering.
36492
36493 2010-03-20  Bruno Haible  <bruno@clisp.org>
36494
36495         pipe: Set errno upon failure.
36496         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36497         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36498         errno value in error message.
36499
36500 2010-03-20  Bruno Haible  <bruno@clisp.org>
36501             Jim Meyering  <meyering@redhat.com>
36502
36503         lchown: Avoid "unused variable" warning.
36504         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36505
36506 2010-03-20  Bruno Haible  <bruno@clisp.org>
36507
36508         Work around unlink() bug on MacOS X 10.5.6.
36509         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36510         attempting to unlink a parent directory.
36511         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36512         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36513         activate for the replacement function.
36514         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36515
36516 2010-03-20  Bruno Haible  <bruno@clisp.org>
36517
36518         Fix link errors on Solaris 8.
36519         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36520         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36521
36522 2010-03-19  Jim Meyering  <meyering@redhat.com>
36523
36524         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36525         The _LIBC implementation of build_range_exp correctly honors the
36526         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36527         However, the non-_LIBC implementation would ignore that syntax-bit
36528         flag and return REG_ERANGE unconditionally.
36529         This change makes it honor that flag.
36530         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36531         Make two pointer parameters "const".
36532         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36533         (parse_bracket_exp): Update caller.
36534
36535         regex.m4: correct the reversed range endpoint ([b-a]) test
36536         * m4/regex.m4: When requiring that [b-a] evoke failure,
36537         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36538         test pass once again for x86-based systems.
36539
36540 2010-03-19  Bruno Haible  <bruno@clisp.org>
36541
36542         scandir: Fix link error on Solaris 8.
36543         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36544         macros.
36545
36546 2010-03-19  Bruno Haible  <bruno@clisp.org>
36547
36548         getusershell: Fix documentation.
36549         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36550         module.
36551         * doc/glibc-functions/setusershell.texi: Likewise.
36552
36553         getusershell: Provide declaration, missing on Solaris 9.
36554         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36555         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36556         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36557         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36559         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36560         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36561         HAVE_GETUSERSHELL.
36562         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36563
36564 2010-03-19  Bruno Haible  <bruno@clisp.org>
36565
36566         wctype: Provide iswblank function.
36567         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36568         exists and is fine.
36569         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36570         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36571         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36572         * doc/posix-functions/iswblank.texi: Update.
36573
36574 2010-03-19  Bruno Haible  <bruno@clisp.org>
36575
36576         Tests of module 'pty' in C++ mode.
36577         * modules/pty-tests: New file.
36578         * tests/test-pty-c++.cc: New file.
36579         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36580
36581 2010-03-19  Eric Blake  <eblake@redhat.com>
36582
36583         logb: fix documentation
36584         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36585         1.5 declaration bug.
36586
36587         forkpty, openpty: prefer glibc's const-safe prototype
36588         * lib/forkpty.c (rpl_forkpty): New file.
36589         * lib/openpty.c (rpl_openpty): Likewise.
36590         * modules/forkpty (Files): Distribute it.
36591         * modules/openpty (Files): Likewise.
36592         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36593         check...
36594         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36595         replacement for for non-const BSD signature.
36596         * modules/pty (Makefile.am): Substitute witnesses.
36597         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36598         * tests/test-forkpty.c: Update signature check.
36599         * tests/test-openpty.c: Likewise.
36600         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36601         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36602
36603         forkpty, openpty: split functions into new modules
36604         * modules/pty (Makefile.am): Substitute new witnesses.
36605         (Libraries): Move library detection...
36606         * modules/forkpty: ...into new module.
36607         * modules/openpty: Another new module.
36608         * modules/pty-tests: Rename and split...
36609         * modules/forkpty-tests: ...to this...
36610         * modules/openpty-tests: ...and this.
36611         * tests/test-pty.c: Rename and split...
36612         * tests/test-forkpty.c: ...to this...
36613         * tests/test-openpty.c: ...and this.
36614         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36615         (gl_PTY): Split library searching...
36616         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36617         (gl_FORKPTY, gl_OPENPTY): New macros.
36618         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36619         * NEWS: Mention the split.
36620         * MODULES.html.sh (Misc): Document the modules.
36621         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36622         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36623
36624         pty: improve replacement header
36625         * lib/pty.in.h: New file.
36626         * modules/pty (Files): Ship it.
36627         (Makefile.am): Always build replacement.
36628         * m4/pty.m4: Rename...
36629         * m4/pty_h.m4: ...to this.
36630         (gl_PTY): Modernize setting of witness macros; update check of
36631         forkpty to take proper advantage of cache.
36632         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36633
36634         getopt: avoid compiler warning
36635         * lib/getopt.c (attribute_hidden): Remove unused macro.
36636
36637 2010-03-18  Bruno Haible  <bruno@clisp.org>
36638
36639         Fix link errors on Solaris 8.
36640         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36641         * modules/search-tests (test_search_c___LDADD): Likewise.
36642         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36643         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36644         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36645         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36646         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36647         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36648         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36649
36650 2010-03-18  Bruno Haible  <bruno@clisp.org>
36651
36652         Fix bug introduced on 2010-03-14.
36653         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36654         (gl_SPAWN_H): Require it.
36655         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36656         Reported by Simon Josefsson.
36657
36658 2010-03-18  Bruno Haible  <bruno@clisp.org>
36659
36660         Fix typo introduced on 2009-12-31.
36661         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36662         posix_spawn_file_actions_adddup2.
36663
36664 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36665         and Eric Blake  <eblake@redhat.com>
36666
36667         test-vc-list-files-git: make more robust
36668         * tests/test-vc-list-files-git.sh: Unset problematic environment
36669         variables.  Chain commands together.
36670
36671 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36672
36673         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36674         `AC_CHECK_DECL' invocation.
36675
36676 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36677
36678         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36679         appears before executable statements. Suggested by Petr Sumbera
36680         <Petr.Sumbera@Sun.COM>.
36681
36682 2010-03-14  Bruno Haible  <bruno@clisp.org>
36683
36684         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36685         portability problems. Instead use a simpler test.
36686         (main): Check that invalid arguments are rejected only on Linux.
36687
36688 2010-03-14  Bruno Haible  <bruno@clisp.org>
36689
36690         Fix bug introduced on 2009-12-31.
36691         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36692         gl_PREREQ_SYS_H_WINSOCK2 always.
36693         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36694         SYS_SOCKET_H variable.
36695         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36696         Update comments.
36697         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36698         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36699         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36700         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36701         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36702
36703 2010-03-14  Bruno Haible  <bruno@clisp.org>
36704
36705         Fix values returned by sinl, cosl.
36706         * lib/trigl.h: Add specification comments.
36707         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36708         that combines the values from the precomputed table with the values of
36709         the Chebyshev polynomials.
36710
36711 2010-03-14  Bruno Haible  <bruno@clisp.org>
36712
36713         Fix compilation error when modules 'posix_spawn[p]' are not used.
36714         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36715         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36716
36717 2010-03-14  Bruno Haible  <bruno@clisp.org>
36718
36719         Fix compilation error on mingw when module 'time_r' is not used.
36720         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36721         is 1.
36722         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36723         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36724         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36725         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36726
36727 2010-03-14  Bruno Haible  <bruno@clisp.org>
36728
36729         Fix compilation error with Sun C.
36730         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36731         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36732         instead of GCC specific ULONG_LONG_MAX.
36733         * lib/xstrtoll.c: Likewise.
36734         * lib/xstrtoull.c: Likewise.
36735
36736 2010-03-13  Bruno Haible  <bruno@clisp.org>
36737
36738         Allow the user to disable C++ code and tests.
36739         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36740         (gl_PROG_ANSI_CXX): Require it.
36741
36742 2010-03-13  Bruno Haible  <bruno@clisp.org>
36743
36744         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36745         cases.
36746
36747 2010-03-13  Bruno Haible  <bruno@clisp.org>
36748
36749         Test that gnulib does not break the standard C++ headers.
36750         * tests/test-locale-c++2.cc: New file.
36751         * modules/locale-tests (Files): Add it.
36752         (Makefile.am): Compile it for test-locale-c++.
36753         * tests/test-math-c++2.cc: New file.
36754         * modules/math-tests (Files): Add it.
36755         (Makefile.am): Compile it for test-math-c++.
36756         * tests/test-signal-c++2.cc: New file.
36757         * modules/signal-tests (Files): Add it.
36758         (Makefile.am): Compile it for test-signal-c++.
36759         * tests/test-stdio-c++2.cc: New file.
36760         * modules/stdio-tests (Files): Add it.
36761         (Makefile.am): Compile it for test-stdio-c++.
36762         * tests/test-stdlib-c++2.cc: New file.
36763         * modules/stdlib-tests (Files): Add it.
36764         (Makefile.am): Compile it for test-stdlib-c++.
36765         * tests/test-string-c++2.cc: New file.
36766         * modules/string-tests (Files): Add it.
36767         (Makefile.am): Compile it for test-string-c++.
36768         * tests/test-time-c++2.cc: New file.
36769         * modules/time-tests (Files): Add it.
36770         (Makefile.am): Compile it for test-time-c++.
36771         Reported by John W. Eaton <jwe@gnu.org>.
36772
36773 2010-03-13  Bruno Haible  <bruno@clisp.org>
36774
36775         * gnulib-tool (func_usage): Clarify which options are available for
36776         --create-testdir and --create-megatestdir.
36777
36778 2010-03-13  Bruno Haible  <bruno@clisp.org>
36779
36780         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36781         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36782         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36783         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36784         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36785         when appropriate.
36786         Reported by Jim Meyering.
36787
36788 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36789
36790         * gnulib-tool (func_import): Explain origin of code.
36791
36792 2010-03-12  Bruno Haible  <bruno@clisp.org>
36793
36794         Fix problem with automake's definition of CXXLINK.
36795         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36796         Reported by Simon Josefsson and Ludovic Courtès.
36797
36798 2010-03-12  Bruno Haible  <bruno@clisp.org>
36799
36800         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36801         stable releases.
36802
36803 2010-03-11  Bruno Haible  <bruno@clisp.org>
36804
36805         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36806         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36807         whether the system provides one variant or multiple variants of the
36808         function.
36809         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36810         C++ compilers.
36811         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36812         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36813         Reported by Jim Meyering.
36814
36815 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36816
36817         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36818
36819 2010-03-08  Bruno Haible  <bruno@clisp.org>
36820
36821         gnulib-tool: Add support for --libtool in --create-testdir.
36822         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36823         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36824
36825 2010-03-08  Eric Blake  <eblake@redhat.com>
36826
36827         gnulib-tool.texi: mention possibility of git submodule
36828         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36829         submodules.
36830         * doc/.gitignore: Ignore another generated file.
36831
36832 2010-03-08  Karl Berry  <karl@gnu.org>
36833
36834         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36835         of committing gnulib files while skipping others.
36836
36837 2010-03-07  Bruno Haible  <bruno@clisp.org>
36838
36839         Tests of module 'wctype' in C++ mode.
36840         * tests/test-wctype-c++.cc: New file.
36841         * modules/wctype-tests (Files): Add it and tests/signature.h.
36842         (Depends-on): Add ansi-c++-opt.
36843         (Makefile.am): Arrange to compile and run test-wctype-c++.
36844
36845         Tests of module 'wchar' in C++ mode.
36846         * tests/test-wchar-c++.cc: New file.
36847         * modules/wchar-tests (Files): Add it and tests/signature.h.
36848         (Depends-on): Add ansi-c++-opt.
36849         (Makefile.am): Arrange to compile and run test-wchar-c++.
36850         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36851         gl_MODULE_INDICATOR.
36852
36853         Tests of module 'unistd' in C++ mode.
36854         * tests/test-unistd-c++.cc: New file.
36855         * modules/unistd-tests (Files): Add it and tests/signature.h.
36856         (Depends-on): Add ansi-c++-opt.
36857         (Makefile.am): Arrange to compile and run test-unistd-c++.
36858         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36859         gl_MODULE_INDICATOR.
36860
36861         Tests of module 'time' in C++ mode.
36862         * tests/test-time-c++.cc: New file.
36863         * modules/time-tests (Files): Add it and tests/signature.h.
36864         (Depends-on): Add ansi-c++-opt.
36865         (Makefile.am): Arrange to compile and run test-time-c++.
36866         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36867
36868         Tests of module 'sys_time' in C++ mode.
36869         * tests/test-sys_time-c++.cc: New file.
36870         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36871         (Depends-on): Add ansi-c++-opt.
36872         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36873         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36874         gl_MODULE_INDICATOR.
36875
36876         Tests of module 'sys_stat' in C++ mode.
36877         * tests/test-sys_stat-c++.cc: New file.
36878         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36879         (Depends-on): Add ansi-c++-opt.
36880         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36881         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36882         gl_MODULE_INDICATOR.
36883
36884         Tests of module 'sys_socket' in C++ mode.
36885         * tests/test-sys_socket-c++.cc: New file.
36886         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36887         (Depends-on): Add ansi-c++-opt.
36888         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36889         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36890         gl_MODULE_INDICATOR.
36891
36892         Tests of module 'sys_select' in C++ mode.
36893         * tests/test-sys_select-c++.cc: New file.
36894         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36895         (Depends-on): Add ansi-c++-opt.
36896         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36897         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36898         gl_MODULE_INDICATOR.
36899
36900         Tests of module 'sys_ioctl' in C++ mode.
36901         * tests/test-sys_ioctl-c++.cc: New file.
36902         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36903         (Depends-on): Add ansi-c++-opt.
36904         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36905         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36906         gl_MODULE_INDICATOR.
36907
36908         Tests of module 'string' in C++ mode.
36909         * tests/test-string-c++.cc: New file.
36910         * modules/string-tests (Files): Add it and tests/signature.h.
36911         (Depends-on): Add ansi-c++-opt.
36912         (Makefile.am): Arrange to compile and run test-string-c++.
36913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36914         gl_MODULE_INDICATOR.
36915
36916         Tests of module 'stdlib' in C++ mode.
36917         * tests/test-stdlib-c++.cc: New file.
36918         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36919         (Depends-on): Add ansi-c++-opt.
36920         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36921         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36922         gl_MODULE_INDICATOR.
36923
36924         Tests of module 'stdio' in C++ mode.
36925         * tests/test-stdio-c++.cc: New file.
36926         * modules/stdio-tests (Files): Add it and tests/signature.h.
36927         (Depends-on): Add ansi-c++-opt.
36928         (Makefile.am): Arrange to compile and run test-stdio-c++.
36929         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36930         gl_MODULE_INDICATOR.
36931
36932         Tests of module 'spawn' in C++ mode.
36933         * tests/test-spawn-c++.cc: New file.
36934         * modules/spawn-tests (Files): Add it and tests/signature.h.
36935         (Depends-on): Add ansi-c++-opt.
36936         (Makefile.am): Arrange to compile and run test-spawn-c++.
36937         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36938         gl_MODULE_INDICATOR.
36939
36940         Tests of module 'signal' in C++ mode.
36941         * tests/test-signal-c++.cc: New file.
36942         * modules/signal-tests (Files): Add it and tests/signature.h.
36943         (Depends-on): Add ansi-c++-opt.
36944         (Makefile.am): Arrange to compile and run test-signal-c++.
36945         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36946         gl_MODULE_INDICATOR.
36947
36948         Tests of module 'search' in C++ mode.
36949         * tests/test-search-c++.cc: New file.
36950         * modules/search-tests (Files): Add it and tests/signature.h.
36951         (Depends-on): Add ansi-c++-opt.
36952         (Makefile.am): Arrange to compile and run test-search-c++.
36953         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36954         gl_MODULE_INDICATOR.
36955
36956         Tests of module 'math' in C++ mode.
36957         * tests/test-math-c++.cc: New file.
36958         * modules/math-tests (Files): Add it and tests/signature.h.
36959         (Depends-on): Add ansi-c++-opt.
36960         (Makefile.am): Arrange to compile and run test-math-c++.
36961         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36962
36963         Tests of module 'locale' in C++ mode.
36964         * tests/test-locale-c++.cc: New file.
36965         * modules/locale-tests (Files): Add it and tests/signature.h.
36966         (Depends-on): Add ansi-c++-opt.
36967         (Makefile.am): Arrange to compile and run test-locale-c++.
36968         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36969         gl_MODULE_INDICATOR.
36970
36971         Tests of module 'langinfo' in C++ mode.
36972         * tests/test-langinfo-c++.cc: New file.
36973         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36974         (Depends-on): Add ansi-c++-opt.
36975         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36976         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36977         gl_MODULE_INDICATOR.
36978
36979         Tests of module 'iconv-h' in C++ mode.
36980         * tests/test-iconv-h-c++.cc: New file.
36981         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36982         (Depends-on): Add ansi-c++-opt.
36983         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36984
36985         Tests of module 'glob' in C++ mode.
36986         * tests/test-glob-c++.cc: New file.
36987         * modules/glob-tests (Files): Add it.
36988         (Depends-on): Add ansi-c++-opt.
36989         (Makefile.am): Arrange to compile and run test-glob-c++.
36990
36991         Tests of module 'fcntl-h' in C++ mode.
36992         * tests/test-fcntl-h-c++.cc: New file.
36993         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36994         (Depends-on): Add ansi-c++-opt.
36995         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36996         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36997         gl_MODULE_INDICATOR.
36998
36999         Tests of module 'dirent' in C++ mode.
37000         * tests/test-dirent-c++.cc: New file.
37001         * modules/dirent-tests (Files): Add it and tests/signature.h.
37002         (Depends-on): Add ansi-c++-opt.
37003         (Makefile.am): Arrange to compile and run test-dirent-c++.
37004         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37005         gl_MODULE_INDICATOR.
37006
37007         New module 'ansi-c++-opt'.
37008         * modules/ansi-c++-opt: New file.
37009         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37010
37011         Document C++ namespace mode.
37012         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37013
37014         wctype: Avoid #define replacements in C++ mode.
37015         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37016         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37017         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37018         In C++, define a namespaced alias symbol.
37019         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37020         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37021         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37022         rule.
37023
37024         wchar: Avoid #define replacements in C++ mode.
37025         * lib/wchar.in.h: Include c++defs.h.
37026         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37027         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37028         symbol.
37029         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37030         * modules/wchar (Depends-on): Add c++defs.
37031         (Makefile.am): Update wchar.h rule.
37032
37033         unistd: Avoid #define replacements in C++ mode.
37034         * lib/unistd.in.h: Include c++defs.h.
37035         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37036         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37037         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37038         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37039         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37040         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37041         symbol.
37042         (environ): Update.
37043         * modules/unistd (Depends-on): Add c++defs.
37044         (Makefile.am): Update unistd.h rule.
37045
37046         time: Avoid #define replacements in C++ mode.
37047         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37048         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37049         define a namespaced alias symbol.
37050         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37051         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37052         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37053         * modules/time (Depends-on): Add c++defs, warn-on-use.
37054         (Makefile.am): Update time.h rule.
37055         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37056         * modules/nanosleep (configure.ac): Likewise.
37057         * modules/strptime (configure.ac): Likewise.
37058         * modules/timegm (configure.ac): Likewise.
37059
37060         sys_time: Avoid #define replacements in C++ mode.
37061         * lib/sys_time.in.h: Include c++defs.h.
37062         (gettimeofday): In C++, define a namespaced alias symbol.
37063         * modules/sys_time (Depends-on): Add c++defs.
37064         (Makefile.am): Update sys/time.h rule.
37065
37066         sys_stat: Avoid #define replacements in C++ mode.
37067         * lib/sys_stat.in.h: Include c++defs.h.
37068         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37069         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37070         namespaced alias symbol.
37071         In C++, define a namespaced alias symbol.
37072         * modules/sys_stat (Depends-on): Add c++defs.
37073         (Makefile.am): Update sys/stat.h rule.
37074
37075         sys_socket: Avoid #define replacements in C++ mode.
37076         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37077         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37078         definitions also when the system has a <sys/socket.h>.
37079         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37080         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37081         In C++, define a namespaced alias symbol.
37082         * modules/sys_socket (Depends-on): Add c++defs.
37083         (Makefile.am): Update sys/socket.h rule.
37084
37085         sys_select: Avoid #define replacements in C++ mode.
37086         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37087         definitions also when the system has a <sys/select.h>.
37088         (select): In C++, define a namespaced alias symbol.
37089         * modules/sys_select (Depends-on): Add c++defs.
37090         (Makefile.am): Update sys/select.h rule.
37091
37092         sys_ioctl: Avoid #define replacements in C++ mode.
37093         * lib/sys_ioctl.in.h: Include c++defs.h.
37094         (ioctl): In C++, define a namespaced alias symbol.
37095         * modules/sys_ioctl (Depends-on): Add c++defs.
37096         (Makefile.am): Update sys/ioctl.h rule.
37097
37098         string: Avoid #define replacements in C++ mode.
37099         * lib/string.in.h: Include c++defs.h.
37100         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37101         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37102         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37103         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37104         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37105         * modules/string (Depends-on): Add c++defs.
37106         (Makefile.am): Update string.h rule.
37107
37108         stdlib: Avoid #define replacements in C++ mode.
37109         * lib/stdlib.in.h: Include c++defs.h.
37110         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37111         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37112         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37113         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37114         symbol.
37115         * modules/stdlib (Depends-on): Add c++defs.
37116         (Makefile.am): Update stdlib.h rule.
37117
37118         stdio: Avoid #define replacements in C++ mode.
37119         * lib/stdio.in.h: Include c++defs.h.
37120         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37121         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37122         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37123         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37124         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37125         namespaced alias symbol.
37126         * modules/stdio (Depends-on): Add c++defs.
37127         (Makefile.am): Update stdio.h rule.
37128
37129         spawn: Avoid #define replacements in C++ mode.
37130         * lib/spawn.in.h: Include c++defs.h.
37131         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37132         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37133         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37134         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37135         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37136         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37137         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37138         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37139         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37140         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37141         In C++, define a namespaced alias symbol.
37142         * modules/spawn (Depends-on): Add c++defs.
37143         (Makefile.am): Update spawn.h rule.
37144
37145         signal: Avoid #define replacements in C++ mode.
37146         * lib/signal.in.h: Include c++defs.h.
37147         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37148         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37149         namespaced alias symbol.
37150         * modules/signal (Depends-on): Add c++defs.
37151         (Makefile.am): Update signal.h rule.
37152
37153         search: Avoid #define replacements in C++ mode.
37154         * lib/search.in.h: Include c++defs.h.
37155         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37156         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37157         symbol.
37158         * modules/search (Depends-on): Add c++defs.
37159         (Makefile.am): Update search.h rule.
37160
37161         math: Avoid #define replacements in C++ mode.
37162         * lib/math.in.h: Include c++defs.h.
37163         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37164         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37165         trunc, truncl): In C++, define a namespaced alias symbol.
37166         * modules/math (Depends-on): Add c++defs.
37167         (Makefile.am): Update math.h rule.
37168
37169         locale: Avoid #define replacements in C++ mode.
37170         * lib/locale.in.h: Include c++defs.h.
37171         (duplocale): In C++, define a namespaced alias symbol.
37172         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37173         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37174         * modules/locale (Depends-on): Add c++defs.
37175         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37176
37177         langinfo: Avoid #define replacements in C++ mode.
37178         * lib/langinfo.in.h: Include c++defs.h.
37179         (nl_langinfo): In C++, define a namespaced alias symbol.
37180         * modules/langinfo (Depends-on): Add c++defs.
37181         (Makefile.am): Update langinfo.h rule.
37182
37183         iconv-h: Avoid #define replacements in C++ mode.
37184         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37185         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37186         symbol.
37187         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37188         whenever iconv is present.
37189         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37190         (Makefile.am): Update iconv.h rule.
37191
37192         glob: Avoid #define replacements in C++ mode.
37193         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37194         (_gl_glob_errfunc_fn): New type.
37195         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37196         symbol.
37197         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37198         (Makefile.am): Update glob.h rule.
37199
37200         fcntl-h: Avoid #define replacements in C++ mode.
37201         * lib/fcntl.in.h: Include c++defs.h.
37202         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37203         * modules/fcntl-h (Depends-on): Add c++defs.
37204         (Makefile.am): Update fcntl.h rule.
37205
37206         dirent: Avoid #define replacements in C++ mode.
37207         * lib/dirent.in.h: Include c++defs.h.
37208         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37209         namespaced alias symbol.
37210         (dirfd): Update declaration.
37211         * modules/dirent (Depends-on): Add c++defs.
37212         (Makefile.am): Update dirent.h rule.
37213
37214         ctype: Make it usable in C++ code.
37215         * lib/ctype.in.h: Include c++defs.h.
37216         (isblank): Declare as extern "C".
37217         * modules/ctype (Depends-on): Add c++defs.
37218         (Makefile.am): Update ctype.h rule.
37219
37220         New module 'c++defs'.
37221         * modules/c++defs: New file.
37222         * build-aux/c++defs.h: New file.
37223         Reported by John W. Eaton <jwe@gnu.org>.
37224
37225 2010-03-07  Bruno Haible  <bruno@clisp.org>
37226
37227         logb: Provide missing declaration for Cygwin.
37228         * lib/math.in.h (logb): New declaration.
37229         * m4/logb.m4: New file.
37230         * modules/logb (Files): Add m4/logb.m4.
37231         (Depends-on): Add math.
37232         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37233         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37235         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37236         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37237
37238 2010-03-07  Bruno Haible  <bruno@clisp.org>
37239
37240         Fix test-cond link error.
37241         * tests/test-cond.c: Include <stdio.h>.
37242
37243 2010-03-07  Bruno Haible  <bruno@clisp.org>
37244
37245         Fix test-dirent-safer link error.
37246         * modules/dirent-safer-tests (Makefile.am): Define
37247         test_dirent_safer_LDADD.
37248
37249 2010-03-07  Bruno Haible  <bruno@clisp.org>
37250
37251         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37252         among default module list.
37253
37254 2010-03-07  Bruno Haible  <bruno@clisp.org>
37255
37256         Fix link error on platforms with GNU libiconv.
37257         * modules/unistr/u8-strcoll-tests (Makefile): Define
37258         test_u8_strcoll_LDADD.
37259         * modules/unistr/u16-strcoll-tests (Makefile): Define
37260         test_u16_strcoll_LDADD.
37261         * modules/unistr/u32-strcoll-tests (Makefile): Define
37262         test_u32_strcoll_LDADD.
37263
37264 2010-03-07  Bruno Haible  <bruno@clisp.org>
37265
37266         Use POSIX declarations for socket functions.
37267         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37268         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37269         rpl_sendto): Change declaration to match POSIX.
37270         * lib/connect.c (rpl_connect): Likewise.
37271         * lib/accept.c (rpl_accept): Likewise.
37272         * lib/bind.c (rpl_bind): Likewise.
37273         * lib/getpeername.c (rpl_getpeername): Likewise.
37274         * lib/getsockname.c (rpl_getsockname): Likewise.
37275         * lib/recv.c (rpl_recv): Likewise.
37276         * lib/send.c (rpl_send): Likewise.
37277         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37278         * lib/sendto.c (rpl_sendto): Likewise.
37279
37280 2010-03-06  Bruno Haible  <bruno@clisp.org>
37281
37282         Clarify access, euidaccess, faccessat.
37283         * doc/posix-functions/faccessat.texi: Mention security problem under
37284         "Other problems", not "Portability problems".
37285         * doc/posix-functions/access.texi: Likewise. Mention a related security
37286         problem.
37287         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37288         * lib/euidaccess.c: Add comments about platforms.
37289         * lib/unistd.in.h (access, euidaccess): Add warnings.
37290
37291 2010-03-07  Bruno Haible  <bruno@clisp.org>
37292
37293         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37294         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37295         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37296         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37297         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37298         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37299         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37300         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37301         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37302         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37303         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37304         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37305         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37306         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37307         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37308         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37309         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37310         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37311         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37312         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37313         Likewise.
37314         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37315         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37316         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37317         Likewise.
37318         * tests/test-spawn.c (main): Make it work when
37319         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37320
37321 2010-03-07  Bruno Haible  <bruno@clisp.org>
37322
37323         Fix incorrect Makefile.am generation in German locale.
37324         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37325         Execute sed command with character range in C locale.
37326
37327 2010-03-06  Bruno Haible  <bruno@clisp.org>
37328
37329         Tests for module 'iconv-h'.
37330         * modules/iconv-h-tests: New file.
37331         * tests/test-iconv-h.c: New file.
37332
37333         New module 'iconv-h'.
37334         * modules/iconv-h: New file.
37335         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37336         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37337         (configure.ac): Remove gl_ICONV_H.
37338         (Makefile.am): Remove rule for iconv.h.
37339
37340 2010-03-06  Bruno Haible  <bruno@clisp.org>
37341
37342         More consistent naming of *.m4 files.
37343         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37344         * modules/wctype (Files): Update.
37345
37346         More consistent naming of *.m4 files.
37347         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37348         * modules/wchar (Files): Update.
37349
37350 2010-03-06  Jim Meyering  <meyering@redhat.com>
37351
37352         euidaccess: relax license to LGPLv2+
37353         * modules/euidaccess (License): Relax to LGPLv2+.
37354
37355 2010-03-06  Bruno Haible  <bruno@clisp.org>
37356
37357         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37358         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37359         (Makefile.am): Augment lib_SOURCES instead.
37360
37361 2010-03-04  Jim Meyering  <meyering@redhat.com>
37362
37363         utime: remove obsolete module
37364         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37365         unnecessary for years, and has been marked as obsolete for 10 months.
37366         * modules/utime: Remove file.
37367         * lib/utime.c: Remove file.
37368         * m4/utime.m4: Remove file.
37369         * m4/utimes-null.m4: Remove file.
37370         * doc/posix-functions/utime.texi (utime): Remove reference to
37371         the module.  Move the sole "fixed by gnulib" item into the
37372         "problems not fixed by Gnulib" list.
37373         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37374
37375 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37376
37377         * modules/exit (License): Relax license to LGPLv2+.
37378         (Status): Mark as obsolete.
37379         * NEWS: Mention deprecated 'exit' module.
37380         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37381         of now obsolete 'exit'.
37382
37383 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37384
37385         fts-lgpl: remove unused module
37386         * modules/fts-lgpl: Remove.
37387         * MODULES.html.sh (func_all_modules): Adjust.
37388         * check-module (find_included_lib_files): Adjust.
37389         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37390
37391 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37392
37393         copy-acl: enhance Solaris ACL error handling
37394         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37395         * lib/set-mode-acl.c (qset_acl): Likewise.
37396
37397 2010-03-02  Bruno Haible  <bruno@clisp.org>
37398
37399         spawn: Don't override the system defined values on FreeBSD 8.
37400         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37401         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37402         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37403         if HAVE_POSIX_SPAWN is 1.
37404         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37405
37406 2010-03-01  Bruno Haible  <bruno@clisp.org>
37407
37408         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37409         regarding Automake.
37410
37411 2010-02-25  Bruno Haible  <bruno@clisp.org>
37412
37413         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37414         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37415         setting, not afterwards.
37416         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37417
37418 2010-02-24  Eric Blake  <eblake@redhat.com>
37419
37420         bootstrap, git-version-gen: use timestamp
37421         * build-aux/git-version-gen (scriptversion): Force UTC.
37422         * build-aux/bootstrap (scriptversion): New variable.
37423
37424         bootstrap: allow older git
37425         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37426         older than 1.6.4.  Requested by the libvirt project.
37427
37428 2010-02-23  Eric Blake  <eblake@redhat.com>
37429
37430         warn-on-use: work with old autoconf
37431         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37432         AS_VAR semantics of autoconf 2.60.
37433         Reported by Bruno Haible.
37434
37435         bootstrap: improve some comments
37436         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37437         clarification comments.
37438
37439         gettimeofday: provide correct function
37440         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37441         when replacement is declared, otherwise provide gettimeofday.
37442         Reported by Michael Goffioul.
37443
37444 2010-02-23  Jim Meyering  <meyering@redhat.com>
37445
37446         lib-ignore: relax license to "unlimited", not LGPLv2+
37447         * modules/lib-ignore (License): Relax to "unlimited".
37448
37449 2010-02-23  Jim Meyering  <meyering@redhat.com>
37450
37451         lib-ignore: relax license to LGPLv2+
37452         * modules/lib-ignore (License): Relax to LGPLv2+.
37453
37454 2010-02-22  Eric Blake  <eblake@redhat.com>
37455
37456         lseek: avoid bash 3.2 broken pipe bug
37457         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37458         warning from bash 3.2.
37459         Reported by Ben Pfaff, with analysis from Bruno Haible.
37460
37461         bootstrap: support non-FSF copyright holder
37462         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37463         bootstrap.conf override of COPYRIGHT_HOLDER.
37464         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37465
37466         bootstrap: interoperate with gettext 0.14.1
37467         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37468
37469         bootstrap: allow for alternate submodule location
37470         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37471         hardcoding submodule location.
37472         (gnulib_mk): Allow direct use of Makefile.am.
37473
37474         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37475         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37476         rather than reconfiguring where the submodule points.
37477
37478         gettimeofday: restore support for platforms that lack function
37479         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37480         replacement if function is missing.
37481         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37482         * modules/sys_time (Makefile.am): Substitute it.
37483         * lib/sys_time.in.h (gettimeofday): Check it.
37484         Reported by Michael Goffioul.
37485
37486 2010-02-21  Bruno Haible  <bruno@clisp.org>
37487
37488         * lib/stdio.in.h (obstack_printf): Fix typo.
37489
37490 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37491
37492         vc-list-files: use bzr ls's -R option
37493         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37494         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37495
37496 2010-02-21  Jim Meyering  <meyering@redhat.com>
37497
37498         init.sh: fix EXEEXT shims to work also for names like test-prog
37499         * tests/init.sh: Re-exec a better shell, when needed.
37500         If the current shell lacks support for posix $(...), an init.sh-using
37501         test will now try to find a shell that supports that.  If EXEEXT is
37502         nonempty, we also require support for hyphen-in-alias-name and shell
37503         substitutions like ${var#glob}.  Failure to find such a shell results
37504         in a skipped test.
37505
37506 2010-02-21  Bruno Haible  <bruno@clisp.org>
37507
37508         Really work around around "broken pipe" error message from bash 3.2.
37509         * gnulib-tool (func_reset_sigpipe): Remove function.
37510         (echo): In bash 3.2, define to a function that uses printf.
37511         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37512
37513 2010-02-20  Bruno Haible  <bruno@clisp.org>
37514
37515         Restore support for automake 1.9.6 with autoconf 2.61.
37516         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37517         Reported by James Youngman <jay@gnu.org>.
37518
37519 2010-02-20  Bruno Haible  <bruno@clisp.org>
37520
37521         Improve *printf warning condition.
37522         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37523         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37524         and the function is overridden due to SIGPIPE emulation.
37525
37526 2010-02-20  Bruno Haible  <bruno@clisp.org>
37527
37528         * lib/stdio.in.h: Tweak comments.
37529
37530 2010-02-19  Bruno Haible  <bruno@clisp.org>
37531
37532         Make it easier to find modules. New gnulib-tool option '--find'.
37533         * gnulib-tool: New option --find.
37534         (func_usage): Document it.
37535         (func_sanitize_modulelist): New function, extracted from
37536         func_all_modules.
37537         (func_all_modules): Invoke it.
37538         * doc/gnulib-tool.texi (Which modules?): New node.
37539
37540 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37541
37542         * lib/sys_select.in.h: Provide select replacement even if
37543         sys/select.h exists on a system, for Interix.
37544
37545 2010-02-18  Jim Meyering  <meyering@redhat.com>
37546
37547         init.sh: don't use $(...) just yet
37548         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37549         to accommodate e.g., Solaris' /bin/sh.
37550
37551 2010-02-17  Bruno Haible  <bruno@clisp.org>
37552
37553         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37554         Reported by Ludovic Courtès <ludo@gnu.org>.
37555
37556 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37557
37558         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37559         linking with -lintl.
37560
37561 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37562
37563         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37564         if not provided by the system's netdb.h.  Reported by
37565         ludo@gnu.org (Ludovic Courtès).
37566
37567 2010-02-15  Jim Meyering  <meyering@redhat.com>
37568
37569         init.sh: improve portability and efficiency
37570         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37571         "dummy" in a for loop.
37572         Use '!', not '^' to select the complement of a character set used
37573         in a "case" statement.
37574         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37575         Suggestions from Eric Blake.
37576
37577         init.sh: automatically accommodate programs with the .exe suffix
37578         Automatically arrange for an invocation of "prog" to execute the
37579         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37580         may use the simpler "prog", yet still work when built on a system
37581         that requires specifying the added suffix.
37582         Do this by constructing a function named "prog" that invokes
37583         "prog.exe" for each .exe file in selected directories.
37584         * tests/init.sh (find_exe_basenames_): New function.
37585         (create_exe_shim_functions_): New function.
37586         (path_prepend_): Use it.
37587
37588         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37589         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37590         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37591
37592 2010-02-14  Jim Meyering  <meyering@redhat.com>
37593
37594         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37595         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37596         (sc_prohibit_hash_pjw_without_use): New rule.
37597
37598         maint.mk: allow the default upload destination dir to be overridden
37599         * top/maint.mk (upload_dest_dir_): Define with a default that
37600         preserves the status quo.
37601         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37602         Reported by Peter Simons.
37603
37604         maint.mk: prohibit inclusion of "hash.h" without_use
37605         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37606
37607 2010-02-10  Jim Meyering  <meyering@redhat.com>
37608
37609         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37610         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37611
37612 2010-02-09  Eric Blake  <ebb9@byu.net>
37613         and Bruno Haible  <bruno@clisp.org>
37614
37615         obstack-printf-posix: ensure declaration
37616         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37617         extracted from gl_FUNC_OBSTACK_PRINTF.
37618         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37619         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37620         Likewise.
37621         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37622         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37623         0.
37624
37625 2010-02-08  Bruno Haible  <bruno@clisp.org>
37626
37627         gnulib-tool: Fix typo in 2010-02-07 commit.
37628         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37629         Reported by Eric Blake.
37630
37631 2010-02-07  Bruno Haible  <bruno@clisp.org>
37632
37633         gnulib-tool: Fix up caching patches.
37634         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37635         option --no-cache. Use associative arrays when supported by the shell.
37636         (sed_comments): New variable.
37637         (modcache): Renamed from do_cache.
37638         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37639         abbreviate unnecessarily.
37640         (have_associative): New variable.
37641         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37642         way also for ksh and zsh.
37643         (func_init_sed_convert_to_cache_statements): New function, extracted
37644         from func_cache_lookup_module. Add support for associative arrays.
37645         Don't set the c_MODULE_cached variable here. Ignore all lines before
37646         the first field header. Remove only the final newline, not all trailing
37647         newlines. Support empty fields correctly. Limit the use of 'eval' to
37648         assignments.
37649         (func_get_description, func_get_status, func_get_notice,
37650         func_get_applicability, func_get_filelist, func_get_dependencies,
37651         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37652         func_get_automake_snippet, func_get_include_directive,
37653         func_get_link_directive, func_get_license, func_get_maintainer):
37654         Update documentation. List the unoptimized code first. Add support for
37655         associative arrays. Limit the use of 'eval' to assignments.
37656         (func_get_applicability): Undo stylistic pessimisations.
37657         (func_get_automake_snippet, func_get_include_directive): Reduce code
37658         duplication.
37659         (func_modules_transitive_closure, func_modules_add_dummy,
37660         func_modules_notice, func_modules_to_filelist, func_add_file,
37661         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37662         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37663         func_create_testdir, func_create_megatestdir): Update documentation.
37664
37665 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37666
37667         * gnulib-tool (func_cache_lookup_module): Store the module name
37668         belonging to the cache variable; error out if two different
37669         module names map to the same cache variable name.
37670
37671 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37672
37673         gnulib-tool: Make caching optional.
37674         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37675         Update matching short versions of --no-changelog.
37676         (func_usage): Update.
37677         (sed_extract_cache_prog): Renamed from ...
37678         (sed_extract_prog): ... this; revert to old extraction script.
37679         (func_get_description, func_get_status)
37680         (func_get_notice, func_get_applicability, func_get_filelist)
37681         (func_get_dependencies, func_get_autoconf_early_snippet)
37682         (func_get_autoconf_snippet, func_get_automake_snippet)
37683         (func_get_include_directive, func_get_link_directive)
37684         (func_get_license, func_get_maintainer): If $do_cache is false,
37685         use old, non-caching extraction scripts.
37686         Suggestion by Bruno Haible.
37687
37688 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37689
37690         gnulib-tool: cache module metainformation.
37691         * gnulib-tool (sed_extract_prog): Match newline before each
37692         header, and rewrite header to a shell variable suffix.
37693         (func_cache_var, func_cache_lookup_module): New functions,
37694         to turn a module name into a cache variable prefix, and to
37695         look up and cache module metainformation.
37696         (func_get_description, func_get_status)
37697         (func_get_notice, func_get_applicability, func_get_filelist)
37698         (func_get_dependencies, func_get_autoconf_early_snippet)
37699         (func_get_autoconf_snippet, func_get_automake_snippet)
37700         (func_get_include_directive, func_get_link_directive)
37701         (func_get_license, func_get_maintainer): Use
37702         func_cache_lookup_module.
37703
37704 2010-02-07  Bruno Haible  <bruno@clisp.org>
37705
37706         fnctl: Fix missing dependency.
37707         * modules/fcntl (Depends-on): Add getdtablesize.
37708         Reported by John W. Eaton <jwe@gnu.org>.
37709
37710 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37711
37712         Argp: fix recognition of short alias options.
37713
37714         * lib/argp-parse.c (convert_options): Fix improper use of
37715         `|' between character values.
37716         * tests/test-argp.c (group1_option): New alias option
37717         --read (-r).
37718         (group1_parser): Special handling for 'r'.
37719         (test15): New test case.
37720         (test_fun): Add test15.
37721         * tests/test-argp-2.sh: Update expected --help and --usage
37722         outputs.
37723
37724 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37725
37726         * tests/test-argp.c: Fix indentation.
37727
37728 2010-02-04  Eric Blake  <ebb9@byu.net>
37729
37730         gettimeofday: expose type of second argument
37731         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37732         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37733         * tests/test-gettimeofday.c: Use it to silence warning.
37734         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37735         the issue.
37736
37737 2010-02-03  Jim Meyering  <meyering@redhat.com>
37738
37739         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37740         * lib/regcomp.c (TYPE_SIGNED): Define.
37741         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37742
37743         regcomp.c: avoid a new -Wshadow warning
37744         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37745
37746 2010-02-01  Jim Meyering  <meyering@redhat.com>
37747
37748         removing useless parentheses in cpp #define directives
37749         For motivation, see commit c0221df4, "define STREQ(a,b)
37750         consistently, removing useless parentheses"
37751         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37752         * lib/mountlist.c (MNT_IGNORE): Likewise.
37753         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37754
37755 2010-02-01  Eric Blake  <ebb9@byu.net>
37756
37757         sys_time: use link-warning
37758         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37759         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37760         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37761         * modules/sys_time (Depends-on): Add warn-on-use.
37762         (Makefile.am): Always build replacement.
37763         (configure.ac): Update substitutions.
37764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37765         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37766         bother with SYS_TIME_H.
37767         * modules/gettimeofday (configure.ac): Declare indicator.
37768         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37769         in use.
37770
37771         closein-tests: silence compiler warning
37772         * tests/test-closein.c (main): Ignore fread result.
37773         * modules/closein-tests (Depends-on): Add ignore-value.
37774
37775         tests: silence warning about system return
37776         * tests/test-areadlink-with-size.c (main): Ignore system result.
37777         * tests/test-areadlink.c (main): Likewise.
37778         * tests/test-areadlinkat-with-size.c (main): Likewise.
37779         * tests/test-areadlinkat.c (main): Likewise.
37780         * tests/test-canonicalize-lgpl.c (main): Likewise.
37781         * tests/test-canonicalize.c (main): Likewise.
37782         * tests/test-chown.c (main): Likewise.
37783         * tests/test-fchownat.c (main): Likewise.
37784         * tests/test-fdutimensat.c (main): Likewise.
37785         * tests/test-fstatat.c (main): Likewise.
37786         * tests/test-futimens.c (main): Likewise.
37787         * tests/test-lchown.c (main): Likewise.
37788         * tests/test-link.c (main): Likewise.
37789         * tests/test-linkat.c (main): Likewise.
37790         * tests/test-lstat.c (main): Likewise.
37791         * tests/test-mkdir.c (main): Likewise.
37792         * tests/test-mkdirat.c (main): Likewise.
37793         * tests/test-mkfifo.c (main): Likewise.
37794         * tests/test-mkfifoat.c (main): Likewise.
37795         * tests/test-mknod.c (main): Likewise.
37796         * tests/test-readlink.c (main): Likewise.
37797         * tests/test-remove.c (main): Likewise.
37798         * tests/test-rename.c (main): Likewise.
37799         * tests/test-renameat.c (main): Likewise.
37800         * tests/test-rmdir.c (main): Likewise.
37801         * tests/test-symlink.c (main): Likewise.
37802         * tests/test-symlinkat.c (main): Likewise.
37803         * tests/test-unlink.c (main): Likewise.
37804         * tests/test-unlinkat.c (main): Likewise.
37805         * tests/test-utimens.c (main): Likewise.
37806         * tests/test-utimensat.c (main): Likewise.
37807         * modules/areadlink-tests (Depends-on): Add ignore-value.
37808         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37809         * modules/areadlinkat-tests (Depends-on): Likewise.
37810         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37811         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37812         * modules/canonicalize-tests (Depends-on): Likewise.
37813         * modules/chown-tests (Depends-on): Likewise.
37814         * modules/fdutimensat-tests (Depends-on): Likewise.
37815         * modules/futimens-tests (Depends-on): Likewise.
37816         * modules/lchown-tests (Depends-on): Likewise.
37817         * modules/link-tests (Depends-on): Likewise.
37818         * modules/linkat-tests (Depends-on): Likewise.
37819         * modules/lstat-tests (Depends-on): Likewise.
37820         * modules/mkdir-tests (Depends-on): Likewise.
37821         * modules/mkfifo-tests (Depends-on): Likewise.
37822         * modules/mkfifoat-tests (Depends-on): Likewise.
37823         * modules/mknod-tests (Depends-on): Likewise.
37824         * modules/openat-tests (Depends-on): Likewise.
37825         * modules/readlink-tests (Depends-on): Likewise.
37826         * modules/remove-tests (Depends-on): Likewise.
37827         * modules/rename-tests (Depends-on): Likewise.
37828         * modules/renameat-tests (Depends-on): Likewise.
37829         * modules/rmdir-tests (Depends-on): Likewise.
37830         * modules/symlink-tests (Depends-on): Likewise.
37831         * modules/symlinkat-tests (Depends-on): Likewise.
37832         * modules/unlink-tests (Depends-on): Likewise.
37833         * modules/utimens-tests (Depends-on): Likewise.
37834         * modules/utimensat-tests (Depends-on): Likewise.
37835
37836 2010-01-31  Bruno Haible  <bruno@clisp.org>
37837
37838         Perform the same test for many <math.h> functions.
37839         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37840         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37841         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37842         of gl_MATHFUNC.
37843         * modules/acos (configure.ac): Likewise.
37844         * modules/asin (configure.ac): Likewise.
37845         * modules/atan (configure.ac): Likewise.
37846         * modules/atan2 (configure.ac): Likewise.
37847         * modules/cbrt (configure.ac): Likewise.
37848         * modules/copysign (configure.ac): Likewise.
37849         * modules/cos (configure.ac): Likewise.
37850         * modules/cosh (configure.ac): Likewise.
37851         * modules/erf (configure.ac): Likewise.
37852         * modules/erfc (configure.ac): Likewise.
37853         * modules/exp (configure.ac): Likewise.
37854         * modules/fmod (configure.ac): Likewise.
37855         * modules/hypot (configure.ac): Likewise.
37856         * modules/j0 (configure.ac): Likewise.
37857         * modules/j1 (configure.ac): Likewise.
37858         * modules/jn (configure.ac): Likewise.
37859         * modules/lgamma (configure.ac): Likewise.
37860         * modules/log (configure.ac): Likewise.
37861         * modules/log10 (configure.ac): Likewise.
37862         * modules/log1p (configure.ac): Likewise.
37863         * modules/pow (configure.ac): Likewise.
37864         * modules/remainder (configure.ac): Likewise.
37865         * modules/sin (configure.ac): Likewise.
37866         * modules/sinh (configure.ac): Likewise.
37867         * modules/tan (configure.ac): Likewise.
37868         * modules/tanh (configure.ac): Likewise.
37869         * modules/y0 (configure.ac): Likewise.
37870         * modules/y1 (configure.ac): Likewise.
37871         * modules/yn (configure.ac): Likewise.
37872         Suggested by Paolo Bonzini.
37873
37874 2010-01-31  Bruno Haible  <bruno@clisp.org>
37875
37876         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37877
37878 2010-01-31  Bruno Haible  <bruno@clisp.org>
37879
37880         Work around getdelim() bug on FreeBSD 8.0.
37881         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37882         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37883         not work.
37884         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37885         is 1.
37886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37887         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37888         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37889         a non-zero size.
37890         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37891
37892 2010-01-31  Bruno Haible  <bruno@clisp.org>
37893
37894         Work around getline() bug on FreeBSD 8.0.
37895         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37896         and a non-zero size.
37897         * tests/test-getline.c (main): Likewise.
37898         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37899         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37900
37901 2010-01-28  Eric Blake  <ebb9@byu.net>
37902
37903         regex: fix build failure
37904         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37905         platforms.
37906
37907 2010-01-28  Jim Meyering  <meyering@redhat.com>
37908
37909         regex: do not ignore memory allocation failure
37910         * lib/regex_internal.c (create_cd_newstate): Detect
37911         re_node_set_init_copy failure.   Extracted from glibc commit
37912         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37913
37914         regex: sync more white-space changes from libc
37915         * lib/regex_internal.c: White-space only changes.
37916         * lib/regexec.c: Likewise.
37917
37918         regex: add many uses of __attribute_warn_unused_result__
37919         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37920         * lib/regexec.c: Likewise.
37921         Extracted from a messy glibc commit.
37922
37923         regcomp.c: spelling and merge-artifact from glibc
37924         * lib/regcomp.c: Merge remainder of glibc's
37925         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37926
37927         regcomp.c: sync white-space changes from glibc
37928         * lib/regcomp.c: Merge to accommodate white space
37929         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37930
37931         regcomp.c: do not ignore internal return values
37932         * lib/regcomp.c: Do not ignore internal return values.
37933         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37934         but without its white-space changes and spelling fixes.
37935
37936         regex_internal.h: define __attribute_warn_unused_result__
37937         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37938
37939         maint: add a syntax-check rule to check for vulnerable Makefile.in
37940         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37941
37942 2010-01-27  Jim Meyering  <meyering@redhat.com>
37943
37944         ncftpput-ftp: clean up spaces
37945         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37946         Remove trailing blanks.
37947
37948 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37949
37950         * build-aux/git-version-gen: Fix copyright statement.
37951         * build-aux/gnupload: Likewise.
37952         * tests/test-arcfour.c: Likewise.
37953         * tests/test-arctwo.c: Likewise.
37954         * tests/test-count-one-bits.c: Likewise.
37955         * tests/test-crc.c: Likewise.
37956         * tests/test-des.c: Likewise.
37957         * tests/test-gc-arcfour.c: Likewise.
37958         * tests/test-gc-arctwo.c: Likewise.
37959         * tests/test-gc-des.c: Likewise.
37960         * tests/test-gc-hmac-md5.c: Likewise.
37961         * tests/test-gc-hmac-sha1.c: Likewise.
37962         * tests/test-gc-md2.c: Likewise.
37963         * tests/test-gc-md4.c: Likewise.
37964         * tests/test-gc-md5.c: Likewise.
37965         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37966         * tests/test-gc-rijndael.c: Likewise.
37967         * tests/test-gc-sha1.c: Likewise.
37968         * tests/test-gc.c: Likewise.
37969         * tests/test-gethostname.c: Likewise.
37970         * tests/test-gettimeofday.c: Likewise.
37971         * tests/test-hash.c: Likewise.
37972         * tests/test-hmac-md5.c: Likewise.
37973         * tests/test-hmac-sha1.c: Likewise.
37974         * tests/test-md2.c: Likewise.
37975         * tests/test-md4.c: Likewise.
37976         * tests/test-md5.c: Likewise.
37977         * tests/test-memchr.c: Likewise.
37978         * tests/test-memchr2.c: Likewise.
37979         * tests/test-memcmp.c: Likewise.
37980         * tests/test-memmem.c: Likewise.
37981         * tests/test-memrchr.c: Likewise.
37982         * tests/test-rawmemchr.c: Likewise.
37983         * tests/test-read-file.c: Likewise.
37984         * tests/test-rijndael.c: Likewise.
37985         * tests/test-sockets.c: Likewise.
37986         * tests/test-strchrnul.c: Likewise.
37987         * tests/test-strstr.c: Likewise.
37988         * tests/test-strtod.c: Likewise.
37989         * build-aux/ncftpput-ftp: Likewise.
37990
37991 2010-01-26  Eric Blake  <ebb9@byu.net>
37992
37993         ignore-value: update recommended header name
37994         * modules/ignore-value (Include): Only use <> for headers that
37995         exist in glibc.
37996
37997 2010-01-26  Jim Meyering  <meyering@redhat.com>
37998
37999         test-userspec.c: avoid compiler warnings
38000         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38001         and "initialization discards qualifiers..." warnings.
38002         Put the first "uid" in its own scope, and make char* members "const".
38003
38004 2010-01-25  Bruno Haible  <bruno@clisp.org>
38005
38006         gnulib-tool: Make warning diagnostics consistent.
38007         * gnulib-tool (func_warning): New function.
38008         Use it everywhere where gnulib-tool produces output to stderr and it is
38009         not a fatal error.
38010
38011 2010-01-25  Bruno Haible  <bruno@clisp.org>
38012
38013         Fix test dependencies.
38014         * modules/xstrtol-tests (Depends-on): Add inttypes.
38015         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38016
38017 2010-01-25 Pádraig Brady <P@draigBrady.com>
38018
38019         syntax-check: detect incorrect boolean macro values in config.h
38020         * modules/maintainer-makefile (configure.ac): Parameterize the location
38021         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38022         The logic is from Eric Blake and the location indicated by Jim Meyering.
38023         Note the more natural CONFIG_HEADER name is prohibited by automake
38024         for backwards compatibility reasons.
38025         * top/maint.mk (sc_Wundef_boolean): New rule.
38026
38027 2010-01-25  Jim Meyering  <meyering@redhat.com>
38028
38029         bootstrap: detect MacOS 10.6's shasum, too
38030         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38031         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38032
38033 2010-01-23  Jim Meyering  <meyering@redhat.com>
38034
38035         xstrtoll: new module
38036         * modules/xstrtoll: New file.
38037         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38038         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38039         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38040         ./configure fails if you use this module and lack "long long".
38041         * modules/xstrtoll-tests: New module.
38042         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38043         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38044         new init.sh-based test framework.
38045
38046 2010-01-24  Bruno Haible  <bruno@clisp.org>
38047
38048         Tests for module 'yn'.
38049         * modules/yn-tests: New file.
38050         * tests/test-yn.c: New file.
38051
38052         Tests for module 'y1'.
38053         * modules/y1-tests: New file.
38054         * tests/test-y1.c: New file.
38055
38056         Tests for module 'y0'.
38057         * modules/y0-tests: New file.
38058         * tests/test-y0.c: New file.
38059
38060         Tests for module 'tanh'.
38061         * modules/tanh-tests: New file.
38062         * tests/test-tanh.c: New file.
38063
38064         Tests for module 'tan'.
38065         * modules/tan-tests: New file.
38066         * tests/test-tan.c: New file.
38067
38068         Tests for module 'sqrt'.
38069         * modules/sqrt-tests: New file.
38070         * tests/test-sqrt.c: New file.
38071
38072         Tests for module 'sinh'.
38073         * modules/sinh-tests: New file.
38074         * tests/test-sinh.c: New file.
38075
38076         Tests for module 'sin'.
38077         * modules/sin-tests: New file.
38078         * tests/test-sin.c: New file.
38079
38080         Tests for module 'rint'.
38081         * modules/rint-tests: New file.
38082         * tests/test-rint.c: New file.
38083
38084         Tests for module 'remainder'.
38085         * modules/remainder-tests: New file.
38086         * tests/test-remainder.c: New file.
38087
38088         Tests for module 'pow'.
38089         * modules/pow-tests: New file.
38090         * tests/test-pow.c: New file.
38091
38092         Tests for module 'nextafter'.
38093         * modules/nextafter-tests: New file.
38094         * tests/test-nextafter.c: New file.
38095
38096         Tests for module 'modf'.
38097         * modules/modf-tests: New file.
38098         * tests/test-modf.c: New file.
38099
38100         Tests for module 'logb'.
38101         * modules/logb-tests: New file.
38102         * tests/test-logb.c: New file.
38103
38104         Tests for module 'log1p'.
38105         * modules/log1p-tests: New file.
38106         * tests/test-log1p.c: New file.
38107
38108         Tests for module 'log10'.
38109         * modules/log10-tests: New file.
38110         * tests/test-log10.c: New file.
38111
38112         Tests for module 'log'.
38113         * modules/log-tests: New file.
38114         * tests/test-log.c: New file.
38115
38116         Tests for module 'lgamma'.
38117         * modules/lgamma-tests: New file.
38118         * tests/test-lgamma.c: New file.
38119
38120         Tests for module 'ldexp'.
38121         * modules/ldexp-tests: New file.
38122         * tests/test-ldexp.c: New file.
38123
38124         Tests for module 'jn'.
38125         * modules/jn-tests: New file.
38126         * tests/test-jn.c: New file.
38127
38128         Tests for module 'j1'.
38129         * modules/j1-tests: New file.
38130         * tests/test-j1.c: New file.
38131
38132         Tests for module 'j0'.
38133         * modules/j0-tests: New file.
38134         * tests/test-j0.c: New file.
38135
38136         Tests for module 'hypot'.
38137         * modules/hypot-tests: New file.
38138         * tests/test-hypot.c: New file.
38139
38140         Tests for module 'fmod'.
38141         * modules/fmod-tests: New file.
38142         * tests/test-fmod.c: New file.
38143
38144         Tests for module 'fabs'.
38145         * modules/fabs-tests: New file.
38146         * tests/test-fabs.c: New file.
38147
38148         Tests for module 'exp'.
38149         * modules/exp-tests: New file.
38150         * tests/test-exp.c: New file.
38151
38152         Tests for module 'erfc'.
38153         * modules/erfc-tests: New file.
38154         * tests/test-erfc.c: New file.
38155
38156         Tests for module 'erf'.
38157         * modules/erf-tests: New file.
38158         * tests/test-erf.c: New file.
38159
38160         Tests for module 'cosh'.
38161         * modules/cosh-tests: New file.
38162         * tests/test-cosh.c: New file.
38163
38164         Tests for module 'cos'.
38165         * modules/cos-tests: New file.
38166         * tests/test-cos.c: New file.
38167
38168         Tests for module 'copysign'.
38169         * modules/copysign-tests: New file.
38170         * tests/test-copysign.c: New file.
38171
38172         Tests for module 'cbrt'.
38173         * modules/cbrt-tests: New file.
38174         * tests/test-cbrt.c: New file.
38175
38176         Tests for module 'atan2'.
38177         * modules/atan2-tests: New file.
38178         * tests/test-atan2.c: New file.
38179
38180         Tests for module 'atan'.
38181         * modules/atan-tests: New file.
38182         * tests/test-atan.c: New file.
38183
38184         Tests for module 'asin'.
38185         * modules/asin-tests: New file.
38186         * tests/test-asin.c: New file.
38187
38188         Tests for module 'acos'.
38189         * modules/acos-tests: New file.
38190         * tests/test-acos.c: New file.
38191
38192 2010-01-24  Bruno Haible  <bruno@clisp.org>
38193
38194         Fix tests for common <math.h> functions.
38195         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38196         code snippet that references the function pointer, rather than merely
38197         calling the function. Substitute the FUNC_LIBM variable.
38198         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38199         * modules/acos (configure.ac): Likewise.
38200         * modules/asin (configure.ac): Likewise.
38201         * modules/atan (configure.ac): Likewise.
38202         * modules/atan2 (configure.ac): Likewise.
38203         * modules/cbrt (configure.ac): Likewise.
38204         * modules/copysign (configure.ac): Likewise.
38205         * modules/cos (configure.ac): Likewise.
38206         * modules/cosh (configure.ac): Likewise.
38207         * modules/erf (configure.ac): Likewise.
38208         * modules/erfc (configure.ac): Likewise.
38209         * modules/exp (configure.ac): Likewise.
38210         * modules/fabs (configure.ac): Likewise.
38211         * modules/fmod (configure.ac): Likewise.
38212         * modules/hypot (configure.ac): Likewise.
38213         * modules/j0 (configure.ac): Likewise.
38214         * modules/j1 (configure.ac): Likewise.
38215         * modules/jn (configure.ac): Likewise.
38216         * modules/ldexp (configure.ac): Likewise.
38217         * modules/lgamma (configure.ac): Likewise.
38218         * modules/log (configure.ac): Likewise.
38219         * modules/log10 (configure.ac): Likewise.
38220         * modules/log1p (configure.ac): Likewise.
38221         * modules/logb (configure.ac): Likewise.
38222         * modules/modf (configure.ac): Likewise.
38223         * modules/nextafter (configure.ac): Likewise.
38224         * modules/pow (configure.ac): Likewise.
38225         * modules/remainder (configure.ac): Likewise.
38226         * modules/rint (configure.ac): Likewise.
38227         * modules/sin (configure.ac): Likewise.
38228         * modules/sinh (configure.ac): Likewise.
38229         * modules/tan (configure.ac): Likewise.
38230         * modules/tanh (configure.ac): Likewise.
38231         * modules/y0 (configure.ac): Likewise.
38232         * modules/y1 (configure.ac): Likewise.
38233         * modules/yn (configure.ac): Likewise.
38234
38235 2010-01-24  Bruno Haible  <bruno@clisp.org>
38236
38237         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38238         * tests/test-acosl.c (x): New variable.
38239         (main): Store argument in x and fetch it from x.
38240         * tests/test-asinl.c (x): New variable.
38241         (main): Store argument in x and fetch it from x.
38242         * tests/test-atanl.c (x): New variable.
38243         (main): Store argument in x and fetch it from x.
38244         * tests/test-cosl.c (x): New variable.
38245         (main): Store argument in x and fetch it from x.
38246         * tests/test-expl.c (x): New variable.
38247         (main): Store argument in x and fetch it from x.
38248         * tests/test-logl.c (x): New variable.
38249         (main): Store argument in x and fetch it from x.
38250         * tests/test-sinl.c (x): New variable.
38251         (main): Store argument in x and fetch it from x.
38252         * tests/test-sqrtl.c (x): New variable.
38253         (main): Store argument in x and fetch it from x.
38254         * tests/test-tanl.c (x): New variable.
38255         (main): Store argument in x and fetch it from x.
38256
38257 2010-01-24  Bruno Haible  <bruno@clisp.org>
38258
38259         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38260         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38261         assignments to the initial TESTS_ENVIRONMENT.
38262         * doc/gnulib.texi (Unit test modules): Document it.
38263         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38264         TESTS_ENVIRONMENT.
38265         * modules/btowc-tests (Makefile.am): Likewise.
38266         * modules/c-stack-tests (Makefile.am): Likewise.
38267         * modules/c-strcase-tests (Makefile.am): Likewise.
38268         * modules/copy-file-tests (Makefile.am): Likewise.
38269         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38270         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38271         * modules/mbrtowc-tests (Makefile.am): Likewise.
38272         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38273         * modules/mbscasestr-tests (Makefile.am): Likewise.
38274         * modules/mbschr-tests (Makefile.am): Likewise.
38275         * modules/mbscspn-tests (Makefile.am): Likewise.
38276         * modules/mbsinit-tests (Makefile.am): Likewise.
38277         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38278         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38279         * modules/mbspbrk-tests (Makefile.am): Likewise.
38280         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38281         * modules/mbsrchr-tests (Makefile.am): Likewise.
38282         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38283         * modules/mbsspn-tests (Makefile.am): Likewise.
38284         * modules/mbsstr-tests (Makefile.am): Likewise.
38285         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38286         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38287         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38288         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38289         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38290         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38291         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38292         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38293         * modules/wcrtomb-tests (Makefile.am): Likewise.
38294         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38295         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38296         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38297         assignments from TESTS_ENVIRONMENT.
38298         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38299         augmentation.
38300         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38301         * modules/atexit-tests (Makefile.am): Likewise.
38302         * modules/binary-io-tests (Makefile.am): Likewise.
38303         * modules/closein-tests (Makefile.am): Likewise.
38304         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38305         * modules/exclude-tests (Makefile.am): Likewise.
38306         * modules/fflush-tests (Makefile.am): Likewise.
38307         * modules/fpending-tests (Makefile.am): Likewise.
38308         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38309         * modules/freadahead-tests (Makefile.am): Likewise.
38310         * modules/freadptr-tests (Makefile.am): Likewise.
38311         * modules/freadseek-tests (Makefile.am): Likewise.
38312         * modules/fseek-tests (Makefile.am): Likewise.
38313         * modules/fseeko-tests (Makefile.am): Likewise.
38314         * modules/ftell-tests (Makefile.am): Likewise.
38315         * modules/ftello-tests (Makefile.am): Likewise.
38316         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38317         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38318         * modules/lseek-tests (Makefile.am): Likewise.
38319         * modules/parse-duration-tests (Makefile.am): Likewise.
38320         * modules/perror-tests (Makefile.am): Likewise.
38321         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38322         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38323         * modules/pipe-tests (Makefile.am): Likewise.
38324         * modules/pread-tests (Makefile.am): Likewise.
38325         * modules/printf-posix-tests (Makefile.am): Likewise.
38326         * modules/select-tests (Makefile.am): Likewise.
38327         * modules/sigpipe-tests (Makefile.am): Likewise.
38328         * modules/tsearch-tests (Makefile.am): Likewise.
38329         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38330         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38331         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38332         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38333         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38334         * modules/version-etc-tests (Makefile.am): Likewise.
38335         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38336         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38337         * modules/xalloc-die-tests (Makefile.am): Likewise.
38338         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38339         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38340         * modules/xstrtol-tests (Makefile.am): Likewise.
38341         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38342         * modules/yesno-tests (Makefile.am): Likewise.
38343         Suggested by Jim Meyering.
38344
38345 2010-01-24  Bruno Haible  <bruno@clisp.org>
38346
38347         More documentation.
38348         * doc/gnulib.texi (Writing modules): New chapter.
38349         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38350         the new chapter.
38351
38352 2010-01-24  Jim Meyering  <meyering@redhat.com>
38353
38354         maint.mk: do not prepend "./" after filtering
38355         * top/maint.mk (_prepend_srcdir_prefix): New variable
38356         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38357         "./" when $(srcdir) is ".".
38358
38359         define STREQ(a,b) consistently, removing useless parentheses
38360         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38361         since the only risk is that "a" or "b" contains an unparenthesized
38362         comma, but if either did that, STREQ would have 3 or more arguments.
38363         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38364         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38365         * lib/hash-triple.c (STREQ): Likewise.
38366         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38367         * lib/getugroups.c (STREQ): Likewise.
38368
38369 2010-01-23  Jim Meyering  <meyering@redhat.com>
38370
38371         maint.mk: fix syntax-check in a non-srcdir build directory
38372         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38373         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38374
38375 2010-01-22  Jim Meyering  <meyering@redhat.com>
38376
38377         userspec: add unit tests
38378         * tests/test-userspec.c: New file.
38379         * modules/userspec-tests: Likewise.
38380
38381 2010-01-21  Jim Meyering  <meyering@redhat.com>
38382
38383         maint.mk: handle source file names containing "." robustly
38384         * top/maint.mk (_dot_escaped_srcdir): Define.
38385         (VC_LIST): Use it in LHS of sed substitution.
38386
38387 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38388
38389         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38390         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38391         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38392         from a non-srcdir build.
38393
38394 2010-01-20  Eric Blake  <ebb9@byu.net>
38395
38396         warn-on-use: use instead of link-warning
38397         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38398         * modules/unistd (Depends-on, Makefile.am): Likewise.
38399         * modules/arpa_inet (Depends-on): Replace link-warning with
38400         warn-on-use.
38401         (Makefile.am): Update rules accordingly.
38402         * modules/ctype (Depends-on, Makefile.am): Likewise.
38403         * modules/dirent (Depends-on, Makefile.am): Likewise.
38404         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38405         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38406         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38407         * modules/locale (Depends-on, Makefile.am): Likewise.
38408         * modules/math (Depends-on, Makefile.am): Likewise.
38409         * modules/search (Depends-on, Makefile.am): Likewise.
38410         * modules/signal (Depends-on, Makefile.am): Likewise.
38411         * modules/spawn (Depends-on, Makefile.am): Likewise.
38412         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38413         * modules/string (Depends-on, Makefile.am): Likewise.
38414         * modules/strings (Depends-on, Makefile.am): Likewise.
38415         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38416         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38417         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38418         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38419         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38420         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38421         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38422         * modules/wchar (Depends-on, Makefile.am): Likewise.
38423         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38424         should be poisoned.
38425         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38426         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38427         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38428         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38429         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38430         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38431         * m4/math_h.m4 (gl_MATH_H): Likewise.
38432         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38433         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38434         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38435         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38436         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38437         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38438         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38439         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38440         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38442         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38443         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38444         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38445         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38446         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38447         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38448         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38449         GL_LINK_WARNING.
38450         * lib/ctype.in.h: Likewise.
38451         * lib/dirent.in.h: Likewise.
38452         * lib/fcntl.in.h: Likewise.
38453         * lib/inttypes.in.h: Likewise.
38454         * lib/langinfo.in.h: Likewise.
38455         * lib/locale.in.h: Likewise.
38456         * lib/math.in.h: Likewise.
38457         * lib/search.in.h: Likewise.
38458         * lib/signal.in.h: Likewise.
38459         * lib/spawn.in.h: Likewise.
38460         * lib/stdio.in.h: Likewise.
38461         * lib/stdlib.in.h: Likewise.
38462         * lib/string.in.h: Likewise.
38463         * lib/strings.in.h: Likewise.
38464         * lib/sys_file.in.h: Likewise.
38465         * lib/sys_ioctl.in.h: Likewise.
38466         * lib/sys_select.in.h: Likewise.
38467         * lib/sys_socket.in.h: Likewise.
38468         * lib/sys_stat.in.h: Likewise.
38469         * lib/sys_times.in.h: Likewise.
38470         * lib/sys_utsname.in.h: Likewise.
38471         * lib/unistd.in.h: Likewise.
38472         * lib/wchar.in.h: Likewise.
38473
38474 2010-01-20  Bruno Haible  <bruno@clisp.org>
38475
38476         Avoid duplicate -lm.
38477         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38478         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38479         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38480         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38481         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38482         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38483         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38484         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38485         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38486         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38487         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38488         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38489         Reported by Paolo Bonzini.
38490
38491 2010-01-19  Bruno Haible  <bruno@clisp.org>
38492
38493         langinfo, nl_langinfo: Relicense under LGPLv2+.
38494         * modules/langinfo (License): Change to LGPLv2+.
38495         * modules/nl_langinfo (License): Likewise.
38496         Patch by David Lutterkort <lutter@redhat.com>.
38497
38498 2010-01-19  Bruno Haible  <bruno@clisp.org>
38499
38500         Avoid compilation error with cc on OSF/1 5.1.
38501         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38502         statement, not before.
38503         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38504
38505 2010-01-18  Bruno Haible  <bruno@clisp.org>
38506
38507         Avoid a link error due to the __printf__ symbol.
38508         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38509         and 2.6.x.
38510         (__format__, __printf__): Remove definitions.
38511         * lib/argp-fmtstream.h: Likewise.
38512         * lib/argp.h: Likewise.
38513         * lib/error.h: Likewise.
38514         * lib/vasnprintf.h: Likewise.
38515         * lib/xprintf.h: Likewise.
38516         * lib/xvasprintf.h: Likewise.
38517         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38518
38519 2010-01-18  Bruno Haible  <bruno@clisp.org>
38520
38521         Tests for module 'tanl'.
38522         * modules/tanl-tests: New file.
38523         * tests/test-tanl.c: New file.
38524
38525         Tests for module 'sqrtl'.
38526         * modules/sqrtl-tests: New file.
38527         * tests/test-sqrtl.c: New file.
38528
38529         Tests for module 'sinl'.
38530         * modules/sinl-tests: New file.
38531         * tests/test-sinl.c: New file.
38532
38533         Tests for module 'logl'.
38534         * modules/logl-tests: New file.
38535         * tests/test-logl.c: New file.
38536
38537         Tests for module 'expl'.
38538         * modules/expl-tests: New file.
38539         * tests/test-expl.c: New file.
38540
38541         Tests for module 'cosl'.
38542         * modules/cosl-tests: New file.
38543         * tests/test-cosl.c: New file.
38544
38545         Tests for module 'atanl'.
38546         * modules/atanl-tests: New file.
38547         * tests/test-atanl.c: New file.
38548
38549         Tests for module 'asinl'.
38550         * modules/asinl-tests: New file.
38551         * tests/test-asinl.c: New file.
38552
38553         Tests for module 'acosl'.
38554         * modules/acosl-tests: New file.
38555         * tests/test-acosl.c: New file.
38556
38557         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38558         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38559         tanl): Use the standard gnulib idiom.
38560         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38561         * lib/sinl.c: Likewise.
38562         * lib/tanl.c: Don't include trigl.c.
38563         (kernel_tanl): Make static.
38564         * lib/sincosl.c: Include trigl.h first.
38565         * lib/trigl.c: Likewise.
38566         * m4/acosl.m4: New file.
38567         * m4/asinl.m4: New file.
38568         * m4/atanl.m4: New file.
38569         * m4/cosl.m4: New file.
38570         * m4/expl.m4: New file.
38571         * m4/logl.m4: New file.
38572         * m4/sinl.m4: New file.
38573         * m4/sqrtl.m4: New file.
38574         * m4/tanl.m4: New file.
38575         * m4/mathl.m4: Remove file.
38576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38577         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38578         Don't initialize GNULIB_MATHL.
38579         * modules/acosl: New file.
38580         * modules/asinl: New file.
38581         * modules/atanl: New file.
38582         * modules/cosl: New file.
38583         * modules/expl: New file.
38584         * modules/logl: New file.
38585         * modules/sinl: New file.
38586         * modules/sqrtl: New file.
38587         * modules/tanl: New file.
38588         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38589         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38590         substitute GNULIB_MATHL.
38591         * modules/mathl: Rewritten.
38592         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38593         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38594         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38595         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38596         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38597         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38598         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38599         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38600         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38601
38602 2010-01-18  Bruno Haible  <bruno@clisp.org>
38603
38604         sqrt: Make gl_FUNC_SQRT requirable.
38605         * m4/sqrt.m4: New file.
38606         * modules/sqrt (Files): Add it.
38607         (configure.ac): Invoke gl_FUNC_SQRT.
38608
38609 2010-01-18  Bruno Haible  <bruno@clisp.org>
38610
38611         New modules for common <math.h> functions.
38612         * m4/mathfunc.m4: New file.
38613         * modules/acos: New file.
38614         * modules/asin: New file.
38615         * modules/atan: New file.
38616         * modules/atan2: New file.
38617         * modules/cbrt: New file.
38618         * modules/copysign: New file.
38619         * modules/cos: New file.
38620         * modules/cosh: New file.
38621         * modules/erf: New file.
38622         * modules/erfc: New file.
38623         * modules/exp: New file.
38624         * modules/fabs: New file.
38625         * modules/fmod: New file.
38626         * modules/hypot: New file.
38627         * modules/j0: New file.
38628         * modules/j1: New file.
38629         * modules/jn: New file.
38630         * modules/ldexp: New file.
38631         * modules/lgamma: New file.
38632         * modules/log: New file.
38633         * modules/log10: New file.
38634         * modules/log1p: New file.
38635         * modules/logb: New file.
38636         * modules/modf: New file.
38637         * modules/nextafter: New file.
38638         * modules/pow: New file.
38639         * modules/remainder: New file.
38640         * modules/rint: New file.
38641         * modules/sin: New file.
38642         * modules/sinh: New file.
38643         * modules/sqrt: New file.
38644         * modules/tan: New file.
38645         * modules/tanh: New file.
38646         * modules/y0: New file.
38647         * modules/y1: New file.
38648         * modules/yn: New file.
38649         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38650         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38651         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38652         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38653         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38654         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38655         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38656         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38657         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38658         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38659         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38660         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38661         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38662         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38663         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38664         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38665         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38666         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38667         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38668         * doc/posix-functions/log.texi: Mention the 'log' module.
38669         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38670         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38671         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38672         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38673         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38674         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38675         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38676         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38677         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38678         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38679         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38680         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38681         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38682         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38683         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38684         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38685
38686 2010-01-18  Jim Meyering  <meyering@redhat.com>
38687
38688         ignore-value: relax license to LGPLv2+
38689         * modules/ignore-value (License): Relax to LGPLv2+.
38690
38691         getdate: don't leak when TZ contains two or more '"'s
38692         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38693         double quote in TZ after the first one.
38694
38695         readtokens: do not leak internal token_lengths buffer
38696         * lib/readtokens.c (readtokens): Free the local, lengths,
38697         when the supplied "token_lengths" parameter is NULL.
38698
38699 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38700
38701         Fix a couple of missing LIBTHREAD link failures on AIX.
38702         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38703         $(LIBTHREAD).
38704         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38705
38706         Link test-poll against INET_PTON_LIB.
38707         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38708         for inet_pton on Solaris 10.
38709
38710 2010-01-17  Bruno Haible  <bruno@clisp.org>
38711
38712         unistdio/*-sprintf: Fix typo in module description.
38713         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38714         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38715         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38716         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38717         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38718         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38719         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38720         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38721
38722 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38723
38724         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38725         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38726         variables in shell case patterns, for AIX and HP-UX ksh.
38727
38728         Split large sed scripts, for HP-UX sed.
38729         * modules/stdio: Split sed scripts around 50 sed commands,
38730         to avoid HP-UX limit of 99 commands, in the near future.
38731         * modules/string: Likewise.
38732         * modules/unistd: Likewise.
38733
38734         gnulib-tool: avoid writing in the current directory.
38735         * gnulib-tool (func_emit_lib_Makefile_am)
38736         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38737         not in the current directory, so concurrent gnulib-tool
38738         instances do not interfere.
38739
38740 2010-01-16  Jim Meyering  <meyering@redhat.com>
38741
38742         doc: update users.txt
38743         * users.txt: Add grep.
38744         (diffutils, gzip): Update URLs.
38745
38746 2010-01-12  Bruno Haible  <bruno@clisp.org>
38747
38748         posix_spawn: Avoid test failure on Cygwin.
38749         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38750         characters.
38751         Reported by Simon Josefsson.
38752
38753 2010-01-12  Bruno Haible  <bruno@clisp.org>
38754
38755         * tests/test-cond.c (main): When skipping the test, show the reason.
38756
38757 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38758
38759         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38760
38761 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38762
38763         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38764         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38765
38766 2010-01-12  Eric Blake  <ebb9@byu.net>
38767
38768         build: guarantee AS_VAR_IF
38769         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38770         (gl_AS_VAR_IF): Move...
38771         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38772         Reported by Simon Josefsson.
38773
38774 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38775
38776         * lib/stdio.in.h: Fix typo.
38777
38778 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38779
38780         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38781         libgpg-error.
38782
38783 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38784
38785         * tests/test-xalloc-die.sh: Use $EXEEXT.
38786
38787 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38788             Bruno Haible  <bruno@clisp.org>
38789
38790         getlogin, getlogin_r: Avoid test failure.
38791         * tests/test-getlogin.c: Include <stdio.h>.
38792         (main): Skip the test when the function fails because stdin is not a
38793         tty.
38794         * tests/test-getlogin_r.c: Include <stdio.h>.
38795         (main): Skip the test when the function fails because stdin is not a
38796         tty.
38797
38798 2010-01-11  Eric Blake  <ebb9@byu.net>
38799
38800         tests: avoid more large file warnings
38801         * tests/test-fflush.c: Avoid warning about ftell use.
38802         * tests/test-fseek.c: Avoid warning about fseek use.
38803
38804 2010-01-10  Bruno Haible  <bruno@clisp.org>
38805
38806         nproc: Work better on Linux when /proc and /sys are not mounted.
38807         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38808         as lower bound when, on glibc/Linux systems,
38809         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38810         Suggested by Pádraig Brady <P@draigbrady.com>.
38811         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38812
38813         nproc: Refactor.
38814         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38815         extracted from num_processors.
38816         (num_processors): Call it.
38817
38818 2010-01-11  Jim Meyering  <meyering@redhat.com>
38819
38820         utimecmp: avoid new warning from upcoming gcc-4.5.0
38821         * lib/utimecmp.c (BILLION): Define using #define rather than an
38822         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38823
38824 2010-01-11  Eric Blake  <ebb9@byu.net>
38825
38826         math: add portability warnings for classification macros
38827         * modules/math (Depends-on): Add warn-on-use.
38828         (Makefile.am): Provide new substitutions.
38829         * m4/math_h.m4 (gl_MATH_H): Require inline.
38830         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38831         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38832         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38833         implement warnings.
38834
38835         unistd: warn on use of environ without module
38836         * modules/unistd (Depends-on): Add warn-on-use.
38837         (Makefile.am): Provide new substitutions.
38838         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38839         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38840
38841         stdio: warn on suspicious uses
38842         * modules/stdio (Depends-on): Add warn-on-use.
38843         (Makefile.am): Provide new substitutions.
38844         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38845         fseeko.
38846         * lib/stdio.in.h (gets): Always warn on use.
38847         (fseek, ftell): Adjust when warnings are issued, and honor
38848         _GL_NO_LARGE_FILES as a way to silence the warning.
38849         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38850         any warning about large file offsets.
38851         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38852         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38853         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38854         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38855         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38856         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38857         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38858         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38859
38860         warn-on-use: new module
38861         * modules/warn-on-use: New file.
38862         * build-aux/warn-on-use.h: Likewise.
38863         * m4/warn-on-use.m4: Likewise.
38864         * MODULES.html.sh (Support for building): Mention it.
38865
38866 2010-01-10  Bruno Haible  <bruno@clisp.org>
38867
38868         Tests for module 'unistr/u32-strdup'.
38869         * modules/unistr/u32-strdup-tests: New file.
38870         * tests/unistr/test-u32-strdup.c: New file.
38871
38872         Tests for module 'unistr/u16-strdup'.
38873         * modules/unistr/u16-strdup-tests: New file.
38874         * tests/unistr/test-u16-strdup.c: New file.
38875
38876         Tests for module 'unistr/u8-strdup'.
38877         * modules/unistr/u8-strdup-tests: New file.
38878         * tests/unistr/test-u8-strdup.c: New file.
38879         * tests/unistr/test-strdup.h: New file.
38880
38881         Tests for module 'unistr/u32-strncmp'.
38882         * modules/unistr/u32-strncmp-tests: New file.
38883         * tests/unistr/test-u32-strncmp.c: New file.
38884
38885         Tests for module 'unistr/u16-strncmp'.
38886         * modules/unistr/u16-strncmp-tests: New file.
38887         * tests/unistr/test-u16-strncmp.c: New file.
38888
38889         Tests for module 'unistr/u8-strncmp'.
38890         * modules/unistr/u8-strncmp-tests: New file.
38891         * tests/unistr/test-u8-strncmp.c: New file.
38892         * tests/unistr/test-strncmp.h: New file.
38893
38894         Tests for module 'unistr/u32-strcoll'.
38895         * modules/unistr/u32-strcoll-tests: New file.
38896         * tests/unistr/test-u32-strcoll.c: New file.
38897
38898         Tests for module 'unistr/u16-strcoll'.
38899         * modules/unistr/u16-strcoll-tests: New file.
38900         * tests/unistr/test-u16-strcoll.c: New file.
38901
38902         Tests for module 'unistr/u8-strcoll'.
38903         * modules/unistr/u8-strcoll-tests: New file.
38904         * tests/unistr/test-u8-strcoll.c: New file.
38905
38906         Tests for module 'unistr/u32-strcmp'.
38907         * modules/unistr/u32-strcmp-tests: New file.
38908         * tests/unistr/test-u32-strcmp.c: New file.
38909         * tests/unistr/test-u32-strcmp.h: New file.
38910
38911         Tests for module 'unistr/u16-strcmp'.
38912         * modules/unistr/u16-strcmp-tests: New file.
38913         * tests/unistr/test-u16-strcmp.c: New file.
38914         * tests/unistr/test-u16-strcmp.h: New file.
38915
38916         Tests for module 'unistr/u8-strcmp'.
38917         * modules/unistr/u8-strcmp-tests: New file.
38918         * tests/unistr/test-u8-strcmp.c: New file.
38919         * tests/unistr/test-u8-strcmp.h: New file.
38920         * tests/unistr/test-strcmp.h: New file.
38921
38922         Tests for module 'unistr/u32-strncat'.
38923         * modules/unistr/u32-strncat-tests: New file.
38924         * tests/unistr/test-u32-strncat.c: New file.
38925
38926         Tests for module 'unistr/u16-strncat'.
38927         * modules/unistr/u16-strncat-tests: New file.
38928         * tests/unistr/test-u16-strncat.c: New file.
38929
38930         Tests for module 'unistr/u8-strncat'.
38931         * modules/unistr/u8-strncat-tests: New file.
38932         * tests/unistr/test-u8-strncat.c: New file.
38933         * tests/unistr/test-strncat.h: New file.
38934
38935         Tests for module 'unistr/u32-strcat'.
38936         * modules/unistr/u32-strcat-tests: New file.
38937         * tests/unistr/test-u32-strcat.c: New file.
38938
38939         Tests for module 'unistr/u16-strcat'.
38940         * modules/unistr/u16-strcat-tests: New file.
38941         * tests/unistr/test-u16-strcat.c: New file.
38942
38943         Tests for module 'unistr/u8-strcat'.
38944         * modules/unistr/u8-strcat-tests: New file.
38945         * tests/unistr/test-u8-strcat.c: New file.
38946         * tests/unistr/test-strcat.h: New file.
38947
38948         Tests for module 'unistr/u32-stpncpy'.
38949         * modules/unistr/u32-stpncpy-tests: New file.
38950         * tests/unistr/test-u32-stpncpy.c: New file.
38951
38952         Tests for module 'unistr/u16-stpncpy'.
38953         * modules/unistr/u16-stpncpy-tests: New file.
38954         * tests/unistr/test-u16-stpncpy.c: New file.
38955
38956         Tests for module 'unistr/u8-stpncpy'.
38957         * modules/unistr/u8-stpncpy-tests: New file.
38958         * tests/unistr/test-u8-stpncpy.c: New file.
38959         * tests/unistr/test-stpncpy.h: New file.
38960
38961         Tests for module 'unistr/u32-strncpy'.
38962         * modules/unistr/u32-strncpy-tests: New file.
38963         * tests/unistr/test-u32-strncpy.c: New file.
38964
38965         Tests for module 'unistr/u16-strncpy'.
38966         * modules/unistr/u16-strncpy-tests: New file.
38967         * tests/unistr/test-u16-strncpy.c: New file.
38968
38969         Tests for module 'unistr/u8-strncpy'.
38970         * modules/unistr/u8-strncpy-tests: New file.
38971         * tests/unistr/test-u8-strncpy.c: New file.
38972         * tests/unistr/test-strncpy.h: New file.
38973
38974         Tests for module 'unistr/u32-stpcpy'.
38975         * modules/unistr/u32-stpcpy-tests: New file.
38976         * tests/unistr/test-u32-stpcpy.c: New file.
38977
38978         Tests for module 'unistr/u16-stpcpy'.
38979         * modules/unistr/u16-stpcpy-tests: New file.
38980         * tests/unistr/test-u16-stpcpy.c: New file.
38981
38982         Tests for module 'unistr/u8-stpcpy'.
38983         * modules/unistr/u8-stpcpy-tests: New file.
38984         * tests/unistr/test-u8-stpcpy.c: New file.
38985         * tests/unistr/test-stpcpy.h: New file.
38986
38987         Tests for module 'unistr/u32-strcpy'.
38988         * modules/unistr/u32-strcpy-tests: New file.
38989         * tests/unistr/test-u32-strcpy.c: New file.
38990
38991         Tests for module 'unistr/u16-strcpy'.
38992         * modules/unistr/u16-strcpy-tests: New file.
38993         * tests/unistr/test-u16-strcpy.c: New file.
38994
38995         Tests for module 'unistr/u8-strcpy'.
38996         * modules/unistr/u8-strcpy-tests: New file.
38997         * tests/unistr/test-u8-strcpy.c: New file.
38998         * tests/unistr/test-strcpy.h: New file.
38999
39000         Tests for module 'unistr/u32-strnlen'.
39001         * modules/unistr/u32-strnlen-tests: New file.
39002         * tests/unistr/test-u32-strnlen.c: New file.
39003
39004         Tests for module 'unistr/u16-strnlen'.
39005         * modules/unistr/u16-strnlen-tests: New file.
39006         * tests/unistr/test-u16-strnlen.c: New file.
39007
39008         Tests for module 'unistr/u8-strnlen'.
39009         * modules/unistr/u8-strnlen-tests: New file.
39010         * tests/unistr/test-u8-strnlen.c: New file.
39011         * tests/unistr/test-strnlen.h: New file.
39012
39013         Tests for module 'unistr/u32-strlen'.
39014         * modules/unistr/u32-strlen-tests: New file.
39015         * tests/unistr/test-u32-strlen.c: New file.
39016
39017         Tests for module 'unistr/u16-strlen'.
39018         * modules/unistr/u16-strlen-tests: New file.
39019         * tests/unistr/test-u16-strlen.c: New file.
39020
39021         Tests for module 'unistr/u8-strlen'.
39022         * modules/unistr/u8-strlen-tests: New file.
39023         * tests/unistr/test-u8-strlen.c: New file.
39024
39025         Tests for module 'unistr/u32-prev'.
39026         * modules/unistr/u32-prev-tests: New file.
39027         * tests/unistr/test-u32-prev.c: New file.
39028
39029         Tests for module 'unistr/u16-prev'.
39030         * modules/unistr/u16-prev-tests: New file.
39031         * tests/unistr/test-u16-prev.c: New file.
39032
39033         Tests for module 'unistr/u8-prev'.
39034         * modules/unistr/u8-prev-tests: New file.
39035         * tests/unistr/test-u8-prev.c: New file.
39036
39037         Tests for module 'unistr/u32-next'.
39038         * modules/unistr/u32-next-tests: New file.
39039         * tests/unistr/test-u32-next.c: New file.
39040
39041         Tests for module 'unistr/u16-next'.
39042         * modules/unistr/u16-next-tests: New file.
39043         * tests/unistr/test-u16-next.c: New file.
39044
39045         Tests for module 'unistr/u8-next'.
39046         * modules/unistr/u8-next-tests: New file.
39047         * tests/unistr/test-u8-next.c: New file.
39048
39049         Tests for module 'unistr/u32-strmbtouc'.
39050         * modules/unistr/u32-strmbtouc-tests: New file.
39051         * tests/unistr/test-u32-strmbtouc.c: New file.
39052
39053         Tests for module 'unistr/u16-strmbtouc'.
39054         * modules/unistr/u16-strmbtouc-tests: New file.
39055         * tests/unistr/test-u16-strmbtouc.c: New file.
39056
39057         Tests for module 'unistr/u8-strmbtouc'.
39058         * modules/unistr/u8-strmbtouc-tests: New file.
39059         * tests/unistr/test-u8-strmbtouc.c: New file.
39060
39061         Tests for module 'unistr/u32-strmblen'.
39062         * modules/unistr/u32-strmblen-tests: New file.
39063         * tests/unistr/test-u32-strmblen.c: New file.
39064
39065         Tests for module 'unistr/u16-strmblen'.
39066         * modules/unistr/u16-strmblen-tests: New file.
39067         * tests/unistr/test-u16-strmblen.c: New file.
39068
39069         Tests for module 'unistr/u8-strmblen'.
39070         * modules/unistr/u8-strmblen-tests: New file.
39071         * tests/unistr/test-u8-strmblen.c: New file.
39072
39073         Tests for module 'unistr/u32-cpy-alloc'.
39074         * modules/unistr/u32-cpy-alloc-tests: New file.
39075         * tests/unistr/test-u32-cpy-alloc.c: New file.
39076
39077         Tests for module 'unistr/u16-cpy-alloc'.
39078         * modules/unistr/u16-cpy-alloc-tests: New file.
39079         * tests/unistr/test-u16-cpy-alloc.c: New file.
39080
39081         Tests for module 'unistr/u8-cpy-alloc'.
39082         * modules/unistr/u8-cpy-alloc-tests: New file.
39083         * tests/unistr/test-u8-cpy-alloc.c: New file.
39084         * tests/unistr/test-cpy-alloc.h: New file.
39085
39086         Tests for module 'unistr/u32-mbsnlen'.
39087         * modules/unistr/u32-mbsnlen-tests: New file.
39088         * tests/unistr/test-u32-mbsnlen.c: New file.
39089
39090         Tests for module 'unistr/u16-mbsnlen'.
39091         * modules/unistr/u16-mbsnlen-tests: New file.
39092         * tests/unistr/test-u16-mbsnlen.c: New file.
39093
39094         Tests for module 'unistr/u8-mbsnlen'.
39095         * modules/unistr/u8-mbsnlen-tests: New file.
39096         * tests/unistr/test-u8-mbsnlen.c: New file.
39097
39098         Tests for module 'unistr/u32-chr'.
39099         * modules/unistr/u32-chr-tests: New file.
39100         * tests/unistr/test-u32-chr.c: New file.
39101
39102         Tests for module 'unistr/u16-chr'.
39103         * modules/unistr/u16-chr-tests: New file.
39104         * tests/unistr/test-u16-chr.c: New file.
39105
39106         Tests for module 'unistr/u8-chr'.
39107         * modules/unistr/u8-chr-tests: New file.
39108         * tests/unistr/test-u8-chr.c: New file.
39109         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39110
39111         Tests for module 'unistr/u32-cmp2'.
39112         * modules/unistr/u32-cmp2-tests: New file.
39113         * tests/unistr/test-u32-cmp2.c: New file.
39114
39115         Tests for module 'unistr/u16-cmp2'.
39116         * modules/unistr/u16-cmp2-tests: New file.
39117         * tests/unistr/test-u16-cmp2.c: New file.
39118
39119         Tests for module 'unistr/u8-cmp2'.
39120         * modules/unistr/u8-cmp2-tests: New file.
39121         * tests/unistr/test-u8-cmp2.c: New file.
39122         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39123
39124         Tests for module 'unistr/u32-cmp'.
39125         * modules/unistr/u32-cmp-tests: New file.
39126         * tests/unistr/test-u32-cmp.c: New file.
39127
39128         Tests for module 'unistr/u16-cmp'.
39129         * modules/unistr/u16-cmp-tests: New file.
39130         * tests/unistr/test-u16-cmp.c: New file.
39131
39132         Tests for module 'unistr/u8-cmp'.
39133         * modules/unistr/u8-cmp-tests: New file.
39134         * tests/unistr/test-u8-cmp.c: New file.
39135         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39136
39137         Tests for module 'unistr/u32-set'.
39138         * modules/unistr/u32-set-tests: New file.
39139         * tests/unistr/test-u32-set.c: New file.
39140
39141         Tests for module 'unistr/u16-set'.
39142         * modules/unistr/u16-set-tests: New file.
39143         * tests/unistr/test-u16-set.c: New file.
39144
39145         Tests for module 'unistr/u8-set'.
39146         * modules/unistr/u8-set-tests: New file.
39147         * tests/unistr/test-u8-set.c: New file.
39148         * tests/unistr/test-set.h: New file.
39149
39150         Tests for module 'unistr/u32-move'.
39151         * modules/unistr/u32-move-tests: New file.
39152         * tests/unistr/test-u32-move.c: New file.
39153
39154         Tests for module 'unistr/u16-move'.
39155         * modules/unistr/u16-move-tests: New file.
39156         * tests/unistr/test-u16-move.c: New file.
39157
39158         Tests for module 'unistr/u8-move'.
39159         * modules/unistr/u8-move-tests: New file.
39160         * tests/unistr/test-u8-move.c: New file.
39161         * tests/unistr/test-move.h: New file.
39162
39163         Tests for module 'unistr/u32-cpy'.
39164         * modules/unistr/u32-cpy-tests: New file.
39165         * tests/unistr/test-u32-cpy.c: New file.
39166
39167         Tests for module 'unistr/u16-cpy'.
39168         * modules/unistr/u16-cpy-tests: New file.
39169         * tests/unistr/test-u16-cpy.c: New file.
39170
39171         Tests for module 'unistr/u8-cpy'.
39172         * modules/unistr/u8-cpy-tests: New file.
39173         * tests/unistr/test-u8-cpy.c: New file.
39174         * tests/unistr/test-cpy.h: New file.
39175
39176 2010-01-09  Bruno Haible  <bruno@clisp.org>
39177
39178         Tests for module 'unistr/u32-uctomb'.
39179         * modules/unistr/u32-uctomb-tests: New file.
39180         * tests/unistr/test-u32-uctomb.c: New file.
39181
39182         Tests for module 'unistr/u16-uctomb'.
39183         * modules/unistr/u16-uctomb-tests: New file.
39184         * tests/unistr/test-u16-uctomb.c: New file.
39185
39186         Tests for module 'unistr/u8-uctomb'.
39187         * modules/unistr/u8-uctomb-tests: New file.
39188         * tests/unistr/test-u8-uctomb.c: New file.
39189
39190         Tests for module 'unistr/u32-mbtoucr'.
39191         * modules/unistr/u32-mbtoucr-tests: New file.
39192         * tests/unistr/test-u32-mbtoucr.c: New file.
39193
39194         Tests for module 'unistr/u16-mbtoucr'.
39195         * modules/unistr/u16-mbtoucr-tests: New file.
39196         * tests/unistr/test-u16-mbtoucr.c: New file.
39197
39198         Tests for module 'unistr/u8-mbtoucr'.
39199         * modules/unistr/u8-mbtoucr-tests: New file.
39200         * tests/unistr/test-u8-mbtoucr.c: New file.
39201
39202         Tests for module 'unistr/u32-mbtouc'.
39203         * modules/unistr/u32-mbtouc-tests: New file.
39204         * tests/unistr/test-u32-mbtouc.c: New file.
39205
39206         Tests for module 'unistr/u16-mbtouc'.
39207         * modules/unistr/u16-mbtouc-tests: New file.
39208         * tests/unistr/test-u16-mbtouc.c: New file.
39209
39210         Tests for module 'unistr/u8-mbtouc'.
39211         * modules/unistr/u8-mbtouc-tests: New file.
39212         * tests/unistr/test-u8-mbtouc.c: New file.
39213
39214         Tests for module 'unistr/u32-mbtouc-unsafe'.
39215         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39216         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39217         * tests/unistr/test-u32-mbtouc.h: New file.
39218
39219         Tests for module 'unistr/u16-mbtouc-unsafe'.
39220         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39221         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39222         * tests/unistr/test-u16-mbtouc.h: New file.
39223
39224         Tests for module 'unistr/u8-mbtouc-unsafe'.
39225         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39226         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39227         * tests/unistr/test-u8-mbtouc.h: New file.
39228
39229         Tests for module 'unistr/u32-mblen'.
39230         * modules/unistr/u32-mblen-tests: New file.
39231         * tests/unistr/test-u32-mblen.c: New file.
39232
39233         Tests for module 'unistr/u16-mblen'.
39234         * modules/unistr/u16-mblen-tests: New file.
39235         * tests/unistr/test-u16-mblen.c: New file.
39236
39237         Tests for module 'unistr/u8-mblen'.
39238         * modules/unistr/u8-mblen-tests: New file.
39239         * tests/unistr/test-u8-mblen.c: New file.
39240
39241         Tests for module 'unistr/u32-to-u16'.
39242         * modules/unistr/u32-to-u16-tests: New file.
39243         * tests/unistr/test-u32-to-u16.c: New file.
39244
39245         Tests for module 'unistr/u32-to-u8'.
39246         * modules/unistr/u32-to-u8-tests: New file.
39247         * tests/unistr/test-u32-to-u8.c: New file.
39248
39249         Tests for module 'unistr/u16-to-u32'.
39250         * modules/unistr/u16-to-u32-tests: New file.
39251         * tests/unistr/test-u16-to-u32.c: New file.
39252
39253         Tests for module 'unistr/u16-to-u8'.
39254         * modules/unistr/u16-to-u8-tests: New file.
39255         * tests/unistr/test-u16-to-u8.c: New file.
39256
39257         Tests for module 'unistr/u8-to-u32'.
39258         * modules/unistr/u8-to-u32-tests: New file.
39259         * tests/unistr/test-u8-to-u32.c: New file.
39260
39261         Tests for module 'unistr/u8-to-u16'.
39262         * modules/unistr/u8-to-u16-tests: New file.
39263         * tests/unistr/test-u8-to-u16.c: New file.
39264
39265         Tests for module 'unistr/u32-check'.
39266         * modules/unistr/u32-check-tests: New file.
39267         * tests/unistr/test-u32-check.c: New file.
39268
39269         Tests for module 'unistr/u16-check'.
39270         * modules/unistr/u16-check-tests: New file.
39271         * tests/unistr/test-u16-check.c: New file.
39272
39273         Tests for module 'unistr/u8-check'.
39274         * modules/unistr/u8-check-tests: New file.
39275         * tests/unistr/test-u8-check.c: New file.
39276
39277         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39278         (category_equals): New function.
39279         (main): Add more tests.
39280         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39281
39282         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39283
39284 2010-01-10  Bruno Haible  <bruno@clisp.org>
39285
39286         unistr/u*-strcoll: Try harder to distinguish different strings.
39287         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39288         compare s1 and s2 to see if they are different.
39289
39290 2010-01-10  Bruno Haible  <bruno@clisp.org>
39291
39292         unistr/u*-stpncpy: Fix the return value.
39293         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39294         description of the return value consistent with stpncpy in glibc.
39295         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39296         written non-NUL unit.
39297
39298 2010-01-10  Bruno Haible  <bruno@clisp.org>
39299
39300         unistr/u*-next: Add missing dependencies.
39301         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39302         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39303         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39304
39305 2010-01-10  Bruno Haible  <bruno@clisp.org>
39306
39307         unistr/u8-mbsnlen: Fix return value for incomplete character.
39308         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39309         u8_mblen.
39310         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39311         Remove unistr/u8-mblen.
39312         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39313         u16_mblen.
39314         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39315         Remove unistr/u16-mblen.
39316
39317 2010-01-10  Bruno Haible  <bruno@clisp.org>
39318
39319         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39320         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39321         Reported by Brian Gough <bjg@gnu.org> and
39322         Chris Clayton <chris2553@googlemail.com> via
39323         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39324
39325 2010-01-09  Bruno Haible  <bruno@clisp.org>
39326
39327         unistr/u16-to-u32: Reject invalid input.
39328         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39329         u16_mbtouc.
39330         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39331         Remove unistr/u16-mbtouc.
39332
39333         unistr/u16-to-u8: Reject invalid input.
39334         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39335         u16_mbtouc.
39336         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39337         Remove unistr/u16-mbtouc.
39338
39339         unistr/u8-to-u32: Reject invalid input.
39340         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39341         u8_mbtouc.
39342         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39343         Remove unistr/u8-mbtouc.
39344
39345         unistr/u8-to-u16: Reject invalid input.
39346         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39347         u8_mbtouc.
39348         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39349         Remove unistr/u8-mbtouc.
39350
39351 2010-01-09  Bruno Haible  <bruno@clisp.org>
39352
39353         Tests for module 'getlogin'.
39354         * modules/getlogin-tests: New file.
39355         * tests/test-getlogin.c: New file.
39356
39357         New module 'getlogin'.
39358         * lib/unistd.in.h (getlogin): New declaration.
39359         * lib/getlogin.c: New file.
39360         * m4/getlogin.m4: New file.
39361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39362         HAVE_GETLOGIN.
39363         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39364         HAVE_GETLOGIN.
39365         * modules/getlogin: New file.
39366         * doc/posix-functions/getlogin.texi: Mention the new module.
39367         Reported by John W. Eaton <jwe@gnu.org>.
39368
39369 2010-01-09  Bruno Haible  <bruno@clisp.org>
39370
39371         getlogin_r: Support for native Windows.
39372         * lib/getlogin_r.c: Include <windows.h>
39373         (getlogin_r): Implement for native Windows.
39374         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39375         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39376         via John W. Eaton <jwe@gnu.org>.
39377
39378 2010-01-09  Bruno Haible  <bruno@clisp.org>
39379
39380         getlogin_r: Small fixes.
39381         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39382         succeeds.
39383         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39384         before testing whether getlogin_r is declared. No need to set
39385         HAVE_DECL_GETLOGIN_R to 1.
39386         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39387
39388 2010-01-09  Bruno Haible  <bruno@clisp.org>
39389
39390         * lib/unistd.in.h (getlogin_r): Add comment.
39391
39392 2010-01-09  Bruno Haible  <bruno@clisp.org>
39393
39394         Tests for module 'getlogin_r'.
39395         * modules/getlogin_r-tests: New file.
39396         * tests/test-getlogin_r.c: New file.
39397
39398 2010-01-09  Jim Meyering  <meyering@redhat.com>
39399
39400         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39401         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39402         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39403
39404 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39405
39406         * lib/dup2.c (rpl_dup2): Improve comment.
39407
39408 2010-01-08  Eric Blake  <ebb9@byu.net>
39409
39410         maint.mk: allow packages to add makefile @@ exceptions
39411         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39412         (sc_makefile_check): Rename...
39413         (sc_makefile_at_at_check): ...to this, and use hook.
39414
39415         dup2: work around mingw bug
39416         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39417         Reported by Simon Josefsson.
39418
39419 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39420
39421         glob: Fix C++ compilation.
39422         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39423         C++.
39424
39425 2010-01-07  Bruno Haible  <bruno@clisp.org>
39426
39427         Fix indentation of wctype.in.h, broken since 2007-01-06.
39428         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39429
39430 2010-01-07  Bruno Haible  <bruno@clisp.org>
39431
39432         mbslen: Avoid collision with system function.
39433         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39434         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39435         * m4/mbslen.m4: New file.
39436         * modules/mbslen (Files): Add it.
39437         (configure.ac): Invoke gl_MBSLEN.
39438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39439         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39440         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39441         via Ian Beckwith <ianb@erislabs.net>.
39442
39443 2010-01-07  Bruno Haible  <bruno@clisp.org>
39444
39445         dirent: Document the last fix.
39446         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39447
39448 2010-01-07  Bruno Haible  <bruno@clisp.org>
39449
39450         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39451         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39452         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39453         va_list are defined.
39454         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39455         Reported by Eric Blake.
39456
39457 2010-01-07  Bruno Haible  <bruno@clisp.org>
39458
39459         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39460         * modules/xlist (Depends-on): Add 'list',
39461         * modules/xoset (Depends-on): Add 'oset'.
39462         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39463
39464 2010-01-07  Bruno Haible  <bruno@clisp.org>
39465
39466         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39467         * doc/posix-functions/strncasecmp.texi: Likewise.
39468
39469 2010-01-07  Bruno Haible  <bruno@clisp.org>
39470
39471         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39472
39473 2010-01-07  John W. Eaton  <jwe@octave.org>
39474
39475         wctype: allow C++ use
39476         * lib/wctype.in.h: Add extern "C" block for C++.
39477
39478 2010-01-06  Eric Blake  <ebb9@byu.net>
39479
39480         maint.mk: detect incorrect GFDL usage
39481         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39482
39483 2010-01-06  Jim Meyering  <meyering@redhat.com>
39484         and Eric Blake  <ebb9@byu.net>
39485
39486         maint.mk: ignore multi-line copyright in NEWS
39487         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39488
39489 2010-01-06  Eric Blake  <ebb9@byu.net>
39490
39491         select: add missing dependency
39492         * modules/select-tests (Depends-on): Move sockets dependency...
39493         * modules/select (Depends-on): ...here.
39494         Reported by Ian Beckwith.
39495
39496         doc: regenerate INSTALL
39497         * doc/INSTALL: Reflect recent autoconf update.
39498         * doc/INSTALL.ISO: Likewise.
39499         * doc/INSTALL.UTF-8: Likewise.
39500
39501         pread: fix compilation on glibc
39502         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39503         Reported by Ralf Wildenhues.
39504
39505         dirent: fix test failure
39506         * lib/dirent.in.h (includes): Guarantee ino_t.
39507         Reported by Ralf Wildenhues.
39508
39509 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39510
39511         linkat, renameat: avoid bad free
39512         * lib/at-func2.c (at_func2): Fix typo.
39513         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39514
39515 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39516
39517         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39518         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39519         to avoid failure of symlink test later.
39520
39521 2010-01-06  Eric Blake  <ebb9@byu.net>
39522
39523         stdio, unistd: guarantee ssize_t
39524         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39525         2008 are exposed when needed.
39526         * lib/stdio.in.h (includes): Likewise.
39527         Reported by Ralf Wildenhues.
39528
39529 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39530
39531         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39532         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39533         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39534
39535 2010-01-06  Jim Meyering  <meyering@redhat.com>
39536
39537         readtokens: this module *does* require xalloc.h
39538         It uses only functions that were omitted by the old syntax-check rule.
39539         * lib/readtokens.c: Include "xalloc.h" once again.
39540         * modules/readtokens (Depends-on): Add xalloc.
39541         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39542
39543 2010-01-05  Eric Blake  <ebb9@byu.net>
39544
39545         maint: support 'make announcement' from a VPATH build
39546         * top/maint.mk (announcement): Look for correct NEWS file.
39547
39548 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39549
39550         utimens (fdutimens): ignore a negative FD, per contract
39551         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39552         when we have a valid file descriptor.  Otherwise, using a brand
39553         new glibc (with just-patched futimens that now fails with EBADF)
39554         would cause this function to fail with ENOSYS.
39555         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39556         See also http://bugzilla.redhat.com/552320.
39557
39558 2010-01-05  Eric Blake  <ebb9@byu.net>
39559
39560         strcase: document what it provides
39561         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39562         gnulib module.
39563         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39564         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39565
39566 2010-01-05  Jim Meyering  <meyering@redhat.com>
39567
39568         maint: remove useless inclusions of "xalloc.h"
39569         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39570         * lib/readtokens.c: Likewise.
39571         * lib/same.c: Likewise.
39572         * modules/getloadavg (Depends-on): Remove xalloc.
39573         * modules/readtokens: Likewise.
39574         * modules/same: Likewise.
39575
39576         maint.mk: include 4 more function names in alloca.h-checking regexp
39577         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39578         regexp.  Before, we would give a false-positive (saying alloca.h
39579         is included unnecessarily) when the only uses involved omitted symbols.
39580
39581         xalloc.h: use consistent formatting
39582         * lib/xalloc.h: Move declarations to start in the first column.
39583
39584 2010-01-05  Eric Blake  <ebb9@byu.net>
39585
39586         mkdir: avoid xalloc
39587         * lib/mkdir.c (includes): Drop unused header.
39588         Reported by John W. Eaton.
39589
39590 2010-01-04  Jim Meyering  <meyering@redhat.com>
39591
39592         nl_langinfo: avoid configure-time syntax error
39593         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39594         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39595         the empty string.  Don't let that provoke a shell syntax error.
39596
39597         regcomp, regexec, fnmatch: avoid array bounds read error
39598         * lib/regcomp.c (build_equiv_class): From glibc:
39599         Use only the low 24 bits of a findidx return value as an index
39600         into the weights array.  Patch by Ulrich Drepper:
39601         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39602         * lib/regexec.c (check_node_accept_bytes): Likewise.
39603         * lib/fnmatch_loop.c (FCT): Likewise.
39604
39605         regcomp: skip collseq lookup when there are no rules
39606         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39607         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39608
39609         regcomp: recognize ill-formed { } expressions
39610         * lib/regcomp.c (parse_dup_op): From glibc:
39611         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39612
39613         regcomp: fix typo in comment
39614         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39615         s/satisfy/satisfies/.
39616
39617         regcomp: sync from glibc: remove dead store
39618         * lib/regcomp.c (duplicate_node_closure): Remove useless
39619         search_duplicated_node call and dead store.
39620
39621         regcomp: sync from glibc; always use nl_langinfo
39622         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39623         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39624         * modules/regex (Depends-on): Add nl_langinfo.
39625
39626 2010-01-04  Eric Blake  <ebb9@byu.net>
39627
39628         fdopendir: fix configure test
39629         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39630
39631 2010-01-01  Bruno Haible  <bruno@clisp.org>
39632
39633         wchar: Remove unused configure check.
39634         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39635
39636 2010-01-01  Eric Blake  <ebb9@byu.net>
39637
39638         headers: make check of system header explicit
39639         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39640         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39641         ourselves.
39642         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39643         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39644         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39645         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39646         internals.
39647         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39648         missing.
39649         Suggested by Bruno Haible.
39650
39651 2010-01-01  Jim Meyering  <meyering@redhat.com>
39652
39653         ChangeLog: tweak to eliminate unnecessary copyright line
39654         * ChangeLog: Remove a copyright line that was mistakenly updated
39655         by today's update-copyright run.  Reported by Eric Blake.
39656
39657         test-update-copyright: don't let envvar setting cause test failure
39658         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39659
39660 2010-01-01  Bruno Haible  <bruno@clisp.org>
39661
39662         localename: Avoid gcc warning.
39663         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39664         function if it is not used.
39665
39666 2010-01-01  Jim Meyering  <meyering@redhat.com>
39667
39668         update nearly all FSF copyright year lists to include 2010
39669         Use the same procedure as for 2009, outlined in
39670         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39671
39672         version-etc: set COPYRIGHT_YEAR to 2010
39673         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39674
39675 2009-12-31  Eric Blake  <ebb9@byu.net>
39676
39677         doc: correct availability of cygwin 1.5.x getopt
39678         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39679         variables.
39680         * doc/posix-functions/opterr.texi (opterr): Likewise.
39681         * doc/posix-functions/optind.texi (optind): Likewise.
39682         * doc/posix-functions/optopt.texi (optopt): Likewise.
39683         * doc/posix-functions/tzname.texi (tzname): Likewise.
39684
39685         openat: update maintainer
39686         * modules/openat (Maintainer): Add myself.
39687
39688         utimens: avoid shadowing warning
39689         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39690         buffers into one, to avoid shadowing, as well as avoiding a
39691         redundant stat.
39692         Reported by Jim Meyering.
39693
39694         test-dup2: avoid compiler warning
39695         * tests/test-dup2.c (is_inheritable): Only define if used.
39696
39697 2010-01-01  Bruno Haible  <bruno@clisp.org>
39698
39699         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39700         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39701         defined, use wctomb instead of wcrtomb.
39702
39703 2010-01-01  Bruno Haible  <bruno@clisp.org>
39704
39705         iconv: Reject native Solaris iconv.
39706         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39707         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39708
39709 2009-12-31  Bruno Haible  <bruno@clisp.org>
39710
39711         * tests/test-signal.c (main): Remove test of 'SIG'.
39712
39713 2009-12-31  Bruno Haible  <bruno@clisp.org>
39714
39715         spawn: Fix incomplete fix.
39716         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39717         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39718         warnings for GNULIB_POSIXCHECK again.
39719         Reported by Eric Blake.
39720
39721 2009-12-31  Bruno Haible  <bruno@clisp.org>
39722
39723         Avoid namespace pollution on glibc systems.
39724         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39725         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39726         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39727         glibc systems.
39728
39729 2009-12-31  Bruno Haible  <bruno@clisp.org>
39730
39731         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39732         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39733         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39734         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39735         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39736         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39737         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39738
39739 2009-12-31  Bruno Haible  <bruno@clisp.org>
39740
39741         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39742         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39743         afterwards.
39744
39745 2009-12-31  Bruno Haible  <bruno@clisp.org>
39746
39747         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39748         SYS_UTSNAME_H.
39749
39750 2009-12-31  Bruno Haible  <bruno@clisp.org>
39751
39752         spawn: Fix misapplied patch.
39753         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39754         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39755         warnings for GNULIB_POSIXCHECK.
39756
39757 2009-12-31  Bruno Haible  <bruno@clisp.org>
39758
39759         times: Update after sys_times changed.
39760         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39761         * modules/times (Files): Add it.
39762         (configure.ac): Invoke gl_FUNC_TIMES.
39763
39764 2009-12-31  Bruno Haible  <bruno@clisp.org>
39765
39766         Use AC_C_INLINE where necessary.
39767         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39768         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39769         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39770         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39771         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39772         * m4/mbiter.m4 (gl_MBITER): Likewise.
39773         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39774         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39775         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39776         * modules/u64 (configure.ac): Likewise.
39777
39778 2009-12-31  Bruno Haible  <bruno@clisp.org>
39779
39780         Use AC_C_INLINE instead of module 'inline' where possible.
39781         * modules/inline (Description): Clarify purpose.
39782         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39783         * modules/count-one-bits (Depends-on): Remove inline.
39784         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39785         * modules/openat (Depends-on): Remove inline.
39786         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39787         instead of depending on module 'inline'.
39788         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39789         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39790         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39791         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39792         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39793         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39794         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39795         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39796         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39797         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39798         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39799         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39800         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39801         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39802         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39803         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39804         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39805         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39806         Likewise.
39807         * modules/unictype/property-ascii-hex-digit (Depends-on,
39808         configure.ac): Likewise.
39809         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39810         configure.ac): Likewise.
39811         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39812         configure.ac): Likewise.
39813         * modules/unictype/property-bidi-block-separator (Depends-on,
39814         configure.ac): Likewise.
39815         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39816         configure.ac): Likewise.
39817         * modules/unictype/property-bidi-common-separator (Depends-on,
39818         configure.ac): Likewise.
39819         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39820         Likewise.
39821         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39822         configure.ac): Likewise.
39823         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39824         configure.ac): Likewise.
39825         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39826         configure.ac): Likewise.
39827         * modules/unictype/property-bidi-european-digit (Depends-on,
39828         configure.ac): Likewise.
39829         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39830         configure.ac): Likewise.
39831         * modules/unictype/property-bidi-left-to-right (Depends-on,
39832         configure.ac): Likewise.
39833         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39834         configure.ac): Likewise.
39835         * modules/unictype/property-bidi-other-neutral (Depends-on,
39836         configure.ac): Likewise.
39837         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39838         Likewise.
39839         * modules/unictype/property-bidi-segment-separator (Depends-on,
39840         configure.ac): Likewise.
39841         * modules/unictype/property-bidi-whitespace (Depends-on,
39842         configure.ac): Likewise.
39843         * modules/unictype/property-combining (Depends-on, configure.ac):
39844         Likewise.
39845         * modules/unictype/property-composite (Depends-on, configure.ac):
39846         Likewise.
39847         * modules/unictype/property-currency-symbol (Depends-on,
39848         configure.ac): Likewise.
39849         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39850         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39851         Likewise.
39852         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39853         configure.ac): Likewise.
39854         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39855         Likewise.
39856         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39857         Likewise.
39858         * modules/unictype/property-extender (Depends-on, configure.ac):
39859         Likewise.
39860         * modules/unictype/property-format-control (Depends-on, configure.ac):
39861         Likewise.
39862         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39863         Likewise.
39864         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39865         Likewise.
39866         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39867         Likewise.
39868         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39869         Likewise.
39870         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39871         Likewise.
39872         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39873         Likewise.
39874         * modules/unictype/property-id-start (Depends-on, configure.ac):
39875         Likewise.
39876         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39877         Likewise.
39878         * modules/unictype/property-ids-binary-operator (Depends-on,
39879         configure.ac): Likewise.
39880         * modules/unictype/property-ids-trinary-operator (Depends-on,
39881         configure.ac): Likewise.
39882         * modules/unictype/property-ignorable-control (Depends-on,
39883         configure.ac): Likewise.
39884         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39885         Likewise.
39886         * modules/unictype/property-join-control (Depends-on, configure.ac):
39887         Likewise.
39888         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39889         Likewise.
39890         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39891         Likewise.
39892         * modules/unictype/property-logical-order-exception (Depends-on,
39893         configure.ac): Likewise.
39894         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39895         Likewise.
39896         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39897         * modules/unictype/property-non-break (Depends-on, configure.ac):
39898         Likewise.
39899         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39900         Likewise.
39901         * modules/unictype/property-numeric (Depends-on, configure.ac):
39902         Likewise.
39903         * modules/unictype/property-other-alphabetic (Depends-on,
39904         configure.ac): Likewise.
39905         * modules/unictype/property-other-default-ignorable-code-point
39906         (Depends-on, configure.ac): Likewise.
39907         * modules/unictype/property-other-grapheme-extend (Depends-on,
39908         configure.ac): Likewise.
39909         * modules/unictype/property-other-id-continue (Depends-on,
39910         configure.ac): Likewise.
39911         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39912         Likewise.
39913         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39914         Likewise.
39915         * modules/unictype/property-other-math (Depends-on, configure.ac):
39916         Likewise.
39917         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39918         Likewise.
39919         * modules/unictype/property-paired-punctuation (Depends-on,
39920         configure.ac): Likewise.
39921         * modules/unictype/property-paragraph-separator (Depends-on,
39922         configure.ac): Likewise.
39923         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39924         Likewise.
39925         * modules/unictype/property-pattern-white-space (Depends-on,
39926         configure.ac): Likewise.
39927         * modules/unictype/property-private-use (Depends-on, configure.ac):
39928         Likewise.
39929         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39930         Likewise.
39931         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39932         Likewise.
39933         * modules/unictype/property-radical (Depends-on, configure.ac):
39934         Likewise.
39935         * modules/unictype/property-sentence-terminal (Depends-on,
39936         configure.ac): Likewise.
39937         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39938         Likewise.
39939         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39940         * modules/unictype/property-terminal-punctuation (Depends-on,
39941         configure.ac): Likewise.
39942         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39943         Likewise.
39944         * modules/unictype/property-unassigned-code-value (Depends-on,
39945         configure.ac): Likewise.
39946         * modules/unictype/property-unified-ideograph (Depends-on,
39947         configure.ac): Likewise.
39948         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39949         Likewise.
39950         * modules/unictype/property-variation-selector (Depends-on,
39951         configure.ac): Likewise.
39952         * modules/unictype/property-white-space (Depends-on, configure.ac):
39953         Likewise.
39954         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39955         Likewise.
39956         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39957         Likewise.
39958         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39959         Likewise.
39960         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39961         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39962         Likewise.
39963
39964 2009-12-31  Bruno Haible  <bruno@clisp.org>
39965
39966         Remove unnecessary AC_C_INLINE invocation.
39967         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39968         since 2009-08-21.
39969
39970 2009-12-31  Jim Meyering  <meyering@redhat.com>
39971
39972         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39973         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39974         With this change, we can all remove the gpg_key_ID = ... definition
39975         from our respective cfg.mk files.
39976
39977         maint.mk: create announcement template in ~/, not in /tmp
39978         * top/maint.mk (emit_upload_commands): Adjust.
39979         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39980         Remove temporary file, .ci-msg.
39981
39982 2009-12-31  Eric Blake  <ebb9@byu.net>
39983
39984         link-warning: always build headers with link warnings
39985         * modules/arpa_inet (Makefile.am): Always build replacement
39986         header.
39987         * modules/ctype (Makefile.am): Likewise.
39988         * modules/dirent (Makefile.am): Likewise.
39989         * modules/inttypes (Makefile.am): Likewise.
39990         * modules/langinfo (Makefile.am): Likewise.
39991         * modules/locale (Makefile.am): Likewise.
39992         * modules/spawn (Makefile.am): Likewise.
39993         * modules/sys_file (Makefile.am): Likewise.
39994         * modules/sys_ioctl (Makefile.am): Likewise.
39995         * modules/sys_select (Makefile.am): Likewise.
39996         * modules/sys_socket (Makefile.am): Likewise.
39997         * modules/sys_times (Makefile.am): Likewise.
39998         * modules/sys_utsname (Makefile.am): Likewise.
39999         * modules/sys_wait (Makefile.am): Likewise.
40000         * modules/wchar (Makefile.am): Likewise.
40001         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40002         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40003         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40004         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40005         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40006         Likewise.
40007         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40008         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40009         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40010         Likewise.
40011         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40012         Likewise.
40013         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40014         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40015         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40016         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40017         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40018         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40019         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40020         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40021         (gl_WCHAR_H_DEFAULTS): Likewise.
40022
40023 2009-12-31  Eric Blake  <ebb9@byu.net>
40024
40025         signal, spawn: use link warnings
40026         * lib/signal.in.h (sigset_t): Make unconditional.
40027         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40028         (sigpending, sigprocmask, sigaction): Add link warnings.
40029         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40030         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40031         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40032         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40033         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40034         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40035         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40036         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40037         (posix_spawn_file_actions_destroy)
40038         (posix_spawn_file_actions_addopen)
40039         (posix_spawn_file_actions_addclose)
40040         (posix_spawn_file_actions_adddup2): Likewise.
40041         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40042         * tests/test-signal.c (main): Enhance test.
40043
40044         spawn: improve wrapper support
40045         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40046         (gl_SPAWN_H_DEFAULTS): New defaults.
40047         * modules/spawn (Makefile.am): Substitute them.
40048         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40049         Only declare if missing or broken.
40050
40051         sys_times, sys_utsname: use include_next
40052         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40053         header.
40054         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40055         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40056         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40057         * modules/sys_times (Depends-on): Add include_next.
40058         (Makefile.am): Substitute additional values.
40059         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40060         * lib/sys_times.in.h (includes): Include native header, if
40061         available.
40062         * lib/sys_utsname.in.h (includes): Likewise.
40063         * tests/test-sys_times.c (main): Enhance test.
40064
40065         fdutimensat: revert prior patch
40066         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40067         utimens.h.
40068         Reported by Bruno Haible.
40069
40070 2009-12-30  Eric Blake  <ebb9@byu.net>
40071
40072         sys_wait: drop link-warning dependency
40073         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40074         link-warning efforts.
40075         * lib/sys_wait.in.h: Likewise.
40076
40077         fdutimensat: remove bogus dependency
40078         * modules/fdutimensat (Depends-on): Drop inline.
40079
40080         unistd: fix typo
40081         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40082
40083 2009-12-30  Bruno Haible  <bruno@clisp.org>
40084
40085         Fix compilation error with Solaris cc.
40086         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40087         * lib/unicase/u16-is-invariant.c: Likewise.
40088         * lib/unicase/u32-is-invariant.c: Likewise.
40089         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40090
40091 2009-12-30  Bruno Haible  <bruno@clisp.org>
40092
40093         Fix test crash.
40094         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40095         locales.
40096         Reported by Simon Josefsson <simon@josefsson.org>.
40097
40098 2009-12-30  Bruno Haible  <bruno@clisp.org>
40099
40100         Fix compilation error on most platforms.
40101         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40102         Reported by Simon Josefsson <simon@josefsson.org>
40103         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40104
40105 2009-12-30  Eric Blake  <ebb9@byu.net>
40106
40107         futimens, utimensat: work around ntfs-3g bug
40108         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40109         a ctime bug is present, and expand workaround to cover ntfs-3g.
40110         * lib/utimens.c (fdutimens, lutimens): Likewise.
40111         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40112         (validate_timespec): Adjust return value.
40113         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40114         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40115         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40116
40117 2009-12-29  Eric Blake  <ebb9@byu.net>
40118
40119         link-warning: make usage consistent
40120         * modules/ctype (Depends-on): Add link-warning.
40121         (Makefile.am): Update rules accordingly.
40122         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40123         * modules/locale (Depends-on, Makefile.am): Likewise.
40124         * modules/sys_file (Makefile.am): Likewise.
40125         * modules/getopt-posix (Makefile.am): Delete unused link warning
40126         efforts.
40127         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40128         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40129         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40130         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40131
40132         stdio: remove unused variables
40133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40134         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40135         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40136
40137         tests: test more substitute headers
40138         * modules/ctype-tests: New file.
40139         * modules/dirent-tests: Likewise.
40140         * modules/spawn-tests: Likewise.
40141         * modules/sys_file-tests: Likewise.
40142         * modules/sys_ioctl-tests: Likewise.
40143         * modules/sys_wait-tests: Likewise.
40144         * tests/test-ctype.c: Likewise.
40145         * tests/test-dirent.c: Likewise.
40146         * tests/test-spawn.c: Likewise.
40147         * tests/test-sys_file.c: Likewise.
40148         * tests/test-sys_ioctl.c: Likewise.
40149         * tests/test-sys_wait.c: Likewise.
40150         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40151         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40152         whether or not flock is in use.
40153
40154         tests: remove License section from module
40155         * modules/arpa_inet-tests: Remove unneeded section.
40156         * modules/byteswap-tests: Likewise.
40157         * modules/ceilf-tests: Likewise.
40158         * modules/ceill-tests: Likewise.
40159         * modules/crypto/des-tests: Likewise.
40160         * modules/crypto/gc-arcfour-tests: Likewise.
40161         * modules/crypto/gc-arctwo-tests: Likewise.
40162         * modules/crypto/gc-des-tests: Likewise.
40163         * modules/crypto/gc-hmac-md5-tests: Likewise.
40164         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40165         * modules/crypto/gc-md2-tests: Likewise.
40166         * modules/crypto/gc-md4-tests: Likewise.
40167         * modules/crypto/gc-md5-tests: Likewise.
40168         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40169         * modules/crypto/gc-rijndael-tests: Likewise.
40170         * modules/crypto/gc-sha1-tests: Likewise.
40171         * modules/crypto/gc-tests: Likewise.
40172         * modules/crypto/md2-tests: Likewise.
40173         * modules/crypto/md4-tests: Likewise.
40174         * modules/fcntl-h-tests: Likewise.
40175         * modules/floorf-tests: Likewise.
40176         * modules/floorl-tests: Likewise.
40177         * modules/frexp-nolibm-tests: Likewise.
40178         * modules/frexp-tests: Likewise.
40179         * modules/frexpl-nolibm-tests: Likewise.
40180         * modules/frexpl-tests: Likewise.
40181         * modules/getaddrinfo-tests: Likewise.
40182         * modules/inttypes-tests: Likewise.
40183         * modules/isfinite-tests: Likewise.
40184         * modules/isinf-tests: Likewise.
40185         * modules/ldexpl-tests: Likewise.
40186         * modules/locale-tests: Likewise.
40187         * modules/math-tests: Likewise.
40188         * modules/netdb-tests: Likewise.
40189         * modules/netinet_in-tests: Likewise.
40190         * modules/printf-frexp-tests: Likewise.
40191         * modules/printf-frexpl-tests: Likewise.
40192         * modules/priv-set-tests: Likewise.
40193         * modules/random_r-tests: Likewise.
40194         * modules/round-tests: Likewise.
40195         * modules/roundf-tests: Likewise.
40196         * modules/roundl-tests: Likewise.
40197         * modules/search-tests: Likewise.
40198         * modules/select-tests: Likewise.
40199         * modules/signal-tests: Likewise.
40200         * modules/stdbool-tests: Likewise.
40201         * modules/stddef-tests: Likewise.
40202         * modules/stdint-tests: Likewise.
40203         * modules/stdio-tests: Likewise.
40204         * modules/stdlib-tests: Likewise.
40205         * modules/string-tests: Likewise.
40206         * modules/strings-tests: Likewise.
40207         * modules/sys_select-tests: Likewise.
40208         * modules/sys_socket-tests: Likewise.
40209         * modules/sys_stat-tests: Likewise.
40210         * modules/sys_time-tests: Likewise.
40211         * modules/sys_utsname-tests: Likewise.
40212         * modules/sysexits-tests: Likewise.
40213         * modules/time-tests: Likewise.
40214         * modules/trunc-tests: Likewise.
40215         * modules/truncf-tests: Likewise.
40216         * modules/truncl-tests: Likewise.
40217         * modules/tsearch-tests: Likewise.
40218         * modules/unistd-tests: Likewise.
40219         * modules/wchar-tests: Likewise.
40220         * modules/wctype-tests: Likewise.
40221
40222         tests: fix license on several tests
40223         * tests/test-des.c: Update to GPLv3+.
40224         * tests/test-flock.c: Likewise.
40225         * tests/test-fsync.c: Likewise.
40226         * tests/test-futimens.h: Likewise.
40227         * tests/test-gc-arcfour.c: Likewise.
40228         * tests/test-gc-arctwo.c: Likewise.
40229         * tests/test-gc-des.c: Likewise.
40230         * tests/test-gc-hmac-md5.c: Likewise.
40231         * tests/test-gc-hmac-sha1.c: Likewise.
40232         * tests/test-gc-md2.c: Likewise.
40233         * tests/test-gc-md4.c: Likewise.
40234         * tests/test-gc-md5.c: Likewise.
40235         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40236         * tests/test-gc-rijndael.c: Likewise.
40237         * tests/test-gc-sha1.c: Likewise.
40238         * tests/test-gc.c: Likewise.
40239         * tests/test-getcwd.c: Likewise.
40240         * tests/test-link.c: Likewise.
40241         * tests/test-link.h: Likewise.
40242         * tests/test-lutimens.h: Likewise.
40243         * tests/test-md2.c: Likewise.
40244         * tests/test-md4.c: Likewise.
40245         * tests/test-mkdir.h: Likewise.
40246         * tests/test-rename.c: Likewise.
40247         * tests/test-rename.h: Likewise.
40248         * tests/test-safe-alloc.c: Likewise.
40249         * tests/test-utimens-common.h: Likewise.
40250         * tests/test-utimens.h: Likewise.
40251
40252         maint: sync license texts
40253         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40254         * doc/gpl-3.0.texi: Revert copyright year update.
40255         * doc/lgpl-3.0.texi: Likewise.
40256
40257 2009-12-29  Jim Meyering  <meyering@redhat.com>
40258
40259         update nearly all FSF copyright year lists to include 2009
40260         The files named by the following are exempted:
40261             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40262               test -f "$dst" && { echo "$dst"; continue; }
40263               test -d "$dst" || continue
40264               echo "$dst"/$(basename "$src")
40265             done > exempt
40266             git ls-files tests/unictype >> exempt
40267         In the remaining files, convert to all-interval notation if
40268         - there is already at least one year interval like 2000-2003
40269         - the file is maintained by me
40270         - the file is in lib/uni*/, where that style already prevails
40271         Otherwise, use update-copyright's default.
40272
40273 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40274         and Eric Blake  <ebb9@byu.net>
40275
40276         tests: don't require debug system() to pass
40277         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40278         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40279         * tests/test-unlink.h (test_unlink_func): Likewise.
40280         * tests/test-fstatat.c (main): ...into callers.
40281         * tests/test-lstat.c (main): Likewise.
40282         * tests/test-rmdir.c (main): Likewise.
40283         * tests/test-unlink.c (main): Likewise.
40284         * tests/test-unlinkat.c (main): Likewise.
40285         * tests/test-areadlink-with-size.c (main): Don't require a
40286         debug-only system call to pass, aiding cross-testing to mingw.
40287         * tests/test-areadlink.c (main): Likewise.
40288         * tests/test-areadlinkat-with-size.c (main): Likewise.
40289         * tests/test-areadlinkat.c (main): Likewise.
40290         * tests/test-canonicalize-lgpl.c (main): Likewise.
40291         * tests/test-canonicalize.c (main): Likewise.
40292         * tests/test-chown.c (main): Likewise.
40293         * tests/test-fchownat.c (main): Likewise.
40294         * tests/test-lchown.c (main): Likewise.
40295         * tests/test-fdutimensat.c (main): Likewise.
40296         * tests/test-futimens.c (main): Likewise.
40297         * tests/test-link.c (main): Likewise.
40298         * tests/test-linkat.c (main): Likewise.
40299         * tests/test-mkdir.c (main): Likewise.
40300         * tests/test-mkdirat.c (main): Likewise.
40301         * tests/test-mkfifo.c (main): Likewise.
40302         * tests/test-mkfifoat.c (main): Likewise.
40303         * tests/test-mknod.c (main): Likewise.
40304         * tests/test-readlink.c (main): Likewise.
40305         * tests/test-remove.c (main): Likewise.
40306         * tests/test-rename.c (main): Likewise.
40307         * tests/test-renameat.c (main): Likewise.
40308         * tests/test-symlink.c (main): Likewise.
40309         * tests/test-symlinkat.c (main): Likewise.
40310         * tests/test-utimens.c (main): Likewise.
40311         * tests/test-utimensat.c (main): Likewise.
40312
40313 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40314
40315         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40316         on $(UNUSED_PARAMETER_H) to avoid build failure.
40317
40318 2009-12-28  Jim Meyering  <meyering@redhat.com>
40319
40320         update-copyright: you may specify a max. line length other than 72
40321         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40322
40323         maint: use consistent FSF copyright line syntax
40324         * lib/posixtm.c: Add missing comma in FSF copyright line.
40325         * lib/posixtm.h: Likewise.
40326         * lib/getugroups.c: Add missing ", Inc.".
40327
40328         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40329         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40330         FSF copyright line.  Remove trailing blanks.
40331
40332 2009-12-28  Eric Blake  <ebb9@byu.net>
40333
40334         test-dup2: reduce dependencies
40335         * modules/cloexec (Configure.ac): Set witness.
40336         * modules/dup2-tests (Depends-on): Drop cloexec.
40337         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40338         not present.
40339         Suggested by Bruno Haible.
40340
40341 2009-12-26  Bruno Haible  <bruno@clisp.org>
40342
40343         Remove an unneeded dependency.
40344         * modules/fseterr (Depends-on): Remove dup2.
40345
40346 2009-12-26  Eric Blake  <ebb9@byu.net>
40347
40348         tests: use macros.h in more places
40349         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40350         (ASSERT_STREAM): Provide default of stderr.
40351         * tests/test-dirent-safer.c: Include macros.h, using alternate
40352         stream for assertions.
40353         * tests/test-dup-safer.c: Likewise.
40354         * tests/test-freopen-safer.c: Likewise.
40355         * tests/test-getopt.c: Likewise.
40356         * tests/test-openat-safer.c: Likewise.
40357         * tests/test-pipe.c: Likewise.
40358         * tests/test-popen-safer.c: Likewise.
40359         * modules/dirent-safer-tests (Files): Include macros.h.
40360         * modules/unistd-safer-tests (Files): Likewise.
40361         * modules/freopen-safer-tests (Files): Likewise.
40362         * modules/getopt-posix-tests (Files): Likewise.
40363         * modules/openat-safer-tests (Files): Likewise.
40364         * modules/pipe-tests (Files): Likewise.
40365
40366 2009-12-26  Bruno Haible  <bruno@clisp.org>
40367
40368         javacomp: Portability fix.
40369         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40370         that it also works on Solaris.
40371
40372 2009-12-26  Bruno Haible  <bruno@clisp.org>
40373
40374         localename: Fix storage allocation of gl_locale_name_thread's result.
40375         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40376         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40377         all platforms that have 'uselocale'.
40378         (gl_locale_name_thread_unsafe): New function, extracted from
40379         gl_locale_name_thread.
40380         (gl_locale_name_thread): Call struniq on all platforms that have
40381         'uselocale'.
40382         * tests/test-localename.c (test_locale_name_thread): Check that the
40383         resulting strings are permanently allocated.
40384         * modules/localename-tests (Depends-on): Add strdup.
40385
40386 2009-12-26  Bruno Haible  <bruno@clisp.org>
40387
40388         * tests/test-localename.c (categories): Fill in the strings.
40389
40390 2009-12-26  Jim Meyering  <meyering@redhat.com>
40391
40392         isdir: complete the removal of m4/isdir.m4
40393         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40394
40395         isdir: clean up, since at least grep still uses it
40396         * lib/isdir.c: Include "isdir.h".
40397         (S_ISDIR): Remove now-unneeded definition.
40398         * modules/isdir (Files): Add lib/isdir.h.
40399         * lib/isdir.h: New file, with declaration.
40400         * m4/isdir.m4: Remove file -- unneeded.
40401
40402 2009-12-25  Bruno Haible  <bruno@clisp.org>
40403
40404         selinux-h: Make generated .h files standalone.
40405         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40406         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40407         * lib/se-selinux.in.h: Likewise.
40408         * modules/selinux-h (Depends-on): Add unused-parameter.
40409         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40410         selinux/selinux.h and selinux/context.h.
40411         Suggested by Eric Blake.
40412
40413 2009-12-25  Bruno Haible  <bruno@clisp.org>
40414
40415         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40416         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40417         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40418         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40419         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40420
40421 2009-12-24  Bruno Haible  <bruno@clisp.org>
40422
40423         openat: Fix warning.
40424         * lib/openat-proc.c: Include <unistd.h>.
40425
40426 2009-12-24  Bruno Haible  <bruno@clisp.org>
40427
40428         New module 'unused-parameter'.
40429         * build-aux/unused-parameter.h: New file, extracted from earlier
40430         gnulib-common.m4.
40431         * modules/unused-parameter: New file.
40432         * lib/unistr.h: Include unused-parameter.h.
40433         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40434         _GL_UNUSED.
40435         * modules/unistr/base (Depends-on): Add unused-parameter.
40436
40437 2009-12-24  Bruno Haible  <bruno@clisp.org>
40438
40439         Add missing dependencies to 'extensions' module.
40440         * m4/extensions.m4: Add comment.
40441         * modules/accept4 (Depends-on): Add extensions.
40442         * modules/dup3 (Depends-on): Likewise.
40443         * modules/fcntl (Depends-on): Likewise.
40444         * modules/futimens (Depends-on): Likewise.
40445         * modules/mknod (Depends-on): Likewise.
40446         * modules/pipe2 (Depends-on): Likewise.
40447         * modules/stat-time (Depends-on): Likewise.
40448         * modules/strcasestr-simple (Depends-on): Likewise.
40449         * modules/strsignal (Depends-on): Likewise.
40450         * modules/utimensat (Depends-on): Likewise.
40451         * modules/localcharset (Depends-on): Likewise. Needed because of
40452         gl_FCNTL_O_FLAGS.
40453         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40454         AC_TYPE_MBSTATE_T.
40455         * modules/wcsnrtombs (Depends-on): Likewise.
40456         * modules/wcsrtombs (Depends-on): Likewise.
40457
40458 2009-12-24  Bruno Haible  <bruno@clisp.org>
40459
40460         binary-io: Avoid gcc warning due to SET_BINARY.
40461         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40462         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40463
40464 2009-12-24  Bruno Haible  <bruno@clisp.org>
40465
40466         Avoid future namespace pollution on glibc systems.
40467         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40468         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40469         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40470         glibc systems.
40471
40472 2009-12-24  Bruno Haible  <bruno@clisp.org>
40473
40474         Refactor common macros used in tests.
40475         * tests/macros.h: New file.
40476         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40477         and/or <stdlib.h>, if appropriate.
40478         (ASSERT, SIZEOF): Remove macros.
40479         * tests/test-areadlink-with-size.c: Likewise.
40480         * tests/test-areadlinkat.c: Likewise.
40481         * tests/test-areadlinkat-with-size.c: Likewise.
40482         * tests/test-argmatch.c: Likewise.
40483         * tests/test-argv-iter.c: Likewise.
40484         * tests/test-array-mergesort.c: Likewise.
40485         * tests/test-array_list.c: Likewise.
40486         * tests/test-array_oset.c: Likewise.
40487         * tests/test-avltree_list.c: Likewise.
40488         * tests/test-avltree_oset.c: Likewise.
40489         * tests/test-avltreehash_list.c: Likewise.
40490         * tests/test-base64.c: Likewise.
40491         * tests/test-binary-io.c: Likewise.
40492         * tests/test-bitrotate.c: Likewise.
40493         * tests/test-btowc.c: Likewise.
40494         * tests/test-byteswap.c: Likewise.
40495         * tests/test-c-ctype.c: Likewise.
40496         * tests/test-c-stack.c: Likewise.
40497         * tests/test-c-strcasecmp.c: Likewise.
40498         * tests/test-c-strcasestr.c: Likewise.
40499         * tests/test-c-strncasecmp.c: Likewise.
40500         * tests/test-c-strstr.c: Likewise.
40501         * tests/test-canonicalize-lgpl.c: Likewise.
40502         * tests/test-canonicalize.c: Likewise.
40503         * tests/test-carray_list.c: Likewise.
40504         * tests/test-ceilf1.c: Likewise.
40505         * tests/test-ceilf2.c: Likewise.
40506         * tests/test-ceill.c: Likewise.
40507         * tests/test-chown.c: Likewise.
40508         * tests/test-cloexec.c: Likewise.
40509         * tests/test-copy-acl.c: Likewise.
40510         * tests/test-copy-file.c: Likewise.
40511         * tests/test-count-one-bits.c: Likewise.
40512         * tests/test-dprintf-posix.c: Likewise.
40513         * tests/test-dup2.c: Likewise.
40514         * tests/test-dup3.c: Likewise.
40515         * tests/test-duplocale.c: Likewise.
40516         * tests/test-fbufmode.c: Likewise.
40517         * tests/test-fchdir.c: Likewise.
40518         * tests/test-fchownat.c: Likewise.
40519         * tests/test-fcntl-safer.c: Likewise.
40520         * tests/test-fcntl.c: Likewise.
40521         * tests/test-fdopendir.c: Likewise.
40522         * tests/test-fdutimensat.c: Likewise.
40523         * tests/test-fflush2.c: Likewise.
40524         * tests/test-file-has-acl.c: Likewise.
40525         * tests/test-filevercmp.c: Likewise.
40526         * tests/test-flock.c: Likewise.
40527         * tests/test-floorf1.c: Likewise.
40528         * tests/test-floorf2.c: Likewise.
40529         * tests/test-floorl.c: Likewise.
40530         * tests/test-fnmatch.c: Likewise.
40531         * tests/test-fopen.h: Likewise.
40532         * tests/test-fpending.c: Likewise.
40533         * tests/test-fprintf-posix.c: Likewise.
40534         * tests/test-fpurge.c: Likewise.
40535         * tests/test-freadable.c: Likewise.
40536         * tests/test-freadahead.c: Likewise.
40537         * tests/test-freading.c: Likewise.
40538         * tests/test-freadptr.c: Likewise.
40539         * tests/test-freadptr2.c: Likewise.
40540         * tests/test-freadseek.c: Likewise.
40541         * tests/test-freopen.c: Likewise.
40542         * tests/test-frexp.c: Likewise.
40543         * tests/test-frexpl.c: Likewise.
40544         * tests/test-fseek.c: Likewise.
40545         * tests/test-fseeko.c: Likewise.
40546         * tests/test-fstatat.c: Likewise.
40547         * tests/test-fstrcmp.c: Likewise.
40548         * tests/test-fsync.c: Likewise.
40549         * tests/test-ftell.c: Likewise.
40550         * tests/test-ftello.c: Likewise.
40551         * tests/test-func.c: Likewise.
40552         * tests/test-futimens.c: Likewise.
40553         * tests/test-fwritable.c: Likewise.
40554         * tests/test-fwriting.c: Likewise.
40555         * tests/test-getcwd.c: Likewise.
40556         * tests/test-getdate.c: Likewise.
40557         * tests/test-getdelim.c: Likewise.
40558         * tests/test-getdtablesize.c: Likewise.
40559         * tests/test-getgroups.c: Likewise.
40560         * tests/test-getline.c: Likewise.
40561         * tests/test-getndelim2.c: Likewise.
40562         * tests/test-glob.c: Likewise.
40563         * tests/test-hash.c: Likewise.
40564         * tests/test-i-ring.c: Likewise.
40565         * tests/test-iconv-utf.c: Likewise.
40566         * tests/test-iconv.c: Likewise.
40567         * tests/test-idpriv-drop.c: Likewise.
40568         * tests/test-idpriv-droptemp.c: Likewise.
40569         * tests/test-inet_ntop.c: Likewise.
40570         * tests/test-inet_pton.c: Likewise.
40571         * tests/test-isblank.c: Likewise.
40572         * tests/test-isfinite.c: Likewise.
40573         * tests/test-isinf.c: Likewise.
40574         * tests/test-isnan.c: Likewise.
40575         * tests/test-isnand.h: Likewise.
40576         * tests/test-isnanf.h: Likewise.
40577         * tests/test-isnanl.h: Likewise.
40578         * tests/test-lchown.c: Likewise.
40579         * tests/test-ldexpl.c: Likewise.
40580         * tests/test-link.c: Likewise.
40581         * tests/test-linkat.c: Likewise.
40582         * tests/test-linked_list.c: Likewise.
40583         * tests/test-linkedhash_list.c: Likewise.
40584         * tests/test-localename.c: Likewise.
40585         * tests/test-lseek.c: Likewise.
40586         * tests/test-lstat.c: Likewise.
40587         * tests/test-mbmemcasecmp.c: Likewise.
40588         * tests/test-mbmemcasecoll.c: Likewise.
40589         * tests/test-mbrtowc.c: Likewise.
40590         * tests/test-mbscasecmp.c: Likewise.
40591         * tests/test-mbscasestr1.c: Likewise.
40592         * tests/test-mbscasestr2.c: Likewise.
40593         * tests/test-mbscasestr3.c: Likewise.
40594         * tests/test-mbscasestr4.c: Likewise.
40595         * tests/test-mbschr.c: Likewise.
40596         * tests/test-mbscspn.c: Likewise.
40597         * tests/test-mbsinit.c: Likewise.
40598         * tests/test-mbsncasecmp.c: Likewise.
40599         * tests/test-mbsnrtowcs.c: Likewise.
40600         * tests/test-mbspbrk.c: Likewise.
40601         * tests/test-mbspcasecmp.c: Likewise.
40602         * tests/test-mbsrchr.c: Likewise.
40603         * tests/test-mbsrtowcs.c: Likewise.
40604         * tests/test-mbsspn.c: Likewise.
40605         * tests/test-mbsstr1.c: Likewise.
40606         * tests/test-mbsstr2.c: Likewise.
40607         * tests/test-mbsstr3.c: Likewise.
40608         * tests/test-memchr.c: Likewise.
40609         * tests/test-memchr2.c: Likewise.
40610         * tests/test-memcmp.c: Likewise.
40611         * tests/test-memmem.c: Likewise.
40612         * tests/test-memrchr.c: Likewise.
40613         * tests/test-mkdir.c: Likewise.
40614         * tests/test-mkdirat.c: Likewise.
40615         * tests/test-mkfifo.c: Likewise.
40616         * tests/test-mkfifoat.c: Likewise.
40617         * tests/test-mknod.c: Likewise.
40618         * tests/test-nanosleep.c: Likewise.
40619         * tests/test-nl_langinfo.c: Likewise.
40620         * tests/test-obstack-printf.c: Likewise.
40621         * tests/test-open.c: Likewise.
40622         * tests/test-openat.c: Likewise.
40623         * tests/test-pipe-filter-gi1.c: Likewise.
40624         * tests/test-pipe-filter-gi2-main.c: Likewise.
40625         * tests/test-pipe-filter-ii1.c: Likewise.
40626         * tests/test-pipe-filter-ii2-main.c: Likewise.
40627         * tests/test-pipe2.c: Likewise.
40628         * tests/test-popen.h: Likewise.
40629         * tests/test-posixtm.c: Likewise.
40630         * tests/test-pread.c: Likewise.
40631         * tests/test-printf-frexp.c: Likewise.
40632         * tests/test-printf-frexpl.c: Likewise.
40633         * tests/test-printf-posix.c: Likewise.
40634         * tests/test-priv-set.c: Likewise.
40635         * tests/test-quotearg.c: Likewise.
40636         * tests/test-random_r.c: Likewise.
40637         * tests/test-rawmemchr.c: Likewise.
40638         * tests/test-rbtree_list.c: Likewise.
40639         * tests/test-rbtree_oset.c: Likewise.
40640         * tests/test-rbtreehash_list.c: Likewise.
40641         * tests/test-readlink.c: Likewise.
40642         * tests/test-remove.c: Likewise.
40643         * tests/test-rename.c: Likewise.
40644         * tests/test-renameat.c: Likewise.
40645         * tests/test-rmdir.c: Likewise.
40646         * tests/test-round1.c: Likewise.
40647         * tests/test-roundf1.c: Likewise.
40648         * tests/test-roundl.c: Likewise.
40649         * tests/test-safe-alloc.c: Likewise.
40650         * tests/test-sameacls.c: Likewise.
40651         * tests/test-set-mode-acl.c: Likewise.
40652         * tests/test-setenv.c: Likewise.
40653         * tests/test-sigaction.c: Likewise.
40654         * tests/test-signbit.c: Likewise.
40655         * tests/test-sleep.c: Likewise.
40656         * tests/test-snprintf-posix.c: Likewise.
40657         * tests/test-snprintf.c: Likewise.
40658         * tests/test-sprintf-posix.c: Likewise.
40659         * tests/test-stat-time.c: Likewise.
40660         * tests/test-stat.c: Likewise.
40661         * tests/test-strcasestr.c: Likewise.
40662         * tests/test-strchrnul.c: Likewise.
40663         * tests/test-strerror.c: Likewise.
40664         * tests/test-striconv.c: Likewise.
40665         * tests/test-striconveh.c: Likewise.
40666         * tests/test-striconveha.c: Likewise.
40667         * tests/test-strsignal.c: Likewise.
40668         * tests/test-strstr.c: Likewise.
40669         * tests/test-strtod.c: Likewise.
40670         * tests/test-strverscmp.c: Likewise.
40671         * tests/test-symlink.c: Likewise.
40672         * tests/test-symlinkat.c: Likewise.
40673         * tests/test-trunc1.c: Likewise.
40674         * tests/test-trunc2.c: Likewise.
40675         * tests/test-truncf1.c: Likewise.
40676         * tests/test-truncf2.c: Likewise.
40677         * tests/test-truncl.c: Likewise.
40678         * tests/test-uname.c: Likewise.
40679         * tests/test-unlink.c: Likewise.
40680         * tests/test-unlinkat.c: Likewise.
40681         * tests/test-unsetenv.c: Likewise.
40682         * tests/test-usleep.c: Likewise.
40683         * tests/test-utimens.c: Likewise.
40684         * tests/test-utimensat.c: Likewise.
40685         * tests/test-vasnprintf-posix.c: Likewise.
40686         * tests/test-vasnprintf-posix2.c: Likewise.
40687         * tests/test-vasnprintf.c: Likewise.
40688         * tests/test-vasprintf-posix.c: Likewise.
40689         * tests/test-vasprintf.c: Likewise.
40690         * tests/test-vdprintf-posix.c: Likewise.
40691         * tests/test-vfprintf-posix.c: Likewise.
40692         * tests/test-vprintf-posix.c: Likewise.
40693         * tests/test-vsnprintf-posix.c: Likewise.
40694         * tests/test-vsnprintf.c: Likewise.
40695         * tests/test-vsprintf-posix.c: Likewise.
40696         * tests/test-wcrtomb.c: Likewise.
40697         * tests/test-wcsnrtombs.c: Likewise.
40698         * tests/test-wcsrtombs.c: Likewise.
40699         * tests/test-wctype.c: Likewise.
40700         * tests/test-wcwidth.c: Likewise.
40701         * tests/test-xfprintf-posix.c: Likewise.
40702         * tests/test-xmemdup0.c: Likewise.
40703         * tests/test-xprintf-posix.c: Likewise.
40704         * tests/test-xvasprintf.c: Likewise.
40705         * tests/unicase/test-locale-language.c: Likewise.
40706         * tests/unicase/test-mapping-part1.h: Likewise.
40707         * tests/unicase/test-predicate-part1.h: Likewise.
40708         * tests/unicase/test-u8-casecmp.c: Likewise.
40709         * tests/unicase/test-u8-casecoll.c: Likewise.
40710         * tests/unicase/test-u8-casefold.c: Likewise.
40711         * tests/unicase/test-u8-is-cased.c: Likewise.
40712         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40713         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40714         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40715         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40716         * tests/unicase/test-u8-tolower.c: Likewise.
40717         * tests/unicase/test-u8-totitle.c: Likewise.
40718         * tests/unicase/test-u8-toupper.c: Likewise.
40719         * tests/unicase/test-u16-casecmp.c: Likewise.
40720         * tests/unicase/test-u16-casecoll.c: Likewise.
40721         * tests/unicase/test-u16-casefold.c: Likewise.
40722         * tests/unicase/test-u16-is-cased.c: Likewise.
40723         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40724         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40725         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40726         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40727         * tests/unicase/test-u16-tolower.c: Likewise.
40728         * tests/unicase/test-u16-totitle.c: Likewise.
40729         * tests/unicase/test-u16-toupper.c: Likewise.
40730         * tests/unicase/test-u32-casecmp.c: Likewise.
40731         * tests/unicase/test-u32-casecoll.c: Likewise.
40732         * tests/unicase/test-u32-casefold.c: Likewise.
40733         * tests/unicase/test-u32-is-cased.c: Likewise.
40734         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40735         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40736         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40737         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40738         * tests/unicase/test-u32-tolower.c: Likewise.
40739         * tests/unicase/test-u32-totitle.c: Likewise.
40740         * tests/unicase/test-u32-toupper.c: Likewise.
40741         * tests/unicase/test-ulc-casecmp.c: Likewise.
40742         * tests/unicase/test-ulc-casecoll.c: Likewise.
40743         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40744         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40745         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40746         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40747         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40748         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40749         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40750         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40751         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40752         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40753         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40754         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40755         * tests/unictype/test-bidi_byname.c: Likewise.
40756         * tests/unictype/test-bidi_name.c: Likewise.
40757         * tests/unictype/test-bidi_of.c: Likewise.
40758         * tests/unictype/test-bidi_test.c: Likewise.
40759         * tests/unictype/test-block_list.c: Likewise.
40760         * tests/unictype/test-block_of.c: Likewise.
40761         * tests/unictype/test-block_test.c: Likewise.
40762         * tests/unictype/test-categ_and.c: Likewise.
40763         * tests/unictype/test-categ_and_not.c: Likewise.
40764         * tests/unictype/test-categ_byname.c: Likewise.
40765         * tests/unictype/test-categ_name.c: Likewise.
40766         * tests/unictype/test-categ_none.c: Likewise.
40767         * tests/unictype/test-categ_of.c: Likewise.
40768         * tests/unictype/test-categ_or.c: Likewise.
40769         * tests/unictype/test-categ_test_withtable.c: Likewise.
40770         * tests/unictype/test-combining.c: Likewise.
40771         * tests/unictype/test-decdigit.c: Likewise.
40772         * tests/unictype/test-digit.c: Likewise.
40773         * tests/unictype/test-mirror.c: Likewise.
40774         * tests/unictype/test-numeric.c: Likewise.
40775         * tests/unictype/test-pr_byname.c: Likewise.
40776         * tests/unictype/test-pr_test.c: Likewise.
40777         * tests/unictype/test-predicate-part1.h: Likewise.
40778         * tests/unictype/test-scripts.c: Likewise.
40779         * tests/unictype/test-sy_c_ident.c: Likewise.
40780         * tests/unictype/test-sy_java_ident.c: Likewise.
40781         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40782         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40783         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40784         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40785         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40786         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40787         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40788         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40789         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40790         * tests/uninorm/test-compat-decomposition.c: Likewise.
40791         * tests/uninorm/test-composition.c: Likewise.
40792         * tests/uninorm/test-decomposing-form.c: Likewise.
40793         * tests/uninorm/test-decomposition.c: Likewise.
40794         * tests/uninorm/test-u8-nfc.c: Likewise.
40795         * tests/uninorm/test-u8-nfd.c: Likewise.
40796         * tests/uninorm/test-u8-nfkc.c: Likewise.
40797         * tests/uninorm/test-u8-nfkd.c: Likewise.
40798         * tests/uninorm/test-u8-normcmp.c: Likewise.
40799         * tests/uninorm/test-u8-normcoll.c: Likewise.
40800         * tests/uninorm/test-u16-nfc.c: Likewise.
40801         * tests/uninorm/test-u16-nfd.c: Likewise.
40802         * tests/uninorm/test-u16-nfkc.c: Likewise.
40803         * tests/uninorm/test-u16-nfkd.c: Likewise.
40804         * tests/uninorm/test-u16-normcmp.c: Likewise.
40805         * tests/uninorm/test-u16-normcoll.c: Likewise.
40806         * tests/uninorm/test-u32-nfc.c: Likewise.
40807         * tests/uninorm/test-u32-nfd.c: Likewise.
40808         * tests/uninorm/test-u32-nfkc.c: Likewise.
40809         * tests/uninorm/test-u32-nfkd.c: Likewise.
40810         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40811         * tests/uninorm/test-u32-normcmp.c: Likewise.
40812         * tests/uninorm/test-u32-normcoll.c: Likewise.
40813         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40814         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40815         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40816         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40817         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40818         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40819         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40820         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40821         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40822         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40823         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40824         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40825         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40826         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40827         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40828         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40829         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40830         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40831         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40832         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40833         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40834         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40835         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40836         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40837         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40838         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40839         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40840         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40841         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40842         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40843         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40844         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40845         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40846         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40847         * tests/uniwidth/test-u8-width.c: Likewise.
40848         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40849         * tests/uniwidth/test-u16-width.c: Likewise.
40850         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40851         * tests/uniwidth/test-u32-width.c: Likewise.
40852         * tests/uniwidth/test-uc_width.c: Likewise.
40853         * tests/uniwidth/test-uc_width2.c: Likewise.
40854         * modules/acl-tests (Files): Add tests/macros.h.
40855         * modules/areadlink-tests (Files): Likewise.
40856         * modules/areadlink-with-size-tests (Files): Likewise.
40857         * modules/areadlinkat-tests (Files): Likewise.
40858         * modules/areadlinkat-with-size-tests (Files): Likewise.
40859         * modules/argmatch-tests (Files): Likewise.
40860         * modules/argv-iter-tests (Files): Likewise.
40861         * modules/array-list-tests (Files): Likewise.
40862         * modules/array-mergesort-tests (Files): Likewise.
40863         * modules/array-oset-tests (Files): Likewise.
40864         * modules/avltree-list-tests (Files): Likewise.
40865         * modules/avltree-oset-tests (Files): Likewise.
40866         * modules/avltreehash-list-tests (Files): Likewise.
40867         * modules/base64-tests (Files): Likewise.
40868         * modules/binary-io-tests (Files): Likewise.
40869         * modules/bitrotate-tests (Files): Likewise.
40870         * modules/btowc-tests (Files): Likewise.
40871         * modules/byteswap-tests (Files): Likewise.
40872         * modules/c-ctype-tests (Files): Likewise.
40873         * modules/c-stack-tests (Files): Likewise.
40874         * modules/c-strcase-tests (Files): Likewise.
40875         * modules/c-strcasestr-tests (Files): Likewise.
40876         * modules/c-strstr-tests (Files): Likewise.
40877         * modules/canonicalize-lgpl-tests (Files): Likewise.
40878         * modules/canonicalize-tests (Files): Likewise.
40879         * modules/carray-list-tests (Files): Likewise.
40880         * modules/ceilf-tests (Files): Likewise.
40881         * modules/ceill-tests (Files): Likewise.
40882         * modules/chown-tests (Files): Likewise.
40883         * modules/cloexec-tests (Files): Likewise.
40884         * modules/copy-file-tests (Files): Likewise.
40885         * modules/count-one-bits-tests (Files): Likewise.
40886         * modules/dprintf-posix-tests (Files): Likewise.
40887         * modules/dup2-tests (Files): Likewise.
40888         * modules/dup3-tests (Files): Likewise.
40889         * modules/duplocale-tests (Files): Likewise.
40890         * modules/fbufmode-tests (Files): Likewise.
40891         * modules/fchdir-tests (Files): Likewise.
40892         * modules/fcntl-safer-tests (Files): Likewise.
40893         * modules/fcntl-tests (Files): Likewise.
40894         * modules/fdopendir-tests (Files): Likewise.
40895         * modules/fdutimensat-tests (Files): Likewise.
40896         * modules/fflush-tests (Files): Likewise.
40897         * modules/filevercmp-tests (Files): Likewise.
40898         * modules/flock-tests (Files): Likewise.
40899         * modules/floorf-tests (Files): Likewise.
40900         * modules/floorl-tests (Files): Likewise.
40901         * modules/fnmatch-tests (Files): Likewise.
40902         * modules/fopen-safer-tests (Files): Likewise.
40903         * modules/fopen-tests (Files): Likewise.
40904         * modules/fpending-tests (Files): Likewise.
40905         * modules/fprintf-posix-tests (Files): Likewise.
40906         * modules/fpurge-tests (Files): Likewise.
40907         * modules/freadable-tests (Files): Likewise.
40908         * modules/freadahead-tests (Files): Likewise.
40909         * modules/freading-tests (Files): Likewise.
40910         * modules/freadptr-tests (Files): Likewise.
40911         * modules/freadseek-tests (Files): Likewise.
40912         * modules/freopen-tests (Files): Likewise.
40913         * modules/frexp-nolibm-tests (Files): Likewise.
40914         * modules/frexp-tests (Files): Likewise.
40915         * modules/frexpl-nolibm-tests (Files): Likewise.
40916         * modules/frexpl-tests (Files): Likewise.
40917         * modules/fseek-tests (Files): Likewise.
40918         * modules/fseeko-tests (Files): Likewise.
40919         * modules/fstrcmp-tests (Files): Likewise.
40920         * modules/fsync-tests (Files): Likewise.
40921         * modules/ftell-tests (Files): Likewise.
40922         * modules/ftello-tests (Files): Likewise.
40923         * modules/func-tests (Files): Likewise.
40924         * modules/futimens-tests (Files): Likewise.
40925         * modules/fwritable-tests (Files): Likewise.
40926         * modules/fwriting-tests (Files): Likewise.
40927         * modules/getcwd-tests (Files): Likewise.
40928         * modules/getdate-tests (Files): Likewise.
40929         * modules/getdelim-tests (Files): Likewise.
40930         * modules/getdtablesize-tests (Files): Likewise.
40931         * modules/getgroups-tests (Files): Likewise.
40932         * modules/getline-tests (Files): Likewise.
40933         * modules/getndelim2-tests (Files): Likewise.
40934         * modules/glob-tests (Files): Likewise.
40935         * modules/hash-tests (Files): Likewise.
40936         * modules/i-ring-tests (Files): Likewise.
40937         * modules/iconv-tests (Files): Likewise.
40938         * modules/iconv_open-utf-tests (Files): Likewise.
40939         * modules/idpriv-drop-tests (Files): Likewise.
40940         * modules/idpriv-droptemp-tests (Files): Likewise.
40941         * modules/inet_ntop-tests (Files): Likewise.
40942         * modules/inet_pton-tests (Files): Likewise.
40943         * modules/isblank-tests (Files): Likewise.
40944         * modules/isfinite-tests (Files): Likewise.
40945         * modules/isinf-tests (Files): Likewise.
40946         * modules/isnan-tests (Files): Likewise.
40947         * modules/isnand-nolibm-tests (Files): Likewise.
40948         * modules/isnand-tests (Files): Likewise.
40949         * modules/isnanf-nolibm-tests (Files): Likewise.
40950         * modules/isnanf-tests (Files): Likewise.
40951         * modules/isnanl-nolibm-tests (Files): Likewise.
40952         * modules/isnanl-tests (Files): Likewise.
40953         * modules/lchown-tests (Files): Likewise.
40954         * modules/ldexpl-tests (Files): Likewise.
40955         * modules/link-tests (Files): Likewise.
40956         * modules/linkat-tests (Files): Likewise.
40957         * modules/linked-list-tests (Files): Likewise.
40958         * modules/linkedhash-list-tests (Files): Likewise.
40959         * modules/localename-tests (Files): Likewise.
40960         * modules/lseek-tests (Files): Likewise.
40961         * modules/lstat-tests (Files): Likewise.
40962         * modules/mbmemcasecmp-tests (Files): Likewise.
40963         * modules/mbmemcasecoll-tests (Files): Likewise.
40964         * modules/mbrtowc-tests (Files): Likewise.
40965         * modules/mbscasecmp-tests (Files): Likewise.
40966         * modules/mbscasestr-tests (Files): Likewise.
40967         * modules/mbschr-tests (Files): Likewise.
40968         * modules/mbscspn-tests (Files): Likewise.
40969         * modules/mbsinit-tests (Files): Likewise.
40970         * modules/mbsncasecmp-tests (Files): Likewise.
40971         * modules/mbsnrtowcs-tests (Files): Likewise.
40972         * modules/mbspbrk-tests (Files): Likewise.
40973         * modules/mbspcasecmp-tests (Files): Likewise.
40974         * modules/mbsrchr-tests (Files): Likewise.
40975         * modules/mbsrtowcs-tests (Files): Likewise.
40976         * modules/mbsspn-tests (Files): Likewise.
40977         * modules/mbsstr-tests (Files): Likewise.
40978         * modules/memchr-tests (Files): Likewise.
40979         * modules/memchr2-tests (Files): Likewise.
40980         * modules/memcmp-tests (Files): Likewise.
40981         * modules/memmem-tests (Files): Likewise.
40982         * modules/memrchr-tests (Files): Likewise.
40983         * modules/mkdir-tests (Files): Likewise.
40984         * modules/mkfifo-tests (Files): Likewise.
40985         * modules/mkfifoat-tests (Files): Likewise.
40986         * modules/mknod-tests (Files): Likewise.
40987         * modules/nanosleep-tests (Files): Likewise.
40988         * modules/nl_langinfo-tests (Files): Likewise.
40989         * modules/obstack-printf-tests (Files): Likewise.
40990         * modules/open-tests (Files): Likewise.
40991         * modules/openat-tests (Files): Likewise.
40992         * modules/pipe-filter-gi-tests (Files): Likewise.
40993         * modules/pipe-filter-ii-tests (Files): Likewise.
40994         * modules/pipe2-tests (Files): Likewise.
40995         * modules/popen-safer-tests (Files): Likewise.
40996         * modules/popen-tests (Files): Likewise.
40997         * modules/posixtm-tests (Files): Likewise.
40998         * modules/pread-tests (Files): Likewise.
40999         * modules/printf-frexp-tests (Files): Likewise.
41000         * modules/printf-frexpl-tests (Files): Likewise.
41001         * modules/printf-posix-tests (Files): Likewise.
41002         * modules/priv-set-tests (Files): Likewise.
41003         * modules/quotearg-tests (Files): Likewise.
41004         * modules/random_r-tests (Files): Likewise.
41005         * modules/rawmemchr-tests (Files): Likewise.
41006         * modules/rbtree-list-tests (Files): Likewise.
41007         * modules/rbtree-oset-tests (Files): Likewise.
41008         * modules/rbtreehash-list-tests (Files): Likewise.
41009         * modules/readlink-tests (Files): Likewise.
41010         * modules/remove-tests (Files): Likewise.
41011         * modules/rename-tests (Files): Likewise.
41012         * modules/renameat-tests (Files): Likewise.
41013         * modules/rmdir-tests (Files): Likewise.
41014         * modules/round-tests (Files): Likewise.
41015         * modules/roundf-tests (Files): Likewise.
41016         * modules/roundl-tests (Files): Likewise.
41017         * modules/safe-alloc-tests (Files): Likewise.
41018         * modules/setenv-tests (Files): Likewise.
41019         * modules/sigaction-tests (Files): Likewise.
41020         * modules/signbit-tests (Files): Likewise.
41021         * modules/sleep-tests (Files): Likewise.
41022         * modules/snprintf-posix-tests (Files): Likewise.
41023         * modules/snprintf-tests (Files): Likewise.
41024         * modules/sprintf-posix-tests (Files): Likewise.
41025         * modules/stat-tests (Files): Likewise.
41026         * modules/stat-time-tests (Files): Likewise.
41027         * modules/strcasestr-tests (Files): Likewise.
41028         * modules/strchrnul-tests (Files): Likewise.
41029         * modules/strerror-tests (Files): Likewise.
41030         * modules/striconv-tests (Files): Likewise.
41031         * modules/striconveh-tests (Files): Likewise.
41032         * modules/striconveha-tests (Files): Likewise.
41033         * modules/strsignal-tests (Files): Likewise.
41034         * modules/strstr-tests (Files): Likewise.
41035         * modules/strtod-tests (Files): Likewise.
41036         * modules/strverscmp-tests (Files): Likewise.
41037         * modules/symlink-tests (Files): Likewise.
41038         * modules/symlinkat-tests (Files): Likewise.
41039         * modules/trunc-tests (Files): Likewise.
41040         * modules/truncf-tests (Files): Likewise.
41041         * modules/truncl-tests (Files): Likewise.
41042         * modules/uname-tests (Files): Likewise.
41043         * modules/unicase/cased-tests (Files): Likewise.
41044         * modules/unicase/ignorable-tests (Files): Likewise.
41045         * modules/unicase/locale-language-tests (Files): Likewise.
41046         * modules/unicase/tolower-tests (Files): Likewise.
41047         * modules/unicase/totitle-tests (Files): Likewise.
41048         * modules/unicase/toupper-tests (Files): Likewise.
41049         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41050         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41051         * modules/unicase/u8-casefold-tests (Files): Likewise.
41052         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41053         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41054         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41055         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41056         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41057         * modules/unicase/u8-tolower-tests (Files): Likewise.
41058         * modules/unicase/u8-totitle-tests (Files): Likewise.
41059         * modules/unicase/u8-toupper-tests (Files): Likewise.
41060         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41061         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41062         * modules/unicase/u16-casefold-tests (Files): Likewise.
41063         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41064         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41065         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41066         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41067         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41068         * modules/unicase/u16-tolower-tests (Files): Likewise.
41069         * modules/unicase/u16-totitle-tests (Files): Likewise.
41070         * modules/unicase/u16-toupper-tests (Files): Likewise.
41071         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41072         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41073         * modules/unicase/u32-casefold-tests (Files): Likewise.
41074         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41075         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41076         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41077         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41078         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41079         * modules/unicase/u32-tolower-tests (Files): Likewise.
41080         * modules/unicase/u32-totitle-tests (Files): Likewise.
41081         * modules/unicase/u32-toupper-tests (Files): Likewise.
41082         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41083         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41084         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41085         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41086         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41087         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41088         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41089         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41090         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41091         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41092         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41093         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41094         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41095         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41096         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41097         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41098         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41099         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41100         * modules/unictype/block-list-tests (Files): Likewise.
41101         * modules/unictype/block-of-tests (Files): Likewise.
41102         * modules/unictype/block-test-tests (Files): Likewise.
41103         * modules/unictype/category-C-tests (Files): Likewise.
41104         * modules/unictype/category-Cc-tests (Files): Likewise.
41105         * modules/unictype/category-Cf-tests (Files): Likewise.
41106         * modules/unictype/category-Cn-tests (Files): Likewise.
41107         * modules/unictype/category-Co-tests (Files): Likewise.
41108         * modules/unictype/category-Cs-tests (Files): Likewise.
41109         * modules/unictype/category-L-tests (Files): Likewise.
41110         * modules/unictype/category-Ll-tests (Files): Likewise.
41111         * modules/unictype/category-Lm-tests (Files): Likewise.
41112         * modules/unictype/category-Lo-tests (Files): Likewise.
41113         * modules/unictype/category-Lt-tests (Files): Likewise.
41114         * modules/unictype/category-Lu-tests (Files): Likewise.
41115         * modules/unictype/category-M-tests (Files): Likewise.
41116         * modules/unictype/category-Mc-tests (Files): Likewise.
41117         * modules/unictype/category-Me-tests (Files): Likewise.
41118         * modules/unictype/category-Mn-tests (Files): Likewise.
41119         * modules/unictype/category-N-tests (Files): Likewise.
41120         * modules/unictype/category-Nd-tests (Files): Likewise.
41121         * modules/unictype/category-Nl-tests (Files): Likewise.
41122         * modules/unictype/category-No-tests (Files): Likewise.
41123         * modules/unictype/category-P-tests (Files): Likewise.
41124         * modules/unictype/category-Pc-tests (Files): Likewise.
41125         * modules/unictype/category-Pd-tests (Files): Likewise.
41126         * modules/unictype/category-Pe-tests (Files): Likewise.
41127         * modules/unictype/category-Pf-tests (Files): Likewise.
41128         * modules/unictype/category-Pi-tests (Files): Likewise.
41129         * modules/unictype/category-Po-tests (Files): Likewise.
41130         * modules/unictype/category-Ps-tests (Files): Likewise.
41131         * modules/unictype/category-S-tests (Files): Likewise.
41132         * modules/unictype/category-Sc-tests (Files): Likewise.
41133         * modules/unictype/category-Sk-tests (Files): Likewise.
41134         * modules/unictype/category-Sm-tests (Files): Likewise.
41135         * modules/unictype/category-So-tests (Files): Likewise.
41136         * modules/unictype/category-Z-tests (Files): Likewise.
41137         * modules/unictype/category-Zl-tests (Files): Likewise.
41138         * modules/unictype/category-Zp-tests (Files): Likewise.
41139         * modules/unictype/category-Zs-tests (Files): Likewise.
41140         * modules/unictype/category-and-not-tests (Files): Likewise.
41141         * modules/unictype/category-and-tests (Files): Likewise.
41142         * modules/unictype/category-byname-tests (Files): Likewise.
41143         * modules/unictype/category-name-tests (Files): Likewise.
41144         * modules/unictype/category-none-tests (Files): Likewise.
41145         * modules/unictype/category-of-tests (Files): Likewise.
41146         * modules/unictype/category-or-tests (Files): Likewise.
41147         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41148         * modules/unictype/combining-class-tests (Files): Likewise.
41149         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41150         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41151         * modules/unictype/ctype-blank-tests (Files): Likewise.
41152         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41153         * modules/unictype/ctype-digit-tests (Files): Likewise.
41154         * modules/unictype/ctype-graph-tests (Files): Likewise.
41155         * modules/unictype/ctype-lower-tests (Files): Likewise.
41156         * modules/unictype/ctype-print-tests (Files): Likewise.
41157         * modules/unictype/ctype-punct-tests (Files): Likewise.
41158         * modules/unictype/ctype-space-tests (Files): Likewise.
41159         * modules/unictype/ctype-upper-tests (Files): Likewise.
41160         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41161         * modules/unictype/decimal-digit-tests (Files): Likewise.
41162         * modules/unictype/digit-tests (Files): Likewise.
41163         * modules/unictype/mirror-tests (Files): Likewise.
41164         * modules/unictype/numeric-tests (Files): Likewise.
41165         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41166         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41167         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41168         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41169         Likewise.
41170         * modules/unictype/property-bidi-block-separator-tests (Files):
41171         Likewise.
41172         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41173         Likewise.
41174         * modules/unictype/property-bidi-common-separator-tests (Files):
41175         Likewise.
41176         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41177         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41178         Likewise.
41179         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41180         Likewise.
41181         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41182         Likewise.
41183         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41184         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41185         Likewise.
41186         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41187         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41188         Likewise.
41189         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41190         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41191         * modules/unictype/property-bidi-segment-separator-tests (Files):
41192         Likewise.
41193         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41194         * modules/unictype/property-byname-tests (Files): Likewise.
41195         * modules/unictype/property-combining-tests (Files): Likewise.
41196         * modules/unictype/property-composite-tests (Files): Likewise.
41197         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41198         * modules/unictype/property-dash-tests (Files): Likewise.
41199         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41200         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41201         Likewise.
41202         * modules/unictype/property-deprecated-tests (Files): Likewise.
41203         * modules/unictype/property-diacritic-tests (Files): Likewise.
41204         * modules/unictype/property-extender-tests (Files): Likewise.
41205         * modules/unictype/property-format-control-tests (Files): Likewise.
41206         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41207         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41208         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41209         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41210         * modules/unictype/property-hyphen-tests (Files): Likewise.
41211         * modules/unictype/property-id-continue-tests (Files): Likewise.
41212         * modules/unictype/property-id-start-tests (Files): Likewise.
41213         * modules/unictype/property-ideographic-tests (Files): Likewise.
41214         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41215         * modules/unictype/property-ids-trinary-operator-tests (Files):
41216         Likewise.
41217         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41218         * modules/unictype/property-iso-control-tests (Files): Likewise.
41219         * modules/unictype/property-join-control-tests (Files): Likewise.
41220         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41221         * modules/unictype/property-line-separator-tests (Files): Likewise.
41222         * modules/unictype/property-logical-order-exception-tests (Files):
41223         Likewise.
41224         * modules/unictype/property-lowercase-tests (Files): Likewise.
41225         * modules/unictype/property-math-tests (Files): Likewise.
41226         * modules/unictype/property-non-break-tests (Files): Likewise.
41227         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41228         * modules/unictype/property-numeric-tests (Files): Likewise.
41229         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41230         * modules/unictype/property-other-default-ignorable-code-point-tests
41231         (Files): Likewise.
41232         * modules/unictype/property-other-grapheme-extend-tests (Files):
41233         Likewise.
41234         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41235         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41236         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41237         * modules/unictype/property-other-math-tests (Files): Likewise.
41238         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41239         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41240         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41241         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41242         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41243         * modules/unictype/property-private-use-tests (Files): Likewise.
41244         * modules/unictype/property-punctuation-tests (Files): Likewise.
41245         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41246         * modules/unictype/property-radical-tests (Files): Likewise.
41247         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41248         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41249         * modules/unictype/property-space-tests (Files): Likewise.
41250         * modules/unictype/property-terminal-punctuation-tests (Files):
41251         Likewise.
41252         * modules/unictype/property-test-tests (Files): Likewise.
41253         * modules/unictype/property-titlecase-tests (Files): Likewise.
41254         * modules/unictype/property-unassigned-code-value-tests (Files):
41255         Likewise.
41256         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41257         * modules/unictype/property-uppercase-tests (Files): Likewise.
41258         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41259         * modules/unictype/property-white-space-tests (Files): Likewise.
41260         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41261         * modules/unictype/property-xid-start-tests (Files): Likewise.
41262         * modules/unictype/property-zero-width-tests (Files): Likewise.
41263         * modules/unictype/scripts-tests (Files): Likewise.
41264         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41265         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41266         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41267         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41268         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41269         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41270         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41271         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41272         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41273         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41274         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41275         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41276         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41277         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41278         * modules/uninorm/composition-tests (Files): Likewise.
41279         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41280         * modules/uninorm/decomposition-tests (Files): Likewise.
41281         * modules/uninorm/filter-tests (Files): Likewise.
41282         * modules/uninorm/nfc-tests (Files): Likewise.
41283         * modules/uninorm/nfd-tests (Files): Likewise.
41284         * modules/uninorm/nfkc-tests (Files): Likewise.
41285         * modules/uninorm/nfkd-tests (Files): Likewise.
41286         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41287         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41288         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41289         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41290         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41291         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41292         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41293         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41294         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41295         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41296         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41297         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41298         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41299         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41300         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41301         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41302         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41303         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41304         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41305         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41306         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41307         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41308         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41309         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41310         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41311         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41312         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41313         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41314         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41315         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41316         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41317         * modules/uniwidth/u8-width-tests (Files): Likewise.
41318         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41319         * modules/uniwidth/u16-width-tests (Files): Likewise.
41320         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41321         * modules/uniwidth/u32-width-tests (Files): Likewise.
41322         * modules/uniwidth/width-tests (Files): Likewise.
41323         * modules/unlink-tests (Files): Likewise.
41324         * modules/unsetenv-tests (Files): Likewise.
41325         * modules/usleep-tests (Files): Likewise.
41326         * modules/utimens-tests (Files): Likewise.
41327         * modules/utimensat-tests (Files): Likewise.
41328         * modules/vasnprintf-posix-tests (Files): Likewise.
41329         * modules/vasnprintf-tests (Files): Likewise.
41330         * modules/vasprintf-posix-tests (Files): Likewise.
41331         * modules/vasprintf-tests (Files): Likewise.
41332         * modules/vdprintf-posix-tests (Files): Likewise.
41333         * modules/vfprintf-posix-tests (Files): Likewise.
41334         * modules/vprintf-posix-tests (Files): Likewise.
41335         * modules/vsnprintf-posix-tests (Files): Likewise.
41336         * modules/vsnprintf-tests (Files): Likewise.
41337         * modules/vsprintf-posix-tests (Files): Likewise.
41338         * modules/wcrtomb-tests (Files): Likewise.
41339         * modules/wcsnrtombs-tests (Files): Likewise.
41340         * modules/wcsrtombs-tests (Files): Likewise.
41341         * modules/wctype-tests (Files): Likewise.
41342         * modules/wcwidth-tests (Files): Likewise.
41343         * modules/xmemdup0-tests (Files): Likewise.
41344         * modules/xprintf-posix-tests (Files): Likewise.
41345         * modules/xvasprintf-tests (Files): Likewise.
41346
41347 2009-12-24  Eric Blake  <ebb9@byu.net>
41348
41349         test-nanosleep: fix typo
41350         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41351         patch.
41352         Reported by Bruno Haible.
41353
41354 2009-12-24  Bruno Haible  <bruno@clisp.org>
41355
41356         Reduce namespace pollution on glibc systems.
41357         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41358         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41359         systems.
41360         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41361         <getopt.h> on glibc systems.
41362         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41363         systems.
41364         * lib/fcntl.c: Include <unistd.h> here instead.
41365
41366 2009-12-24  Bruno Haible  <bruno@clisp.org>
41367
41368         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41369
41370 2009-12-24  Eric Blake  <ebb9@byu.net>
41371
41372         tests: add signature checks
41373         * tests/signature.h (SIGNATURE_CHECK): New file.
41374         * modules/atexit-tests (Files): Use it.
41375         * modules/btowc-tests (Files): Likewise.
41376         * modules/canonicalize-lgpl-tests (Files): Likewise.
41377         * modules/ceilf-tests (Files): Likewise.
41378         * modules/ceill-tests (Files): Likewise.
41379         * modules/chown-tests (Files): Likewise.
41380         * modules/dprintf-posix-tests (Files): Likewise.
41381         * modules/dup2-tests (Files): Likewise.
41382         * modules/dup3-tests (Files): Likewise.
41383         * modules/duplocale-tests (Files): Likewise.
41384         * modules/fchdir-tests (Files): Likewise.
41385         * modules/fcntl-tests (Files): Likewise.
41386         * modules/fdopendir-tests (Files): Likewise.
41387         * modules/fflush-tests (Files): Likewise.
41388         * modules/flock-tests (Files): Likewise.
41389         * modules/floorf-tests (Files): Likewise.
41390         * modules/floorl-tests (Files): Likewise.
41391         * modules/fnmatch-tests (Files): Likewise.
41392         * modules/fopen-tests (Files): Likewise.
41393         * modules/fprintf-posix-tests (Files): Likewise.
41394         * modules/freopen-tests (Files): Likewise.
41395         * modules/frexp-nolibm-tests (Files): Likewise.
41396         * modules/frexp-tests (Files): Likewise.
41397         * modules/frexpl-nolibm-tests (Files): Likewise.
41398         * modules/frexpl-tests (Files): Likewise.
41399         * modules/fseek-tests (Files): Likewise.
41400         * modules/fseeko-tests (Files): Likewise.
41401         * modules/fsync-tests (Files): Likewise.
41402         * modules/ftell-tests (Files): Likewise.
41403         * modules/ftello-tests (Files): Likewise.
41404         * modules/futimens-tests (Files): Likewise.
41405         * modules/getaddrinfo-tests (Files): Likewise.
41406         * modules/getcwd-tests (Files): Likewise.
41407         * modules/getdelim-tests (Files): Likewise.
41408         * modules/getdtablesize-tests (Files): Likewise.
41409         * modules/getgroups-tests (Files): Likewise.
41410         * modules/gethostname-tests (Files): Likewise.
41411         * modules/getline-tests (Files): Likewise.
41412         * modules/getopt-posix-tests (Files): Likewise.
41413         * modules/gettimeofday-tests (Files): Likewise.
41414         * modules/glob-tests (Files): Likewise.
41415         * modules/iconv-tests (Files): Likewise.
41416         * modules/inet_ntop-tests (Files): Likewise.
41417         * modules/inet_pton-tests (Files): Likewise.
41418         * modules/isblank-tests (Files): Likewise.
41419         * modules/lchown-tests (Files): Likewise.
41420         * modules/ldexpl-tests (Files): Likewise.
41421         * modules/link-tests (Files): Likewise.
41422         * modules/linkat-tests (Files): Likewise.
41423         * modules/lseek-tests (Files): Likewise.
41424         * modules/lstat-tests (Files): Likewise.
41425         * modules/mbrtowc-tests (Files): Likewise.
41426         * modules/mbsinit-tests (Files): Likewise.
41427         * modules/mbsnrtowcs-tests (Files): Likewise.
41428         * modules/mbsrtowcs-tests (Files): Likewise.
41429         * modules/memchr-tests (Files): Likewise.
41430         * modules/memcmp-tests (Files): Likewise.
41431         * modules/memmem-tests (Files): Likewise.
41432         * modules/memrchr-tests (Files): Likewise.
41433         * modules/mkdir-tests (Files): Likewise.
41434         * modules/mkfifo-tests (Files): Likewise.
41435         * modules/mkfifoat-tests (Files): Likewise.
41436         * modules/mknod-tests (Files): Likewise.
41437         * modules/nanosleep-tests (Files): Likewise.
41438         * modules/nl_langinfo-tests (Files): Likewise.
41439         * modules/obstack-printf-tests (Files): Likewise.
41440         * modules/open-tests (Files): Likewise.
41441         * modules/openat-tests (Files): Likewise.
41442         * modules/perror-tests (Files): Likewise.
41443         * modules/pipe2-tests (Files): Likewise.
41444         * modules/poll-tests (Files): Likewise.
41445         * modules/popen-tests (Files): Likewise.
41446         * modules/posix_spawn-tests (Files): Likewise.
41447         * modules/posix_spawnp-tests (Files): Likewise.
41448         * modules/pread-tests (Files): Likewise.
41449         * modules/printf-posix-tests (Files): Likewise.
41450         * modules/pty-tests (Files): Likewise.
41451         * modules/random_r-tests (Files): Likewise.
41452         * modules/rawmemchr-tests (Files): Likewise.
41453         * modules/readlink-tests (Files): Likewise.
41454         * modules/remove-tests (Files): Likewise.
41455         * modules/rename-tests (Files): Likewise.
41456         * modules/renameat-tests (Files): Likewise.
41457         * modules/rmdir-tests (Files): Likewise.
41458         * modules/round-tests (Files): Likewise.
41459         * modules/roundf-tests (Files): Likewise.
41460         * modules/roundl-tests (Files): Likewise.
41461         * modules/select-tests (Files): Likewise.
41462         * modules/setenv-tests (Files): Likewise.
41463         * modules/sigaction-tests (Files): Likewise.
41464         * modules/sleep-tests (Files): Likewise.
41465         * modules/snprintf-posix-tests (Files): Likewise.
41466         * modules/snprintf-tests (Files): Likewise.
41467         * modules/sprintf-posix-tests (Files): Likewise.
41468         * modules/stat-tests (Files): Likewise.
41469         * modules/strcasestr-tests (Files): Likewise.
41470         * modules/strchrnul-tests (Files): Likewise.
41471         * modules/strerror-tests (Files): Likewise.
41472         * modules/strsignal-tests (Files): Likewise.
41473         * modules/strstr-tests (Files): Likewise.
41474         * modules/strtod-tests (Files): Likewise.
41475         * modules/strverscmp-tests (Files): Likewise.
41476         * modules/symlink-tests (Files): Likewise.
41477         * modules/symlinkat-tests (Files): Likewise.
41478         * modules/times-tests (Files): Likewise.
41479         * modules/trunc-tests (Files): Likewise.
41480         * modules/truncf-tests (Files): Likewise.
41481         * modules/truncl-tests (Files): Likewise.
41482         * modules/tsearch-tests (Files): Likewise.
41483         * modules/uname-tests (Files): Likewise.
41484         * modules/unlink-tests (Files): Likewise.
41485         * modules/unsetenv-tests (Files): Likewise.
41486         * modules/usleep-tests (Files): Likewise.
41487         * modules/utimensat-tests (Files): Likewise.
41488         * modules/vasprintf-tests (Files): Likewise.
41489         * modules/vdprintf-posix-tests (Files): Likewise.
41490         * modules/vfprintf-posix-tests (Files): Likewise.
41491         * modules/vprintf-posix-tests (Files): Likewise.
41492         * modules/vsnprintf-posix-tests (Files): Likewise.
41493         * modules/vsnprintf-tests (Files): Likewise.
41494         * modules/vsprintf-posix-tests (Files): Likewise.
41495         * modules/wcrtomb-tests (Files): Likewise.
41496         * modules/wcsnrtombs-tests (Files): Likewise.
41497         * modules/wcsrtombs-tests (Files): Likewise.
41498         * modules/wcwidth-tests (Files): Likewise.
41499         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41500         * tests/test-isinf.c (isinf): Likewise.
41501         * tests/test-isnan.c (isnan): Likewise.
41502         * tests/test-signbit.c (signbit): Likewise.
41503         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41504         declaration, either as macro or with correct signature.
41505         (select): Ensure function under test is declared with correct
41506         signature in correct header.
41507         * tests/test-atexit.c (atexit): Likewise.
41508         * tests/test-btowc.c (btowc): Likewise.
41509         * tests/test-canonicalize-lgpl.c (realpath)
41510         (canonicalize_file_name): Likewise.
41511         * tests/test-ceilf1.c (ceilf): Likewise.
41512         * tests/test-ceill.c (ceill): Likewise.
41513         * tests/test-chown.c (chown): Likewise.
41514         * tests/test-dprintf-posix.c (dprintf): Likewise.
41515         * tests/test-dup2.c (dup2): Likewise.
41516         * tests/test-dup3.c (dup3): Likewise.
41517         * tests/test-duplocale.c (duplocale): Likewise.
41518         * tests/test-fchdir.c (fchdir): Likewise.
41519         * tests/test-fchownat.c (fchownat): Likewise.
41520         * tests/test-fcntl.c (fcntl): Likewise.
41521         * tests/test-fdopendir.c (fdopendir): Likewise.
41522         * tests/test-fflush.c (fflush): Likewise.
41523         * tests/test-flock.c (flock): Likewise.
41524         * tests/test-floorf1.c (floorf): Likewise.
41525         * tests/test-floorl.c (floorl): Likewise.
41526         * tests/test-fnmatch.c (fnmatch): Likewise.
41527         * tests/test-fopen.c (fopen): Likewise.
41528         * tests/test-fprintf-posix.c (fprintf): Likewise.
41529         * tests/test-freopen.c (freopen): Likewise.
41530         * tests/test-frexp.c (frexp): Likewise.
41531         * tests/test-frexpl.c (frexpl): Likewise.
41532         * tests/test-fseek.c (fseek): Likewise.
41533         * tests/test-fseeko.c (fseeko): Likewise.
41534         * tests/test-fstatat.c (fstatat): Likewise.
41535         * tests/test-fsync.c (fsync): Likewise.
41536         * tests/test-ftell.c (ftell): Likewise.
41537         * tests/test-ftello.c (ftello): Likewise.
41538         * tests/test-futimens.c (futimens): Likewise.
41539         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41540         (gai_strerror): Likewise.
41541         * tests/test-getcwd.c (getcwd): Likewise.
41542         * tests/test-getdelim.c (getdelim): Likewise.
41543         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41544         * tests/test-getgroups.c (getgroups): Likewise.
41545         * tests/test-gethostname.c (gethostname): Likewise.
41546         * tests/test-getline.c (getline): Likewise.
41547         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41548         Likewise.
41549         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41550         * tests/test-glob.c (glob, globfree): Likewise.
41551         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41552         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41553         * tests/test-inet_pton.c (inet_pton): Likewise.
41554         * tests/test-isblank.c (isblank): Likewise.
41555         * tests/test-lchown.c (lchown): Likewise.
41556         * tests/test-ldexpl.c (ldexpl): Likewise.
41557         * tests/test-link.c (link): Likewise.
41558         * tests/test-linkat.c (linkat): Likewise.
41559         * tests/test-lseek.c (lseek): Likewise.
41560         * tests/test-lstat.c (lstat): Likewise.
41561         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41562         * tests/test-mbsinit.c (mbsinit): Likewise.
41563         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41564         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41565         * tests/test-memchr.c (memchr): Likewise.
41566         * tests/test-memcmp.c (memcmp): Likewise.
41567         * tests/test-memmem.c (memmem): Likewise.
41568         * tests/test-memrchr.c (memrchr): Likewise.
41569         * tests/test-mkdir.c (mkdir): Likewise.
41570         * tests/test-mkdirat.c (mkdirat): Likewise.
41571         * tests/test-mkfifo.c (mkfifo): Likewise.
41572         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41573         * tests/test-mknod.c (mknod): Likewise.
41574         * tests/test-nanosleep.c (nanosleep): Likewise.
41575         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41576         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41577         Likewise.
41578         * tests/test-open.c (open): Likewise.
41579         * tests/test-openat.c (openat): Likewise.
41580         * tests/test-perror.c (perror): Likewise.
41581         * tests/test-pipe2.c (pipe2): Likewise.
41582         * tests/test-poll.c (poll): Likewise.
41583         * tests/test-popen.c (popen, pclose): Likewise.
41584         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41585         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41586         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41587         (posix_spawn_file_actions_destroy)
41588         (posix_spawn_file_actions_addclose)
41589         (posix_spawn_file_actions_addopen)
41590         (posix_spawn_file_actions_adddup2): Likewise.
41591         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41592         * tests/test-pread.c (pread): Likewise.
41593         * tests/test-printf-posix.c (printf): Likewise.
41594         * tests/test-pty.c (openpty, forkpty): Likewise.
41595         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41596         (random_r): Likewise.
41597         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41598         * tests/test-readlink.c (readlink): Likewise.
41599         * tests/test-remove.c (remove): Likewise.
41600         * tests/test-rename.c (rename): Likewise.
41601         * tests/test-renameat.c (renameat): Likewise.
41602         * tests/test-rmdir.c (rmdir): Likewise.
41603         * tests/test-round1.c (round): Likewise.
41604         * tests/test-roundf1.c (roundf): Likewise.
41605         * tests/test-roundl.c (roundl): Likewise.
41606         * tests/test-setenv.c (setenv): Likewise.
41607         * tests/test-sigaction.c (sigaction): Likewise.
41608         * tests/test-sleep.c (sleep): Likewise.
41609         * tests/test-snprintf.c (snprintf): Likewise.
41610         * tests/test-sprintf-posix.c (sprintf): Likewise.
41611         * tests/test-stat.c (stat): Likewise.
41612         * tests/test-stpncpy.c (stpncpy): Likewise.
41613         * tests/test-strcasestr.c (strcasestr): Likewise.
41614         * tests/test-strchrnul.c (strchrnul): Likewise.
41615         * tests/test-strerror.c (strerror): Likewise.
41616         * tests/test-strsignal.c (strsignal): Likewise.
41617         * tests/test-strstr.c (strstr): Likewise.
41618         * tests/test-strtod.c (strtod): Likewise.
41619         * tests/test-strverscmp.c (strverscmp): Likewise.
41620         * tests/test-symlink.c (symlink): Likewise.
41621         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41622         * tests/test-times.c (times): Likewise.
41623         * tests/test-trunc1.c (trunc): Likewise.
41624         * tests/test-truncf1.c (truncf): Likewise.
41625         * tests/test-truncl.c (truncl): Likewise.
41626         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41627         Likewise.
41628         * tests/test-uname.c (uname): Likewise.
41629         * tests/test-unlink.c (unlink): Likewise.
41630         * tests/test-unlinkat.c (unlinkat): Likewise.
41631         * tests/test-unsetenv.c (unsetenv): Likewise.
41632         * tests/test-usleep.c (usleep): Likewise.
41633         * tests/test-utimensat.c (utimensat): Likewise.
41634         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41635         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41636         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41637         * tests/test-vprintf-posix.c (vprintf): Likewise.
41638         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41639         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41640         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41641         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41642         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41643         * tests/test-wcwidth.c (wcwidth): Likewise.
41644
41645         build: pull in conditional headers during GNULIB_POSIXCHECK
41646         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41647         definitions from any conditionally-included headers.
41648         * lib/stdlib.in.h (includes): Likewise.
41649         * lib/unistd.in.h (includes): Likewise.
41650
41651 2009-12-24  Bruno Haible  <bruno@clisp.org>
41652
41653         * tests/test-argv-iter.c: Include header file being tested immediately
41654         after config.h.
41655         * tests/test-base64.c: Likewise.
41656         * tests/test-flock.c: Likewise.
41657         * tests/test-fsync.c: Likewise.
41658         * tests/test-getdate.c: Likewise.
41659         * tests/test-getndelim2.c: Likewise.
41660         * tests/test-isfinite.c: Likewise.
41661         * tests/test-isinf.c: Likewise.
41662         * tests/test-strerror.c: Likewise.
41663         * tests/test-strsignal.c: Likewise.
41664
41665 2009-12-23  Eric Blake  <ebb9@byu.net>
41666
41667         unistd: work around cygwin bug
41668         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41669         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41670         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41671
41672 2009-12-23  Bruno Haible  <bruno@clisp.org>
41673
41674         localename: More tests.
41675         * tests/test-localename.c (SIZEOF): New macro.
41676         (categories): New variable.
41677         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41678         test_locale_name_default): Add test w.r.t. thread locale.
41679         (test_locale_name_thread): New function.
41680         (main): Invoke it.
41681
41682         localename: Make aware of thread locale.
41683         * lib/localename.h (gl_locale_name_thread): New declaration.
41684         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41685         behaviour with respect to thread locale.
41686         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41687         <langinfo.h>, glthread/lock.h.
41688         (SIZE_BITS): New macro.
41689         (string_hash): New function.
41690         (struct hash_node): New type.
41691         (HASH_TABLE_SIZE): New macro.
41692         (struniq_hash_table, struniq_lock): New variables.
41693         (struniq): New function.
41694         (gl_locale_name_thread): New function.
41695         (gl_locale_name): Invoke it.
41696         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41697         * modules/localename (Depends-on): Add lock.
41698         Reported by Mike Gran <spk121@yahoo.com>.
41699
41700 2009-12-23  Eric Blake  <ebb9@byu.net>
41701
41702         va-args: new module
41703         * modules/va-args: New file.
41704         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41705         * MODULES.html.sh (Core language properties): Mention it.
41706
41707         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41708         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41709         named alias for __attribute__((__unused__)).
41710         * lib/chown.c: Update client.
41711         * lib/fchmodat.c: Likewise.
41712         * lib/fts.c: Likewise.
41713         * lib/getdate.y: Likewise.
41714         * lib/getgroups.c: Likewise.
41715         * lib/getopt.c: Likewise.
41716         * lib/getugroups.c: Likewise.
41717         * lib/mkdir.c: Likewise.
41718         * lib/mkfifo.c: Likewise.
41719         * lib/mkfifoat.c: Likewise.
41720         * lib/mknod.c: Likewise.
41721         * lib/mknodat.c: Likewise.
41722         * lib/readlink.c: Likewise.
41723         * lib/se-context.in.h: Likewise.
41724         * lib/se-selinux.in.h: Likewise.
41725         * lib/sockets.c: Likewise.
41726         * lib/symlink.c: Likewise.
41727         * lib/symlinkat.c: Likewise.
41728         * lib/unicodeio.c: Likewise.
41729         * lib/unistr.h: Likewise.
41730         * tests/test-areadlink.c: Likewise.
41731         * tests/test-areadlinkat.c: Likewise.
41732         * tests/test-filenamecat.c: Likewise.
41733         * tests/test-fseeko.c: Likewise.
41734         * tests/test-ftello.c: Likewise.
41735         * tests/test-getdate.c: Likewise.
41736         * tests/test-getgroups.c: Likewise.
41737         * tests/test-gethostname.c: Likewise.
41738         * tests/test-quotearg.c: Likewise.
41739         * tests/test-version-etc.c: Likewise.
41740         * tests/test-xalloc-die.c: Likewise.
41741         * tests/test-xfprintf-posix.c: Likewise.
41742         * tests/test-xprintf-posix.c: Likewise.
41743         * tests/test-xvasprintf.c: Likewise.
41744
41745         tests: avoid compiler warnings
41746         * tests/test-fcntl.c (main): Delete unused parameters.
41747         * tests/test-freopen-safer.c (main): Likewise.
41748         * tests/test-xalloc-die.c (main): Mark unused parameters.
41749         * tests/test-fseeko.c (main): Likewise.
41750         * tests/test-ftello.c (main): Likewise.
41751         * tests/test-nanosleep.c (main): Avoid declaration warning.
41752         * tests/test-sleep.c (main): Likewise.
41753         * tests/test-unsetenv.c (main): Silence warning about string
41754         literal.
41755         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41756
41757 2009-12-23  Bruno Haible  <bruno@clisp.org>
41758
41759         * tests/test-localename.c (test_locale_name): New function, extracted
41760         from main. Also test mixed situations.
41761         (test_locale_name_posix, test_locale_name_environ,
41762         test_locale_name_default): New functions.
41763         (main): Invoke them all.
41764         * modules/localename-tests (configure.ac): Test for newlocale.
41765
41766 2009-12-23  Bruno Haible  <bruno@clisp.org>
41767
41768         unistd: Ensure getcwd gets declared before being overridden.
41769         * lib/unistd.in.h: Conditionally include <io.h>.
41770
41771 2009-12-22  Bruno Haible  <bruno@clisp.org>
41772
41773         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41774         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41775         (gl_WCHAR_H): Invoke it.
41776         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41777         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41778         Reported by Karl Berry <karl@freefriends.org>.
41779
41780 2009-12-22  Eric Blake  <ebb9@byu.net>
41781
41782         math, unistd: avoid redundant includes
41783         * lib/math.in.h (isnan): No need to re-include <math.h>.
41784         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41785
41786         getsubopt: work around cygwin bug
41787         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41788         avoid conflicting with system getsubopt.
41789         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41790         bug.
41791
41792         getopt: synchronize from glibc
41793         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41794         parameter order.  Adjust all callers.
41795         (_getopt_internal_r, main): Adjust quoting in error messages.
41796         Drop considerations for outdated POSIX 1003.2 error message.
41797         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41798         callers.
41799         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41800
41801         test-getopt: test stderr behavior
41802         * modules/getopt-posix-tests (Depends-on): Add dup2.
41803         * tests/test-getopt.c (ASSERT): Avoid stderr.
41804         (main): Move stderr to a temporary file.
41805         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41806         Instead, add parameter to inform caller if output occurred.
41807         (test_getopt): Adjust all existing tests to expect silence, and
41808         add new tests of leading ":".
41809         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41810         glibc shortcomings with leading "-:" or "+:" in optstring.
41811         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41812         Likewise.
41813         * doc/posix-functions/getopt.texi (getopt): Likewise.
41814
41815         test-getopt: enhance test
41816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41817         supports optind=0.
41818         * tests/test-getopt.c (OPTIND_MIN): Move...
41819         * tests/test-getopt.h (OPTIND_MIN): ...here.
41820         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41821         Require that optind=0 works, since modern BSD supports it in
41822         addition to optreset, and since coreutils expects it.
41823         (test_getopt_long_only): New test.
41824         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41825         glibc shortcomings with 'W;', and enforcement of optind=0.
41826         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41827         Likewise.
41828
41829 2009-12-21  Bruno Haible  <bruno@clisp.org>
41830
41831         localename: Improvements for MacOS X and Cygwin.
41832         * lib/localename.h (gl_locale_name_environ): New declaration.
41833         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41834         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41835         (gl_locale_name_posix): Invoke it.
41836         (gl_locale_name_default): Add comments. Use Windows native API also on
41837         Cygwin.
41838
41839 2009-12-21  Bruno Haible  <bruno@clisp.org>
41840
41841         Update list of Win32 locale ids.
41842         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41843         (LANG_SAMI): Renamed from LANG_SAAMI.
41844         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41845         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41846         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41847         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41848         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41849         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41850         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41851         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41852         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41853         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41854         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41855         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41856         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41857         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41858         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41859         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41860         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41861         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41862         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41863         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41864         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41865         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41866         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41867         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41868         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41869         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41870         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41871         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41872         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41873         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41874         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41875         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41876         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41877         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41878         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41879         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41880         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41881         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41882         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41883         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41884         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41885         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41886         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41887         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41888         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41889         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41890         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41891         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41892         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41893         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41894         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41895         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41896         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41897         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41898         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41899         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41900         Add more languages and countries for Sami, Sorbian. Add more countries
41901         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41902         for Pashto. Change country for Syriac, Tswana.
41903
41904 2009-12-21  Eric Blake  <ebb9@byu.net>
41905
41906         test-utimens: avoid spurious failure
41907         * tests/test-chown.h (nap): Factor...
41908         * tests/nap.h: ...into new file.
41909         * tests/test-lchown.h (nap): Avoid duplication.
41910         * tests/test-utimens-common.h (nap): Use shared implementation,
41911         necessary on file systems with 1-second resolution.
41912         * modules/chown-tests (Files): Include new file.
41913         * modules/fdutimensat-tests (Files): Likewise.
41914         * modules/futimens-tests (Files): Likewise.
41915         * modules/lchown-tests (Files): Likewise.
41916         * modules/openat-tests (Files): Likewise.
41917         * modules/utimens-tests (Files): Likewise.
41918         * modules/utimensat-tests (Files): Likewise.
41919
41920 2009-12-19  Eric Blake  <ebb9@byu.net>
41921
41922         futimens, utimensat: work around Linux bug
41923         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41924         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41925         * lib/utimensat.c (rpl_utimensat): Work around it.
41926         * lib/futimens.c (rpl_futimens): Adjust comment.
41927
41928         utimens: work around Linux ctime bug
41929         * lib/utimens.c (detect_ctime_bug): New helper function.
41930         (update_timespec): Differentiate between workaround needed for
41931         this bug vs. what is needed for systems that lack utimensat.
41932         (fdutimens, lutimens): Work around bug.
41933
41934         utimens: check for ctime update
41935         * tests/test-utimens-common.h (check_ctime): Define.
41936         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41937         * tests/test-futimens.h (test_futimens): Likewise.
41938         * tests/test-lutimens.h (test_lutimens): Likewise.
41939         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41940         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41941
41942 2009-12-19  Bruno Haible  <bruno@clisp.org>
41943
41944         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41945         * tests/test-dprintf-posix2.sh: New file.
41946         * tests/test-dprintf-posix2.c: New file.
41947         * modules/dprintf-posix-tests (Files): Add them.
41948         (configure.ac): Check for getrlimit and setrlimit.
41949         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41950
41951 2009-12-19  Bruno Haible  <bruno@clisp.org>
41952
41953         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41954         * tests/test-fprintf-posix3.sh: New file.
41955         * tests/test-fprintf-posix3.c: New file.
41956         * modules/fprintf-posix-tests (Files): Add them.
41957         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41958
41959 2009-12-19  Eric Blake  <ebb9@byu.net>
41960
41961         dirfd: fix prototype
41962         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41963         * lib/dirfd.c (dirfd): Likewise.
41964
41965         canonicalize: reduce memory usage
41966         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41967         allocation to size.
41968         Reported by Solar Designer <solar@openwall.com>.
41969
41970 2009-12-19  Bruno Haible  <bruno@clisp.org>
41971
41972         New module attribute 'Applicability'.
41973         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41974         * gnulib-tool: New option --extract-applicability.
41975         (func_usage): Document it.
41976         (sed_extract_prog): Recognize it.
41977         (func_get_applicability): New function.
41978         (func_import): Generalize handling of 'link-warning' module.
41979         * modules/link-warning (Applicability): New section.
41980         * modules/arg-nonnull (Applicability): New section.
41981         Repoted by Simon Josefsson <simon@josefsson.org>.
41982
41983 2009-12-19  Bruno Haible  <bruno@clisp.org>
41984
41985         fflush: tweak
41986         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41987         * lib/fseeko.c (rpl_fseeko): Likewise.
41988
41989 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41990
41991         * lib/gl_list.h: Fix typo in comment.
41992
41993 2009-12-16  Eric Blake  <ebb9@byu.net>
41994
41995         fcntl: use to simplify other modules
41996         * modules/cloexec (Depends-on): Add fcntl.
41997         * modules/fchdir (Depends-on): Likewise.
41998         * modules/fd-safer-flag (Depends-on): Likewise.
41999         * modules/unistd-safer (Depends-on): Likewise.
42000         * modules/dup3 (configure.ac): Set module indicator.
42001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42002         missing.
42003         * lib/fchdir.c (_gl_register_dup): Fix comment.
42004         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42005         * lib/dup-safer.c (dup_safer): Likewise.
42006         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42007         * lib/dup3.c (dup3): Likewise.
42008         * tests/test-fchdir.c (main): Enhance test.
42009         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42010
42011         fcntl: port portions of fcntl to mingw
42012         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42013         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42014         replacement for mingw.
42015         * modules/fcntl (Description): Update.
42016         (Depends-on): Add dup2.
42017         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42018         * modules/fcntl-h (Makefile.am): Substitute it.
42019         * lib/fcntl.in.h (fcntl): Update declaration.
42020         (F_DUPFD, F_GETFD): New macros, when needed.
42021         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42022         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42023         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42024         we now guarantee.
42025
42026         fcntl: work around cygwin bug in F_DUPFD
42027         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42028         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42029         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42030         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42031         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42032
42033         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42034         * modules/fcntl (Files): List new files.
42035         (configure.ac): Run a test.
42036         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42037         * lib/fcntl.c (rpl_fcntl): Likewise.
42038         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42039         (gl_FCNTL_H): Always replace fcntl.h.
42040         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42041         * lib/fcntl.in.h (fcntl): Declare replacement.
42042         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42043         needed, plus a witness.
42044         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42045         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42046         * tests/test-fcntl.c: New file.
42047         * modules/fcntl-tests: Likewise.
42048
42049         binary-io: avoid potential compilation warning
42050         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42051         directives.
42052
42053         fflush: avoid compilation error on NetBSD
42054         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42055         between off_t and fpos_t, since the latter is sometimes a struct.
42056         * lib/fseeko.c (rpl_fseeko): Likewise.
42057         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42058
42059 2009-12-15  Eric Blake  <ebb9@byu.net>
42060
42061         fcntl-h, stdio, sys_ioctl: fix declarations
42062         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42063         function must not take arguments.
42064         * lib/sys_ioctl.in.h (ioctl): Likewise.
42065         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42066         (open): Add a link warning.
42067
42068 2009-12-15  Jim Meyering  <meyering@redhat.com>
42069
42070         areadlink, areadlink-with-size: relax license to LGPLv2+
42071         * modules/areadlink (License): Relax to LGPLv2+.
42072         * modules/areadlink-with-size (License): Likewise.
42073
42074 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42075             Bruno Haible  <bruno@clisp.org>
42076
42077         *printf: Fix memory leak.
42078         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42079         * lib/vfprintf.c (vfprintf): Likewise.
42080         * lib/dprintf.c (dprintf): Likewise.
42081         * lib/vdprintf.c (vdprintf): Likewise.
42082
42083 2009-12-14  Eric Blake  <ebb9@byu.net>
42084
42085         accept4: adjust module dependencies
42086         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42087
42088         utimens: one more try at avoiding compiler warning
42089         * lib/utimens.c (lutimens): Lower scope of result.
42090
42091 2009-12-13  Bruno Haible  <bruno@clisp.org>
42092
42093         Move the malloc checking from module 'list' to new module 'xlist'.
42094         * modules/xlist: New file.
42095         * lib/gl_xlist.h: New file.
42096         * lib/gl_xlist.c: New file.
42097         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42098         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42099         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42100         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42101         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42102         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42103         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42104         gl_sortedlist_nx_add): New declarations.
42105         (struct gl_list_implementation): Rename and change methods accordingly.
42106         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42107         (gl_list_nx_create): Renamed from gl_list_create.
42108         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42109         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42110         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42111         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42112         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42113         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42114         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42115         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42116         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42117         gl_list_create_empty.
42118         (gl_list_nx_create): Renamed from gl_list_create.
42119         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42120         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42121         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42122         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42123         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42124         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42125         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42126         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42127         * lib/gl_array_list.c: Don't include xalloc.h.
42128         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42129         NULL upon out-of-memory.
42130         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42131         out-of-memory.
42132         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42133         Change return type to 'int'.
42134         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42135         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42136         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42137         upon out-of-memory.
42138         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42139         upon out-of-memory.
42140         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42141         upon out-of-memory.
42142         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42143         upon out-of-memory.
42144         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42145         out-of-memory.
42146         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42147         Update.
42148         (gl_array_list_implementation): Update.
42149         * lib/gl_carray_list.c: Don't include xalloc.h.
42150         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42151         Return NULL upon out-of-memory.
42152         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42153         out-of-memory.
42154         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42155         Change return type to 'int'.
42156         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42157         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42158         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42159         upon out-of-memory.
42160         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42161         upon out-of-memory.
42162         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42163         out-of-memory.
42164         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42165         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42166         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42167         Update.
42168         (gl_carray_list_implementation): Update.
42169         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42170         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42171         gl_linked_create_empty. Return NULL upon out-of-memory.
42172         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42173         out-of-memory.
42174         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42175         Change return type to 'int'. Return -1 upon out-of-memory.
42176         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42177         out-of-memory.
42178         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42179         upon out-of-memory.
42180         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42181         upon out-of-memory.
42182         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42183         NULL upon out-of-memory.
42184         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42185         upon out-of-memory.
42186         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42187         out-of-memory.
42188         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42189         Update.
42190         * lib/gl_linked_list.c: Don't include xalloc.h.
42191         (gl_linked_list_implementation): Update.
42192         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42193         (add_to_bucket): Change return type to 'int'.
42194         (gl_linkedhash_list_implementation): Update.
42195         * lib/gl_anytree_list1.h (free_subtree): New function.
42196         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42197         gl_tree_create_empty. Return NULL upon out-of-memory.
42198         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42199         Change return type to 'int'. Return -1 upon out-of-memory.
42200         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42201         out-of-memory.
42202         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42203         (gl_tree_remove_node): New function, moved here from
42204         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42205         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42206         Update.
42207         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42208         malloc, not xmalloc. Return NULL upon out-of-memory.
42209         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42210         out-of-memory.
42211         (gl_tree_remove_node_from_tree): New function, extracted from
42212         gl_tree_remove_node.
42213         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42214         upon out-of-memory.
42215         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42216         out-of-memory.
42217         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42218         upon out-of-memory.
42219         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42220         upon out-of-memory.
42221         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42222         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42223         not xmalloc. Return NULL upon out-of-memory.
42224         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42225         out-of-memory.
42226         (gl_tree_remove_node_from_tree): New function, extracted from
42227         gl_tree_remove_node.
42228         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42229         upon out-of-memory.
42230         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42231         out-of-memory.
42232         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42233         upon out-of-memory.
42234         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42235         upon out-of-memory.
42236         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42237         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42238         gl_anytree_list1.h before gl_anyavltree_list2.h.
42239         (gl_avltree_list_implementation): Update.
42240         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42241         gl_anytree_list1.h before gl_anyavltree_list2.h.
42242         (gl_rbtree_list_implementation): Update.
42243         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42244         Change return type to 'int'. Return -1 upon out-of-memory. Use
42245         __builtin_expect.
42246         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42247         (gl_avltreehash_list_implementation): Update.
42248         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42249         (gl_rbtreehash_list_implementation): Update.
42250         * modules/array-list (Depends-on): Remove xalloc.
42251         * modules/carray-list (Depends-on): Likewise.
42252         * modules/linked-list (Depends-on): Likewise.
42253         * modules/linkedhash-list (Depends-on): Likewise.
42254         * modules/avltree-list (Depends-on): Likewise.
42255         * modules/rbtree-list (Depends-on): Likewise.
42256         * modules/avltreehash-list (Depends-on): Likewise.
42257         * modules/rbtreehash-list (Depends-on): Likewise.
42258
42259         * modules/xsublist: New file.
42260         * lib/gl_xsublist.h: New file.
42261         * lib/gl_xsublist.c: New file.
42262         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42263         (gl_sublist_nx_create): New declaration.
42264         * lib/gl_sublist.c: Don't include xalloc.h.
42265         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42266         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42267         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42268         Change return type to 'int'. Return -1 upon out-of-memory.
42269         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42270         upon out-of-memory.
42271         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42272         NULL upon out-of-memory.
42273         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42274         upon out-of-memory.
42275         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42276         NULL upon out-of-memory.
42277         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42278         NULL upon out-of-memory.
42279         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42280         upon out-of-memory.
42281         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42282         (gl_sublist_list_implementation): Update.
42283         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42284         upon out-of-memory.
42285         * modules/sublist (Depends-on): Remove xalloc.
42286
42287         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42288         * tests/test-carray_list.c: Likewise.
42289         * tests/test-linked_list.c: Likewise.
42290         * tests/test-linkedhash_list.c: Likewise.
42291         * tests/test-avltree_list.c: Likewise.
42292         * tests/test-rbtree_list.c: Likewise.
42293         * tests/test-avltreehash_list.c: Likewise.
42294         * tests/test-rbtreehash_list.c: Likewise.
42295         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42296         * modules/carray-list-tests (Makefile.am): Likewise.
42297         * modules/linked-list-tests (Makefile.am): Likewise.
42298         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42299         * modules/avltree-list-tests (Makefile.am): Likewise.
42300         * modules/rbtree-list-tests (Makefile.am): Likewise.
42301         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42302         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42303
42304         * NEWS: Mention the changes.
42305
42306         * lib/clean-temp.c: Include gl_xlist.h.
42307         * modules/clean-temp (Depends-on): Add xlist.
42308
42309         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42310         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42311
42312         * tests/test-array_oset.c: Include gl_xlist.h.
42313         * modules/array-oset-tests (Depends-on): Add xlist.
42314
42315         Reported by José E. Marchesi <jemarch@gnu.org>.
42316
42317 2009-12-13  Bruno Haible  <bruno@clisp.org>
42318
42319         Move the malloc checking from module 'oset' to new module 'xoset'.
42320         * modules/xoset: New file.
42321         * lib/gl_xoset.h: New file.
42322         * lib/gl_xoset.c: New file.
42323         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42324         declarations.
42325         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42326         (struct gl_oset_implementation): Rename and change methods accordingly.
42327         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42328         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42329         'int'. Mark as __warn_unused_result__.
42330         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42331         gl_oset_create_empty.
42332         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42333         'int'.
42334         * lib/gl_array_oset.c: Don't include xalloc.h.
42335         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42336         malloc, not xmalloc.
42337         (grow): Change return type to 'int'. Don't call xalloc_die.
42338         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42339         to 'int'.
42340         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42341         'int'.
42342         (gl_array_oset_implementation): Update.
42343         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42344         gl_tree_create_empty.
42345         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42346         'int'.
42347         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42348         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42349         xmalloc.
42350         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42351         not xmalloc.
42352         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42353         xmalloc.
42354         (gl_avltree_oset_implementation): Update.
42355         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42356         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42357         xmalloc.
42358         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42359         not xmalloc.
42360         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42361         xmalloc.
42362         (gl_rbtree_oset_implementation): Update.
42363         * modules/array-oset (Depends-on): Remove xalloc.
42364         * modules/avltree-oset (Depends-on): Likewise.
42365         * modules/rbtree-oset (Depends-on): Likewise.
42366         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42367         * tests/test-avltree_oset.c: Likewise.
42368         * tests/test-rbtree_oset.c: Likewise.
42369         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42370         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42371         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42372         * NEWS: Mention the change.
42373
42374 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42375
42376         maint.mk: allow a project to override release-prep commands
42377         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42378         commands into a new rule.
42379         (release-prep): New rule.
42380         (release-prep-hook): New overridable variable.
42381
42382 2009-12-13  Bruno Haible  <bruno@clisp.org>
42383
42384         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42385
42386 2009-12-13  Jim Meyering  <meyering@redhat.com>
42387
42388         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42389         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42390
42391 2009-12-12  Bruno Haible  <bruno@clisp.org>
42392
42393         duplocale: Tweak.
42394         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42395
42396 2009-12-12  Karl Berry  <karl@gnu.org>
42397
42398         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42399
42400 2009-12-12  Bruno Haible  <bruno@clisp.org>
42401
42402         * m4/po.m4: Undo incorrect untabification.
42403
42404 2009-12-12  Bruno Haible  <bruno@clisp.org>
42405
42406         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42407         * modules/c-strtod (Depends-on): Add locale.
42408         * modules/c-strtold (Depends-on): Likewise.
42409
42410 2009-12-12  Bruno Haible  <bruno@clisp.org>
42411
42412         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42413
42414 2009-12-11  Eric Blake  <ebb9@byu.net>
42415
42416         setenv: relax requirement in light of POSIX ruling
42417         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42418         not NULL.
42419         * tests/test-setenv.c (main): Relax test.
42420         * tests/test-unsetenv.c (main): Likewise.
42421         * doc/posix-functions/setenv.texi (setenv): Document this.
42422         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42423
42424 2009-12-11  Bruno Haible  <bruno@clisp.org>
42425
42426         New module 'fd-safer-flag'.
42427         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42428         * lib/dup-safer.c (dup_safer_flag): Remove function.
42429         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42430         * lib/fd-safer.c (fd_safer_flag): Remove function.
42431         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42432         * modules/cloexec (configure.ac): Drop indicator macro.
42433         * modules/fd-safer-flag: New file.
42434         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42435         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42436         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42437
42438 2009-12-11  Bruno Haible  <bruno@clisp.org>
42439
42440         Tests for module 'nl_langinfo'.
42441         * modules/nl_langinfo-tests: New file.
42442         * tests/test-nl_langinfo.sh: New file.
42443         * tests/test-nl_langinfo.c: New file.
42444
42445         New module 'nl_langinfo'.
42446         * lib/nl_langinfo.c: New file.
42447         * m4/nl_langinfo.m4: New file.
42448         * modules/nl_langinfo: New file.
42449         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42450
42451 2009-12-11  Bruno Haible  <bruno@clisp.org>
42452
42453         Tests for module 'langinfo'.
42454         * modules/langinfo-tests: New file.
42455         * tests/test-langinfo.c: New file.
42456
42457         New module 'langinfo'.
42458         * lib/langinfo.in.h: New file.
42459         * m4/langinfo_h.m4: New file.
42460         * modules/langinfo: New file.
42461         * doc/posix-headers/langinfo.texi: Mention the new module.
42462
42463 2009-12-11  Bruno Haible  <bruno@clisp.org>
42464
42465         * lib/config.charset: Untabify.
42466
42467 2009-12-11  Bruno Haible  <bruno@clisp.org>
42468
42469         * modules/unistd-safer (configure.ac): Drop indicator macro.
42470
42471 2009-12-11  Bruno Haible  <bruno@clisp.org>
42472
42473         Move pipe2-safer code to its own file.
42474         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42475         * lib/pipe-safer.c (pipe2_safer): Remove function.
42476         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42477         (Makefile.am): Add it to lib_SOURCES.
42478
42479 2009-12-10  Bruno Haible  <bruno@clisp.org>
42480
42481         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42482
42483 2009-12-10  Bruno Haible  <bruno@clisp.org>
42484
42485         Declare which arguments expect non-NULL values, for GCC and clang.
42486         * build-aux/arg-nonnull.h: New file.
42487         * modules/arg-nonnull: New file.
42488         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42489         (inet_ntop, inet_pton): Use it.
42490         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42491         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42492         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42493         (open, openat): Use it.
42494         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42495         (fnmatch): Use it.
42496         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42497         (getopt, getopt_long, getopt_long_only): Use it.
42498         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42499         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42500         Use it.
42501         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42502         (iconv_open): Use it.
42503         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42504         (strtoimax, strtoumax): Use it.
42505         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42506         (duplocale): Use it.
42507         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42508         (frexp, frexpl): Use it.
42509         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42510         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42511         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42512         (tsearch, tfind, tdelete, twalk): Use it.
42513         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42514         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42515         sigpending): Use it.
42516         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42517         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42518         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42519         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42520         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42521         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42522         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42523         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42524         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42525         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42526         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42527         Use it.
42528         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42529         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42530         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42531         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42532         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42533         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42534         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42535         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42536         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42537         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42538         strtoull, unsetenv): Use it.
42539         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42540         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42541         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42542         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42543         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42544         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42545         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42546         (strcasecmp, strncasecmp): Use it.
42547         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42548         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42549         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42550         rpl_setsockopt): Use it.
42551         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42552         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42553         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42554         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42555         (gettimeofday): Use it.
42556         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42557         (times): Use it.
42558         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42559         (uname): Use it.
42560         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42561         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42562         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42563         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42564         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42565         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42566         unlinkat, write): Use it.
42567         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42568         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42569         * lib/argv-iter.h: Include arg-nonnull.h.
42570         (_ATTRIBUTE_NONNULL_): Remove macro.
42571         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42572         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42573         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42574         optimization.
42575         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42576         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42577         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42578         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42579         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42580         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42581         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42582         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42583         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42584         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42585         * modules/dirent (Depends-on): Add arg-nonnull.
42586         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42587         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42588         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42589         * modules/fnmatch (Depends-on): Add arg-nonnull.
42590         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42591         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42592         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42593         * modules/glob (Depends-on): Add arg-nonnull.
42594         (Makefile.am): Insert arg-nonnull.h into glob.h.
42595         * modules/iconv_open (Depends-on): Add arg-nonnull.
42596         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42597         * modules/inttypes (Depends-on): Add arg-nonnull.
42598         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42599         * modules/locale (Depends-on): Add arg-nonnull.
42600         (Makefile.am): Insert arg-nonnull.h into locale.h.
42601         * modules/math (Depends-on): Add arg-nonnull.
42602         (Makefile.am): Insert arg-nonnull.h into math.h.
42603         * modules/netdb (Depends-on): Add arg-nonnull.
42604         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42605         * modules/search (Depends-on): Add arg-nonnull.
42606         (Makefile.am): Insert arg-nonnull.h into search.h.
42607         * modules/signal (Depends-on): Add arg-nonnull.
42608         (Makefile.am): Insert arg-nonnull.h into signal.h.
42609         * modules/spawn (Depends-on): Add arg-nonnull.
42610         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42611         * modules/stdio (Depends-on): Add arg-nonnull.
42612         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42613         * modules/stdlib (Depends-on): Add arg-nonnull.
42614         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42615         * modules/string (Depends-on): Add arg-nonnull.
42616         (Makefile.am): Insert arg-nonnull.h into string.h.
42617         * modules/strings (Depends-on): Add arg-nonnull.
42618         (Makefile.am): Insert arg-nonnull.h into strings.h.
42619         * modules/sys_socket (Depends-on): Add arg-nonnull.
42620         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42621         * modules/sys_stat (Depends-on): Add arg-nonnull.
42622         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42623         * modules/sys_time (Depends-on): Add arg-nonnull.
42624         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42625         * modules/sys_times (Depends-on): Add arg-nonnull.
42626         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42627         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42628         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42629         * modules/time (Depends-on): Add arg-nonnull.
42630         (Makefile.am): Insert arg-nonnull.h into time.h.
42631         * modules/unistd (Depends-on): Add arg-nonnull.
42632         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42633         * modules/wchar (Depends-on): Add arg-nonnull.
42634         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42635         * modules/argv-iter (Depends-on): Add arg-nonnull.
42636         * tests/test-canonicalize.c (null_ptr): New function.
42637         (main): Use it.
42638         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42639         (main): Use it.
42640         * tests/test-memmem.c (null_ptr): New function.
42641         (main): Use it.
42642         Reported by Jim Meyering.
42643
42644 2009-12-10  Bruno Haible  <bruno@clisp.org>
42645
42646         Use spaces for indentation, not tabs.
42647         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42648         * m4/*.m4: Untabify.
42649         * build-aux/*.h: Untabify.
42650         * tests/**/*.[hc]: Untabify.
42651         * README: New section "Indent with spaces, not TABs", based on
42652         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42653         * NEWS: Mention the change.
42654
42655 2009-12-10  Bruno Haible  <bruno@clisp.org>
42656
42657         pty test: Fix link error.
42658         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42659         test_pty_LDADD.
42660
42661 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42662
42663         * modules/pty: New file.
42664         * modules/pty-tests: New file.
42665         * m4/pty.m4: New file.
42666         * tests/test-pty.c: New file.
42667         * doc/glibc-headers/pty.texi: Modified.
42668         * doc/glibc-functions/forkpty.texi: Modified.
42669         * doc/glibc-functions/openpty.texi: Modified.
42670
42671 2009-12-10  Bruno Haible  <bruno@clisp.org>
42672
42673         Avoid syntax error in C++ mode.
42674         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42675
42676 2009-12-10  Bruno Haible  <bruno@clisp.org>
42677
42678         Use sed with option -e.
42679         * gnulib-tool (func_version, func_emit_copyright_notice,
42680         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42681         option -e to sed.
42682         * modules/link-warning (Makefile.am): Likewise.
42683
42684 2009-12-10  Jim Meyering  <meyering@redhat.com>
42685
42686         mgetgroups: do not write bytes beyond end of malloc'd buffer
42687         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42688         username, we call getgroups with a one-element-shorter buffer,
42689         but still told it the length was original, max_n_groups.
42690
42691 2009-12-09  Eric Blake  <ebb9@byu.net>
42692
42693         cloexec: relax license
42694         * modules/cloexec (Maintainer): Add myself.
42695         (License): Use LGPL, not GPL.
42696
42697         link-warning: optimize generation
42698         * modules/link-warning (Makefile.am): Reduce process usage.
42699
42700 2009-12-09  Bruno Haible  <bruno@clisp.org>
42701
42702         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42703         workaround was added on 2009-11-17.
42704
42705 2009-12-09  Jim Meyering  <meyering@redhat.com>
42706             Bruno Haible  <bruno@clisp.org>
42707
42708         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42709         * modules/link-warning (Makefile.am): Make the comment-removing sed
42710         command more robust in the face of bootstrap-prepended comment lines.
42711
42712 2009-12-09  Bruno Haible  <bruno@clisp.org>
42713
42714         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42715         most one group.
42716
42717 2009-12-09  Simon Josefsson <simon@josefsson.org>
42718             Bruno Haible  <bruno@clisp.org>
42719
42720         * build-aux/link-warning.h: Add copyright notice.
42721         * modules/link-warning (Makefile.am): Generate link-warning.h from
42722         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42723         * NEWS: Mention change in link-warning module.
42724         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42725         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42726         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42727         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42728         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42729         * modules/math (Makefile.am): Add dependency to math.h.
42730         * modules/search (Makefile.am): Add dependency to search.h.
42731         * modules/signal (Makefile.am): Add dependency to signal.h.
42732         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42733         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42734         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42735         * modules/string (Makefile.am): Add dependency to string.h.
42736         * modules/strings (Makefile.am): Add dependency to strings.h.
42737         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42738         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42739         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42740         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42741         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42742         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42743         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42744         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42745         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42746
42747 2009-12-09  Bruno Haible  <bruno@clisp.org>
42748
42749         fchdir: Optimize away rpl_fstat when possible.
42750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42751         REPLACE_OPEN_DIRECTORY.
42752         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42753
42754 2009-12-09  Bruno Haible  <bruno@clisp.org>
42755
42756         * lib/fchdir.c: Update comment.
42757
42758 2009-12-09  Bruno Haible  <bruno@clisp.org>
42759
42760         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42761
42762 2009-12-08  Eric Blake  <ebb9@byu.net>
42763
42764         fchdir: avoid memory leak on re-registration.
42765         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42766
42767 2009-12-08  Jim Meyering  <meyering@redhat.com>
42768
42769         init.sh: avoid Solaris 10 /bin/sh portability problem
42770         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42771         sourced script:
42772           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42773           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42774           bar
42775         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42776         and two tests used that idiom.
42777         * tests/init.sh: Update suggested usage comments.
42778         (path_prepend_): New function, to be used in place
42779         of the --src-path=DIR option.
42780         (setup_): Move PATH-prepending code into path_prepend_.
42781         * tests/test-pread.sh: Adapt to new usage.
42782         * tests/test-xalloc-die.sh: Likewise.
42783
42784 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42785
42786         * doc/gnulib.texi (Glibc pty.h): Add.
42787         * doc/glibc-functions/forkpty.texi: Add.
42788         * doc/glibc-functions/openpty.texi: Add.
42789         Suggested by Bruno Haible.
42790
42791 2009-12-08  Eric Blake  <ebb9@byu.net>
42792
42793         fchdir: fix logic bugs
42794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42795         * tests/test-fchdir.c (main): Enhance test.
42796         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42797         is in use.
42798
42799         dup2: fix logic bugs
42800         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42801         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42802         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42803         exists.
42804         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42805
42806 2009-12-07  Eric Blake  <ebb9@byu.net>
42807
42808         unlink: fix m4 detection
42809         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42810
42811         unistd-safer: add unit test
42812         * modules/unistd-safer-tests: New file.
42813         * tests/test-dup-safer.c: Likewise.
42814         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42815         * tests/test-dup2.c (setmode): Likewise.
42816         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42817
42818         cloexec: preserve text vs. binary across dup_cloexec
42819         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42820         mode.
42821         * modules/dup2-tests (Depends-on): Add binary-io.
42822         * modules/cloexec-tests (Depends-on): Likewise.
42823         * tests/test-dup2.c (setmode, is_mode): New helpers.
42824         (main): Add tests that translation mode is preserved.
42825         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42826         Reported by Bruno Haible.
42827
42828         mgetgroups: reduce duplicate listings
42829         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42830         resulting array.
42831         * tests/test-chown.h (test_chown): Simplify client.
42832         * tests/test-lchown.h (test_lchown): Likewise.
42833
42834 2009-12-06  Bruno Haible  <bruno@clisp.org>
42835
42836         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42837         value.
42838
42839 2009-12-06  Bruno Haible  <bruno@clisp.org>
42840
42841         * lib/progname.c: Include stdio.h, stdlib.h.
42842         (set_program_name): Reject a NULL argument.
42843
42844 2009-12-05  Eric Blake  <ebb9@byu.net>
42845
42846         pipe2-safer: new module
42847         * modules/pipe2-safer: New file.
42848         * lib/unistd-safer.h (pipe2_safer): New prototype.
42849         * lib/unistd--.h (pipe2): New wrapper.
42850         * lib/pipe-safer.c (pipe2_safer): New function.
42851         * modules/pipe (Depends-on): Add pipe2-safer.
42852         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42853
42854         stdlib-safer: preserve cloexec flag for mkostemp[s]
42855         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42856         fd_safer_flag.
42857
42858         unistd-safer: allow preservation of cloexec status via flag
42859         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42860         prototypes.
42861         * lib/dup-safer.c (dup_safer_flag): New function.
42862         * lib/fd-safer.c (fd_safer_flag): Likewise.
42863         * modules/cloexec (configure.ac): Set witness.
42864
42865         test-dup2: enhance test
42866         * modules/dup2-tests (Depends-on): Add cloexec.
42867         * tests/test-dup2.c (main): Enhance test.
42868
42869         cloexec: add dup_cloexec
42870         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42871         header and comments.
42872         * lib/cloexec.c (set_cloexec_flag): Add comments.
42873         (dup_cloexec): New function, with mingw implementation borrowed
42874         from...
42875         * lib/w32spawn.h (dup_noinherit): ...here.
42876         * modules/execute (Depends-on): Add cloexec.
42877         * modules/pipe (Depends-on): Likewise.
42878         * modules/cloexec (Depends-on): Add dup2.
42879         * modules/cloexec-tests (Files): New file.
42880         * tests/test-cloexec.c: Likewise.
42881
42882         test-xalloc-die: fix test for mingw
42883         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42884         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42885         directory and .exe suffix off argv[0] output.
42886
42887         test-fseeko: fix test for mingw
42888         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42889         than undefining fseek, so test will pass on mingw.
42890
42891 2009-12-05  Bruno Haible  <bruno@clisp.org>
42892
42893         * lib/progname.h (set_program_name): Clarify specification.
42894         * lib/progname.c (set_program_name): Likewise.
42895         Reported by Jim Meyering.
42896
42897 2009-12-05  Jim Meyering  <meyering@redhat.com>
42898
42899         maint.mk: backslash-escape parens in default regexp
42900         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42901         backslash-escape the literal parentheses.
42902
42903         maint.mk: news-date-check: use grep -E
42904         * top/maint.mk (today): Define a Make variable, not a...
42905         (news-date-check): ...shell variable.
42906         (news-date-regexp): Use the Make variable.
42907         Use grep's -E option.  Change the failing diagnostic to mention
42908         the variable, $(news-date-regexp).
42909
42910 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42911
42912         maintainer-makefile: allow customization of NEWS entry format
42913         * top/maint.mk (news-date-regexp): New overridable variable.
42914         (news-date-check): Use it.
42915
42916 2009-12-04  Eric Blake  <ebb9@byu.net>
42917
42918         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42919         * lib/mgetgroups.h (xgetgroups): New prototype.
42920         * lib/mgetgroups.c (xgetgroups): New wrapper.
42921         (mgetgroups): Handle ENOSYS.
42922         * modules/mgetgroups (Depends-on): Add realloc.
42923         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42924
42925         mgetgroups: avoid argument promotion issues with -1
42926         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42927         for invalid gid_t.
42928         * tests/test-chown.h (getegid, test_chown): Likewise.
42929         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42930
42931 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42932
42933         exclude: Fix header file problems.
42934         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42935
42936 2009-12-01  Jim Meyering  <meyering@redhat.com>
42937
42938         fts: fts_open: do not let an empty string cause immediate failure
42939         This is required in support of GNU rm, for which the command
42940         "rm A '' B" must process and remove both A and B, in spite of
42941         the empty string argument.
42942         * lib/fts.c (fts_open): Do not let the presence of an empty string
42943         cause fts_open to fail immediately.  Most fts-using tools must be
42944         able to process all arguments, in order, and can be expected to
42945         diagnose such arguments themselves.
42946
42947 2009-11-30  Eric Blake  <ebb9@byu.net>
42948
42949         utimens: fix compilation error
42950         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42951         Declare variable at right scope.
42952
42953 2009-11-29  Jim Meyering  <meyering@redhat.com>
42954
42955         bootstrap: handle perl-5.11's changed --version output
42956         * build-aux/bootstrap (get_version): Handle perl separately,
42957         since perl-5.11's --version output is different.
42958
42959 2009-11-28  Jim Meyering  <meyering@redhat.com>
42960
42961         userspec: depend on the inttostr module, too
42962         * modules/userspec (Depends-on): Add inttostr.
42963
42964         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42965         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42966         number of MAXUID when it evaluates to (uid_t) -1.
42967         Likewise for group ID.  Reported by Matt McCutchen in
42968         <http://savannah.gnu.org/bugs/?28113>
42969
42970         userspec: reformat to use spaces, not TABs
42971         * lib/userspec.c: Expand TABs to spaces.
42972         Add Emacs' "indent-tabs-mode: nil" hint.
42973
42974 2009-11-27  Eric Blake  <ebb9@byu.net>
42975
42976         getopt-gnu: flush out another BSD bug
42977         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42978         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42979         flush out BSD bug.
42980         * tests/test-getopt.h (test_getopt): End lists with NULL.
42981         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42982         (test_getopt_long_posix): Enhance test.
42983         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42984         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42985         getopt-gnu.
42986         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42987         Likewise.
42988
42989 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42990
42991         * modules/idpriv-droptemp-tests (Notice): Fix text.
42992
42993 2009-11-27  Jim Meyering  <meyering@redhat.com>
42994
42995         test-xalloc-die: avoid spurious failure due to libtool argv difference
42996         In a libtool-enabled project, this test would fail due to a difference
42997         in the emitted program name, e.g.,
42998         -test-xalloc-die: memory exhausted
42999         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43000         Use program to avoid that.
43001         * modules/xalloc-die-tests (Depends-on): Add progname.
43002         * tests/test-xalloc-die.c: Include progname.h".
43003         (program_name): Remove decl.
43004         (main): Call set_program_name.
43005         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43006
43007 2009-11-26  Richard Jones  <rjones@redhat.com>
43008
43009         w32sock: leave win32 error in place.
43010         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43011
43012 2009-11-26  Eric Blake  <ebb9@byu.net>
43013
43014         init.sh: suggest to use skip_ and fail_ functions in comments
43015         * tests/init.sh: Add a sentence.
43016
43017 2009-11-25  Bruno Haible  <bruno@clisp.org>
43018
43019         init.sh: add documentation in comments
43020         * tests/init.sh: Add some developer and user documentation.
43021
43022 2009-11-26  Jim Meyering  <meyering@redhat.com>
43023
43024         init.sh: accommodate even those who specify bogus srcdir manually
43025         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43026         configure-time tests to be sanitized, so that there is no need to
43027         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43028         (with no double quotes) suffices.  However, since tests may be
43029         invoked manually, and since you may explicitly set srcdir to the
43030         name of a directory containing spaces, do quote its uses here.
43031         * tests/test-pread.sh: Likewise.
43032         Suggested by Bruno Haible.
43033
43034         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43035         * tests/test-pread.sh: Write no data into the pipe, because
43036         test-pread actually reads none.  This avoids a diagnostic,
43037         "bash: echo: write error: Broken pipe", that arises in the unusual
43038         event something is ignoring SIGPIPE, and might be interpreted
43039         as some sort of failure.  Reported by Bruno Haible.
43040
43041 2009-11-25  Jim Meyering  <meyering@redhat.com>
43042
43043         test-pread: cover failure with ESPIPE and EINVAL
43044         * tests/test-pread.c (main): Test for failure, too.
43045         * tests/test-pread.sh: Invoke with stdin on a pipe.
43046         Suggested by Eric Blake.
43047
43048         pread: improvement and fix
43049         * modules/pread (Depends-on): Depend on lseek, for portability to
43050         e.g., mingw.  Suggested by Eric Blake.
43051         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43052
43053         unistd.in.h: correct declaration of pread
43054         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43055         Reported by Richard W.M. Jones.
43056
43057         test-pread.sh: distribute the test script
43058         * modules/pread-tests (Files): Include test-pread.sh.
43059
43060         test-pread.sh: clean up
43061         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43062         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43063         That is unnecessary, since it's always ".".
43064         Suggestion from Eric Blake.
43065
43066         test-pread.sh: make executable
43067         * tests/test-pread.sh: Set executable bit.
43068         Reported by Eric Blake.
43069
43070         correct typo in test-pread.sh
43071         * tests/test-pread.sh: Add #! line.
43072
43073         test pread
43074         * tests/test-pread.c: New file.
43075         * tests/test-pread.sh: Likewise.
43076         * modules/pread-tests: Likewise.
43077
43078         pread: new module
43079         * modules/pread: New file.
43080         * lib/unistd.in.h (pread): Define/declare.
43081         * lib/pread.c (pread): New file.
43082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43083         * modules/unistd (Makefile.am): Substitute witnesses.
43084         * doc/posix-functions/pread.texi (pread): Update.
43085         * MODULES.html.sh: Add pread.
43086
43087 2009-11-25  Jim Meyering  <meyering@redhat.com>
43088
43089         tests/init.sh: new file to be used via most *.sh tests
43090         * tests/init.sh: New file.
43091
43092 2009-11-25  Eric Blake  <ebb9@byu.net>
43093
43094         utimens: work around older Linux failure with symlinks
43095         * lib/utimens.c (lutimensat_works_really): New variable.
43096         (fdutimens, lutimens): Use it to manage kernels that support
43097         nanosecond times on files, but not on symlinks.
43098         Reported by Ondřej Vašík.
43099
43100         utimes: fix configure grammar
43101         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43102
43103 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43104
43105         regex: Fix fastmap for multibyte character ranges.
43106         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43107         characters when a multibyte character range is included.
43108
43109 2009-11-22  Andy Wingo  <wingo@pobox.com>
43110
43111         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43112         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43113
43114 2009-11-24  Bruno Haible  <bruno@clisp.org>
43115
43116         doc: Most *_l functions exist in MacOS X 10.5.
43117         * doc/posix-functions/duplocale.texi: Update platforms list.
43118         * doc/posix-functions/freelocale.texi: Likewise.
43119         * doc/posix-functions/newlocale.texi: Likewise.
43120         * doc/posix-functions/uselocale.texi: Likewise.
43121         * doc/posix-functions/isalnum_l.texi: Likewise.
43122         * doc/posix-functions/isalpha_l.texi: Likewise.
43123         * doc/posix-functions/isblank_l.texi: Likewise.
43124         * doc/posix-functions/iscntrl_l.texi: Likewise.
43125         * doc/posix-functions/isdigit_l.texi: Likewise.
43126         * doc/posix-functions/isgraph_l.texi: Likewise.
43127         * doc/posix-functions/islower_l.texi: Likewise.
43128         * doc/posix-functions/isprint_l.texi: Likewise.
43129         * doc/posix-functions/ispunct_l.texi: Likewise.
43130         * doc/posix-functions/isspace_l.texi: Likewise.
43131         * doc/posix-functions/isupper_l.texi: Likewise.
43132         * doc/posix-functions/iswalnum_l.texi: Likewise.
43133         * doc/posix-functions/iswalpha_l.texi: Likewise.
43134         * doc/posix-functions/iswblank_l.texi: Likewise.
43135         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43136         * doc/posix-functions/iswctype_l.texi: Likewise.
43137         * doc/posix-functions/iswdigit_l.texi: Likewise.
43138         * doc/posix-functions/iswgraph_l.texi: Likewise.
43139         * doc/posix-functions/iswlower_l.texi: Likewise.
43140         * doc/posix-functions/iswprint_l.texi: Likewise.
43141         * doc/posix-functions/iswpunct_l.texi: Likewise.
43142         * doc/posix-functions/iswspace_l.texi: Likewise.
43143         * doc/posix-functions/iswupper_l.texi: Likewise.
43144         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43145         * doc/posix-functions/isxdigit_l.texi: Likewise.
43146         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43147         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43148         * doc/posix-functions/strcoll_l.texi: Likewise.
43149         * doc/posix-functions/strfmon_l.texi: Likewise.
43150         * doc/posix-functions/strftime_l.texi: Likewise.
43151         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43152         * doc/posix-functions/strxfrm_l.texi: Likewise.
43153         * doc/posix-functions/tolower_l.texi: Likewise.
43154         * doc/posix-functions/toupper_l.texi: Likewise.
43155         * doc/posix-functions/towctrans_l.texi: Likewise.
43156         * doc/posix-functions/towlower_l.texi: Likewise.
43157         * doc/posix-functions/towupper_l.texi: Likewise.
43158         * doc/posix-functions/wcscoll_l.texi: Likewise.
43159         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43160         * doc/posix-functions/wctrans_l.texi: Likewise.
43161         * doc/posix-functions/wctype_l.texi: Likewise.
43162         * doc/glibc-functions/strptime_l.texi: Likewise.
43163         * doc/glibc-functions/strtod_l.texi: Likewise.
43164         * doc/glibc-functions/strtof_l.texi: Likewise.
43165         * doc/glibc-functions/strtol_l.texi: Likewise.
43166         * doc/glibc-functions/strtold_l.texi: Likewise.
43167         * doc/glibc-functions/strtoll_l.texi: Likewise.
43168         * doc/glibc-functions/strtoul_l.texi: Likewise.
43169         * doc/glibc-functions/strtoull_l.texi: Likewise.
43170         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43171         * doc/glibc-functions/wcstod_l.texi: Likewise.
43172         * doc/glibc-functions/wcstof_l.texi: Likewise.
43173         * doc/glibc-functions/wcstol_l.texi: Likewise.
43174         * doc/glibc-functions/wcstold_l.texi: Likewise.
43175         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43176         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43177         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43178
43179 2009-11-24  Bruno Haible  <bruno@clisp.org>
43180
43181         duplocale: Fix logic bug.
43182         * lib/duplocale.c: Don't include <langinfo.h>.
43183         (_NL_LOCALE_NAME): Remove macro.
43184         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43185         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43186
43187 2009-11-23  Jim Meyering  <meyering@redhat.com>
43188
43189         test-update-copyright: don't hard-code /usr/bin/perl
43190         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43191         perl to print the current year.  Gilles Espinasse reported that
43192         the replaced use of perl was hard-coded as /usr/bin/perl.
43193
43194 2009-11-23  Bruno Haible  <bruno@clisp.org>
43195
43196         duplocale: Add support for glibc 2.3.x.
43197         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43198
43199 2009-11-22  Bruno Haible  <bruno@clisp.org>
43200
43201         vasnprintf: Tiny optimization.
43202         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43203         MacOS X.
43204
43205 2009-11-22  Bruno Haible  <bruno@clisp.org>
43206
43207         Tests for module 'duplocale'.
43208         * modules/duplocale-tests: New file.
43209         * tests/test-duplocale.c: New file.
43210
43211         New module 'duplocale'.
43212         * m4/duplocale.m4: New file.
43213         * lib/locale.in.h (duplocale): New declaration.
43214         * lib/duplocale.c: New file.
43215         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43216         gl_LOCALE_H_DEFAULTS): New macros.
43217         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43218         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43219         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43220         REPLACE_DUPLOCALE.
43221         * modules/duplocale: New file.
43222         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43223
43224 2009-11-22  Bruno Haible  <bruno@clisp.org>
43225
43226         * modules/locale-tests (configure.ac): Test for newlocale function.
43227         * tests/test-locale.c: When the system has extended locale functions,
43228         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43229
43230         locale: Make locale_t available when possible.
43231         * lib/locale.in.h: Include <xlocale.h> when it exists.
43232         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43233         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43234         * modules/locale (Depends-on): Add extensions.
43235         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43236         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43237
43238 2009-11-22  Bruno Haible  <bruno@clisp.org>
43239
43240         Add comments.
43241         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43242         invocation.
43243         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43244         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43245         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43246
43247 2009-11-22  Bruno Haible  <bruno@clisp.org>
43248
43249         error: account for the possibility of freopen (stdout).
43250         * lib/error.c: Include <unistd.h>.
43251         (flush_stdout): New function, extracted from error and error_at_line.
43252         Determine stdout's fd dynamically.
43253         (error, error_at_line): Invoke flush_stdout.
43254         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43255         * modules/error (Depends-on): Add unistd.
43256
43257 2009-11-22  Bruno Haible  <bruno@clisp.org>
43258
43259         diffseq: Add comment.
43260         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43261
43262 2009-11-22  Jim Meyering  <meyering@redhat.com>
43263
43264         c-stack: avoid defining an unused static function
43265         * lib/c-stack.c (find_stack_direction): Do not define this function
43266         when it will not be used.
43267
43268         diffseq: avoid spurious gcc warnings
43269         * lib/diffseq.h (IF_LINT2): Define.
43270         (compareseq): Use it to initialize two members of "part".
43271         This avoids two used-uninitialized warnings.
43272
43273 2009-11-21  Jim Meyering  <meyering@redhat.com>
43274
43275         c-stack: avoid "ignoring return value of `write'" warning
43276         * lib/c-stack.c: Include "ignore-value.h".
43277         (die): Explicitly ignore each write return value.
43278         * modules/c-stack (Depends-on): Add ignore-value.
43279
43280 2009-11-21  Bruno Haible  <bruno@clisp.org>
43281
43282         diffseq: reduce scope of variable 'best'.
43283         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43284         variable, earlier used for two different purposes.
43285
43286 2009-11-21  Jim Meyering  <meyering@redhat.com>
43287
43288         diffseq: remove useless assignment to "best"
43289         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43290         assignment.  At that point "best" is already guaranteed to be zero.
43291
43292 2009-11-20  Eric Blake  <ebb9@byu.net>
43293
43294         build: mention ftp redirector in release announcements
43295         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43296         values that used to come from cfg.mk; mention FTP redirect URL.
43297         * build-aux/announce-gen: Mention the mirror list.
43298         Suggested by Karl Berry.
43299
43300         nanosleep: improve port to mingw
43301         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43303         LIB_NANOSLEEP, but only when needed.
43304         * modules/select (Link): Document LIBSOCKET.
43305         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43306         enough.
43307
43308         nanosleep: work around cygwin bug
43309         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43310         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43311         bug.
43312         (getnow): Delete, not needed.
43313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43314         LIB_CLOCK_GETTIME.
43315         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43316         clock-time, gettime.
43317         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43318         bug.
43319         * modules/nanosleep-tests: New test.
43320         * tests/test-nanosleep.c: New file.
43321
43322         sleep: work around cygwin bug
43323         * lib/sleep.c (rpl_sleep): Work around the bug.
43324         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43325         (gl_PREREQ_SLEEP): Delete unused macro.
43326         * modules/sleep (Depends-on): Add verify.
43327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43328         * modules/unistd (Makefile.am): Substitute witness.
43329         * lib/unistd.in.h (sleep): Update prototype.
43330         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43331         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43332         * modules/sleep-tests (Depends-on): Check for alarm.
43333
43334 2009-11-20  Jim Meyering  <meyering@redhat.com>
43335
43336         maint.mk: improve sc_prohibit_magic_number_exit
43337         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43338         so it does not match uses like System.exit(1).
43339         Add comments showing how to correct all offenders.
43340
43341 2009-11-19  Eric Blake  <ebb9@byu.net>
43342
43343         xalloc-die-tests: add missing library
43344         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43345
43346         test-xvasprintf: silence compiler warnings
43347         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43348         empty string from gcc.
43349
43350 2009-11-19  Jim Meyering  <meyering@redhat.com>
43351
43352         xfreopen: new module, from coreutils
43353         * modules/xfreopen: New module.
43354         * lib/xfreopen.c: New file.
43355         * lib/xfreopen.h: New file.
43356         * MODULES.html.sh (File stream based Input/Output"): Add it.
43357
43358 2009-11-19  Eric Blake  <ebb9@byu.net>
43359
43360         manywarnings: depend on warnings
43361         * modules/manywarnings (Depends-on): Add warnings.
43362
43363         build: avoid compiler warnings
43364         * lib/select.c (rpl_select): Delete unused variable.
43365         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43366
43367 2009-11-18  Eric Blake  <ebb9@byu.net>
43368
43369         tests: avoid false negative with --with-packager
43370         * tests/test-version-etc.sh: Discard packager information.
43371         * tests/test-argp-version-etc-1.sh: Likewise.
43372         Reported by Mike Frysinger.
43373
43374         utimens: fix regression on Solaris
43375         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43376         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43377         can only change fd timestamps via futimesat.  Instead, use an
43378         additional witness macro to avoid BSD bug.
43379         Reported by Jim Meyering.
43380
43381 2009-11-17  Eric Blake  <ebb9@byu.net>
43382
43383         usleep: use it to simplify tests
43384         * modules/stat-time-tests (Depends-on): Add usleep.
43385         (configure.ac): Drop usleep check.
43386         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43387         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43388         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43389         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43390         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43391         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43392         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43393         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43394         Likewise.
43395         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43396         * tests/test-lchown.h (nap): Likewise.
43397         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43398         * tests/test-stat-time.c (nap): Likewise.
43399         * tests/test-utimens-common.h (nap): Update comments.
43400
43401         usleep: new module
43402         * modules/usleep: New file.
43403         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43404         * lib/usleep.c (usleep): Likewise.
43405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43406         * modules/unistd (Makefile.am): Substitute witnesses.
43407         * lib/unistd.in.h (usleep): Add declaration.
43408         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43409         * MODULES.html.sh (Date and time): Likewise.
43410         * modules/usleep-tests (Depends-on): New test.
43411         * tests/test-usleep.c: New file.
43412
43413         chown: work around OpenBSD bug
43414         * lib/chown.c (rpl_chown): Work around the bug.
43415         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43416         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43417         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43418         * modules/chown (Depends-on): Add stdbool.
43419         * modules/lchown (Depends-on): Likewise.
43420         * doc/posix-functions/chown.texi (chown): Document the bug.
43421         * doc/posix-functions/lchown.texi (lchown): Likewise.
43422         * tests/test-lchown.h (test_chown): Relax test.
43423
43424         mkstemp: avoid conflict with C++ keyword template
43425         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43426         * lib/mkostemp.c (mkostemp): Likewise.
43427         * lib/mkostemps.c (mkostemps): Likewise.
43428         * lib/mkstemp.c (mkstemp): Likewise.
43429         * lib/mkstemps.c (mkstemps): Likewise.
43430
43431         xalloc-die-tests: optimize
43432         * tests/test-xalloc-die.sh: Reduce number of processes.
43433
43434 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43435
43436         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43437         patch from ludo@gnu.org (Ludovic Courtès).
43438
43439 2009-11-17  Jim Meyering  <meyering@redhat.com>
43440
43441         version-etc: use proper license string
43442         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43443         * modules/version-etc-fsf: Likewise.
43444
43445 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43446
43447         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43448         printed to stdout.  Deal with EOL differences.
43449
43450 2009-11-17  Eric Blake  <ebb9@byu.net>
43451
43452         unsetenv: work around Solaris bug
43453         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43454         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43455         Reported by Jim Meyering.
43456
43457         vasnprintf: avoid compiler warnings
43458         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43459         variables.
43460         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43461
43462 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43463
43464         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43465         settings since xalloc-die is no longer the self test,
43466         xalloc-die.sh is.
43467
43468 2009-11-17  Jim Meyering  <meyering@redhat.com>
43469
43470         test-xalloc-die.sh: make the code agree with the commit log
43471         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43472         at the end, just in case you happen to have a test-xalloc-die
43473         program in some other PATH directory.
43474
43475         test-xalloc-die.sh: fix a portability bug
43476         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43477         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43478         Otherwise, argv[0] (as often seen in diagnostics) would be too
43479         system-dependent, sometimes with, and sometimes without the leading "./".
43480
43481         version-etc-fsf: relax license to LGPLv3+
43482         * modules/version-etc-fsf (License): Relax license.
43483
43484 2009-11-16  Eric Blake  <ebb9@byu.net>
43485
43486         xalloc-die-tests: avoid printing null pointer
43487         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43488         shell script.
43489         * tests/test-xalloc-die.c (program_name): Declare.
43490         * tests/test-xalloc-die.sh (tmpfiles): New file.
43491
43492         setenv, unsetenv: work around various bugs
43493         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43494         (setenv) [HAVE_SETENV]: Work around bugs.
43495         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43496         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43497         for bugs.
43498         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43499         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43501         * modules/stdlib (Makefile.am): Update substitutions.
43502         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43503         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43504         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43505         * modules/setenv-tests: New test.
43506         * modules/unsetenv-tests: Likewise.
43507         * tests/test-setenv.c: New file.
43508         * tests/test-unsetenv.c: Likewise.
43509
43510 2009-11-16  Jim Meyering  <meyering@redhat.com>
43511
43512         version-etc: relax license to LGPLv3+
43513         * modules/version-etc (License): Relax license.
43514
43515         better AC_REQUIRE expanded-before-required-warning avoidance
43516         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43517         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43518         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43519         which is no longer needed.
43520
43521 2009-11-16  Eric Blake  <ebb9@byu.net>
43522
43523         test-freading: clean up temporary file
43524         * tests/test-freading.c (main): Remove file on success, and use
43525         ASSERT more liberally.
43526         Reported by Jim Meyering.
43527
43528 2009-11-16  Jim Meyering  <meyering@redhat.com>
43529
43530         avoid new AC_REQUIRE expanded-before-required warnings
43531         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43532         merely using it.
43533         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43534         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43535
43536 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43537
43538         * tests/test-xalloc-die.c: New file.
43539         * modules/xalloc-die-tests: New file.
43540         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43541         XFAIL_TESTS so it can be appended by modules.
43542
43543 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43544
43545         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43546         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43547
43548 2009-11-14  Eric Blake  <ebb9@byu.net>
43549
43550         fnmatch: avoid compiler warning
43551         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43552         to silence compiler warning about mismatch signedness in ?:.
43553         Reported by Robert Millan.
43554
43555         intprops: add double-inclusion guard
43556         * lib/intprops.h: Allow idempotent includes.
43557         Suggested by Bruce Korb.
43558
43559         openat: detect Solaris fchownat bug
43560         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43561         penalizing glibc chownat when only lchownat is broken.
43562         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43563         trailing slash bugs.
43564         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43565         * modules/openat-tests (Files): Include more files.
43566         (Depends-on): Add mgetgroups, sleep, stat-time.
43567         (configure.ac): Add additional checks.
43568         (Makefile.am): Build new test.
43569         * tests/test-fchownat.c: New file.
43570
43571         lchown: detect Solaris and FreeBSD bug
43572         * lib/lchown.c (rpl_lchown): Work around bug.
43573         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43575         * modules/unistd (Makefile.am): Populate it.
43576         * lib/unistd.in.h (lchown): Update declaration.
43577         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43578         * modules/lchown-tests: New file.
43579         * tests/test-lchown.h (test_lchown): Likewise.
43580         * tests/test-lchown.c (main): Likewise.
43581
43582         chown: detect Solaris and FreeBSD bug
43583         * lib/chown.c (rpl_chown): Work around bug.
43584         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43585         (gl_PREREQ_CHOWN): Delete.
43586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43587         * modules/unistd (Makefile.am): Populate it.
43588         * lib/unistd.in.h (chown): Update declaration.
43589         * lib/lchown.c (chown): Update client.
43590         * modules/lchown (Depends-on): Add lstat.
43591         * doc/posix-functions/chown.texi (chown): Document the bug.
43592         * doc/posix-functions/getgroups.texi (getgroups): Document
43593         getgroups pitfall.
43594         * modules/chown-tests: New file.
43595         * tests/test-chown.h (test_chown): Likewise.
43596         * tests/test-chown.c (main): Likewise.
43597
43598 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43599
43600         gnulib-tool: correctly detect absence of m4 directories
43601         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43602
43603 2009-11-14  Jim Meyering  <meyering@redhat.com>
43604
43605         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43606         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43607
43608 2009-11-14  John W. Eaton  <jwe@gnu.org>
43609
43610         strftime.h: wrap function declaration in extern "C" block
43611         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43612
43613 2009-11-13  Eric Blake  <ebb9@byu.net>
43614
43615         getgroups: avoid compiler warning
43616         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43617
43618         getgroups: work around FreeBSD bug
43619         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43620         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43621         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43622         * tests/test-getgroups.c (main): Fix buffer overrun.
43623
43624         getgroups: avoid compilation failure
43625         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43626         * modules/getgroups (Depends-on): Add stdint.
43627
43628 2009-11-13  Jim Meyering  <meyering@redhat.com>
43629
43630         test-getgroups: avoid compilation failure
43631         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43632
43633 2009-11-13  Eric Blake  <ebb9@byu.net>
43634
43635         mgetgroups: new module, taken from coreutils
43636         * modules/mgetgroups: New file.
43637         * lib/mgetgroups.h: Likewise.
43638         * lib/mgetgroups.c (mgetgroups): Likewise.
43639         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43640         * MODULES.html.sh (Users and groups): Mention it.
43641
43642         getgroups: don't expose GETGROUPS_T to user
43643         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43644         an element at a time if GETGROUPS_T is wrong size.
43645         * lib/getugroups.h (getugroups): Change signature.
43646         * lib/unistd.in.h (getgroups): Likewise.
43647         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43648         signature needs fixing.
43649         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43650         AC_TYPE_GETGROUPS.
43651         * modules/group-member (Depends-on): Add getgroups.
43652         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43653         (group_member): Rely on getgroups replacement.
43654         * lib/getugroups.c (getugroups): Use gid_t.
43655         * tests/test-getgroups.c (main): Likewise.
43656         * NEWS: Mention the signature change.
43657         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43658         problem with signature.
43659         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43660         GETGROUPS_T is still useful for setgroups.
43661
43662         getgroups, getugroups: provide stubs for mingw
43663         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43664         * lib/getugroups.c (getugroups): Likewise.
43665         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43666         function.  Modernize replacement scheme.
43667         (gl_PREREQ_GETGROUPS): Delete.
43668         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43669         * modules/getgroups (configure.ac): Declare witness.
43670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43671         * modules/unistd (Depends-on): Substitute witness.
43672         * lib/unistd.in.h (getgroups): Declare replacement.
43673
43674         getgroups: avoid calling exit
43675         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43676         drop xalloc.
43677         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43678         dependencies.
43679         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43680         exiting, in the rare case of malloc failure.
43681
43682         getgroups: fix logic error
43683         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43684         has more than 20 groups.
43685         * modules/getgroups-tests: New test.
43686         * tests/test-getgroups.c: New file.
43687
43688 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43689
43690         * tests/test-base64.c: Improve.
43691
43692 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43693
43694         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43695         Blake <ebb9@byu.net>.
43696
43697 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43698
43699         * tests/test-xvasprintf.c: Add %s%s related checks.
43700
43701 2009-11-12  Eric Blake  <ebb9@byu.net>
43702
43703         version-etc: match standards.texi style
43704         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43705         and use <> only for URLs.
43706
43707 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43708
43709         fts: do not fail on a submount during traversal
43710         * lib/fts.c (fts_build): Read the stat info again after opening
43711         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43712         Original report at http://bugzilla.redhat.com/501848.
43713
43714 2009-11-12  Jim Meyering  <meyering@redhat.com>
43715
43716         bootstrap: sync from coreutils
43717         * build-aux/bootstrap (bootstrap_epilogue): New function.
43718         Use git_modules_config in one more place.  This make bootstrap's
43719         --gnulib-srcdir option more useful for testing.
43720
43721         bootstrap: generalize autoheader check
43722         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43723         AC_CONFIG_HEADERS.
43724
43725 2009-11-11  Eric Blake  <ebb9@byu.net>
43726
43727         mkfifoat: use new modules for Solaris and BSD bugs
43728         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43729         * lib/mkfifoat.c (mknodat): Split...
43730         * lib/mknodat.c (mknodat): ...into new file.
43731         * modules/mkfifoat (Files): Ship new file.
43732         (Depends-on): Add mkfifo, mknod.
43733         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43734         (Depends-on): Add symlink.
43735         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43736         redundant with test_mkfifo.h.
43737         (do_mkfifoat, do_mknodat): New helpers.
43738
43739         mknod: new module
43740         * modules/mknod: New file.
43741         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43742         * lib/mknod.c (mknod): Likewise.
43743         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43744         defaults.
43745         * modules/sys_stat (Makefile.am): Substitute them.
43746         * lib/sys_stat.in.h (mknod): Declare replacement.
43747         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43748         Document it.
43749         * doc/posix-functions/mknod.texi (mknod): Likewise.
43750         * modules/mknod-tests: New test.
43751         * tests/test-mknod.c: Likewise.
43752
43753         mkfifo: new module
43754         * modules/mkfifo: New file.
43755         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43756         * lib/mkfifo.c (mkfifo): Likewise.
43757         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43758         defaults.
43759         * modules/sys_stat (Makefile.am): Substitute them.
43760         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43761         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43762         Document it.
43763         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43764         * modules/mkfifo-tests: New test.
43765         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43766         from test-mkfifoat.c.
43767         * tests/test-mkfifo.c: New file.
43768
43769         readlink: detect FreeBSD bug
43770         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43771         slash on symlink.
43772         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43773         * tests/test-readlink.h (test_readlink): Enhance test.
43774
43775         symlink: detect FreeBSD bug
43776         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43777         slash on symlink.
43778         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43779         * tests/test-symlink.h (test_symlink): Enhance test.
43780
43781 2009-11-10  Eric Blake  <ebb9@byu.net>
43782
43783         link: detect FreeBSD bug
43784         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43785         symlink.
43786         * doc/posix-functions/link.texi (link): Document the bug.
43787         * tests/test-link.h (test_link): Enhance test.
43788         * tests/test-linkat.c (main): Update caller.
43789
43790         unlink, remove: detect FreeBSD bug
43791         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43792         slash on symlink.
43793         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43794         * doc/posix-functions/remove.texi (remove): Likewise.
43795         * tests/test-unlink.h (test_unlink): Enhance test.
43796         * tests/test-remove.c (main): Likewise.
43797
43798 2009-11-09  Eric Blake  <ebb9@byu.net>
43799
43800         rename: detect FreeBSD bug
43801         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43802         slash on symlink.
43803         * modules/renameat-tests (Depends-on): Add filenamecat.
43804         * tests/test-rename.h (test_rename): Allow one more errno.
43805         * tests/test-renameat.c (main): Likewise.
43806         * doc/posix-functions/rename.texi (rename): Document the bug.
43807
43808         open: detect FreeBSD bug
43809         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43810         symlink.
43811         * doc/posix-functions/open.texi (open): Document the bug.
43812         * doc/posix-functions/utimes.texi (utimes): Likewise.
43813         * tests/test-open.h (test_open): Add parameters, and test symlink
43814         handling.
43815         * tests/test-open.c (main): Adjust caller.
43816         * tests/test-fcntl-safer.c (main): Likewise.
43817         * modules/open-tests (Depends-on): Add stdbool, symlink.
43818         * modules/fcntl-safer-tests (Depends-on): Likewise.
43819         * tests/test-openat.c (main): Add test-open tests.
43820
43821         stat: detect FreeBSD bug
43822         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43823         symlink.
43824         * doc/posix-functions/stat.texi (stat): Document the bug.
43825         * tests/test-stat.h (test_stat_func): Add argument.
43826         * tests/test-stat.c (main): Adjust caller.
43827         * tests/test-fstatat.c (main): Likewise.
43828         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43829         Reported by Jim Meyering.
43830
43831 2009-11-09  James Youngman  <jay@gnu.org>
43832
43833         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43834         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43835
43836 2009-11-08  Jim Meyering  <meyering@redhat.com>
43837
43838         utimens: remove invalid futimesat call
43839         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43840         It used the file descriptor of the target file as the DIR_FD
43841         parameter and NULL as the file name.  That caused failure with
43842         errno == EFAULT on FreeBSD-8.0-rc2
43843
43844 2009-11-07  Eric Blake  <ebb9@byu.net>
43845
43846         fflush, freadseek: use fseeko, not fseek
43847         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43848         (clear_ungetc_buffer): Avoid potential problems on large files.
43849         * lib/freadseek.c (freadseek): Likewise.
43850         * modules/freadseek (Depends-on): Add fseeko.
43851         * modules/fseek (configure.ac): Set a witness.
43852         * tests/test-fflush.c (main): Use fseeko.
43853         * tests/test-fpurge.c (fseek): Disable link warning.
43854         * tests/test-freadable.c (fseek): Likewise.
43855         * tests/test-freading.c (fseek): Likewise.
43856         * tests/test-fseeko.c (fseek): Likewise.
43857         * tests/test-ftell.c (fseek): Likewise.
43858         * tests/test-ftello.c (fseek): Likewise.
43859         * tests/test-fwritable.c (fseek): Likewise.
43860         * tests/test-fwriting.c (fseek): Likewise.
43861
43862 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43863
43864         * modules/memchr (Depends-on): Drop getpagesize dependency.
43865
43866 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43867
43868         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43869         Reported by Ludovic Courtès.
43870         * build-aux/pmccabe2html: Improve example usage.
43871         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43872
43873 2009-11-06  Jim Meyering  <meyering@redhat.com>
43874
43875         do-release-commit-and-tag: New module.
43876         Automate the release-commit and tag process.
43877         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43878         * modules/do-release-commit-and-tag: New file.
43879         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43880
43881 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43882
43883         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43884         because test-select.c uses inet_pton.
43885
43886 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43887
43888         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43889         GETADDRINFO_LIB.  Bump serial number.
43890         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43891         Suggested by Eric Blake <ebb9@byu.net>.
43892
43893 2009-11-05  Eric Blake  <ebb9@byu.net>
43894
43895         strtod: detect darwin bug
43896         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43897         Reported by Leo Davis.
43898
43899         freopen-safer: new module
43900         * modules/freopen-safer: New module.
43901         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43902         * lib/freopen-safer.c (freopen_safer): New file.
43903         * lib/stdio-safer.h (freopen_safer): New declaration.
43904         * lib/stdio--.h (freopen): New override.
43905         * MODULES.html.sh (File stream based Input/Output): Mention it.
43906         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43907         freopen-safer module.
43908         * doc/posix-functions/stderr.texi (stderr): Likewise.
43909         * doc/posix-functions/stdin.texi (stdin): Likewise.
43910         * doc/posix-functions/stdout.texi (stdout): Likewise.
43911         * modules/freopen-safer-tests: New test.
43912         * tests/test-reopen-safer.c: New file.
43913
43914 2009-11-05  Jim Meyering  <meyering@redhat.com>
43915
43916         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43917         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43918
43919 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43920
43921         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43922
43923 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43924
43925         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43926
43927 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43928
43929         Fix link error.
43930         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43931         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43932
43933 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43934
43935         * tests/test-func.c: Also test value of __func__.
43936
43937 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43938
43939         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43940         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43941
43942 2009-11-05  Bruno Haible  <bruno@clisp.org>
43943
43944         Fix link error.
43945         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43946         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43947         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43948
43949 2009-11-05  Bruno Haible  <bruno@clisp.org>
43950
43951         Tests for module 'inet_pton'.
43952         * modules/inet_pton-tests: New file.
43953         * tests/test-inet_pton.c: New file.
43954
43955 2009-11-05  Bruno Haible  <bruno@clisp.org>
43956
43957         Tests for module 'inet_ntop'.
43958         * modules/inet_ntop-tests: New file.
43959         * tests/test-inet_ntop.c: New file.
43960
43961 2009-11-04  Eric Blake  <ebb9@byu.net>
43962
43963         stdlib-safer: wrap all mkstemp variants
43964         * modules/mkostemp (configure.ac): Set witness.
43965         * modules/mkostemps (configure.ac): Likewise.
43966         * modules/mkstemps (configure.ac): Likewise.
43967         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43968         (mkstemps_safer): Wrap more functions.
43969         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43970         wrapping.
43971         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43972         (mkstemps_safer): Implement the wrappers.
43973
43974         mkstemps, mkostemps: new modules
43975         * modules/mkostemps: New module.
43976         * modules/mkstemps: Likewise.
43977         * lib/mkostemps.c (mkostemps): New file.
43978         * lib/mkstemps.c (mkstemps): Likewise.
43979         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43980         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43982         * modules/stdlib (Makefile.am): Substitute them.
43983         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43984         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43985         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43986         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43987         * MODULES.html.sh (File system functions): Mention them.
43988
43989         tempname: resync from glibc
43990         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43991         same values for __GT_FILE as glibc.  Abort even when assertions
43992         are disabled.
43993         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43994         match its value otherwise.  Allow idempotent inclusion.
43995         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43996         * lib/mkostemp.c (mkostemp): Likewise.
43997         * lib/mkstemp.c (mkstemp): Likewise.
43998         * lib/tmpfile.c (tmpfile): Likewise.
43999         * NEWS: Document this.
44000
44001         utimens: fix use of futimens on older Linux
44002         * lib/utimens.c (fdutimens): Use updated, rather than original,
44003         timespec to avoid bug in older Linux kernel.
44004         Reported by Simon Josefsson.
44005
44006 2009-11-04  Bruno Haible  <bruno@clisp.org>
44007
44008         Make num_processors more flexible and consistent.
44009         * lib/nproc.h (enum nproc_query): New type.
44010         (num_processors): Add a 'query' argument.
44011         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44012         (num_processors): Add a 'query' argument. Test the value of the
44013         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44014         mingw, count the number of CPUs available for the current process.
44015         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44016         Check for sched_getaffinity and sched_getaffinity_np.
44017         * modules/nproc (Depends-on): Add c-ctype, extensions.
44018         * NEWS: Mention the change.
44019
44020 2009-11-03  Bruno Haible  <bruno@clisp.org>
44021
44022         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44023
44024 2009-11-03  Jim Meyering  <meyering@redhat.com>
44025
44026         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44027         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44028         if it is defined.
44029
44030 2009-11-02  Eric Blake  <ebb9@byu.net>
44031
44032         mktime, timegm: share common declaration
44033         * lib/mktime-internal.h: New file.
44034         * lib/mktime.c: Use it rather than open-coding a declaration.
44035         * lib/timegm.c: Likewise.
44036         * modules/mktime (Files): Ship it.
44037         * modules/timegm (Files): Likewise.
44038         Suggested by Bruno Haible.
44039
44040         test-update-copyright: update test to match script changes
44041         * tests/test-update-copyright.sh: Avoid hard-coding perl
44042         location.  Don't update *.bak created by earlier runs.
44043
44044 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44045             Simon Josefsson  <simon@josefsson.org>
44046             Bruno Haible  <bruno@clisp.org>
44047
44048         Fix link error on Solaris 8.
44049         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44050         also in libnsl. Define also INET_PTON_LIB.
44051         * modules/inet_pton (Link): New section.
44052
44053 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44054             Bruno Haible  <bruno@clisp.org>
44055
44056         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44057         * modules/inet_ntop (Link): New section.
44058         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44059
44060 2009-11-02  Eric Blake  <ebb9@byu.net>
44061
44062         maint: avoid compiler warnings in m4 macros
44063         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44064         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44065
44066 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44067
44068         * m4/pmccabe2html.m4: Remove file.
44069         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44070         function.  Change maintainer.
44071         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44072         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44073         Courtès).
44074
44075 2009-10-31  Eric Blake  <ebb9@byu.net>
44076
44077         fseeko: fix m4 regression
44078         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44079         regression from 2009-10-27.
44080         Reported by Ralf Wildenhues.
44081
44082 2009-10-31  Jim Meyering  <meyering@redhat.com>
44083
44084         inttostr: aesthetics and improved (compile-time) safety
44085         Define inttype_is_signed rather than inttype_is_unsigned,
44086         since the sole use is via "#if inttype_is_signed".
44087         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44088         inttype_is_unsigned.
44089         * lib/offtostr.c (inttype_is_signed): Likewise.
44090         * lib/uinttostr.c (inttype_is_signed): Likewise.
44091         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44092         * lib/inttostr.c (inttostr): Use verify to cross-check the
44093         inttype_is_signed value and the signedness of the actual type.
44094         * modules/inttostr (Depends-on): Add verify.
44095
44096 2009-10-30  Eric Blake  <ebb9@byu.net>
44097
44098         build: avoid compiler warnings
44099         * lib/fchmodat.c (lchmod): Mark unused variables.
44100         * lib/getopt.c (_getopt_initialize): Likewise.
44101         * lib/mktime.c (__mktime_internal): Provide prototype.
44102         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44103         older gcc that do not understand #pragma GCC diagnostic.
44104         * lib/uinttostr.c (inttype_is_unsigned): Define.
44105         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44106
44107 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44108
44109         stat: fix compilation on AIX
44110         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44111         only see struct stat64.
44112
44113 2009-10-30  Eric Blake  <ebb9@byu.net>
44114
44115         exclude: make more robust
44116         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44117         rather than masking a coding bug.
44118         Suggested by Bruno Haible.
44119
44120 2009-10-30  Jim Meyering  <meyering@redhat.com>
44121
44122         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44123         Rather than putting #!/usr/bin/perl on the first line,
44124         start with a variant of what's recommended by "man perlrun" that
44125         invokes the first "perl" program from your shell's search path.
44126         * build-aux/gitlog-to-changelog: Replace #!... as above.
44127         Add a "Local Variables" perl mode setting.
44128         Prompted by a patch from Ludovic Courtès.
44129         Improved by Eric Blake.
44130         * build-aux/useless-if-before-free: Likewise.
44131         * build-aux/announce-gen: Likewise.
44132         * build-aux/update-copyright: Likewise.
44133
44134 2009-10-29  Eric Blake  <ebb9@byu.net>
44135
44136         filenamecat-lgpl: adjust clients
44137         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44138         filenamecat.
44139         * modules/renameat (Depends-on): Likewise.
44140
44141         filenamecat: split into filenamecat-lgpl
44142         * modules/filenamecat-lgpl: New module.
44143         * modules/filenamecat (Files): Move library-safe files into
44144         filenamecat-lgpl.
44145         (Depends-on): Add filenamecat-lgpl.
44146         (configure.ac): Declare witness.
44147         * lib/filenamecat.h (file_name_concat): Only declare when using
44148         GPL module.
44149         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44150         Move...
44151         * lib/filenamecat-lgpl.c: ...into new file.
44152         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44153         (gl_FILE_NAME_CONCAT): Use it.
44154         * MODULES.html.sh (File system functions): Mention new module.
44155
44156         argp: avoid memory leak
44157         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44158         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44159         base_name, since the latter malloc()s and can call exit().
44160         Leak introduced 2006-07-03.
44161
44162         dirname-lgpl: adjust clients that don't need full dirname
44163         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44164         * modules/filenamecat (Depends-on): Likewise.
44165         * modules/linkat (Depends-on): Likewise.
44166         * modules/mkancesdirs (Depends-on): Likewise.
44167         * modules/mkdir (Depends-on): Likewise.
44168         * modules/openat (Depends-on): Likewise.
44169         * modules/savewd (Depends-on): Likewise.
44170         * modules/rename (Depends-on): Likewise.
44171         (License): Relax license.
44172         * modules/mkdir-tests (Depends-on): Drop progname.
44173         (Makefile.am): Delete unneeded LDADD.
44174         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44175
44176         dirname: split into dirname-lgpl
44177         * modules/dirname-lgpl: New module.
44178         * modules/dirname (Files): Move library-safe files into
44179         dirname-lgpl.
44180         (Depends-on): Add dirname-lgpl.
44181         (configure.ac): Declare witness.
44182         * modules/double-slash-root (License): Relax license.
44183         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44184         module.
44185         * lib/dirname.c (dir_len, mdir_name): Move...
44186         * lib/dirname-lgpl.c: ...into new file.
44187         * lib/basename.c (last_component, base_len): Move...
44188         * lib/basename-lgpl.c: ...into new file.
44189         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44190         (gl_DIRNAME): Use it.
44191         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44192         Mention new module.
44193         * modules/dirname-tests (Depends-on): Add progname.
44194         * tests/test-dirname.c (program_name): Delete.
44195
44196         mkdir: make safe for libraries
44197         * modules/mkdir (Depends-on): Drop xalloc.
44198         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44199         exit.
44200
44201         tests: avoid some compiler warnings
44202         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44203         literals.
44204         * tests/test-memchr.c (main): Avoid type mismatch.
44205         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44206         * tests/test-base64.c (main): Likewise.
44207         * tests/test-getdelim.c (main): Likewise.
44208         * tests/test-gethostname.c (main): Likewise.
44209         * tests/test-getline.c (main): Likewise.
44210         * tests/test-netinet_in.c (main): Likewise.
44211         * tests/test-select.c (open_server_socket, main): Likewise.
44212         * tests/test-select-stdin.c (main): Likewise.
44213         * tests/test-sockets.c (main): Likewise.
44214         * tests/test-strsignal.c (main): Likewise.
44215         * tests/test-sys_select.c (main): Likewise.
44216         * tests/test-sys_socket.c (main): Likewise.
44217         * tests/test-u64.c (main): Likewise.
44218         * tests/test-xfprintf-posix.c (main): Likewise.
44219         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44220
44221         sockets: avoid compiler warning
44222         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44223
44224         maint: detect usage(1) and other suspicious exits
44225         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44226
44227 2009-10-29  Jim Meyering  <meyering@redhat.com>
44228
44229         timespec: long-to-int truncation could make timespec_cmp malfunction
44230         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44231         a multiple of 2^32 nanoseconds as no difference.
44232
44233 2009-10-28  Jim Meyering  <meyering@redhat.com>
44234
44235         fprintftime: wrap macro code argument in "do {...} while(0)"
44236         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44237         cpy macro must be a statement that can be followed by a semicolon.
44238         Now that the else clause contains a comment and is hence longer
44239         than one line, I require curly braces.  That in turn requires
44240         that we wrap this code block in the standard do...while(0).
44241
44242         fprintftime: remove stray semicolon from previous change
44243         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44244
44245         fprintftime: avoid a warning about ignored fwrite return value
44246         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44247         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44248         that is unsafe.
44249         * modules/fprintftime (Depends-on): Add ignore-value.
44250
44251         exclude: avoid an unwarranted warning
44252         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44253
44254 2009-10-27  Eric Blake  <ebb9@byu.net>
44255
44256         fseek: avoid compilation failure when fflush is replaced
44257         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44258         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44259         module is in use.
44260         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44261         module is not in use; since REPLACE_FSEEK worked otherwise.
44262         (GNULIB_FTELLO): Likewise for ftell.
44263         Reported by Ian Beckwith and others.
44264
44265 2009-10-27  Bruno Haible  <bruno@clisp.org>
44266
44267         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44268         Reported by Jim Meyering.
44269
44270 2009-10-27  Jim Meyering  <jim@meyering.net>
44271             Bruno Haible  <bruno@clisp.org>
44272
44273         Avoid warning despite dropping the return value of fwrite.
44274         * lib/unicodeio.c: Include ignore-value.h.
44275         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44276         * modules/unicodeio (Depends-on): Add ignore-value.
44277
44278 2009-10-26  Eric Blake  <ebb9@byu.net>
44279
44280         areadlinkat: fix fallback path
44281         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44282         pointer and zero.
44283
44284 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44285
44286         Use a better IO block size for modern systems
44287         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44288         * lib/md2.c: Likewise.
44289         * lib/md4.c: Likewise.
44290         * lib/md5.c: Likewise.
44291         * lib/sha1.c: Likewise.
44292         * lib/sha256.c: Likewise.
44293         * lib/sha512.c: Likewise.
44294
44295 2009-10-22  Eric Blake  <ebb9@byu.net>
44296
44297         tests: avoid several compiler warnings
44298         * tests/test-getcwd.c (main): Avoid buffer underflow.
44299         * tests/test-getdate.c (main): String literals are not safe with
44300         putenv, so use setenv.  Declare unused argument.
44301         * modules/getdate-tests (Depends-on): Add setenv.
44302         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44303         problems with string literals in char *.
44304         * tests/test-hash.c (main): Avoid shadowing declaration.
44305         (insert_new): Treat string literals as char const *.
44306         * tests/test-getopt.h (test_getopt): Likewise.
44307         (getopt_loop): Alter types to minimize casting elsewhere.
44308         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44309         (test_getopt_long_posix): Likewise.
44310         (do_getopt_long): Add wrapper to minimize casting.
44311         * tests/test-atexit.c (clear_temp_file): Use void.
44312         * tests/test-areadlink-with-size.c (main): Declare unused
44313         arguments.
44314         * tests/test-areadlink.c (main): Likewise.
44315         * tests/test-areadlinkat-with-size.c (main): Likewise.
44316         * tests/test-areadlinkat.c (main): Likewise.
44317         * tests/test-canonicalize-lgpl.c (main): Likewise.
44318         * tests/test-canonicalize.c (main): Likewise.
44319         * tests/test-dirent-safer.c (main): Likewise.
44320         * tests/test-dirname.c (main): Likewise.
44321         * tests/test-dup2.c (main): Likewise.
44322         * tests/test-fchdir.c (main): Likewise.
44323         * tests/test-fcntl-h.c (main): Likewise.
44324         * tests/test-fcntl-safer.c (main): Likewise.
44325         * tests/test-fdopendir.c (main): Likewise.
44326         * tests/test-fdutimensat.c (main): Likewise.
44327         * tests/test-fflush.c (main): Likewise.
44328         * tests/test-filenamecat.c (main): Likewise.
44329         * tests/test-filevercmp.c (main): Likewise.
44330         * tests/test-fopen-safer.c (main): Likewise.
44331         * tests/test-fopen.c (main): Likewise.
44332         * tests/test-fpending.c (main): Likewise.
44333         * tests/test-fpurge.c (main): Likewise.
44334         * tests/test-freading.c (main): Likewise.
44335         * tests/test-fstatat.c (main): Likewise.
44336         * tests/test-fsync.c (main): Likewise.
44337         * tests/test-futimens.c (main): Likewise.
44338         * tests/test-getndelim2.c (main): Likewise.
44339         * tests/test-gettimeofday.c (main): Likewise.
44340         * tests/test-getopt.c (main): Likewise.
44341         * tests/test-i-ring.c (main): Likewise.
44342         * tests/test-inttypes.c (main): Likewise.
44343         * tests/test-link.c (main): Likewise.
44344         * tests/test-lstat.c (main): Likewise.
44345         * tests/test-math.c (main): Likewise.
44346         * tests/test-md5.c (main): Likewise.
44347         * tests/test-memchr2.c (main): Likewise.
44348         * tests/test-memrchr.c (main): Likewise.
44349         * tests/test-mkdir.c (main): Likewise.
44350         * tests/test-mkdirat.c (main): Likewise.
44351         * tests/test-mkfifoat.c (main): Likewise.
44352         * tests/test-open.c (main): Likewise.
44353         * tests/test-openat-safer.c (main): Likewise.
44354         * tests/test-openat.c (main): Likewise.
44355         * tests/test-quotearg.c (main): Likewise.
44356         * tests/test-rawmemchr.c (main): Likewise.
44357         * tests/test-readlink.c (main): Likewise.
44358         * tests/test-remove.c (main): Likewise.
44359         * tests/test-rename.c (main): Likewise.
44360         * tests/test-renameat.c (main): Likewise.
44361         * tests/test-rmdir.c (main): Likewise.
44362         * tests/test-sha1.c (main): Likewise.
44363         * tests/test-signal.c (main): Likewise.
44364         * tests/test-sigaction.c (main): Likewise.
44365         * tests/test-stat.c (main): Likewise.
44366         * tests/test-stat-time.c (main): Likewise.
44367         * tests/test-stddef.c (main): Likewise.
44368         * tests/test-stdint.c (main): Likewise.
44369         * tests/test-stdio.c (main): Likewise.
44370         * tests/test-stdlib.c (main): Likewise.
44371         * tests/test-strchrnul.c (main): Likewise.
44372         * tests/test-strerror.c (main): Likewise.
44373         * tests/test-string.c (main): Likewise.
44374         * tests/test-strtod.c (main): Likewise.
44375         * tests/test-strverscmp.c (main): Likewise.
44376         * tests/test-symlink.c (main): Likewise.
44377         * tests/test-symlinkat.c (main): Likewise.
44378         * tests/test-sys_stat.c (main): Likewise.
44379         * tests/test-sys_time.c (main): Likewise.
44380         * tests/test-time.c (main): Likewise.
44381         * tests/test-unistd.c (main): Likewise.
44382         * tests/test-unlink.c (main): Likewise.
44383         * tests/test-unlinkat.c (main): Likewise.
44384         * tests/test-utimens.c (main): Likewise.
44385         * tests/test-utimensat.c (main): Likewise.
44386         * tests/test-version-etc.c (main): Likewise.
44387         * tests/test-wchar.c (main): Likewise.
44388         * tests/test-wctype.c (main): Likewise.
44389         * tests/test-xprintf-posix.c (main): Likewise.
44390         * tests/test-posixtm.c (main): Likewise.
44391         (STREQ): Delete unused macro.
44392         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44393         shadowed variables.
44394         * tests/test-memchr.c (main): Likewise.
44395
44396 2009-10-21  Eric Blake  <ebb9@byu.net>
44397
44398         areadlinkat: avoid failure on older glibc
44399         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44400         rather than mis-comparing 0 against FUNC_RESULT of char*.
44401
44402 2009-10-21  Bruno Haible  <bruno@clisp.org>
44403
44404         * modules/stpncpy (License): Relicense under LGPLv2+.
44405         Reported by David Lutterkort <lutter@redhat.com>.
44406
44407 2009-10-20  Eric Blake  <ebb9@byu.net>
44408
44409         utimensat: work around Solaris 9 bug
44410         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44411         has trailing slash bugs.
44412         * tests/test-lutimens.h (test_lutimens): Enhance test.
44413         * tests/test-utimens.h (test_utimens): Likewise.
44414         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44415         * doc/posix-functions/utimes.texi (utimes): Likewise.
44416         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44417         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44418         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44419         * doc/posix-functions/futimens.texi (futimens): Likewise.
44420
44421         fdutimensat: new module
44422         * modules/fdutimensat: New file.
44423         * lib/fdutimensat.c (fdutimensat): Likewise.
44424         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44425         * MODULES.html.sh (File system functions): Mention module.
44426         * modules/fdutimensat-tests: New test.
44427         * tests/test-fdutimensat.c: Likewise.
44428
44429         doc: regenerate INSTALL
44430         * doc/INSTALL: Reflect recent autoconf update.
44431         * doc/INSTALL.ISO: Likewise.
44432         * doc/INSTALL.UTF-8: Likewise.
44433
44434 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44435
44436         acl: warn if ACL support is not detected
44437         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44438
44439 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44440
44441         * lib/nproc.h: Add extern "C" block for C++.
44442
44443 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44444             Bruno Haible  <bruno@clisp.org>
44445
44446         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44447         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44448         * doc/posix-functions/isalpha.texi: Likewise.
44449         * doc/posix-functions/isblank.texi: Likewise.
44450         * doc/posix-functions/iscntrl.texi: Likewise.
44451         * doc/posix-functions/isdigit.texi: Likewise.
44452         * doc/posix-functions/isgraph.texi: Likewise.
44453         * doc/posix-functions/islower.texi: Likewise.
44454         * doc/posix-functions/isprint.texi: Likewise.
44455         * doc/posix-functions/ispunct.texi: Likewise.
44456         * doc/posix-functions/isspace.texi: Likewise.
44457         * doc/posix-functions/isupper.texi: Likewise.
44458         * doc/posix-functions/isxdigit.texi: Likewise.
44459
44460 2009-10-18  Bruno Haible  <bruno@clisp.org>
44461
44462         Tests for module 'isblank'.
44463         * modules/isblank-tests: New file.
44464         * tests/test-isblank.c: New file.
44465
44466         New module 'isblank'.
44467         * lib/isblank.c: New file.
44468         * m4/isblank.m4: New file.
44469         * modules/isblank: New file.
44470         * doc/posix-functions/isblank.texi: Mention the new module.
44471
44472 2009-10-18  Bruno Haible  <bruno@clisp.org>
44473
44474         New module 'ctype'.
44475         * lib/ctype.in.h: New file.
44476         * m4/ctype.m4: New file.
44477         * modules/ctype: New file.
44478         * doc/posix-headers/ctype.texi: Mention the new module.
44479
44480 2009-10-18  Jim Meyering  <meyering@redhat.com>
44481
44482         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44483         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44484         right after its initialization, rather than farther down.
44485         Keeping these in close proximity makes it easier to ensure
44486         that each such variable is initialized.  E.g.,
44487
44488             LIB_CLOCK_GETTIME=
44489             AC_SUBST([LIB_CLOCK_GETTIME])
44490
44491         This change also increments these serial numbers.
44492         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44493         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44495
44496 2009-10-18  Bruno Haible  <bruno@clisp.org>
44497
44498         Don't let environment variables perturb build.
44499         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44500         (gl_PREREQ_GETHRXTIME): ... not here.
44501
44502 2009-10-18  Bruno Haible  <bruno@clisp.org>
44503
44504         Avoid symlink attack in localcharset module.
44505         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44506         (O_NOFOLLOW): Define fallback.
44507         (get_charset_aliases): Don't open the file if it is a symbolic link.
44508         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44509         gl_FCNTL_H.
44510         (gl_FCNTL_H): Require it.
44511         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44512         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44513         Reported by Fergal Glynn <fglynn@veracode.com>.
44514
44515 2009-10-18  Bruno Haible  <bruno@clisp.org>
44516
44517         Implement nproc for mingw.
44518         * lib/nproc.c: Include <windows.h>
44519         (num_processors): On native Windows platforms, try GetSystemInfo.
44520
44521 2009-10-18  Bruno Haible  <bruno@clisp.org>
44522
44523         Implement nproc for IRIX.
44524         * lib/nproc.c: Include <sys/sysmp.h>.
44525         (num_processors): On IRIX systems, try sysmp.
44526         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44527
44528 2009-10-18  Bruno Haible  <bruno@clisp.org>
44529
44530         Implement nproc for HP-UX.
44531         * lib/nproc.c: Include <sys/pstat.h>
44532         (num_processors): On HP-UX systems, try pstat_getdynamic.
44533         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44534         pstat_getdynamic.
44535
44536 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44537             Bruno Haible  <bruno@clisp.org>
44538
44539         Implement nproc for NetBSD, OpenBSD.
44540         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44541         (ARRAY_SIZE): New macro.
44542         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44543         * m4/nproc.m4: New file.
44544         * modules/nproc (Files): Add m4/nproc.m4.
44545         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44546         (Makefile.am): Instead, augment lib_SOURCES.
44547
44548 2009-10-18  Bruno Haible  <bruno@clisp.org>
44549
44550         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44551         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44552         sys/param.h.
44553
44554 2009-10-16  Eric Blake  <ebb9@byu.net>
44555
44556         utimensat: new module
44557         * modules/utimensat: New file.
44558         * lib/utimensat.c (utimensat): Likewise.
44559         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44560         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44561         so we can work around Linux bugs.
44562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44563         * modules/sys_stat (Makefile.am): Substitute them.
44564         * lib/sys_stat.in.h (utimensat): Declare it.
44565         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44566         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44567         * modules/utimensat-tests: New test.
44568         * tests/test-utimensat.c: Likewise.
44569
44570         utimens: let lutimens work on non-symlinks
44571         * lib/utimens.c (lutimens): Fall back to utimens rather than
44572         failing with ENOSYS, when file is not a symlink.
44573         (utimens): Reduce redirection.
44574         * tests/test-lutimens.h (test_lutimens): Update test to cover
44575         non-symlinks.
44576         * tests/test-utimens.h (test_utimens): Update test to cover
44577         symlinks.
44578         * tests/test-utimens.c (main): Update caller.
44579
44580         utimens: cache whether utimensat syscall works
44581         * lib/utimens.c (utimensat_works_really): New cache variable.
44582         (fdutimens, lutimens): Use it to avoid failing syscall.
44583
44584         test-stat-time, test-utimens: improve portability
44585         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44586         ext4 on alpha, and for cygwin.
44587         * tests/test-utimens-common.h: New file.
44588         (nap): Factor delays into single function.
44589         * tests/test-lutimens.h (test_lutimens): Use new header.
44590         * tests/test-futimens.h (test_futimens): Likewise.
44591         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44592         timestamps to occur from same machine, as was done previously for
44593         test_utimens.
44594         * modules/utimens-tests (Files): Ship new file.
44595         * modules/futimens-tests (Files): Likewise.
44596         Reported in part by Jim Meyering.
44597
44598         sys_stat: sort replacement declarations
44599         * lib/sys_stat.in.h: Sort declarations.
44600         * lib/futimens.c (futimens): Fix typo.
44601
44602 2009-10-15  Jim Meyering  <meyering@redhat.com>
44603
44604         don't let environment settings perturb build
44605         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44606         could cause a configure-time and/or build-time malfunction.
44607         Typically, a configure-time function-in-library test is performed
44608         via code like this:
44609
44610           LIB_VAR=
44611           AC_SUBST([LIB_VAR])
44612           prefix_saved_LIBS=$LIBS
44613             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44614                        [test "$ac_cv_search_FUNC" = "none required" ||
44615                         LIB_VAR=$ac_cv_search_FUNC])
44616           LIBS=$prefix_saved_LIBS
44617
44618         However, in each of the files affected by this change, the LIB_VAR=
44619         initialization was omitted.  Thus, when set in the environment, its
44620         value would propagate into generated Makefiles when FUNC is not found
44621         in LIB_NAME.
44622         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44623         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44625
44626 2009-10-14  Eric Blake  <ebb9@byu.net>
44627
44628         fchdir: avoid infinite recursion in mingw
44629         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44630         recursing.
44631
44632         test-stat-time: port to mingw
44633         * tests/test-stat-time.c (force_unlink): Return a value.
44634         (test_ctime) [W32]: Fix compilation error.
44635         (nap): Don't call usleep with too large an argument.  Use
44636         force_unlink.
44637         * doc/pastposix-functions/usleep.texi (usleep): Document the
44638         portability issue.
44639
44640 2009-10-13  Jim Meyering  <meyering@redhat.com>
44641
44642         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44643         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44644         * modules/pipe-filter-ii: Likewise.
44645         * modules/sys_socket-tests: Likewise.
44646         * modules/tsearch-tests: Likewise.
44647         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44648         (check): Depend on it.
44649
44650 2009-10-12  Eric Blake  <ebb9@byu.net>
44651
44652         utimens-tests: port to NFS file systems
44653         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44654         comparisons to avoid spurious failures from timestamp drift
44655         between NFS machines.
44656
44657 2009-10-12  Eric Blake  <ebb9@byu.net>
44658
44659         stat-time-tests: minor cleanups
44660         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44661         * tests/test-stat-time.c (nap): Separate assignment from call.
44662         Suggested by Paolo Bonzini and Bruno Haible.
44663
44664         sys_stat: guarantee struct timespec
44665         * lib/sys_stat.in.h (includes): Always include <time.h>
44666         * modules/sys_stat (Depends-on): Add time.
44667         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44668         mode_t permission values.
44669         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44670         get at subsecond timestamps.
44671
44672 2009-10-10  Eric Blake  <ebb9@byu.net>
44673
44674         futimens: new module
44675         * modules/futimens: New file.
44676         * lib/futimens.c (futimens): Likewise.
44677         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44678         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44679         we can work around Linux bugs.
44680         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44681         * modules/sys_stat (Makefile.am): Substitute them.
44682         * lib/sys_stat.in.h (futimens): Declare it.
44683         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44684         * doc/posix-functions/futimens.texi (futimens): Likewise.
44685         * modules/futimens-tests: New test.
44686         * tests/test-futimens.c: Likewise.
44687
44688         utimens: introduce fdutimens
44689         * lib/utimens.h (fdutimens): New prototype.
44690         * lib/utimens.c (gl_futimens): Move guts...
44691         (fdutimens): ...to new interface.
44692         * tests/test-utimens.c (do_fdutimens): Use it.
44693
44694         utimens: add UTIME_NOW and UTIME_OMIT support
44695         * lib/utimens.c (validate_timespec, update_timespec): New helper
44696         functions.
44697         (gl_futimens, lutimens): Use them.
44698         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44699         stdbool, sys_stat.
44700         (Link): Mention resulting library dependency.
44701         * modules/utimecmp (Link): Likewise.
44702         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44703         (Makefile.am): Pick up library dependency.
44704         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44705         definition.
44706         * tests/test-sys_stat.c: Test the definitions.
44707         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44708         * NEWS: Document library dependency.
44709
44710         utimecmp: support symlink timestamps
44711         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44712         hashing when possible.  Use pathconf when available.
44713         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44714         * modules/utimecmp (Depends-on): Add lstat.
44715
44716         utimens: add lutimens interface
44717         * lib/utimens.c (lutimens): New function.
44718         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44719         * lib/utimens.h (lutimens): Declare new interface.
44720         * tests/test-utimens.c (main): Enhance test.
44721         * tests/test-lutimens.h (test_lutimens): New file.
44722         * modules/utimens-tests (Files): Distribute it.
44723         (Depends-on): Add symlink.
44724         (configure.ac): Check for usleep.
44725
44726         utimens: validate futimens usage
44727         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44728         fewer syscalls on failure later on.  Avoid compiler warning on
44729         mingw.
44730         * modules/utimens (Depends-on): Add dup2.
44731
44732         utimens: add test
44733         * modules/utimens-tests: New test.
44734         * tests/test-utimens.h: New file.
44735         * tests/test-futimens.h: Likewise.
44736         * tests/test-utimens.c: Likewise.
44737
44738         doc: mention timestamp portability issues
44739         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44740         instead.
44741         * doc/posix-functions/utime.texi (utime): Likewise.
44742         * doc/posix-functions/utimes.texi (utimes): Likewise.
44743         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44744         instead.
44745         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44746         module.
44747         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44748         Mention weakness with symlink timestamps.
44749         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44750         to utimensat/futimens instead.
44751         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44752
44753         test-dup2: enhance test
44754         * tests/test-dup2.c (main): Also check AT_FDCWD.
44755
44756         test-stat-time: avoid more spurious failures
44757         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44758         xfs; and avoid race if the two timestamps cross quantization edge.
44759
44760         relocatable: prefer 'file system' over 'filesystem'
44761         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44762         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44763         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44764         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44765         * lib/relocatable.c (compute_curr_prefix): Likewise.
44766
44767 2009-10-10  Jim Meyering  <meyering@redhat.com>
44768
44769         stat-time-tests: check for the usleep function
44770         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44771
44772 2009-10-10  Bruno Haible  <bruno@clisp.org>
44773
44774         * modules/xnanosleep: Put the Link section after the Include section.
44775
44776 2009-10-09  Eric Blake  <ebb9@byu.net>
44777
44778         dup2: work around FreeBSD 6.1 bug
44779         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44780         * doc/posix-functions/dup2.texi (dup2): Document it.
44781         Reported by Nelson H. F. Beebe and Jim Meyering.
44782
44783         test-stat-time: port to buggy NFS clients
44784         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44785         (test_ctime): Also skip test if mtime and ctime are skewed.
44786
44787         maint: prefer 'file system' over 'filesystem'
44788         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44789         * doc/posix-functions/lstat.texi (lstat): Likewise.
44790         * lib/file-has-acl.c (file_has_acl): Likewise.
44791         * lib/fwriteerror.c [TEST]: Likewise.
44792         * tests/test-areadlink.h (test_areadlink): Likewise.
44793         * tests/test-areadlinkat-with-size.c (main): Likewise.
44794         * tests/test-areadlinkat.c (main): Likewise.
44795         * tests/test-canonicalize-lgpl.c (main): Likewise.
44796         * tests/test-canonicalize.c (main): Likewise.
44797         * tests/test-fstatat.c (main): Likewise.
44798         * tests/test-linkat.c (main): Likewise.
44799         * tests/test-lstat.h (test_lstat_func): Likewise.
44800         * tests/test-mkdir.h (test_mkdir): Likewise.
44801         * tests/test-readlink.h (test_readlink): Likewise.
44802         * tests/test-remove.c (main): Likewise.
44803         * tests/test-rename.h (test_rename): Likewise.
44804         * tests/test-renameat.c (main): Likewise.
44805         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44806         * tests/test-symlink.h (test_symlink): Likewise.
44807         * tests/test-symlinkat.c (main): Likewise.
44808         * tests/test-unlink.h (test_unlink_func): Likewise.
44809         * tests/test-unlinkat.c (main): Likewise.
44810
44811         maint: make realtime library usage explicit
44812         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44813         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44814         * modules/settime (Link): Likewise.
44815         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44816
44817         test-stat-time: speed up execution
44818         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44819         warning on mingw.
44820         (nap): New helper function.
44821         (prepare_test): Use it to reduce sleep time.
44822         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44823         execution.
44824         * modules/stat-time-tests (configure.ac): Check for usleep.
44825
44826 2009-10-09  Jim Meyering  <meyering@redhat.com>
44827
44828         selinux-h: always use getfilecon wrappers
44829         * lib/getfilecon.c: New file.
44830         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44831         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44832         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44833         (fgetfilecon): Provide a stub.
44834         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44835         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44836         file unconditionally.
44837         When <selinux/selinux.h> is found, arrange to use wrappers.
44838         * modules/selinux-h (Files): Add getfilecon.c.
44839         (Makefile.am): Substitute include-next-related bits
44840         into the now-always-generated selinux/selinux.h file.
44841         * doc/glibc-functions/lgetfilecon.texi: New file.
44842         * doc/glibc-functions/fgetfilecon.texi: New file.
44843         * doc/glibc-functions/getfilecon.texi: New file.
44844         * doc/glibc-functions/getfilecon-desc.texi: New file.
44845         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44846         which to pull in the new files.
44847         * MODULES.html.sh (Misc): Add selinux-h.
44848
44849 2009-10-08  Jim Meyering  <meyering@redhat.com>
44850
44851         unistd: fix comment typo
44852         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44853
44854 2009-10-08  Eric Blake  <ebb9@byu.net>
44855
44856         areadlink: use SIZE_MAX consistently
44857         * modules/areadlink (Depends-on): Add stdint.
44858         * modules/areadlink-with-size (Depends-on): Likewise.
44859         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44860         gives NULL; drop sys/types, since unistd gives size_t; and add
44861         stdint for SIZE_MAX.
44862         (SIZE_MAX): Rely on headers.
44863         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44864         and add stdint.
44865         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44866         (SIZE_MAX): Likewise.
44867         (INITIAL_BUF_SIZE): Turn into enum.
44868         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44869
44870 2009-10-08  Jim Meyering  <meyering@redhat.com>
44871
44872         areadlinkat: avoid compilation failure
44873         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44874         Fix typo in comment.
44875
44876 2009-10-07  Eric Blake  <ebb9@byu.net>
44877
44878         areadlinkat-with-size: new module
44879         * modules/areadlinkat-with-size: New module.
44880         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44881         * lib/areadlink.h (areadlinkat): Declare it.
44882         * MODULES.html.sh (File system functions): Mention it.
44883         * modules/areadlinkat-with-size-tests: New test.
44884         * tests/test-areadlinkat-with-size.c: New file.
44885
44886         xreadlinkat: new module
44887         * modules/xreadlinkat: New module.
44888         * lib/xreadlinkat.c (xreadlinkat): New file.
44889         * lib/xreadlink.h (xreadlinkat): Declare it.
44890         * MODULES.html.sh (File system functions): Mention it.
44891
44892         areadlinkat: new module
44893         * lib/at-func.c (FUNC_FAIL): New define.
44894         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44895         * modules/areadlinkat: New module.
44896         * lib/linkat.c (areadlinkat): Move...
44897         * lib/areadlinkat.c (areadlinkat): ...to new file.
44898         * lib/areadlink.h (areadlinkat): Declare it.
44899         * modules/linkat (Depends-on): Add areadlinkat.
44900         * MODULES.html.sh (File system functions): Mention it.
44901         * modules/areadlinkat-tests: New test.
44902         * tests/test-areadlinkat.c: New file.
44903
44904         areadlink, areadlink-with-size: add tests
44905         * modules/areadlink-tests: New test.
44906         * modules/areadlink-with-size-tests: Likewise.
44907         * tests/test-areadlink.h: New file.
44908         * tests/test-areadlink.c: Likewise.
44909         * tests/test-areadlink-with-size.c: Likewise.
44910
44911         maint: minor cleanups
44912         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44913         _UNUSED_PARAMETER_ instead.
44914         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44915         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44916         * modules/linkat-tests (Files): Distribute test-link.h.
44917
44918         openat, utimens: whitespace cleanup
44919         * lib/openat.c: Prefer space throughout, rather than mix of 8
44920         spaces vs. tabs.
44921         * lib/at-func.c: Likewise.
44922         * lib/utimens.c: Likewise.
44923
44924         openat: avoid using wrong fd
44925         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44926         working directory chooses same fd.
44927         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44928
44929         mkdir, mkdirat: fix cygwin 1.5.x bug
44930         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44931         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44932         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44933         bug.
44934         (gl_PREREQ_MKDIR): Delete unused macro.
44935         * modules/mkdir (Files): Track file rename.
44936         (configure.ac): Update macro name.
44937         * modules/openat (Depends-on): Add mkdir.
44938         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44939
44940         mkdir, mkdirat: add tests
44941         * modules/mkdir-tests: New test.
44942         * tests/test-mkdir.h: New file.
44943         * tests/test-mkdir.c: Likewise.
44944         * tests/test-mkdirat.c: Likewise.
44945         * modules/openat-tests (Files): Add new files.
44946         (Makefile.am): Run new test.
44947
44948 2009-10-06  Eric Blake  <ebb9@byu.net>
44949
44950         doc: tweak *at function documentation
44951         * doc/posix-functions/faccessat.texi (faccessat): Mention
44952         known issue with replacement.
44953         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44954         * doc/posix-functions/linkat.texi (linkat): Likewise.
44955         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44956         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44957         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44958         * doc/posix-functions/renameat.texi (renameat): Likewise.
44959         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44960
44961         openat: fix GNU/Hurd bug in unlinkat
44962         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44963         broken.
44964         * doc/posix-functions/unlink.texi (unlink): Document this.
44965         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44966
44967         fdopendir: fix GNU/Hurd bug
44968         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44969         allowing non-directory fds.
44970         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44971         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44972         * modules/dirent (Makefile.am): Substitute it.
44973         * lib/dirent.in.h (fdopendir): Declare replacement.
44974         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44975         * tests/test-fdopendir.c (main): Test something other than
44976         /dev/null, since on Hurd that behaves like a directory.
44977
44978         test-symlink: port to GNU/Hurd
44979         * tests/test-symlink.h (test_symlink): Relax expected errno.
44980
44981         doc: tweak more cygwin information
44982         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44983         now compatible with glibc.
44984         * doc/posix-functions/getopt.texi (getopt): Likewise.
44985
44986         getopt-gnu: add another test
44987         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44988         guarantee behavior relied on by m4.
44989         * tests/test-getopt.c (main): Use it.
44990         * modules/getopt-posix-tests (Depends-on): Add setenv.
44991         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44992
44993         getopt: fix compilation on darwin
44994         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44995         include.
44996         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44997         Reported by Ludovic Courtès.
44998
44999 2009-10-06  Bruno Haible  <bruno@clisp.org>
45000
45001         * modules/size_max (Description): Discourage its use.
45002         Reported by Simon Josefsson.
45003
45004 2009-10-06  Jim Meyering  <meyering@redhat.com>
45005
45006         linkat: avoid compilation failure
45007         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45008
45009 2009-10-05  Eric Blake  <ebb9@byu.net>
45010
45011         linkat: support Linux 2.6.17
45012         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45013         linkat on Linux, but allow cache variable override.
45014         * lib/linkat.c (rpl_linkat): Define override.
45015         * modules/linkat (Depends-on): Add symlinkat.
45016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45017         * modules/unistd (Makefile.am): Substitute it.
45018         * lib/unistd.in.h (linkat): Declare replacement.
45019         Reported by Pádraig Brady.
45020
45021         quotearg: port test to systems with C.UTF-8 locale
45022         * tests/test-quotearg.c (struct result_strings): Add another
45023         member, differentiating between C.ASCII and C.UTF-8 handling.
45024         (compare_strings): Add parameter.
45025         (main): Adjust all callers.
45026
45027         getopt: avoid clash with FreeBSD _getopt_internal
45028         * lib/getopt.in.h (_getopt_internal): Override the name.
45029         * lib/getopt_int.h (includes): Pick up any overrides.
45030         Reported by Reuben Thomas.
45031
45032         hash: allow C89 compilation
45033         * lib/hash.c (check_tuning): Move declaration before statement.
45034         Reported by Reuben Thomas.
45035
45036 2009-10-05  Karl Berry  <karl@gnu.org>
45037
45038         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45039
45040 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45041             Bruno Haible  <bruno@clisp.org>
45042
45043         * lib/uname.c (uname): Use a table-driven algorithm to compute
45044         Windows NT versions.
45045
45046 2009-10-04  Bruno Haible  <bruno@clisp.org>
45047
45048         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45049         program_invocation_short_name.
45050         * modules/progname (configure.ac): Test for presence of
45051         program_invocation_short_name.
45052         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45053
45054 2009-10-04  Bruno Haible  <bruno@clisp.org>
45055
45056         * lib/progname.c (set_program_name): Fix comment.
45057         Reported by Jim Meyering.
45058
45059 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45060             Bruno Haible  <bruno@clisp.org>
45061
45062         * lib/uname.c: Include <string.h>.
45063         (uname): Do only one call to GetVersionEx in the common case.
45064
45065 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45066             Bruno Haible  <bruno@clisp.org>
45067
45068         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45069         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45070         (uname): Add support for Windows CE and various non-x86 CPU types.
45071
45072 2009-10-03  Bruno Haible  <bruno@clisp.org>
45073
45074         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45075         invocation to tests/configure.ac.
45076         Reported by Ian Beckwith <ianb@erislabs.net>.
45077
45078 2009-10-02  Eric Blake  <ebb9@byu.net>
45079
45080         fchdir: avoid compiler warning
45081         * lib/fchdir.c (canonicalize_file_name)
45082         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45083
45084         test-open: support mingw errno values
45085         * tests/test-open.h (test_open): Relax test.
45086         * tests/test-fopen.h (test_fopen): Likewise.
45087         * tests/test-openat-safer.c (main): Likewise.
45088
45089         open: fix opening directory on mingw
45090         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45091
45092         test-open: on GNU/Hurd, /dev/null is a directory
45093         * tests/test-fopen.h (main): Rename...
45094         (test_fopen): ...to this.  Use a guaranteed non-directory when
45095         confirming open behavior on trailing slash.
45096         * tests/test-openat-safer.c (main): Likewise.
45097         * tests/test-open.h (main): Likewise....
45098         (test_open): ...to this.
45099         * tests/test-fopen.c (main): Adjust caller.
45100         * tests/test-fopen-safer.c (main): Likewise.
45101         * tests/test-open.c (main): Likewise.
45102         * tests/test-fcntl-safer.c (main): Likewise.
45103         Reported by Samuel Thibault.
45104
45105         rename, fchdir: don't ignore chdir failure
45106         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45107         * lib/rename.c (rpl_rename) [W32]: Likewise.
45108         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45109         an empty destination directory if source cannot be renamed,
45110         although there is still possibility for failure.
45111         * doc/posix-functions/rename.texi (rename): Document the race.
45112         Reported by Jim Meyering.
45113
45114         maint: cleanup whitespace in recent commits
45115         * lib/rename.c (rpl_rename): Remove tabs.
45116         * tests/test-link.h (test_link): Likewise.
45117         * lib/fchdir.c (get_name): Likewise.
45118         Reported by Jim Meyering.
45119
45120 2009-10-02  Ben Pfaff  <blp@gnu.org>
45121
45122         relocatable-prog-wrapper: Add missing dependency on
45123         double-slash-root.
45124         * modules/relocatable-prog-wrapper: Add dependency.
45125         Reported by Ian Beckwith <ianb@erislabs.net>.
45126
45127 2009-10-02  Eric Blake  <ebb9@byu.net>
45128
45129         renameat: fix Solaris bugs
45130         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45131         needed fixing.
45132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45133         * modules/stdio (Makefile.am): Substitute it.
45134         * lib/stdio.in.h (renameat): Declare replacement.
45135         * lib/renameat.c (rpl_renameat): Implement fix.
45136
45137         renameat: new module
45138         * modules/renameat: New file.
45139         * lib/renameat.c (renameat): Likewise.
45140         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45142         * modules/stdio (Makefile.am): Substitute them.
45143         * lib/stdio.in.h (renameat): Declare it.
45144         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45145         * doc/posix-functions/renameat.texi (renameat): Likewise.
45146         * modules/renameat-tests: New test.
45147         * tests/test-renameat.c: Likewise.
45148
45149         rename: fix mingw bugs
45150         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45151         directory overwrite bugs.
45152
45153         rename: fix another cygwin 1.5 bug
45154         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45155         checks.
45156         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45157         unnecessary cygwin workarounds.  Also work around bug with moving
45158         full directory onto an empty one.
45159         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45160
45161         rename-dest-slash: merge into rename module
45162         * modules/rename-dest-slash (Status): Mark obsolete.
45163         (Depends-on): Add rename.
45164         (Files): Let rename do it all.
45165         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45166         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45167         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45168         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45169         * lib/rename.c (rpl_rename): Update comments.
45170
45171         rename: fix cygwin 1.5.x bugs
45172         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45173         * lib/rename.c (rpl_rename): Work around them.
45174         * modules/rename (Depends-on): Add same-inode.
45175
45176         rename: fix Solaris 10 bug
45177         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45178         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45179         was the only bug.
45180
45181         rename: fix Solaris 9 bug
45182         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45183         on non-directory.  Avoid calling exit.
45184         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45185         strdup.
45186         * modules/rename-tests (Depends-on): Drop lstat.
45187         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45188         (gl_PREREQ_RENAME): Delete unused macro.
45189
45190         rename-dest-slash: fix NetBSD bug
45191         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45192         links.
45193         * modules/rename-dest-slash (Depends-on): Add same-inode.
45194
45195         rename-tests: new test, exposes several platform bugs
45196         * modules/rename-tests: New file.
45197         * tests/test-rename.h: Likewise.
45198         * tests/test-rename.c: Likewise.
45199         * doc/posix-functions/rename.texi (rename): Improve documentation,
45200         including bugs that will eventually be fixed in gnulib.
45201
45202 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45203
45204         * lib/uname.c: Include <stdlib.h>
45205         (uname): Assume version info is available.
45206
45207 2009-10-02  Jim Meyering  <meyering@redhat.com>
45208
45209         gnu-web-doc-update: correct --help output
45210         * build-aux/gnu-web-doc-update: Make --help output relevant.
45211
45212         gnu-web-doc-update: add standard options
45213         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45214
45215         gnu-web-doc-update: New module.
45216         Use this script to automatically update the on-line web documentation
45217         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45218         * modules/gnu-web-doc-update: New file, from coreutils.
45219         * build-aux/gnu-web-doc-update: New script.
45220
45221 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45222
45223         link: LoadLibrary is not needed.
45224         * lib/link.c: Use GetModuleHandle.
45225
45226 2009-10-01  Eric Blake  <ebb9@byu.net>
45227
45228         getopt: bump serial number
45229         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45230         change.
45231
45232         tests: tighten link, rmdir, and remove tests
45233         * tests/test-link.h (includes): No need to use <config.h> here.
45234         Clean up if directory hard link was created, otherwise test for
45235         trailing '.'.
45236         * tests/test-linkat.c (main): Simplify.
45237         * tests/test-remove.c (main): Enhance test for trailing '.'.
45238         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45239
45240 2009-10-01  Jim Meyering  <meyering@redhat.com>
45241
45242         maint.mk: requiring "make major" was annoying, for a "minor" release.
45243         What is intended is "stable", to contrast with alpha and beta,
45244         so require "make stable", not "make major".
45245         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45246         (get_tool_versions): Likewise.
45247         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45248
45249 2009-09-30  Ben Pfaff  <blp@gnu.org>
45250
45251         Fix broken build of replacement for Windows tmpfile().
45252         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45253         flags argument added along with the 'mkostemp' module.
45254
45255 2009-09-28  Bruno Haible  <bruno@clisp.org>
45256
45257         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45258         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45259         to 'remove_elt'.
45260         (gl_list_remove): Update.
45261         * lib/gl_list.c (gl_list_remove): Update.
45262         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45263         to 'remove_elt'.
45264         (gl_oset_remove): Update.
45265         * lib/gl_list.c (gl_oset_remove): Update.
45266         Reported by Eric Blake.
45267
45268 2009-09-28  Eric Blake  <ebb9@byu.net>
45269
45270         doc: mention yet more cygwin 1.7 status
45271         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45272         cygwin.
45273         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45274         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45275
45276         argp: fix test failure
45277         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45278         that are not upper-case.  Pass correct range to tolower.
45279
45280 2009-09-27  Jim Meyering  <meyering@redhat.com>
45281
45282         test-yesno: work around sparc-dash here-document infelicity
45283         Without this change, the literal \177 byte in a here document
45284         would make dash 0.5.5.1-3 access uninitialized memory.
45285         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45286         Instead, use a marker, "@", and filter through tr to create the desired
45287         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45288
45289 2009-09-27  Bruno Haible  <bruno@clisp.org>
45290
45291         Disable untested support for new flavours of ACLs on AIX.
45292         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45293         progress.
45294         * lib/set-mode-acl.c (qset_acl): Likewise.
45295
45296 2008-12-07  Bruno Haible  <bruno@clisp.org>
45297
45298         Add support for new flavours of ACLs on AIX. (Untested.)
45299         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45300         (file_has_acl): Add support for newer AIX.
45301         * lib/set-mode-acl.c (qset_acl): Likewise.
45302         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45303         Rainer Tammer <tammer@tammer.net>.
45304
45305 2009-09-26  Eric Blake  <ebb9@byu.net>
45306
45307         argp: fix compilation of getopt
45308         * lib/getopt.in.h (includes): Use different guard than glibc.
45309         Reported by Sergey Poznyakoff.
45310
45311         doc: mention more cygwin 1.7 status
45312         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45313         bug.
45314         * doc/posix-functions/execl.texi (execl): Likewise.
45315         * doc/posix-functions/execle.texi (execle): Likewise.
45316         * doc/posix-functions/execlp.texi (execlp): Likewise.
45317         * doc/posix-functions/execv.texi (execv): Likewise.
45318         * doc/posix-functions/execve.texi (execve): Likewise.
45319         * doc/posix-functions/execvp.texi (execvp): Likewise.
45320         * doc/glibc-functions/canonicalize_file_name.texi
45321         (canonicalize_file_name): Cygwin 1.7 now provides this.
45322         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45323         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45324         on AT_SYMLINK_NOFOLLOW.
45325
45326 2009-09-24  Eric Blake  <ebb9@byu.net>
45327
45328         test-linkat: make test more robust
45329         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45330
45331         getopt: fix inclusion guards for cygwin
45332         * modules/getopt-posix (Depends-on): Add include-next.
45333         (Makefile.am): Substitute more items in replacement header.
45334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45335         <getopt.h>.
45336         * lib/getopt.in.h (includes): Use split inclusion guard, and
45337         prefer <getopt.h> over include <unistd.h> when one is present.
45338         (option): Also override name of 'struct option'.
45339
45340         same-inode: revert prior change; it is not yet ready
45341         * NEWS: Undo mention of this change.
45342         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45343         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45344         * lib/cycle-check.c (cycle_check): Likewise.
45345         * lib/same.c (same_name): Likewise.
45346         * lib/at-func2.c (at_func2): Likewise.
45347
45348 2009-09-23  Eric Blake  <ebb9@byu.net>
45349
45350         linkat: new module
45351         * modules/linkat: New file.
45352         * lib/at-func2.c (at_func2): Likewise.
45353         * lib/linkat.c (linkat): Likewise.
45354         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45355         * lib/openat-priv.h (at_func2): Add declaration.
45356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45357         * modules/unistd (Makefile.am): Substitute them.
45358         * lib/unistd.in.h (linkat): Declare it.
45359         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45360         * doc/posix-functions/linkat.texi (linkat): Likewise.
45361         * doc/posix-functions/link.texi (link): Tweak wording.
45362         * tests/test-link.c (main): Move guts...
45363         * tests/test-link.h (test_link): ...into new file.
45364         * modules/linkat-tests: New test.
45365         * tests/test-linkat.c: Likewise.
45366         * modules/link-tests (Files): Ship new file.
45367         (Depends-on): Add stdbool.
45368
45369         dirname: add library-safe mdir_name
45370         * lib/dirname.h (mdir_name): New prototype.
45371         * lib/dirname.c (dir_name): Move guts...
45372         (mdir_name): ...to new function that avoids xalloc_die.
45373
45374         fchdir: another mingw fix
45375         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45376         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45377         on mingw (where it has not yet been ported), and make it optional
45378         elsewhere.
45379         (_gl_register_fd): Use it.
45380
45381         same-inode: make SAME_INODE tri-state, to port to mingw
45382         * NEWS: Mention this change.
45383         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45384         st_ino always being 0.
45385         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45386         * lib/cycle-check.c (cycle_check): Likewise.
45387         * lib/same.c (same_name): Likewise.
45388
45389         lstat: avoid mingw compilation error
45390         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45391         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45392         lstat ourselves.
45393         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45394         was adequate.
45395         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45396         the checks for lstat.
45397         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45398
45399         link: fix test failure on Solaris 9
45400         * lib/link.c (rpl_link): Don't assume link will catch bogus
45401         trailing slash on source.
45402
45403         test-symlinkat: enhance test
45404         * tests/test-readlink.c (main): Move guts...
45405         * tests/test-readlink.h (test_readlink): ...into new file.
45406         * tests/test-symlink.c (main): Move guts...
45407         * tests/test-symlink.h (test_symlink): ...into new file.
45408         * tests/test-symlinkat.c (main): Use new files for further
45409         coverage.
45410         (do_symlink, do_readlink): New helper functions.
45411         * modules/symlink-tests (Files): Ship new file.
45412         (Depends-on): Add stdbool.
45413         * modules/readlink-tests (Files): Ship new file.
45414         (Depends-on): Add stdbool.
45415         * modules/symlinkat-tests (Files): Use new files.
45416
45417 2009-09-23  Eric Blake  <ebb9@byu.net>
45418
45419         readlink: document portability issue with symlink length
45420         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45421         systems have bogus st_size on symlinks, and mention the
45422         areadlink-with-size module.
45423         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45424         * doc/posix-functions/readlink.texi (readlink): Mention the
45425         areadlink module, and ERANGE failure.
45426         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45427         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45428
45429         readlink: fix Solaris 9 bug with trailing slash
45430         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45431         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45432         * doc/posix-functions/readlink.texi (readlink): Document this.
45433         * modules/readlink-tests: New test.
45434         * tests/test-readlink.c: Likewise.
45435
45436         readlink: fix cygwin 1.5.x bug with return type
45437         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45438         * lib/unistd.in.h (readlink): Use ssize_t.
45439         * lib/readlink.c (readlink): Likewise.
45440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45441         * modules/unistd (Makefile.am): Substitute it.
45442         * lib/unistd.in.h (readlink): Declare replacement.
45443         * doc/posix-functions/readlink.texi (readlink): Document this.
45444
45445         symlink: use throughout gnulib
45446         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45447         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45448         symlink is not used.
45449         * modules/symlinkat (Depends-on): Add symlink.
45450         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45451         * modules/canonicalize-tests (Depends-on): Likewise.
45452         * modules/lstat-tests (Depends-on): Likewise.
45453         * modules/openat-tests (Depends-on): Likewise.
45454         * modules/remove-tests (Depends-on): Likewise.
45455         * modules/rmdir-tests (Depends-on): Likewise.
45456         * modules/unlink-tests (Depends-on): Likewise.
45457         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45458         * tests/test-canonicalize.c (symlink): Likewise.
45459         * tests/test-fstatat.c (symlink): Likewise.
45460         * tests/test-lstat.c (symlink): Likewise.
45461         * tests/test-remove.c (symlink): Likewise.
45462         * tests/test-rmdir.c (symlink): Likewise.
45463         * tests/test-unlink.c (symlink): Likewise.
45464         * tests/test-unlinkat.c (symlink): Likewise.
45465
45466         symlink: new module, for Solaris 9 bug
45467         * modules/symlink: New file.
45468         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45469         * lib/symlink.c: Likewise.
45470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45471         * modules/unistd (Makefile.am): Substitute them.
45472         * lib/unistd.in.h (symlink): Declare replacement.
45473         * MODULES.html.sh (File system functions): Mention it.
45474         * doc/posix-functions/symlink.texi (symlink): Likewise.
45475         * modules/symlink-tests: New test.
45476         * tests/test-symlink.c: Likewise.
45477
45478 2009-09-23  Bruno Haible  <bruno@clisp.org>
45479
45480         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45481         when needed.
45482         Test case: gnulib-tool --import --with-tests atexit inttypes.
45483         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45484
45485 2009-09-23  Bruno Haible  <bruno@clisp.org>
45486
45487         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45488         subcommand, not in a subshell.
45489
45490 2009-09-22  Eric Blake  <ebb9@byu.net>
45491
45492         unistd: sort replacement declarations
45493         * lib/unistd.in.h: Sort declarations.
45494
45495         open, openat: minor optimization
45496         * lib/open.c (open): If open succeeded, len is non-zero.
45497         * lib/openat.c (rpl_openat): Likewise.
45498
45499         link-follow: ensure correct result
45500         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45501         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45502         distinguish between possible failures.
45503
45504 2009-09-21  Eric Blake  <ebb9@byu.net>
45505
45506         fts: avoid compiler warning
45507         * lib/fts.c (dirent_inode_sort_may_be_useful)
45508         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45509
45510 2009-09-19  Bruno Haible  <bruno@clisp.org>
45511
45512         * lib/progreloc.c (canonicalize_file_name): New declaration.
45513
45514 2009-09-19  Eric Blake  <ebb9@byu.net>
45515
45516         link: fix quoting
45517         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45518
45519         openat: fix openat bugs on Solaris 9
45520         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45521         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45522         * modules/openat (Depends-on): Add open.
45523         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45524         * modules/fcntl-h (Makefile.am): Substitute it.
45525         * lib/fcntl.in.h (openat): Declare replacement.
45526         * doc/posix-functions/openat.texi (openat): Document this.
45527
45528         openat: move fstatat and unlinkat into correct files
45529         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45530         compiled.
45531         * lib/openat.c (fstatat, unlinkat): Move...
45532         * lib/fstatat.c (fstatat): ...into correct files.
45533         * lib/unlinkat.c (unlinkat): Likewise.
45534
45535         openat: fix unlinkat bugs on Solaris 9
45536         * lib/unlinkat.c (unlinkat): New file.
45537         * modules/openat (Depends-on): Add unlink.
45538         (Files): Distribute it.
45539         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45540         trailing slash behavior is broken.
45541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45542         * modules/unistd (Makefile.am): Substitute it.
45543         * lib/unistd.in.h (unlinkat): Declare replacement.
45544         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45545
45546         openat: fix fstatat bugs on Solaris 9
45547         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45548         stat.
45549         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45550
45551         test-unlinkat: enhance test, to expose Solaris 9 bug
45552         * tests/test-unlink.c (main): Factor guts...
45553         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45554         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45555         * tests/test-rmdir.c (main): Adjust caller.
45556         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45557         (unlinker): New helper function.
45558         (rmdirat): Enhance check.
45559         * modules/rmdir-tests (Depends-on): Add stdbool.
45560         * modules/unlink-tests (Depends-on): Likewise.
45561         (Files): Add test-unlink.h.
45562         * modules/openat-tests (Files): Likewise.
45563         (Depends-on): Add unlinkdir.
45564
45565         test-fstatat: new test, to expose Solaris 9 bugs
45566         * tests/test-stat.c (main): Factor guts...
45567         * tests/test-stat.h (test_stat_func): ...into new file.
45568         * tests/test-lstat.c (main): Factor guts...
45569         * tests/test-lstat.h (test_lstat_func): ...into new file.
45570         * tests/test-fstatat.c: New file.
45571         * modules/stat-tests (Files): Add test-stat.h.
45572         * modules/lstat-tests (Files): Add test-lstat.h.
45573         (Depends-on): Add stdbool.
45574         * modules/openat-tests (Depends-on): Add pathmax.
45575         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45576         (Makefile.am): Run new test.
45577
45578         remove: new module, for mingw and Solaris 9 bugs
45579         * modules/remove: New file.
45580         * lib/remove.c: Likewise.
45581         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45583         * modules/stdio (Makefile.am): Use them.
45584         * lib/stdio.in.h (remove): Declare replacement.
45585         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45586         * doc/posix-functions/remove.texi (remove): Likewise.
45587         * modules/remove-tests: New test.
45588         * tests/test-remove.c: Likewise.
45589
45590         unlink: new module, for Solaris 9 bug
45591         * modules/unlink: New file.
45592         * lib/unlink.c: Likewise.
45593         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45595         * modules/unistd (Makefile.am): Use them.
45596         * lib/unistd.in.h (stat): Declare replacement.
45597         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45598         * doc/posix-functions/unlink.texi (unlink): Likewise.
45599         * modules/unlink-tests: New test.
45600         * tests/test-unlink.c: Likewise.
45601
45602         lstat: fix Solaris 9 bug
45603         * lib/lstat.c (lstat): Also check for trailing slash on
45604         non-symlink, non-directories.  Use stat module to simplify logic.
45605         * doc/posix-functions/lstat.texi (lstat): Document it.
45606         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45607         (configure.ac): Check for symlink.
45608         * tests/test-lstat.c (main): Add more tests.
45609
45610         stat: add as dependency to other modules
45611         * modules/chown (Depends-on): Add stat.
45612         * modules/euidaccess (Depends-on): Likewise.
45613         * modules/fchdir (Depends-on): Likewise.
45614         * modules/isdir (Depends-on): Likewise.
45615         * modules/link (Depends-on): Likewise.
45616         * modules/lstat (Depends-on): Likewise.
45617         * modules/mkdir-p (Depends-on): Likewise.
45618         * modules/modechange (Depends-on): Likewise.
45619         * modules/open (Depends-on): Likewise.
45620         * modules/readlink (Depends-on): Likewise.
45621         * modules/same (Depends-on): Likewise.
45622
45623         stat: fix Solaris 9 bug
45624         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45625         slash.
45626         * lib/stat.c (rpl_stat): Work around it.
45627         * doc/posix-functions/stat.texi (stat): Update documentation.
45628
45629         stat: new module, for mingw bug
45630         * modules/stat: New file.
45631         * lib/stat.c: Likewise.
45632         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45633         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45634         * modules/sys_stat (Makefile.am): Use them.
45635         * lib/sys_stat.in.h (stat): Declare replacement.
45636         * lib/openat.c (fstatat): Deal with lstat and stat being function
45637         macros.
45638         * modules/openat (Depends-on): Add inline.
45639         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45640         * doc/posix-functions/stat.texi (stat): Likewise.
45641         * modules/stat-tests: New test.
45642         * tests/test-stat.c: Likewise.
45643
45644 2009-09-19  Jim Meyering  <meyering@redhat.com>
45645
45646         syntax-check: detect unnecessary inclusion of canonicalize.h
45647         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45648
45649 2009-09-19  Eric Blake  <ebb9@byu.net>
45650
45651         canonicalize-lgpl: adjust clients to use correct header
45652         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45653         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45654         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45655         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45656         * lib/progreloc.c (includes): Likewise.
45657
45658 2009-09-19  Jim Meyering  <meyering@redhat.com>
45659
45660         test-posixtm.c: correct a comment
45661         * tests/test-posixtm.c: Correct first-line comment.
45662         Spotted by Eric Blake.
45663
45664 2009-09-16  Jim Meyering  <meyering@redhat.com>
45665
45666         posixtm-tests: make T const-correct; add a test case
45667         * tests/test-posixtm.c (T): Declare const.
45668         Add a test for -(2^31+1).
45669         Remove useless can-succeed-only-in-2002 test.
45670
45671         posixtm-tests: adjust the sole failing test
45672         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45673         expected output matches what mktime now produces.  Cross-checked via
45674         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45675
45676         posixtm: move #ifdef'd tests into a new module
45677         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45678         * tests/test-posixtm.c: ... this new file.
45679         * modules/posixtm-tests: New module.
45680
45681 2009-09-19  Eric Blake  <ebb9@byu.net>
45682
45683         openat: simplify use of at-func.c
45684         * lib/at-func.c (includes): Include prerequisites here, to
45685         simplify requirements on client files.
45686         * lib/openat-priv.h: Add double-inclusion guard.
45687         * lib/faccessat.c (includes): Simplify.
45688         * lib/fchmodat.c (includes): Likewise.
45689         * lib/fchownat.c (includes): Likewise.
45690         * lib/mkdirat.c (includes): Likewise.
45691         * lib/mkfifoat.c (includes): Likewise.
45692         * lib/symlinkat.c (includes): Likewise.
45693
45694         openat: allow return of fd 0
45695         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45696         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45697         unistd-safer.
45698         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45699         <fcntl.h>; this module does not leak fds.
45700         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45701         must be allowed to return 0, leaving openat_safer to add the
45702         safety.
45703         (openat_permissive): Avoid writing to just-opened fd 2 if
45704         restoring the current directory fails.
45705         * lib/openat-die.c (openat_restore_fail): Add comment.
45706         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45707         (save_cwd): Guarantee safe fd, but without use of open_safer.
45708         * tests/test-openat.c: New test.
45709         * modules/openat-tests (Files, Makefile.am): Distribute and build
45710         new file.
45711
45712         relocatable-prog-wrapper: fix build
45713         * modules/relocatable-prog-wrapper (Files): Update name of
45714         canonicalize m4 file, broken on 2009-09-17.
45715         Reported by emad hajjar <aleppos@hotmail.com>.
45716
45717 2009-09-19  Bruno Haible  <bruno@clisp.org>
45718
45719         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45720         * lib/safe-alloc.c: Likewise.
45721         Reported by Ian Beckwith <ianb@erislabs.net>.
45722
45723 2009-09-18  Bruno Haible  <bruno@clisp.org>
45724
45725         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45726         Reported by <erobles@sensacd.com.mx>.
45727
45728 2009-09-17  Eric Blake  <ebb9@byu.net>
45729
45730         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45731         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45732         slashes when checking if last component is missing.
45733         * tests/test-canonicalize.c (main): Test this.
45734
45735         canonicalize, canonicalize-lgpl: honor // if distinct from /
45736         * modules/canonicalize (Files): Add double-slash-root.m4.
45737         * modules/canonicalize-lgpl (Files): Likewise.
45738         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45739         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45740         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45741         fallback definition.
45742         (canonicalize_filename_mode): Use it to protect //.
45743         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45744         (__realpath): Likewise.
45745         * tests/test-canonicalize.c (main): Test this.
45746         * tests/test-canonicalize-lgpl.c (main): Likewise.
45747         * modules/canonicalize-tests (Depends-on): Add same-inode.
45748         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45749
45750         canonicalize-lgpl: fix glibc bug with trailing slash
45751         * m4/canonicalize-lgpl.m4: Move contents...
45752         * m4/canonicalize.m4: ...here.
45753         (gl_CANONICALIZE_LGPL): Factor realpath check...
45754         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45755         glibc 2.3.5 bug, fixed 2005-04-27.
45756         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45757         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45758         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45759         * modules/canonicalize-lgpl (Files): Manage file rename.
45760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45761         * modules/stdlib (Makefile.am): Substitute witness.
45762         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45763         is needed.
45764         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45765         replacement is required.
45766         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45767         * doc/glibc-functions/canonicalize_file_name.texi
45768         (canonicalize_file_name): Document this.
45769         * doc/posix-functions/realpath.texi (realpath): Likewise.
45770
45771         canonicalize-lgpl: reject non-directory with trailing slash
45772         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45773         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45774         catches failures in glibc 2.3.5.
45775         * tests/test-canonicalize.c (main): Likewise.
45776
45777         canonicalize-lgpl: use native realpath if it works
45778         * lib/canonicalize-lgpl.c (realpath): Guard with
45779         FUNC_REALPATH_WORKS.
45780         * lib/stdlib.in.h (realpath): Make declaration optional based on
45781         HAVE_REALPATH.
45782         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45783         native realpath works.
45784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45785         * modules/stdlib (Makefile.am): Substitute witness.
45786
45787         canonicalize, canonicalize-lgpl: use <stdlib.h>
45788         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45789         (Include): Mention <stdlib.h>.
45790         (configure.ac): Mention functions we provide.
45791         * modules/canonicalize (configure.ac): Likewise.
45792         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45793         realpath if canonicalize_file_name is missing.
45794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45795         * modules/stdlib (Makefile.am): Substitute witnesses.
45796         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45797         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45798         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45799         * NEWS: Document this.
45800         * doc/glibc-functions/canonicalize_file_name.texi
45801         (canonicalize_file_name): Likewise.
45802         * doc/posix-functions/realpath.texi (realpath): Likewise.
45803         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45804
45805         test-canonicalize: consolidate into single C program
45806         * tests/test-canonicalize.sh: Delete; move setup into...
45807         * tests/test-canonicalize.c (main): ...the program, making it
45808         easier to run in debugger.  Add some tests.
45809         * modules/canonicalize-tests (Files): Remove unused file.
45810         (Depends-on): Add progname.
45811         (configure.ac, Makefile.am): Simplify.
45812
45813         test-canonicalize-lgpl: consolidate into single C program
45814         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45815         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45816         easier to run in debugger.  Add some tests.
45817         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45818         (configure.ac, Makefile.am): Simplify.
45819
45820         canonicalize: avoid resolvepath
45821         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45822         unnecessary checks.
45823         * lib/canonicalize.c (includes): Simplify.
45824         (canonicalize_file_name): Drop resolvepath implementation.
45825         * modules/canonicalize (Depends-on): Drop filenamecat.
45826
45827         canonicalize: don't lose errno
45828         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45829         over calls to free.
45830
45831         canonicalize: simplify errno handling
45832         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45833         assignment.
45834
45835         canonicalize, canonicalize-lgpl: update module dependencies
45836         * modules/canonicalize (Depends-on): Add extensions, lstat,
45837         pathmax, stdlib.
45838         (Files): Drop pathmax.h.
45839         (configure.ac): Adjust macro name.
45840         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45841         lstat, stdlib, sys_stat.
45842         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45843         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45844         extensions.
45845         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45846         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45847         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45848         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45849         declaration, if available.
45850         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45851         we can rely on the readlink module.
45852         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45853         (includes): Use <unistd.h> unconditionally.
45854
45855 2009-09-17  Eric Blake  <ebb9@byu.net>
45856
45857         maint: make Include sections of modules consistent
45858         * modules/alloca: Use only header name; no need to list #include.
45859         * modules/alloca-opt: Likewise.
45860         * modules/arpa_inet: Likewise.
45861         * modules/canon-host: Likewise.
45862         * modules/configmake: Likewise.
45863         * modules/dirent: Likewise.
45864         * modules/eealloc: Likewise.
45865         * modules/environ: Likewise.
45866         * modules/fchdir: Likewise.
45867         * modules/fcntl: Likewise.
45868         * modules/fcntl-h: Likewise.
45869         * modules/gethrxtime: Likewise.
45870         * modules/gettime: Likewise.
45871         * modules/ignore-value: Likewise.
45872         * modules/inet_ntop: Likewise.
45873         * modules/inet_pton: Likewise.
45874         * modules/inttypes: Likewise.
45875         * modules/isnand-nolibm: Likewise.
45876         * modules/isnanf-nolibm: Likewise.
45877         * modules/mbchar: Likewise.
45878         * modules/mbfile: Likewise.
45879         * modules/mbiter: Likewise.
45880         * modules/mbuiter: Likewise.
45881         * modules/netdb: Likewise.
45882         * modules/netinet_in: Likewise.
45883         * modules/nproc: Likewise.
45884         * modules/pagealign_alloc: Likewise.
45885         * modules/poll: Likewise.
45886         * modules/printf-frexp: Likewise.
45887         * modules/pthread: Likewise.
45888         * modules/putenv: Likewise.
45889         * modules/random_r: Likewise.
45890         * modules/relocatable-prog: Likewise.
45891         * modules/search: Likewise.
45892         * modules/select: Likewise.
45893         * modules/selinux-h: Likewise.
45894         * modules/settime: Likewise.
45895         * modules/signal: Likewise.
45896         * modules/size_max: Likewise.
45897         * modules/socklen: Likewise.
45898         * modules/ssize_t: Likewise.
45899         * modules/stdarg: Likewise.
45900         * modules/stdbool: Likewise.
45901         * modules/stddef: Likewise.
45902         * modules/stdint: Likewise.
45903         * modules/stdio: Likewise.
45904         * modules/stdlib: Likewise.
45905         * modules/string: Likewise.
45906         * modules/strings: Likewise.
45907         * modules/sys_file: Likewise.
45908         * modules/sys_ioctl: Likewise.
45909         * modules/sys_select: Likewise.
45910         * modules/sys_socket: Likewise.
45911         * modules/sys_stat: Likewise.
45912         * modules/sys_time: Likewise.
45913         * modules/sys_times: Likewise.
45914         * modules/sys_utsname: Likewise.
45915         * modules/sys_wait: Likewise.
45916         * modules/sysexits: Likewise.
45917         * modules/time: Likewise.
45918         * modules/times: Likewise.
45919         * modules/tmpfile: Likewise.
45920         * modules/trim: Likewise.
45921         * modules/unistd: Likewise.
45922         * modules/wchar: Likewise.
45923         * modules/wctype: Likewise.
45924
45925 2009-09-17  Bruno Haible  <bruno@clisp.org>
45926
45927         Make getdate.y compile on QNX and NetBSD 5 / i386.
45928         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45929         TIME_T_FITS_IN_LONG_INT.
45930         * lib/getdate.y (long_time_t): New type.
45931         (relative_time): Change type of 'seconds' field to long_time_t.
45932         (get_date): Update types of local variables. Check against overflow
45933         during conversion from long_time_t to time_t.
45934         Reported by Matt Kraai <kraai@ftbfs.org>
45935         and Hasso Tepper <hasso@netbsd.org>.
45936
45937 2009-09-17  Bruno Haible  <bruno@clisp.org>
45938
45939         * modules/COPYING: Update copyright years.
45940         * modules/README: Likeiwse.
45941         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45942         Reported by Ian Beckwith <ianb@erislabs.net>.
45943
45944 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45945
45946         * users.txt: Update references for gnuit package.
45947
45948 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45949
45950         * m4/getdelim.m4: Fix typo in copyright line.
45951
45952 2009-09-17  Bruno Haible  <bruno@clisp.org>
45953
45954         * lib/atoll.c: Use the standard header with GPL copyright.
45955         * lib/argz.in.h: Likewise.
45956         * lib/glob.c: Likewise.
45957         * lib/glob-libc.h: Likewise.
45958         * lib/random_r.c: Likewise.
45959         * lib/siglist.h: Likewise.
45960         * lib/strsignal.c: Likewise.
45961         Reported by Ian Beckwith <ianb@erislabs.net>.
45962
45963 2009-09-17  Eric Blake  <ebb9@byu.net>
45964
45965         rmdir: ensure correct dependency order
45966         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45967
45968 2009-09-17  Bruno Haible  <bruno@clisp.org>
45969
45970         Disable assertion that fails on NetBSD 5 / i386.
45971         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45972         Reported by Sam Steingold <sds@gnu.org>
45973         and Hasso Tepper <hasso@netbsd.org>.
45974
45975 2009-09-16  Eric Blake  <ebb9@byu.net>
45976
45977         unlinkdir: port to mingw
45978         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45979         on which no one can unlink a directory.
45980
45981         stdlib: sort witness names
45982         * modules/stdlib (Makefile.am): Sort replacements.
45983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45984         * lib/stdlib.in.h: Likewise.
45985
45986         parse-duration-tests: avoid link failure
45987         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45988         LIBINTL.
45989         Reported by Tom G. Christensen.
45990
45991         openat-tests: ensure unlinkat behaves like rmdir
45992         * tests/test-rmdir.c (main): Factor guts...
45993         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45994         * modules/rmdir-tests (Files): Ship new file.
45995         * modules/openat-tests: New test.
45996         * tests/test-unlinkat.c: Likewise.
45997
45998         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45999         * modules/rmdir-errno (Status, Notice): Now obsolete.
46000
46001         rmdir: work around cygwin 1.5.x and mingw bugs
46002         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46003         * lib/rmdir.c (rmdir): Work around it.
46004         * modules/rmdir (Status, Notice): No longer obsolete.
46005         (Files): Add dos.m4.
46006         (Depends-on): Add unistd.
46007         (configure.ac): Set witnesses.
46008         (License): Relax to LGPLv2+.
46009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46010         * modules/unistd (Makefile.am): Substitute witnesses.
46011         * lib/unistd.in.h (rmdir): Declare replacement.
46012         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46013         * modules/rmdir-tests: New tests.
46014         * tests/test-rmdir.c: Likewise.
46015
46016 2009-09-15  Eric Blake  <ebb9@byu.net>
46017
46018         fchdir: improve use of replacement functions
46019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46021         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46022         REPLACE_CLOSEDIR.
46023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46024         * modules/sys_stat (Makefile.am): Substitute correct witness.
46025         * modules/dirent (Makefile.am): Likewise.
46026         * modules/unistd (Makefile.am): Likewise.
46027         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46028         * lib/unistd.in.h (dup): Likewise.
46029         * lib/sys_stat.in.h (fstat): Likewise.
46030
46031         maint: ignore gnulib-tool temp files
46032         * .gitignore: Ignore files created during gnulib-tool --test.
46033
46034 2009-09-13  Jim Meyering  <meyering@redhat.com>
46035
46036         posixtm: don't reject a time that specify "60" as the number of seconds
46037         * lib/posixtm.c (posixtime): The code to reject invalid dates
46038         would also reject a time specified with the .60 suffix.
46039         But POSIX allows that, in order to accommodate leap seconds.
46040         So don't reject it.
46041         (main): Adjust tests accordingly.
46042         * modules/posixtm (Depends-on): Add stpcpy.
46043
46044 2009-09-11  Jim Meyering  <meyering@redhat.com>
46045
46046         announce-gen: include [$release_type] in emitted Subject:
46047         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46048         e.g., [stable] in the emitted Subject: line.
46049
46050 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46051
46052         Remove obsolete macros from several modules.
46053         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46054         obsolete Autoconf macros with their modern counterparts.
46055         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46056         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46057         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46058         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46059         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46060         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46062         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46063         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46064         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46065         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46066         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46067         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46068         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46069         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46070         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46071         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46072         * m4/time_r.m4 (gl_TIME_R): Likewise.
46073         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46074         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46075         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46076
46077         Fix copyright header in build-aux scripts.
46078         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46079         recommendation.
46080         * build-aux/ncftpput-ftp: Likewise.
46081         * build-aux/update-copyright: Likewise.
46082
46083 2009-09-09  Eric Blake  <ebb9@byu.net>
46084
46085         test-link: allow Linux choice of errno
46086         * tests/test-link.c (main): Relax test for alternate error.
46087
46088         strndup: fix improper m4 caching
46089         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46090         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46091         (gl_PREREQ_STRNDUP): Delete.
46092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46093         * modules/string (Makefile.am): Substitute it.
46094         * lib/string.in.h (strndup): Modernize prototype.
46095
46096         getcwd: port to mingw
46097         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46098         different from the POSIX assumptions made throughout the getcwd
46099         module; fortunately, the mingw getcwd does not need replacement.
46100         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46101         * modules/getcwd-tests: New test.
46102         * tests/test-getcwd.c: Likewise.
46103
46104         link: fix platform bugs
46105         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46106         * lib/link.c (link): Work around them.  Fix related mingw bug.
46107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46108         * modules/unistd (Makefile.am): Substitute it.
46109         * lib/unistd.in.h (link): Declare replacement.
46110         * doc/posix-functions/link.texi (link): Document this.
46111         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46112
46113         test-link: consolidate into single C program, test more cases
46114         * tests/test-link.sh: Delete.
46115         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46116         at least Cygwin and Solaris.
46117         * modules/link-tests (Files): Remove unused file.
46118         (Depends-on): Add errno, sys_stat.
46119         (Makefile.am): Simplify.
46120
46121 2009-09-08  Bruno Haible  <bruno@clisp.org>
46122
46123         Work around towlower, towupper bug on mingw.
46124         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46125         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46126         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46127         * doc/posix-functions/towupper.texi: Likewise.
46128         Reported by Eric Blake.
46129
46130 2009-09-08  Jim Meyering  <meyering@redhat.com>
46131
46132         build: don't try to run autoheader if we don't use it
46133         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46134         is not used in configure.ac.
46135
46136 2009-09-08  Eric Blake  <ebb9@byu.net>
46137
46138         euidaccess: fix compilation error
46139         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46140
46141         rawmemchr: relax license
46142         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46143         okay.
46144         Reported by Jim Meyering.
46145
46146         mkfifoat: new module
46147         * modules/mkfifoat: New file.
46148         * lib/mkfifoat.c: Likewise.
46149         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46150         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46151         * modules/sys_stat (Makefile.am): Use them.
46152         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46153         * MODULES.html.sh (File system functions): Mention module.
46154         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46155         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46156         * modules/mkfifoat-tests: New test.
46157         * tests/test-mkfifoat.c: Likewise.
46158
46159         strchrnul: relax license
46160         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46161         okay.
46162         Reported by Jim Meyering.
46163
46164 2009-09-08  Eric Blake  <ebb9@byu.net>
46165
46166         fstatat: fix compilation on Solaris
46167         * lib/fstatat.c (includes): Add fcntl.h.
46168         Reported by Pádraig Brady.
46169
46170 2009-09-07  Eric Blake  <ebb9@byu.net>
46171
46172         rename: modernize replacement
46173         * modules/rename (Depends-on): Add stdio.
46174         (configure.ac): Declare witness.
46175         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46176         stdio take care of replacement.
46177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46178         * modules/stdio (Makefile.am): Substitute them.
46179         * lib/stdio.in.h (rename): Declare replacement.
46180         * lib/rename.c (includes): Allow cross-compilation to non-windows
46181         machines.
46182         * doc/posix-functions/rename.texi (rename): Improve
46183         documentation.
46184
46185         stdio: sort witness names
46186         * modules/stdio (Makefile.am): Sort replacements.
46187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46188         * lib/stdio.in.h: Likewise.
46189
46190         getcwd: minor cleanups
46191         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46192         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46193
46194         openat: provide more convenience names
46195         * modules/faccessat (configure.ac): Add C witness.
46196         * lib/unistd.in.h (readlinkat): Fix typo.
46197         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46198         convenience wrappers.
46199         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46200         wrappers in syntax checks.
46201
46202 2009-09-06  Eric Blake  <ebb9@byu.net>
46203
46204         doc: fix comments in recent patches
46205         * lib/faccessat.c: Mention correct function.
46206         * lib/fchmodat.c: Likewise.
46207         * lib/fchownat.c: Likewise.
46208         * lib/symlinkat.c: Likewise.
46209         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46210         constants.
46211
46212         faccessat, symlinkat: continue cleanup of previous patch
46213         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46214         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46215         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46217         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46218         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46219         set.
46220
46221 2009-09-06  Bruno Haible  <bruno@clisp.org>
46222
46223         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46224         (fstatat): Declare if GNULIB_FSTATAT is set.
46225         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46226         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46227         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46228         * modules/fcntl-h (Files): Remove m4/openat.m4.
46229         * modules/sys_stat (Files): Remove m4/openat.m4.
46230         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46231         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46232         * modules/unistd (Files): Remove m4/openat.m4.
46233         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46234         GNULIB_OPENAT.
46235         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46236         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46237         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46238         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46239         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46240         gl_OPENAT_DEFAULTS.
46241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46242         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46243         Don't require gl_OPENAT_DEFAULTS.
46244         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46245         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46246         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46247         (gl_OPENAT_DEFAULTS): Remove macro.
46248
46249 2009-09-06  Bruno Haible  <bruno@clisp.org>
46250
46251         * modules/openat (configure.ac): Remove unneeded witness.
46252
46253 2009-09-06  Bruno Haible  <bruno@clisp.org>
46254
46255         Set errno to ENOSYS when a function is entirely unsupported.
46256         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46257         EOPNOTSUPP.
46258         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46259         * modules/chown (Depends-on): Remove errno.
46260
46261 2009-09-06  Bruno Haible  <bruno@clisp.org>
46262
46263         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46264
46265 2009-09-06  Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46268
46269 2009-09-06  Ben Pfaff  <blp@gnu.org>
46270             Bruno Haible  <bruno@clisp.org>
46271
46272         Work around a glibc bug in strtok_r.
46273         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46274         Undefine if UNDEFINE_STRTOK_R is set.
46275         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46277         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46278         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46279         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46280         UNDEFINE_STRTOK_R.
46281         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46282
46283 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46284
46285         exclude: minor fix
46286         * lib/exclude.c: Include wctype.h
46287
46288 2009-09-06  Akim Demaille  <demaille@gostai.com>
46289
46290         bootstrap: improve error message
46291         * build-aux/bootstrap (find_tool): Upon failure, report the list
46292         of candidates.
46293         Honor the initial value of the envvar.
46294
46295 2009-09-05  Eric Blake  <ebb9@byu.net>
46296
46297         symlinkat: new module
46298         * modules/symlinkat: New file.
46299         * lib/symlinkat.c: Likewise.
46300         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46302         * modules/unistd (Makefile.am): Use them.
46303         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46304         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46305         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46306         * MODULES.html.sh (File system functions): Mention module.
46307         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46308         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46309         * modules/symlinkat-tests: New test.
46310         * tests/test-symlinkat.c: Likewise.
46311
46312         test-openat-safer: add more checks
46313         * tests/test-openat-safer.c (main): Check more code paths.
46314
46315 2009-09-05  Jim Meyering  <meyering@redhat.com>
46316
46317         syntax-check: detect unnecessary inclusion of openat.h
46318         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46319
46320 2009-09-05  Bruno Haible  <bruno@clisp.org>
46321
46322         Support towlower, towupper.
46323         * doc/posix-functions/towlower.texi: Mention module wctype.
46324         * doc/posix-functions/towupper.texi: Likewise.
46325         * lib/wctype.in.h (towlower, towupper): New functions.
46326         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46327         (ASSERT): New macro.
46328         (e): New variable.
46329         (main): Test also towlower, towupper. Test WEOF argument.
46330         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46331
46332 2009-09-05  Bruno Haible  <bruno@clisp.org>
46333
46334         Fix conversion behaviour when the input is invalid.
46335         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46336         mark occurring in first pass of indirect conversion.
46337         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46338         input.
46339         Found by clang's static analyzer.
46340
46341 2009-09-05  Bruno Haible  <bruno@clisp.org>
46342
46343         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46344         where direct conversion is possible.
46345
46346 2009-09-04  Eric Blake  <ebb9@byu.net>
46347
46348         openat: fail with ENOENT on empty name
46349         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46350         buffer.
46351
46352         link-follow: fix logic bug in prior patch
46353         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46354         reversed sense of yes and no in prior patch.  Avoid confusing
46355         compilation failure with desired semantics.
46356
46357         link-follow: accommodate mingw and cross-compilation
46358         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46359         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46360         cross-compilation results to -1, to make linkat easier to
46361         implement when cross-compiling.  Trivially support mingw.
46362         * modules/link-follow (configure.ac): Call new name.
46363         * NEWS: Mention this.
46364
46365 2009-09-03  Eric Blake  <ebb9@byu.net>
46366
46367         faccessat: compile replacement
46368         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46369         needed.
46370
46371         fts: fix compilation error
46372         * lib/fts.c (includes): Re-add "openat.h", for
46373         openat_needs_fchdir.
46374
46375         faccessat: new module
46376         * modules/faccessat: New file.
46377         * lib/faccessat.c: Likewise.
46378         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46380         * modules/unistd (Makefile.am): Use it.
46381         * lib/unistd.in.h (faccessat): Declare it.
46382         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46383         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46384         * MODULES.html.sh (File system functions): Mention it.
46385         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46386         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46387
46388         euidaccess: prefer POSIX over non-standard implementation
46389         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46390         * lib/euidaccess.c (euidaccess): Use it if available.
46391
46392         openat: make template easier to use
46393         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46394         AT_FUNC_F2 to be undefined.
46395         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46396         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46397         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46398         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46399         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46400         Likewise.
46401         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46402         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46403         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46404         Likewise.
46405
46406         openat: declare in POSIX headers
46407         * NEWS: Mention this.
46408         * modules/openat (configure.ac): Declare witnesses.
46409         (Depends-on): Add fcntl-h, sys_stat, unistd.
46410         (Include): Mention correct headers.
46411         * modules/fcntl-h (Depends-on): Add link-warning.
46412         (Files): Add openat.m4.
46413         (Makefile.am): Substitute witnesses.
46414         * modules/sys_stat (Files, Makefile.am): Likewise.
46415         * modules/unistd (Files, Makefile.am): Likewise.
46416         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46417         (gl_OPENAT_DEFAULTS): New macro.
46418         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46420         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46421         (SYS_STAT_H): Remove unused variable.
46422         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46423         * lib/fcntl--.h (includes): Remove unneeded header.
46424         * lib/openat-safer.c (includes): Likewise.
46425         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46426         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46427         appropriate headers.
46428         (__OPENAT_PREFIX): Delete.
46429         * lib/fcntl.in.h (openat): Provide declaration.
46430         (AT_FDCWD): Fix Solaris bug.
46431         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46432         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46433         * lib/fchmodat.c (includes):  Adjust to find declaration.
46434         * lib/fchownat.c (includes): Likewise.
46435         * lib/mkdirat.c (includes): Likewise.
46436         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46437         still visible.
46438
46439 2009-09-02  Eric Blake  <ebb9@byu.net>
46440
46441         errno: use consistently
46442         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46443         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46444         * lib/canonicalize.c (ELOOP): Likewise.
46445         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46446         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46447         * lib/lchown.c (EOPNOTSUPP): Likewise.
46448         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46449         * lib/savewd.c (ESTALE): Likewise.
46450         * lib/settime.c (ENOSYS): Likewise.
46451         * lib/utimens.c (ENOSYS): Likewise.
46452         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46453         * lib/chdir-safer.c (ELOOP): Likewise.
46454         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46455         * modules/c-stack (Depends-on): Add errno.
46456         * modules/canonicalize (Depends-on): Likewise.
46457         * modules/chdir-safer (Depends-on): Likewise.
46458         * modules/fdopendir (Depends-on): Likewise.
46459         * modules/inet_ntop (Depends-on): Likewise.
46460         * modules/inet_pton (Depends-on): Likewise.
46461         * modules/lchown (Depends-on): Likewise.
46462         * modules/openat (Depends-on): Likewise.
46463         * modules/savewd (Depends-on): Likewise.
46464         * modules/settime (Depends-on): Likewise.
46465         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46466
46467         fts: avoid leaking fds
46468         * modules/fts (Depends-on): Add cloexec.
46469         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46470         flag.
46471
46472         fts: make directory fds more robust
46473         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46474         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46475
46476         backupfile, chdir-long, fts, savedir: make safer
46477         * lib/backupfile.c (includes): Use "dirent--.h", since
46478         numbered_backup can write to stderr during readdir.
46479         * lib/savedir.c (includes): Likewise.
46480         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46481         emulation can write to stderr on failure.
46482         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46483         * lib/getcwd.c: Document why opendir_safer is unused.
46484         * lib/glob.c: Likewise.
46485         * lib/scandir.c: Likewise.
46486         * lib/openat-proc.c: Likewise, for open_safer.
46487         * modules/backupfile (Depends-on): Add dirent-safer.
46488         * modules/savedir (Depends-on): Likewise.
46489         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46490         * modules/chdir-long (Depends-on): Add openat-safer.
46491
46492         openat-safer: new module
46493         * modules/openat-safer: New file.
46494         * lib/openat-safer.c: Likewise.
46495         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46496         * lib/fcntl-safer.h (openat_safer): Declare.
46497         * lib/fcntl--.h (openat): Override.
46498         * MODULES.html.sh (File descriptor based I/O): Mention it.
46499         * lib/openat.h: Add double-inclusion guards.
46500         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46501         "fcntl--.h", so we can implement openat.
46502         * modules/openat-safer-tests: New test.
46503         * tests/test-openat-safer.c: New file.
46504
46505         dirent-safer: new module
46506         * modules/dirent-safer: New file.
46507         * lib/dirent--.h: Likewise.
46508         * lib/dirent-safer.h: Likewise.
46509         * lib/opendir-safer.c: Likewise.
46510         * m4/dirent-safer.m4: Likewise.
46511         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46512         * modules/dirent-safer-tests: New test.
46513         * tests/test-dirent-safer.c: New file.
46514         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46515
46516         fdopendir: optimize on mingw
46517         * lib/unistd.in.h (_gl_directory_name): New prototype.
46518         * lib/fchdir.c (_gl_directory_name): Implement it.
46519         (fchdir): Use it to simplify implementation.
46520         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46521         fchdir, when available, to avoid calling [f]chdir().
46522
46523         fdopendir: split into its own module
46524         * lib/openat.c (fdopendir): Move...
46525         * lib/fdopendir.c: ...into new file.
46526         * modules/fdopendir: New module.
46527         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46528         * modules/openat (Depends-on): Add fdopendir.
46529         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46530         fdopendir here.
46531         * modules/savedir (Depends-on): Only need fdopendir, not full
46532         openat.
46533         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46534         * lib/openat.h (fdopendir): Drop prototype.
46535         * lib/dirent.in.h (fdopendir): Provide prototype.
46536         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46537         * modules/dirent (Makefile.am): Substitute them.
46538         * MODULES.html.sh (File system functions): Mention it.
46539         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46540         * modules/fdopendir-tests: New file.
46541         * tests/test-fdopendir.c: Likewise.
46542
46543         fchdir: use more consistent macro convention
46544         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46545         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46546         REPLACE_FCHDIR, rather than relying on config.h macros.
46547         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46548         inside a single make-time REPLACE_FCHDIR block, rather than using
46549         the config.h FCHDIR_REPLACEMENT.
46550         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46551         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46552         Manage fstat replacement.
46553         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46554         REPLACE_FCHDIR.
46555         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46556         (Makefile.am): Substitute REPLACE_FCHDIR.
46557         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46558         FCHDIR_REPLACEMENT.
46559         * lib/dup-safer.c (dup_safer): Likewise.
46560         * lib/dup2.c (rpl_dup2): Likewise.
46561         * lib/dup3.c (rpl_dup3): Likewise.
46562         * lib/open.c (rpl_open): Likewise.
46563
46564         fchdir: simplify error handling, and support dup3
46565         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46566         stdbool, malloc-posix, realloc-posix.
46567         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46568         (ensure_dirs_slot): Return false on allocation failure.
46569         (rpl_dup2): Delete.
46570         (_gl_register_dup): New function.
46571         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46572         (_gl_register_fd): Close fd on allocation failure.
46573         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46574         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46575         prototype.
46576         (rpl_dup2_fchdir): Delete prototype.
46577         * lib/open.c (open): Update caller.
46578         * lib/dup2.c (dup2): Track fchdir metadata.
46579         * lib/dup3.c (dup3): Likewise.
46580         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46582
46583 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46584
46585         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46586         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46587         don't pass arguments to AC_OUTPUT.
46588
46589 2009-09-02  Bruno Haible  <bruno@clisp.org>
46590
46591         * modules/mkdtemp (License): Relicense under LGPLv2+.
46592         Reported by Paolo Bonzini.
46593
46594 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46595
46596         Replace uses of obsolete autoconf macros in Jim's modules.
46597         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46598         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46599         can evoke a warning from autoconf when run with -Wobsolete
46600         enabled.  They were declared obsolete for good reasons (see
46601         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46602         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46603         should not continue using the deprecated macros.
46604         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46605         obsolete Autoconf macros with modern counterparts.
46606         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46607         * m4/dos.m4 (gl_AC_DOS): Likewise.
46608         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46609         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46610         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46611         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46612         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46613         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46614         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46615         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46616         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46617         Likewise.
46618         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46619         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46620         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46621         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46622         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46623         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46624
46625 2009-09-01  Eric Blake  <ebb9@byu.net>
46626
46627         fchdir: fix off-by-one bug in previous patch
46628         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46629         (_gl_unregister_fd): Delete useless if.
46630
46631 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46632
46633         maint.mk: sort the list of syntax-check rules
46634         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46635         easier to get a sense of progress when the rules are run sequentially
46636         and take a long time.
46637
46638 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46639
46640         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46641         * modules/netinet_in: Likewise.
46642         * modules/sys_file: Likewise.
46643         * modules/sys_ioctl: Likewise.
46644         * modules/sys_select: Likewise.
46645         * modules/sys_socket: Likewise.
46646         * modules/sys_stat: Likewise.
46647         * modules/sys_time: Likewise.
46648         * modules/sys_times: Likewise.
46649         * modules/sys_utsname: Likewise.
46650         * modules/sys_wait: Likewise.
46651
46652 2009-09-01  Jim Meyering  <meyering@redhat.com>
46653
46654         fts: help ensure that return values are not ignored
46655         * lib/fts_.h (__GNUC_PREREQ): Define.
46656         (__attribute_warn_unused_result__): Define.
46657         (fts_children, fts_close, fts_open, fts_read): Declare with
46658         __attribute_warn_unused_result__.
46659
46660         fts: fts_close now fails also when closing a dir file descriptor fails
46661         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46662         and propagate to caller, along with errno.
46663
46664         announce-gen: correct formatting in --help output
46665         * build-aux/announce-gen (usage): Move the one-line description in
46666         --help output "up", to where it belongs, just after Usage:.
46667
46668 2009-08-31  Eric Blake  <ebb9@byu.net>
46669
46670         fchdir: port to mingw
46671         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46672         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46673         opened, then use a substitute.
46674         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46675         replacement.
46676         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46677         (_gl_register_fd): No need to check stat if open already filters
46678         all directories.
46679         (fchdir): Fix error condition to match POSIX.
46680         * modules/fchdir (Depends-on): Add sys_stat.
46681         * doc/posix-functions/open.texi (open): Document the limitation.
46682         * modules/fchdir-tests: New file.
46683         * tests/test-fchdir.c: Likewise.
46684
46685         canonicalize: allow cross-testing from cygwin to mingw
46686         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46687         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46688         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46689         Likewise.
46690         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46691         target does not support symlinks.
46692         * tests/test-canonicalize-lgpl.sh: Likewise.
46693
46694         chown: avoid compilation warning on mingw
46695         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46696         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46697         mingw.
46698         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46699         * modules/chown (Depends-on): Add errno.
46700
46701 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46702
46703         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46704         command.
46705
46706 2009-08-31  Jim Meyering  <meyering@redhat.com>
46707
46708         canonicalize: remove useless initialization
46709         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46710         initialization of local, "end".
46711
46712 2009-08-30  Bruno Haible  <bruno@clisp.org>
46713
46714         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46715         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46716         ENOSYS.
46717
46718 2009-08-30  Bruno Haible  <bruno@clisp.org>
46719
46720         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46721         /usr/xpg4/bin/tr when it exists.
46722         * tests/test-pipe-filter-gi1.sh: Likewise.
46723
46724 2009-08-30  Bruno Haible  <bruno@clisp.org>
46725
46726         Work around deficient /usr/bin/id program on Solaris.
46727         * tests/test-file-has-acl.sh (ID): New variable.
46728         * tests/test-set-mode-acl.sh (ID): Likewise.
46729         * tests/test-copy-acl.sh (ID): Likewise.
46730         * tests/test-copy-file.sh (ID): Likewise.
46731
46732 2009-08-30  Bruno Haible  <bruno@clisp.org>
46733
46734         New module 'xstriconveh'.
46735         * lib/xstriconveh.h: New file.
46736         * lib/xstriconveh.c: New file.
46737         * modules/xstriconveh: New file.
46738
46739 2009-08-30  Bruno Haible  <bruno@clisp.org>
46740
46741         Make it easier to use mem_cd_iconveh.
46742         * lib/striconveh.h (iconveh_t): New type.
46743         (iconveh_open, iconveh_close): New declarations.
46744         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46745         with a single 'const iconveh_t *' argument.
46746         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46747         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46748         with a single 'const iconveh_t *' argument.
46749         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46750         * tests/test-striconveh.c (main): Update.
46751         * NEWS: Mention the change.
46752
46753 2009-08-30  Bruno Haible  <bruno@clisp.org>
46754
46755         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46756         problem.
46757
46758 2009-08-30  Bruno Haible  <bruno@clisp.org>
46759
46760         Work around iconv_open problem on Solaris.
46761         * lib/iconv_open-solaris.gperf: New file.
46762         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46763         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46764         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46765         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46766         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46767         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46768
46769 2009-08-29  Jim Meyering  <meyering@redhat.com>
46770
46771         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46772         * top/maint.mk (cvs-check): Remove target; it was just an alias
46773         to the better-named vc-diff-check.
46774         (maintainer-distcheck): Remove rule.  It was used only from
46775         the (alpha/beta/major) target, and all of its commands but one
46776         were coreutils-specific.
46777         (vc-dist): Remove rule.
46778         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46779         Run vc-diff-check, not vc-dist.
46780         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46781
46782 2009-08-27  Bruno Haible  <bruno@clisp.org>
46783
46784         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46785         of 0.
46786
46787 2009-08-27  Bruno Haible  <bruno@clisp.org>
46788
46789         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46790         compilers.
46791         * doc/func.texi: Document the SunPRO C bug.
46792
46793 2009-08-27  Bruno Haible  <bruno@clisp.org>
46794
46795         Fix link error on Solaris.
46796         * tests/test-parse-duration.c (xstrdup): Remove function.
46797
46798 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46799
46800         ignore-value: handle pointer types, too
46801         * lib/ignore-value.h (__attribute__): Remove definition.
46802         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46803         of a more concise and more-often effective "(void) i" statement.
46804         (ignore_ptr): New function to suppress warnings from functions that
46805         return pointers, and to make it explicit that one function doesn't
46806         handle all cases.
46807
46808 2009-08-25  Bruno Haible  <bruno@clisp.org>
46809
46810         dup2: work around a Linux bug.
46811         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46812         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46813         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46814         Reported by Simon Josefsson.
46815
46816 2009-08-25  Jim Meyering  <meyering@redhat.com>
46817
46818         libguestfs uses gnulib
46819         * users.txt: Add libguestfs.
46820
46821 2009-08-24  Eric Blake  <ebb9@byu.net>
46822
46823         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46824         * lib/pipe2.c (includes): Add binary-io.h.
46825         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46826
46827 2009-08-24  Bruno Haible  <bruno@clisp.org>
46828
46829         Tolerate declared but missing accept4 syscall.
46830         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46831         available.
46832         * lib/sys_socket.in.h (accept4): If the function is already present,
46833         override it.
46834         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46835         * modules/accept4 (Makefile.am): Compile accept4.c always.
46836         Reported by Paolo Bonzini and Eric Blake.
46837
46838 2009-08-23  Bruno Haible  <bruno@clisp.org>
46839
46840         New module 'accept4'.
46841         * lib/sys_socket.in.h (accept4): New declaration.
46842         * lib/accept4.c: New file.
46843         * m4/accept4.m4: New file.
46844         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46845         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46846         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46847         HAVE_ACCEPT4.
46848         * modules/accept4: New file.
46849         * doc/glibc-functions/accept4.texi: Mention the new module.
46850
46851 2009-08-24  Jim Meyering  <meyering@redhat.com>
46852
46853         progname: also set global program_invocation_name, when possible
46854         Before this change, a libtool-enabled program that calls glibc's
46855         error function would report the program name as
46856         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46857         * modules/progname (configure.ac): Check for a declaration of
46858         program_invocation_name.
46859         * lib/progname.c:  Include <errno.h>.
46860         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46861         Set program_invocation_name.
46862
46863 2009-08-23  Bruno Haible  <bruno@clisp.org>
46864
46865         * lib/dup3.c: Include <string.h>.
46866
46867 2009-08-23  Bruno Haible  <bruno@clisp.org>
46868
46869         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46870         * lib/pipe2.c (pipe2): Likewise.
46871         Suggested by Eric Blake.
46872
46873 2009-08-23  Bruno Haible  <bruno@clisp.org>
46874
46875         Tolerate declared but missing dup3 syscall.
46876         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46877         * lib/unistd.in.h (dup3): If the function is already present,
46878         override it.
46879         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46880         * modules/dup3 (Makefile.am): Compile dup3.c always.
46881         Reported by Paolo Bonzini.
46882
46883 2009-08-23  Bruno Haible  <bruno@clisp.org>
46884
46885         Tolerate declared but missing pipe2 syscall.
46886         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46887         available.
46888         * lib/unistd.in.h (pipe2): If the function is already present,
46889         override it.
46890         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46891         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46892         Reported by Paolo Bonzini.
46893
46894 2009-08-23  Bruno Haible  <bruno@clisp.org>
46895
46896         * lib/pipe2.c (pipe2): Move #ifs inside function.
46897
46898 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46899
46900         quotearg: document limitations of quote_these_too
46901         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46902         those limitations are created.
46903         * lib/quotearg.h (set_char_quoting): Document that digits and
46904         letters that are special after backslash are not permitted.
46905         (quotearg_char): Cross-reference set_char_quoting documentation.
46906
46907 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46908
46909         quotearg: implement custom_quoting_style
46910         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46911         right_quote fields.
46912         (set_custom_quoting): New public function.
46913         (quotearg_buffer_restyled): Add left_quote and right_quote
46914         arguments, handle them very much like locale quoting, and update
46915         all uses.
46916         (quotearg_n_custom): New public function.
46917         (quotearg_n_custom_mem): New public function.
46918         (quotearg_custom): New public function.
46919         (quotearg_custom_mem): New public function.
46920         * lib/quotearg.h: Prototype and document new public functions.
46921         (enum quoting_style): For escape_quoting_style and
46922         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46923         ignored even though they're otherwise like c_quoting_style.
46924         Add custom_quoting_style member and document with comparison to
46925         clocale_quoting_style.
46926         * tests/test-quotearg.c (custom_quotes): New array.
46927         (custom_results): New array.
46928         (main): Extend to test custom quoting.
46929
46930 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46931
46932         quotearg: fix right quote escaping when it's in quote_these_too
46933         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46934         quote, be sure to prepend only one backslash.
46935         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46936         (main): Test it.
46937
46938 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46939
46940         quotearg-tests: test escaping of embedded locale quotes
46941         * tests/test-quotearg.c (struct result_strings): Add member for
46942         new input.
46943         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46944         (inputs): Add new input.
46945         (results_g): Add expected results.
46946         (flag_results): Likewise.
46947         (locale_results): Likewise.
46948         (compare_strings): Check those.
46949
46950 2009-08-23  Bruno Haible  <bruno@clisp.org>
46951
46952         Tests for module 'dup3'.
46953         * modules/dup3-tests: New file.
46954         * tests/test-dup3.c: New file.
46955
46956         New module 'dup3'.
46957         * lib/unistd.in.h (dup3): New declaration.
46958         * lib/dup3.c: New file.
46959         * m4/dup3.m4: New file.
46960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46961         HAVE_DUP3.
46962         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46963         * modules/dup3: New file.
46964         * doc/glibc-functions/dup3.texi: Mention the new module.
46965
46966 2009-08-23  Bruno Haible  <bruno@clisp.org>
46967
46968         Tweak the dup2 test.
46969         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46970         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46971         the test file is still empty. Fix argument order of lseek.
46972
46973 2009-08-23  Bruno Haible  <bruno@clisp.org>
46974
46975         Avoid test link errors when the modules getopt-gnu, gettext are used.
46976         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46978
46979 2009-08-23  Bruno Haible  <bruno@clisp.org>
46980
46981         Fix getdtablesize() on mingw.
46982         * lib/getdtablesize.c (getdtablesize): Implement differently.
46983         * lib/unistd.in.h (getdtablesize): Improve comment.
46984
46985 2009-08-23  Bruno Haible  <bruno@clisp.org>
46986
46987         New module 'mkostemp'.
46988         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46989         * lib/stdlib.in.h (mksotemp): New declaration.
46990         * lib/mkostemp.c: New file, from glibc with modifications.
46991         * lib/tempname.h (GT_FILE): Remove outdated comment.
46992         (gen_tempname): Add flags argument.
46993         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46994         (__GT_FILE): Map to 1.
46995         (small_open, large_open): Remove macros.
46996         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46997         * lib/mkstemp.c (mkstemp): Update.
46998         * lib/mkdtemp.c (mkdtemp): Likewise.
46999         * m4/mkostemp.m4: New file.
47000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47001         HAVE_MKOSTEMP.
47002         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47003         HAVE_MKOSTEMP.
47004         * modules/mkostemp: New file, based on modules/mkstemp.
47005         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47006         * NEWS: Mention the change.
47007
47008 2009-08-23  Bruno Haible  <bruno@clisp.org>
47009
47010         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47011         Reported by Eric Blake.
47012
47013 2009-08-23  Bruno Haible  <bruno@clisp.org>
47014
47015         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47016         Reported by Eric Blake.
47017
47018 2009-08-23  Bruno Haible  <bruno@clisp.org>
47019
47020         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47021         * modules/pipe2 (Depends-on): Likewise.
47022
47023 2009-08-23  Eric Blake  <ebb9@byu.net>
47024
47025         fcntl-h: add O_TTY_INIT support
47026         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47027         * tests/test-fcntl-h.c (o): Test it.
47028         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47029
47030         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47031         * modules/fcntl: Move <fcntl.h> header replacement...
47032         * modules/fcntl-h: ...to new name, so as not to collide with
47033         like-named function.
47034         * tests/test-fcntl.c: Rename...
47035         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47036         * modules/fcntl-tests: Rename...
47037         * modules/fcntl-h-tests: ...to this.  Update test file name.
47038         * modules/chdir-long (Depends-on): Update clients.
47039         * modules/chdir-safer (Depends-on): Likewise.
47040         * modules/fcntl-safer (Depends-on): Likewise.
47041         * modules/fts (Depends-on): Likewise.
47042         * modules/mkancesdirs (Depends-on): Likewise.
47043         * modules/mkdir-p (Depends-on): Likewise.
47044         * modules/open (Depends-on): Likewise.
47045         * modules/savewd (Depends-on): Likewise.
47046         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47047         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47048
47049 2009-08-22  Bruno Haible  <bruno@clisp.org>
47050
47051         * modules/binary-io (License): Relicense under LGPL.
47052         * modules/pipe2 (License): Likewise.
47053
47054 2009-08-22  Bruno Haible  <bruno@clisp.org>
47055
47056         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47057         return value.
47058         * lib/pipe-filter-gi.c (filter_init): Likewise.
47059         Reported by Eric Blake.
47060
47061 2009-08-22  Bruno Haible  <bruno@clisp.org>
47062
47063         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47064         * modules/pipe (Depends-on): Add pipe2.
47065
47066 2009-08-22  Bruno Haible  <bruno@clisp.org>
47067
47068         Tests for module 'pipe2'.
47069         * modules/pipe2-tests: New file.
47070         * tests/test-pipe2.c: New file.
47071
47072         New module 'pipe2'.
47073         * lib/unistd.in.h (pipe2): New declaration.
47074         * lib/pipe2.c: New file.
47075         * m4/pipe2.m4: New file.
47076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47077         HAVE_PIPE2.
47078         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47079         * modules/pipe2: New file.
47080         * doc/glibc-functions/pipe2.texi: Mention the new module.
47081
47082 2009-08-22  Bruno Haible  <bruno@clisp.org>
47083
47084         Reference some new glibc functions.
47085         * doc/glibc-functions/accept4.texi: New file.
47086         * doc/glibc-functions/dup3.texi: New file.
47087         * doc/glibc-functions/mkostemp.texi: New file.
47088         * doc/glibc-functions/pipe2.texi: New file.
47089         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47090         (Glibc sys/socket.h): Refer to accept4.
47091         (Glibc unistd.h): Refer to dup3, pipe2.
47092         Reported by Eric Blake.
47093
47094 2009-08-22  Jim Meyering  <meyering@redhat.com>
47095             Bruno Haible  <bruno@clisp.org>
47096
47097         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47098         This makes it so packages using automake-1.11's silent-rules option
47099         can print e.g., a single "GEN    configmake.h" line, rather than
47100         the 30+ statements that perform the job.  If you want to see the
47101         actual commands, you can still run "make V=1".
47102         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47103         so that make output is abbreviated when those variables are defined
47104         appropriately.
47105         * modules/argz: Likewise.
47106         * modules/arpa_inet: Likewise.
47107         * modules/byteswap: Likewise.
47108         * modules/configmake: Likewise.
47109         * modules/dirent: Likewise.
47110         * modules/errno: Likewise.
47111         * modules/fcntl: Likewise.
47112         * modules/float: Likewise.
47113         * modules/fnmatch: Likewise.
47114         * modules/getopt-posix: Likewise.
47115         * modules/glob: Likewise.
47116         * modules/iconv_open: Likewise.
47117         * modules/inttypes: Likewise.
47118         * modules/localcharset: Likewise.
47119         * modules/locale: Likewise.
47120         * modules/math: Likewise.
47121         * modules/netdb: Likewise.
47122         * modules/netinet_in: Likewise.
47123         * modules/poll: Likewise.
47124         * modules/posix_spawnp-tests: Likewise.
47125         * modules/sched: Likewise.
47126         * modules/search: Likewise.
47127         * modules/selinux-h: Likewise.
47128         * modules/signal: Likewise.
47129         * modules/spawn: Likewise.
47130         * modules/stdarg: Likewise.
47131         * modules/stdbool: Likewise.
47132         * modules/stddef: Likewise.
47133         * modules/stdint: Likewise.
47134         * modules/stdio: Likewise.
47135         * modules/stdlib: Likewise.
47136         * modules/string: Likewise.
47137         * modules/strings: Likewise.
47138         * modules/sys_file: Likewise.
47139         * modules/sys_ioctl: Likewise.
47140         * modules/sys_select: Likewise.
47141         * modules/sys_socket: Likewise.
47142         * modules/sys_stat: Likewise.
47143         * modules/sys_time: Likewise.
47144         * modules/sys_times: Likewise.
47145         * modules/sys_utsname: Likewise.
47146         * modules/sys_wait: Likewise.
47147         * modules/sysexits: Likewise.
47148         * modules/time: Likewise.
47149         * modules/unistd: Likewise.
47150         * modules/wchar: Likewise.
47151         * modules/wctype: Likewise.
47152
47153 2009-08-22  Jim Meyering  <meyering@redhat.com>
47154
47155         announce-gen: detect write failure
47156         * build-aux/announce-gen: Add Coda at end.
47157         Remove equivalent-but-more-verbose block at top.
47158
47159 2009-08-19  Akim Demaille  <demaille@gostai.com>
47160
47161         bootstrap: --help to stdout.
47162         * bootstrap (usage): Don't send --help to stderr.
47163         Use a here doc instead of a long string.
47164
47165 2009-08-21  Eric Blake  <ebb9@byu.net>
47166
47167         test-popen-safer: split from test-popen
47168         * tests/test-popen.c (main): Move...
47169         * tests/test-popen.h: ...into new file.
47170         * tests/test-popen-safer2.c: New file.
47171         * modules/popen-tests (Files): Add test-popen.h.
47172         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47173         Suggested by Bruno Haible.
47174
47175         test-fcntl-safer: split from test-open
47176         * tests/test-open.c (main): Move...
47177         * tests/test-open.h: ...into new file.
47178         * tests/test-fcntl-safer.c: New file.
47179         * modules/open-tests (Files): Add test-open.h.
47180         * modules/fcntl-safer-tests: New file.
47181         Suggested by Bruno Haible.
47182
47183         test-fopen-safer: split from test-fopen
47184         * tests/test-fopen.c (main): Move...
47185         * tests/test-fopen.h: ...into new file.
47186         * tests/test-fopen-safer.c: New file.
47187         * modules/fopen-tests (Files): Add test-fopen.h.
47188         * modules/fopen-safer-tests: New file.
47189         Suggested by Bruno Haible.
47190
47191 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47192
47193         popen-safer: test O_CLOEXEC at run-time.
47194         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47195
47196 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47197
47198         fcntl: move more flags to the header
47199         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47200         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47201         * lib/fcntl.in.h: Do both things here.
47202
47203 2009-08-21  Jim Meyering  <meyering@redhat.com>
47204
47205         consistently remove $@-t before redirecting to it
47206         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47207         * modules/alloca-opt: Likewise.
47208         * modules/byteswap: Likewise.
47209         * modules/fnmatch: Likewise.
47210         * modules/getopt-posix: Likewise.
47211         * modules/glob: Likewise.
47212         * modules/poll: Likewise.
47213         * modules/posix_spawnp-tests: Likewise.
47214         * modules/sys_socket: Likewise.
47215         * modules/sysexits: Likewise.
47216
47217 2009-08-21  Eric Blake  <ebb9@byu.net>
47218
47219         popen: simplify access to original popen
47220         * lib/popen.c (rpl_popen): No need to worry about popen being a
47221         macro.
47222         Reported by Bruno Haible.
47223
47224 2009-08-20  Eric Blake  <ebb9@byu.net>
47225
47226         build: avoid some compiler warnings
47227         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47228         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47229         type.
47230         (new_exclude_segment, excluded_file_pattern_p)
47231         (excluded_file_name_p): Reduce scope.
47232         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47233         old-style declaration.
47234
47235 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47236
47237         * tests/test-exclude1.sh: Handle Windows EOL.
47238         * tests/test-exclude2.sh: Likewise.
47239         * tests/test-exclude3.sh: Likewise.
47240         * tests/test-exclude4.sh: Likewise.
47241         * tests/test-exclude5.sh: Likewise.
47242         * tests/test-exclude6.sh: Likewise.
47243         * tests/test-exclude7.sh: Likewise.
47244
47245 2009-08-19  Akim Demaille  <demaille@gostai.com>
47246
47247         bootstrap: find sha1sum when named gsha1sum.
47248         * bootstrap (find_tool): New.
47249         ($SHA1SUM): New.
47250         Use it.
47251
47252 2009-08-20  Jim Meyering  <meyering@redhat.com>
47253
47254         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47255         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47256         expression that converts "." in a file name to "\." in the resulting
47257         regexp.  Start with a dummy statement, so that prior shell variable
47258         definitions are expanded portably.  Reported by Simon Josefsson.
47259
47260 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47261
47262         Fix polling for writeability of a screen buffer.
47263         * lib/poll.c: Distinguish input and screen buffers for the
47264         Win32 implementation.
47265         * lib/select.c: Likewise.
47266
47267 2009-08-19  Eric Blake  <ebb9@byu.net>
47268
47269         popen-safer: prevent popen from clobbering std descriptors
47270         * modules/popen-safer: New file.
47271         * lib/popen-safer.c: Likewise.
47272         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47273         * lib/stdio--.h (popen): Provide override.
47274         * lib/stdio-safer.h (popen_safer): Provide declaration.
47275         * tests/test-popen.c (includes): Partially test this.
47276         * modules/popen-safer-tests: New file, for more tests.
47277         * tests/test-popen-safer.c: Likewise.
47278         * MODULES.html.sh (file stream based Input/Output): Mention it.
47279
47280         tests: test some of the *-safer modules
47281         * modules/fopen-safer (Depends-on): Add fopen.
47282         * modules/fcntl-safer (Depends-on): Add fcntl.
47283         * modules/stdlib-safer (Depends-on): Add stdlib.
47284         (configure.ac): Set indicator.
47285         * modules/unistd-safer (configure.ac): Likewise.
47286         * modules/tmpfile-safer (configure.ac): Likewise.
47287         (Depends-on): Add tmpfile.
47288         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47289         active.
47290         * tests/test-fopen.c (includes): Test safer versions when they are
47291         in use.
47292         * tests/test-open.c (includes): Likewise.
47293
47294         popen: fix cygwin 1.5 bug when stdin closed
47295         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47296         * modules/popen: New file.
47297         * modules/popen-tests: Likewise.
47298         * tests/test-popen.c: Likewise.
47299         * m4/popen.m4: Likewise.
47300         * lib/popen.c: Likewise.
47301         * lib/stdio.in.h (popen): New declaration.
47302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47303         * modules/stdio (Makefile.am): Likewise.
47304         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47305
47306 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47307
47308         maint.mk: give full control over update-copyright exclusions
47309         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47310         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47311         (update-copyright): Don't force inclusion of top-level
47312         ChangeLog.  Don't force exclusion of all COPYING files, but make
47313         them the default exclusion instead.
47314
47315 2009-08-16  Bruno Haible  <bruno@clisp.org>
47316
47317         Fix test failures on Solaris 10.
47318         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47319         tests when Solaris iconv() is used.
47320         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47321         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47322         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47323         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47324         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47325
47326 2009-08-16  Bruno Haible  <bruno@clisp.org>
47327
47328         Fix test failures on Solaris 10.
47329         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47330         'tr' program and pass it as first argument.
47331         * tests/test-pipe-filter-gi1.sh: Likewise.
47332         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47333         program as first argument.
47334         * tests/test-pipe-filter-gi1.c (main): Likewise.
47335
47336 2009-08-16  Eric Blake  <ebb9@byu.net>
47337
47338         fpurge: fix previous commits
47339         * modules/fpurge (Makefile.am): Make replacement conditional,
47340         partially reverting 2007-04-29 change; missed in previous
47341         attempt.
47342         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47343         is missing.
47344
47345 2009-08-16  Bruno Haible  <bruno@clisp.org>
47346
47347         Clarify fpurge's effect on the file position.
47348         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47349         * tests/test-fpurge.c (main): Make a second pass for checking the file
47350         position.
47351
47352 2009-08-16  Bruno Haible  <bruno@clisp.org>
47353
47354         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47355         declaration of fpurge is missing.
47356         * tests/test-fpurge.c (main): Check that the file has not more contents
47357         than expected. Close the file before removing it.
47358
47359 2009-08-15  Eric Blake  <ebb9@byu.net>
47360
47361         fpurge: don't wrap working cygwin implementation
47362         * lib/fpurge.c (fpurge): Fix comment typo.
47363         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47364         1.7 to avoid replacement.
47365         * tests/test-fpurge.c (main): Enhance test.
47366
47367 2009-08-15  Eric Blake  <ebb9@byu.net>
47368         and Jim Meyering  <meyering@redhat.com>
47369
47370         test-update-copyright: skip if perl is insufficient
47371         * tests/test-update-copyright.sh: Failure to run maintainer tool
47372         should not cause testsuite failure on cygwin 1.5.
47373
47374 2009-08-14  Eric Blake  <ebb9@byu.net>
47375
47376         doc: mention more functions added in cygwin 1.7.0
47377         * doc/posix-headers/limits.texi (limits.h): Update for recent
47378         cygwin additions.
47379         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47380         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47381         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47382         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47383         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47384
47385 2009-08-14  Eric Blake  <ebb9@byu.net>
47386
47387         maint.mk: simplify update-copyright rule
47388         * top/maint.mk (update-copyright-local): Delete, and document how
47389         to do it in cfg.mk instead.
47390         (update-copyright-exclude-regexp): Delete, and document how to do
47391         it in .x-update-copyright instead.
47392         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47393         exclude ChangeLog.
47394
47395 2009-08-14  Bruno Haible  <bruno@clisp.org>
47396
47397         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47398
47399 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47400
47401         maint.mk: support update-copyright-env
47402         * top/maint.mk (update-copyright-env): Define place-holder.
47403         (update-copyright): Expand $(update-copyright-env) before
47404         invoking update-copyright.
47405
47406 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47407
47408         update-copyright: implement forced reformatting
47409         * build-aux/update-copyright: Implement and document
47410         UPDATE_COPYRIGHT_FORCE.
47411         * tests/test-update-copyright.sh: Test it.
47412
47413 2009-08-14  Eric Blake  <ebb9@byu.net>
47414         and Bruno Haible  <bruno@clisp.org>
47415
47416         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47417         * tests/test-locale.c: Revert previous patch related to NULL.
47418         * tests/test-stdio.c: Likewise.
47419         * tests/test-stdlib.c: Likewise.
47420         * tests/test-string.c: Likewise.
47421         * tests/test-unistd.c: Likewise.
47422         * modules/time-tests (Depends-on): Add verify.
47423         * modules/wchar-tests (Depends-on): Likewise.
47424         * tests/test-time.c: Test for NULL compliance.
47425         * tests/test-wchar.c: Likewise.
47426         * modules/locale (Depends-on): Add stddef.
47427         * modules/stdio (Depends-on): Likewise.
47428         * modules/stdlib (Depends-on): Likewise.
47429         * modules/string (Depends-on): Likewise.
47430         * modules/time (Depends-on): Likewise.
47431         * modules/unistd (Depends-on): Likewise.
47432         * modules/wchar (Depends-on): Likewise.
47433         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47434         * lib/stdlib.in.h (includes): Likewise.
47435         * lib/string.in.h (includes): Likewise.
47436         * lib/time.in.h (includes): Likewise.
47437         * lib/unistd.in.h (includes): Likewise.
47438         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47439         replaced.
47440         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47441         * m4/stddef_h.m4: New file.
47442         * modules/stddef: Likewise.
47443         * lib/stddef.in.h: Likewise.
47444         * modules/stddef-tests: Likewise.
47445         * tests/test-stddef.c: Likewise.
47446         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47447         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47448         * doc/posix-headers/locale.texi (locale.h): Likewise.
47449         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47450         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47451         * doc/posix-headers/string.texi (string.h): Likewise.
47452         * doc/posix-headers/time.texi (time.h): Likewise.
47453         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47454         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47455
47456 2009-08-14  Eric Blake  <ebb9@byu.net>
47457
47458         doc: improve git diff of texinfo files
47459         * .gitattributes: Add rule for *.texi files, with hint on how to
47460         use it.
47461         Copied from m4, and based on a report by Bruno Haible.
47462
47463 2009-08-14  Bruno Haible  <bruno@clisp.org>
47464
47465         Disable multithread support by default on Cygwin 1.5.x for real.
47466         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47467
47468 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47469
47470         update-copyright: much ado about intervals
47471         * build-aux/update-copyright: Implement and document
47472         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47473         of copyright year intervals.
47474         Also, document UPDATE_COPYRIGHT_YEAR.
47475         * tests/test-update-copyright.sh: Test it.
47476
47477         update-copyright: convert 2-digit to 4-digit years
47478         * build-aux/update-copyright: Implement and document.
47479         * tests/test-update-copyright.sh: Update.
47480
47481 2009-08-14  Jim Meyering  <meyering@redhat.com>
47482
47483         test-exclude: avoid coreutils "make check" failure
47484         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47485         just as in test-argmatch.c.
47486
47487 2009-08-13  Eric Blake  <ebb9@byu.net>
47488
47489         test-dup2: fix bad assumption
47490         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47491         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47492
47493         test-version-etc: fix CRLF portability issue
47494         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47495         recognize \r.
47496         * tests/test-argp-version-etc-1.sh: Likewise.
47497
47498         getopt: update client modules
47499         * modules/argp (Depends-on): Use getopt-gnu.
47500         * modules/git-merge-changelog (Depends-on): Likewise.
47501         * modules/long-options (Depends-on): Likewise.
47502         * modules/xstrtol (Depends-on): Likewise.
47503
47504 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47505
47506         * tests/test-version-etc.sh: Don't fail on different
47507         project/version.  Don't fail on CRLF differences.  Rewrite to use
47508         multiple -e instead of multiple sed forks, suggested by Eric Blake
47509         <ebb9@byu.net>.
47510         * tests/test-argp-version-etc-1.sh: Likewise.
47511
47512 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47513
47514         * tests/test-version-etc.sh: Don't fail on different
47515         project/version.
47516
47517 2009-08-12  Bruno Haible  <bruno@clisp.org>
47518
47519         Tests for modules 'getopt-posix', 'getopt-gnu'.
47520         * modules/getopt-posix-tests: New file.
47521         * tests/test-getopt.c: New file.
47522         * tests/test-getopt.h: New file.
47523         * tests/test-getopt_long.h: New file.
47524
47525         New modules 'getopt-posix', 'getopt-gnu'.
47526         * modules/getopt-gnu: New file, renamed from modules/getopt.
47527         * modules/getopt-posix: New file.
47528         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47529         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47530         (gl_GETOPT): Remove macro.
47531         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47532         Disable the test against BSD systems that declare optreset. Test
47533         against mingw bug. Test against lack of support of optional arguments
47534         on many platforms.
47535         * doc/glibc-headers/getopt.texi: Update module name and list of
47536         relevant platforms.
47537         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47538         'getopt-gnu' and more portability problems.
47539         * NEWS: Mention the changes.
47540
47541 2009-08-12  Bruno Haible  <bruno@clisp.org>
47542
47543         Ensure that optarg etc. get declared by <unistd.h>.
47544         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47545         AC_USE_SYSTEM_EXTENSIONS.
47546         * modules/getopt (Depends-on): Add 'extensions'.
47547
47548 2009-08-12  Bruno Haible  <bruno@clisp.org>
47549
47550         Avoid test link errors.
47551         * modules/pipe-filter-ii-tests (Makefile.am): Define
47552         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47553         * modules/pipe-filter-gi-tests (Makefile.am): Define
47554         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47555         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47556
47557 2009-08-12  Bruno Haible  <bruno@clisp.org>
47558
47559         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47560         gl_GETOPT_SUBSTITUTE before.
47561         (gl_GETOPT): Use it.
47562         * m4/argp.m4 (gl_ARGP): Update.
47563         Reported by Sergey Poznyakoff.
47564
47565         * m4/getopt.m4: Reorder macros.
47566         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47567         (gl_GETOPT_SUBSTITUTE): Remove macro.
47568
47569 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47570
47571         Minor improvement in gitlog-to-changelog
47572
47573         * build-aux/gitlog-to-changelog: New option `--format' makes
47574         output format string configurable.
47575
47576 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47577
47578         Optimize exclude: use hash tables for non-wildcard patterns.
47579
47580         * lib/exclude.c: Include hash.h and mbuiter.h
47581         (struct exclude_pattern, exclude_segment): New data types.
47582         (struct exclude): Rewrite.
47583         (fnmatch_pattern_has_wildcards): New function.
47584         (new_exclude_segment, free_exclude_segment): New functions.
47585         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47586         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47587         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47588         * modules/exclude: Depend on hash and mbuiter.
47589
47590         * modules/exclude-tests: New file.
47591         * tests/test-exclude.c: New file.
47592         * tests/test-exclude1.sh: New file.
47593         * tests/test-exclude2.sh: New file.
47594         * tests/test-exclude3.sh: New file.
47595         * tests/test-exclude4.sh: New file.
47596         * tests/test-exclude5.sh: New file.
47597         * tests/test-exclude6.sh: New file.
47598         * tests/test-exclude7.sh: New file.
47599
47600 2009-08-12  Bruno Haible  <bruno@clisp.org>
47601
47602         Ensure that getopt() gets declared by <unistd.h>.
47603         * lib/unistd.in.h: Conditionally include getopt.h.
47604         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47605         Set GNULIB_UNISTD_H_GETOPT.
47606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47607         GNULIB_UNISTD_H_GETOPT.
47608         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47609
47610 2009-08-12  Bruno Haible  <bruno@clisp.org>
47611
47612         Clarify logic.
47613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47614         gl_replace_getopt instead of GETOPT_H.
47615
47616 2009-08-12  Bruno Haible  <bruno@clisp.org>
47617
47618         * m4/getopt.m4: Add comments.
47619
47620 2009-08-12  Bruno Haible  <bruno@clisp.org>
47621
47622         Disable multithread support by default on Cygwin 1.5.x.
47623         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47624         set gl_use_threads=no if not specified otherwise.
47625
47626 2009-08-11  Bruno Haible  <bruno@clisp.org>
47627
47628         Avoid compilation error on NetBSD 5.0.
47629         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47630         * tests/test-stdio.c: Likewise.
47631         * tests/test-stdlib.c: Likewise.
47632         * tests/test-string.c: Likewise.
47633         * tests/test-unistd.c: Likewise.
47634         Reported by Greg Troxel <gdt@ir.bbn.com>
47635         at <https://savannah.gnu.org/support/?106973>.
47636
47637 2009-08-11  Bruno Haible  <bruno@clisp.org>
47638
47639         * modules/dup2-tests (Depends-on): Remove close.
47640
47641         Undo 2009-07-19 commit.
47642         * modules/acl-tests (Depends-on): Remove close.
47643         * modules/binary-io-tests (Depends-on): Likewise.
47644         * modules/closein-tests (Depends-on): Likewise.
47645         * modules/flock-tests (Depends-on): Likewise.
47646         * modules/fsync-tests (Depends-on): Likewise.
47647         * modules/lseek-tests (Depends-on): Likewise.
47648         * modules/pipe-tests (Depends-on): Likewise.
47649         * modules/posix_spawn-tests (Depends-on): Likewise.
47650         * modules/posix_spawnp-tests (Depends-on): Likewise.
47651         * modules/stat-time-tests (Depends-on): Likewise.
47652         * modules/yesno-tests (Depends-on): Likewise.
47653
47654 2009-08-10  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47657
47658 2009-08-10  Bruno Haible  <bruno@clisp.org>
47659
47660         Fix a gcc warning.
47661         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47662
47663 2009-08-10  Bruno Haible  <bruno@clisp.org>
47664
47665         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47666         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47667         not only the first time.
47668         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47669         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47670         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47671         is 1, not only the the first time.
47672
47673 2009-08-10  Bruno Haible  <bruno@clisp.org>
47674
47675         Make it possible to use module 'gethostname' without module 'close'.
47676         * lib/unistd.in.h (close): Evoke a link error only if
47677         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47679         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47680         * modules/unistd (Makefile.am): Substitute
47681         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47682         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47683         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47684         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47685         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47686         * modules/sys_ioctl (Makefile.am): Substitute
47687         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47688         * modules/socket (configure.ac): On native Windows, set
47689         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47690         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47691         Reported by Sam Steingold <sds@gnu.org>.
47692
47693 2009-08-10  Bruno Haible  <bruno@clisp.org>
47694
47695         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47696         * modules/ioctl (configure.ac): Likewise.
47697
47698 2009-08-10  Bruno Haible  <bruno@clisp.org>
47699
47700         Avoid collision between gnulib wrapper and libintl wrapper.
47701         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47702         already defined in intl/printf.c.
47703         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47704         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47705
47706 2009-08-09  Bruno Haible  <bruno@clisp.org>
47707
47708         Make <sys/select.h> really self-contained, also on Solaris 10.
47709         * lib/sys_select.in.h: Include <string.h>.
47710         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47711         Solaris 10 problem.
47712         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47713         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47714         Reported by Jim Meyering.
47715
47716 2009-08-09  Bruno Haible  <bruno@clisp.org>
47717
47718         Avoid warnings from 'aclocal' that are due to a use of macro name
47719         AM_XGETTEXT_OPTION that is not defined in automake.
47720         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47721         automake.
47722         * modules/error (configure.ac): Likewise.
47723         * modules/propername (configure.ac): Likewise.
47724         * modules/vasprintf (configure.ac): Likewise.
47725         * modules/verror (configure.ac): Likewise.
47726         * modules/xprintf (configure.ac): Likewise.
47727         * modules/xvasprintf (configure.ac): Likewise.
47728
47729 2009-08-08  Bruno Haible  <bruno@clisp.org>
47730
47731         Avoid compilation error in C++ mode.
47732         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47733         Reported by Sam Steingold <sds@gnu.org>.
47734
47735 2009-08-08  Bruno Haible  <bruno@clisp.org>
47736
47737         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47738         for the various Unix platforms.
47739         * doc/posix-headers/limits.texi: Update platforms list regarding
47740         HOST_NAME_MAX.
47741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47742
47743 2009-08-07  Jim Meyering  <meyering@redhat.com>
47744
47745         selinux-at: fix typo in a comment
47746         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47747         Spotted by Paolo Bonzini.
47748
47749         selinux-at: remove redundant m4 code, add documentation
47750         * modules/selinux-at (configure.ac): Remove redundant code.
47751         LIB_SELINUX is already set via the dependent module, selinux-h.
47752         (Include): Add quotes around selinux-at.h.
47753         * lib/selinux-at.h: Add documentation.
47754         Reported by Bruno Haible in
47755         http://marc.info/?l=gnulib-bug&m=124958988300749
47756
47757 2009-08-07  Bruno Haible  <bruno@clisp.org>
47758
47759         Avoid link error on MacOS X 10.3 and 10.4.
47760         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47761         on non-ELF systems.
47762         * lib/argp-pv.c (argp_program_version): Likewise.
47763         Reported by Simon Josefsson.
47764
47765 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47766
47767         * tests/test-version-etc.sh: Use $EXEEXT.
47768
47769 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47770
47771         update-copyright: update documentation to point to maint.mk
47772         * build-aux/update-copyright: Here.
47773
47774 2009-08-06  Jim Meyering  <meyering@redhat.com>
47775
47776         maint.mk: support update-copyright-local
47777         * top/maint.mk (update-copyright-local): Define place-holder.
47778         (update-copyright): Depend on $(update-copyright-local).
47779
47780 2009-08-06  Jim Meyering  <meyering@redhat.com>
47781
47782         selinux-at: new module
47783         Initially written for coreutils, this module will soon be
47784         used by findutils, too.
47785         * MODULES.html.sh [Misc]: Add selinux-at.
47786         * lib/selinux-at.h: New file, from coreutils.
47787         * lib/selinux-at.c: Likewise.
47788         * modules/selinux-at: Likewise.
47789         (License): Change from LGPL to GPL, since it depends
47790         on the GPL'd openat module.
47791
47792         doc: update README
47793         * README: Remove references to cogito.
47794         Remove cvs-repo-updating instructions from 2007.
47795         Don't imply that CVS is better if you have limited disk space.
47796
47797 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47798
47799         update-copyright: support C-style comments
47800         * build-aux/update-copyright: Implement and document.
47801         * tests/test-update-copyright.sh: Test.
47802
47803 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47804
47805         update-copyright: support omitted "(C)"
47806         * build-aux/update-copyright: Implement and document.  Also,
47807         allow variable whitespace before "(C)".
47808         * tests/test-update-copyright.sh: Test.
47809
47810 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47811
47812         update-copyright: don't trip on non-FSF copyright statements
47813         * build-aux/update-copyright: Fix so that the first correctly
47814         formatted FSF copyright statement is recognized no matter what
47815         appears before it.  Update documentation.
47816         * tests/test-update-copyright.sh: Test that.
47817
47818 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47819
47820         update-copyright: clean up code a little
47821         * build-aux/update-copyright: Append "_re" to the name of any
47822         variable holding a regular expression.
47823         Replace "old" and "new" with "stmt" in variable names.
47824         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47825         handled correctly.
47826         Format code more consistently.
47827
47828 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47829
47830         update-copyright-tests: improve portability
47831         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47832         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47833
47834 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47835
47836         update-copyright: support @copyright{} and &copy;
47837         * build-aux/update-copyright: Implement and document.
47838         * tests/test-update-copyright.sh: Test.
47839
47840 2009-08-04  Jim Meyering  <meyering@redhat.com>
47841
47842         update-copyright-tests: correctly test EOL=\r\n handling
47843         * tests/test-update-copyright.sh: Put \r at the end of some lines
47844         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47845
47846         maint.mk: make update-copyright exclusion list more configurable
47847         * top/maint.mk (update-copyright): Default to excluding COPYING,
47848         but allow an override, in case someone does want to update that file.
47849
47850         maint.mk: don't update copyright date in COPYING
47851         * top/maint.mk (update-copyright): Exclude COPYING.
47852
47853         maint.mk: add a copyright-updating rule
47854         * top/maint.mk (update-copyright): New rule.
47855         Derived from coreutils/Makefile.am.
47856
47857         update-copyright: rename some variables
47858         * build-aux/update-copyright: Rename a few variables for clarity.
47859         Tweak syntax.  List Joel E. Denny as coauthor.
47860
47861 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47862
47863         update-copyright: fix bug for 2-digit last year and add tests
47864         * build-aux/update-copyright: Fix bug.
47865         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47866         specified.
47867         * modules/update-copyright-tests: New
47868         * tests/test-update-copyright.sh: New.
47869
47870 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47871
47872         update-copyright: handle leading tabs in line prefix
47873         * build-aux/update-copyright: Count leading tabs as 8 spaces
47874         when computing margin.  This helps with the formatting of
47875         ChangeLogs, for example.
47876         Fix documentation a little.
47877
47878 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47879
47880         update-copyright: support EOL=\r\n
47881         * build-aux/update-copyright: Implement that.
47882
47883 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47884
47885         update-copyright: automatically format copyright statements
47886         * build-aux/update-copyright: Implement that.
47887         Also, be a little more predictable and safer by always failing
47888         when the full copyright format is not perfectly recognized as an
47889         unbroken whole.  Discussed at
47890         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47891         Rewrite documentation.
47892
47893 2009-08-03  Bruno Haible  <bruno@clisp.org>
47894
47895         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47896
47897 2009-08-02  Bruno Haible  <bruno@clisp.org>
47898
47899         Tests for module 'uname'.
47900         * modules/uname-tests: New file.
47901         * tests/test-uname.c: New file.
47902
47903         New module 'uname'.
47904         * lib/uname.c: New file.
47905         * m4/uname.m4: New file.
47906         * modules/uname: New file.
47907         * doc/posix-functions/uname.texi: Mention the new module.
47908
47909 2009-08-02  Bruno Haible  <bruno@clisp.org>
47910
47911         Tests for module 'sys_utsname'.
47912         * modules/sys_utsname-tests: New file.
47913         * tests/test-sys_utsname.c: New file.
47914
47915         New module 'sys_utsname'.
47916         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47917         * m4/sys_utsname_h.m4: New file.
47918         * modules/sys_utsname: New file.
47919         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47920
47921 2009-08-02  Bruno Haible  <bruno@clisp.org>
47922
47923         Implicitly initialize the sockets library.
47924         * lib/gethostname.c: Include sockets.h.
47925         (rpl_gethostname): Invoke gl_sockets_startup.
47926         * lib/socket.c: Include sockets.h.
47927         (rpl_socket): Invoke gl_sockets_startup.
47928         * modules/gethostname (Depends-on): Add sockets.
47929         * modules/socket (Depends-on): Likewise.
47930         * tests/test-poll.c: Don't include sockets.h.
47931         (main): Don't invoke gl_sockets_startup.
47932         * tests/test-select.c: Don't include sockets.h.
47933         (main): Don't invoke gl_sockets_startup.
47934
47935 2009-08-02  Bruno Haible  <bruno@clisp.org>
47936
47937         Allow multiple calls to gl_sockets_startup.
47938         * lib/sockets.c (initialized_sockets_version): New variable.
47939         (gl_sockets_startup): Do nothing if already called for this or a higher
47940         version.
47941         (gl_sockets_cleanup): Reset initialized_sockets_version.
47942
47943 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47944
47945         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47946         different project/version.
47947
47948 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47949             Bruno Haible  <bruno@clisp.org>
47950
47951         Tests for module 'pipe-filter-gi'.
47952         * modules/pipe-filter-gi-tests: New file.
47953         * tests/test-pipe-filter-gi1.sh: New file.
47954         * tests/test-pipe-filter-gi1.c: New file.
47955         * tests/test-pipe-filter-gi2.sh: New file.
47956         * tests/test-pipe-filter-gi2-main.c: New file.
47957         * tests/test-pipe-filter-gi2-child.c: New file.
47958
47959         New module 'pipe-filter-gi'.
47960         * lib/pipe-filter-gi.c: New file.
47961         * modules/pipe-filter-gi: New file.
47962
47963 2009-08-02  Bruno Haible  <bruno@clisp.org>
47964             Paolo Bonzini  <bonzini@gnu.org>
47965
47966         Tests for module 'pipe-filter-ii'.
47967         * modules/pipe-filter-ii-tests: New file.
47968         * tests/test-pipe-filter-ii1.sh: New file.
47969         * tests/test-pipe-filter-ii1.c: New file.
47970         * tests/test-pipe-filter-ii2.sh: New file.
47971         * tests/test-pipe-filter-ii2-main.c: New file.
47972         * tests/test-pipe-filter-ii2-child.c: New file.
47973
47974         New module 'pipe-filter-ii'.
47975         * lib/pipe-filter.h: New file.
47976         * lib/pipe-filter-ii.c: New file.
47977         * lib/pipe-filter-aux.h: New file.
47978         * modules/pipe-filter-ii: New file.
47979
47980 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47981
47982         * lib/gc-libgcrypt.c: Change copyright to FSF.
47983         * lib/gc-gnulib.c: Likewise.
47984
47985 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47986
47987         * lib/gethostname.c: Include limits.h.
47988
47989 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47990             Bruno Haible  <bruno@clisp.org>
47991
47992         Ensure HOST_NAME_MAX as part of the gethostname module.
47993         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47994         define also HOST_NAME_MAX.
47995         * tests/test-gethostname.c: Include <limits.h>.
47996         (main): Check also HOST_NAME_MAX.
47997         * doc/posix-headers/limits.texi: Document the mingw problem.
47998
47999 2009-08-02  Bruno Haible  <bruno@clisp.org>
48000
48001         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48002         Add comments.
48003
48004 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48005
48006         * lib/gethostname.c: Add Windows wrapper.
48007         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48008         * modules/gethostname: Depend on sys_socket & errno, for also
48009         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48010         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48011
48012 2009-07-31  Jim Meyering  <meyering@redhat.com>
48013
48014         getloadavg: fix symbol name in comment
48015         * lib/getloadavg.c: Correct a typo I introduced when adding
48016         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48017         Matt Kraai spotted the problem.
48018
48019 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48020
48021         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48022         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48023         code also if ! defined N_NAME_POINTER.
48024         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48025         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48026         but the n_name member is a 12-byte array.
48027
48028 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48029
48030         update-copyright: generalize comment handling
48031         * build-aux/update-copyright: Handle copyright statements
48032         within more comment styles.
48033         Document usage.
48034         Report any file with an external copyright holder or parse failure.
48035
48036 2009-07-29  Jim Meyering  <meyering@redhat.com>
48037
48038         mktime: correct setting of REPLACE_MKTIME
48039         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48040
48041         update-copyright: new module
48042         * modules/update-copyright: New file.
48043         * build-aux/update-copyright: New file.
48044         * MODULES.html.sh (maint+release support): Add update-copyright.
48045
48046 2009-07-27  Bruno Haible  <bruno@clisp.org>
48047
48048         Fix compilation error when <ctime> is used and mktime is replaced.
48049         * lib/time.in.h (mktime): New declaration.
48050         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48051         REPLACE_MKTIME instead of defining mktime in config.h.
48052         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48053         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48054         Reported by Ross McFarland <rwmcfa1@neces.com>.
48055
48056 2009-07-27  Bruno Haible  <bruno@clisp.org>
48057
48058         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48059         Reported by Matt Kraai <mkraai@beckman.com>.
48060
48061 2009-07-25  Jim Meyering  <meyering@redhat.com>
48062
48063         maint.mk: avoid warnings about missing files
48064         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48065         diagnostic when .prev-version does not exist.
48066         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48067         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48068         nonexistent cfg.mk.
48069         Suggestions from Simon Josefsson.
48070
48071 2009-07-25  Bruno Haible  <bruno@clisp.org>
48072
48073         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48074         defined as macros. Needed on QNX 6.4.1.
48075         Reported by Matt Kraai <mkraai@beckman.com>.
48076
48077 2009-07-23  Jim Meyering  <meyering@redhat.com>
48078
48079         maint.mk: invoke "make dist" with a working value of XZ_OPT
48080         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48081
48082 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48083
48084         Make fseeko.c compile on QNX.
48085         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48086
48087 2009-07-22  Peter Simons  <simons@cryp.to>
48088
48089         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48090         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48091         * lib/md4.h: Likewise.
48092         * lib/md5.h: Likewise.
48093         * lib/sha1.h: Likewise.
48094         * lib/sha256.h: Likewise.
48095         * lib/sha512.h: Likewise.
48096
48097         tests-sha1: don't assign literal string to 'char *' variable
48098         * tests/test-sha1.c (main): Declare locals with "const" to match
48099         attributes of the right hand side.
48100
48101 2009-07-21  Eric Blake  <ebb9@byu.net>
48102
48103         dup2: fix more mingw problems
48104         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48105         fd to itself.
48106         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48107         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48108         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48109         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48110         care of mingw bugs.
48111
48112 2009-07-21  Jim Meyering  <meyering@redhat.com>
48113
48114         vc-list-files: avoid failure when /bin/sh is dash
48115         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48116         On some Debian based systems, /bin/sh is a symlink to dash, and running
48117         this command would omit the "/" following each 'tests' prefix:
48118           dash -x build-aux/vc-list-files -C . tests
48119         That is because bash and dash work differently:
48120           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48121           bash ok
48122           dash odd
48123
48124 2009-07-21  Eric Blake  <ebb9@byu.net>
48125
48126         dup2-tests: test previous patch
48127         * modules/dup2-tests: New file.
48128         * tests/test-dup2.c: Likewise.
48129         * tests/test-open.c (main): Avoid unspecified behavior.
48130         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48131         test.
48132
48133         dup2: work around mingw and cygwin 1.5 bug
48134         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48136         * modules/unistd (Makefile.am): Substitute it.
48137         * lib/unistd.in.h (dup2): Declare the replacement.
48138         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48139         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48140         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48141         * modules/execute (Depends-on): Add dup2.
48142         * modules/fseterr (Depends-on): Likewise.
48143         * modules/pipe (Depends-on): Likewise.
48144         * modules/posix_spawn-internal (Depends-on): Likewise.
48145
48146 2009-07-21  Bruno Haible  <bruno@clisp.org>
48147
48148         * modules/.gitattributes: New file.
48149
48150 2009-07-20  Bruno Haible  <bruno@clisp.org>
48151
48152         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48153         (main): Use it.
48154
48155 2009-07-20  Eric Blake  <ebb9@byu.net>
48156
48157         test-pipe: make a bit more robust.
48158         * tests/test-pipe.c (myerr): Allow error messages regardless of
48159         what we do to stderr.
48160         (test_pipe): Rearrange to avoid deadlock.
48161         (child_main): Try a larger read, to ensure we avoided deadlock.
48162         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48163         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48164         if misused.
48165
48166 2009-07-19  Jim Meyering  <meyering@redhat.com>
48167
48168         fts: avoid false-positive cycle-detection
48169         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48170         for each new command line argument.
48171
48172 2009-07-19  Bruno Haible  <bruno@clisp.org>
48173
48174         Fix build error on mingw with the modules sys_select and unistd.
48175         * modules/acl-tests (Depends-on): Add close.
48176         * modules/binary-io-tests (Depends-on): Likewise.
48177         * modules/closein-tests (Depends-on): Likewise.
48178         * modules/flock-tests (Depends-on): Likewise.
48179         * modules/fsync-tests (Depends-on): Likewise.
48180         * modules/lseek-tests (Depends-on): Likewise.
48181         * modules/pipe-tests (Depends-on): Likewise.
48182         * modules/posix_spawn-tests (Depends-on): Likewise.
48183         * modules/posix_spawnp-tests (Depends-on): Likewise.
48184         * modules/stat-time-tests (Depends-on): Likewise.
48185         * modules/yesno-tests (Depends-on): Likewise.
48186
48187 2009-07-19  Bruno Haible  <bruno@clisp.org>
48188
48189         Unify conditionals.
48190         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48191         macros, not at the compiler macros.
48192         * lib/pipe.c: Likewise.
48193         * lib/execute.c: Likewise.
48194         * lib/spawni.c: Likewise.
48195
48196 2009-07-19  Bruno Haible  <bruno@clisp.org>
48197
48198         Fix handling of closed stdin/stdout/stderr on mingw.
48199         * lib/w32spawn.h: Include unistd.h.
48200         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48201         file descriptor with O_NOINHERIT flag.
48202         (fd_safer_noinherit): New function, based on fd-safer.c.
48203         (dup_safer_noinherit): New function, based on dup-safer.c.
48204         (undup_safer_noinherit): New function.
48205         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48206         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48207         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48208         instead of fd_safer.
48209         * tests/test-pipe.c: Include <windows.h>.
48210         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48211         result.
48212
48213         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48214         from main.
48215         (test_pipe): Pass an extra argument for disambiguation.
48216         (main): Invoke parent_main or child_main.
48217
48218         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48219         consistently.
48220
48221 2009-07-18  Eric Blake  <ebb9@byu.net>
48222
48223         test-pipe: fix mingw build
48224         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48225
48226 2009-07-18  Bruno Haible  <bruno@clisp.org>
48227
48228         * modules/pipe-tests (Makefile.am): Fix typo.
48229
48230 2009-07-18  Eric Blake  <ebb9@byu.net>
48231
48232         error: fix mingw build
48233         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48234         Reported by Bruno Haible.
48235
48236         error: avoid undefined use of stdout
48237         * lib/error.c (error, error_at_line): Check that fd 1 is open
48238         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48239         is handling faults and the close_stdout module wants to report the
48240         detection of closed stdout as an error.
48241
48242 2009-07-17  Eric Blake  <ebb9@byu.net>
48243
48244         pipe: be robust in face of closed fds
48245         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48246         should cause child to misbehave.
48247         * modules/pipe-tests: New module.
48248         * tests/test-pipe.c: New file.
48249         * tests/test-pipe.sh: New file.
48250         Reported by Akim Demaille.
48251
48252 2009-07-14  Bruno Haible  <bruno@clisp.org>
48253
48254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48255         Reported by anonymous kc.
48256
48257 2009-07-07  Jim Meyering  <meyering@redhat.com>
48258
48259         maint.mk: don't look for translatable strings in *.m4 or *.mk
48260         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48261         when searching for translatable strings.
48262
48263 2009-07-05  Jim Meyering  <meyering@redhat.com>
48264
48265         remove superfluous parentheses in STREQ definition
48266         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48267         * lib/getugroups.c (STREQ): Likewise.
48268         * lib/fnmatch.c (STREQ): Likewise.
48269         Spotted by Bruno Haible.
48270
48271 2009-07-04  Jim Meyering  <meyering@redhat.com>
48272
48273         argv-iter: new module
48274         * MODULES.html.sh: Add argv-iter.
48275         * lib/argv-iter.c, lib/argv-iter.h: New files.
48276         * modules/argv-iter: New file.
48277         * modules/argv-iter-tests: New file.
48278         * tests/test-argv-iter.c: Test it.
48279
48280 2009-07-04  Bruno Haible  <bruno@clisp.org>
48281
48282         Fix assertion.
48283         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48284         contains more exact copies of a given entry than file2, leave the extra
48285         copies unpaired rather than aborting.
48286         Reported by Eric Blake.
48287
48288 2009-07-02  Bruno Haible  <bruno@clisp.org>
48289
48290         Speedup git-merge-changelog for git cherry-pick.
48291         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48292         (entries_mapping_get): New function, extracted from compute_mapping.
48293         (entries_mapping_reverse_get): New function.
48294         (compute_mapping): Add a 'full' argument. Return the result in a
48295         'struct entries_mapping'.
48296         (main): Update. Access the mappings through entries_mapping_get.
48297         Reported by Eric Blake.
48298
48299 2009-07-02  Bruno Haible  <bruno@clisp.org>
48300
48301         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48302         best_i.
48303
48304 2009-07-02  Bruno Haible  <bruno@clisp.org>
48305
48306         Speed up approximate search for matching ChangeLog entries.
48307         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48308         argument. Call fstrcmp_bounded instead of fstrcmp.
48309         (compute_mapping, try_split_merged_entry, main): Update callers.
48310
48311 2009-07-02  Bruno Haible  <bruno@clisp.org>
48312
48313         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48314
48315 2009-06-30  Bruno Haible  <bruno@clisp.org>
48316
48317         Reduce the number of uc_is_cased calls.
48318         * lib/unicase.h (casing_suffix_context_t): Add
48319         'first_char_except_ignorable' field.
48320         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48321         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48322         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48323         Update initializer.
48324         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48325         case-ignorable characters.
48326         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48327         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48328         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48329         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48330         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48331
48332 2009-06-30  Bruno Haible  <bruno@clisp.org>
48333
48334         Tests for module 'unicase/ignorable'.
48335         * modules/unicase/ignorable-tests: New file.
48336         * tests/unicase/test-ignorable.c: New file, generated by
48337         gen-uni-tables.
48338
48339         Tests for module 'unicase/cased'.
48340         * modules/unicase/cased-tests: New file.
48341         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48342         * tests/unicase/test-predicate-part1.h: New file, derived from
48343         tests/unictype/test-predicate-part1.h.
48344         * tests/unicase/test-predicate-part2.h: New file, same as
48345         tests/unictype/test-predicate-part2.h.
48346
48347         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48348         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48349         (output_casing_properties): New function.
48350         (main): Call it.
48351         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48352         * lib/unicase/cased.c: Include unictype/bitmap.h.
48353         (uc_is_cased): Define through a bitmap lookup.
48354         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48355         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48356         (uc_is_case_ignorable): Define through a bitmap lookup.
48357         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48358         lib/unictype/bitmap.h.
48359         (Depends-on): Add inline. Clean up.
48360         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48361         lib/unictype/bitmap.h.
48362         (Depends-on): Add inline. Clean up.
48363         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48364         recognition.
48365         * tests/unicase/test-u16-tolower.c (main): Likewise.
48366         * tests/unicase/test-u32-tolower.c (main): Likewise.
48367
48368 2009-06-30  Bruno Haible  <bruno@clisp.org>
48369
48370         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48371         * lib/unicase/u16-casemap.c: Likewise.
48372         * lib/unicase/u32-casemap.c: Likewise.
48373
48374 2009-06-29  Bruno Haible  <bruno@clisp.org>
48375
48376         Define u32_casefold as a wrapper around u32_ct_casefold.
48377         * lib/unicase/u32-casefold.c: Update.
48378         * modules/unicase/u32-casefold (Depends-on): Add
48379         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48380         unicase/empty-suffix-context. Clean up.
48381
48382         Define u16_casefold as a wrapper around u16_ct_casefold.
48383         * lib/unicase/u16-casefold.c: Update.
48384         * modules/unicase/u16-casefold (Depends-on): Add
48385         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48386         unicase/empty-suffix-context. Clean up.
48387
48388         Define u8_casefold as a wrapper around u8_ct_casefold.
48389         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48390         * lib/unicase/u8-casefold.c: Update.
48391         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48392         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48393
48394         Define u32_totitle as a wrapper around u32_ct_totitle.
48395         * lib/unicase/u32-totitle.c: Update.
48396         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48397         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48398
48399         Define u16_totitle as a wrapper around u16_ct_totitle.
48400         * lib/unicase/u16-totitle.c: Update.
48401         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48402         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48403
48404         Define u8_totitle as a wrapper around u8_ct_totitle.
48405         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48406         functions.
48407         (FUNC): Delegate to U_CT_TOTITLE.
48408         * lib/unicase/u8-totitle.c: Update.
48409         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48410         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48411
48412         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48413         invocation.
48414         * modules/unicase/u32-tolower (Depends-on): Add
48415         unicase/empty-prefix-context, unicase/empty-suffix-context.
48416
48417         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48418         invocation.
48419         * modules/unicase/u16-tolower (Depends-on): Add
48420         unicase/empty-prefix-context, unicase/empty-suffix-context.
48421
48422         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48423         * modules/unicase/u8-tolower (Depends-on): Add
48424         unicase/empty-prefix-context, unicase/empty-suffix-context.
48425
48426         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48427         invocation.
48428         * modules/unicase/u32-toupper (Depends-on): Add
48429         unicase/empty-prefix-context, unicase/empty-suffix-context.
48430
48431         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48432         invocation.
48433         * modules/unicase/u16-toupper (Depends-on): Add
48434         unicase/empty-prefix-context, unicase/empty-suffix-context.
48435
48436         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48437         * modules/unicase/u8-toupper (Depends-on): Add
48438         unicase/empty-prefix-context, unicase/empty-suffix-context.
48439
48440         New module 'unicase/u32-ct-casefold'.
48441         * lib/unicase/u32-ct-casefold.c: New file.
48442         * modules/unicase/u32-ct-casefold: New file.
48443
48444         New module 'unicase/u16-ct-casefold'.
48445         * lib/unicase/u16-ct-casefold.c: New file.
48446         * modules/unicase/u16-ct-casefold: New file.
48447
48448         New module 'unicase/u8-ct-casefold'.
48449         * lib/unicase/u8-ct-casefold.c: New file.
48450         * lib/unicase/u-ct-casefold.h: New file, derived from
48451         lib/unicase/u-casefold.h.
48452         * modules/unicase/u8-ct-casefold: New file.
48453
48454         New module 'unicase/u32-ct-totitle'.
48455         * lib/unicase/u32-ct-totitle.c: New file.
48456         * modules/unicase/u32-ct-totitle: New file.
48457
48458         New module 'unicase/u16-ct-totitle'.
48459         * lib/unicase/u16-ct-totitle.c: New file.
48460         * modules/unicase/u16-ct-totitle: New file.
48461
48462         New module 'unicase/u8-ct-totitle'.
48463         * lib/unicase/u8-ct-totitle.c: New file.
48464         * lib/unicase/u-ct-totitle.h: New file, derived from
48465         lib/unicase/u-totitle.h.
48466         * modules/unicase/u8-ct-totitle: New file.
48467
48468         New module 'unicase/u32-ct-tolower'.
48469         * lib/unicase/u32-ct-tolower.c: New file.
48470         * modules/unicase/u32-ct-tolower: New file.
48471
48472         New module 'unicase/u16-ct-tolower'.
48473         * lib/unicase/u16-ct-tolower.c: New file.
48474         * modules/unicase/u16-ct-tolower: New file.
48475
48476         New module 'unicase/u8-ct-tolower'.
48477         * lib/unicase/u8-ct-tolower.c: New file.
48478         * modules/unicase/u8-ct-tolower: New file.
48479
48480         New module 'unicase/u32-ct-toupper'.
48481         * lib/unicase/u32-ct-toupper.c: New file.
48482         * modules/unicase/u32-ct-toupper: New file.
48483
48484         New module 'unicase/u16-ct-toupper'.
48485         * lib/unicase/u16-ct-toupper.c: New file.
48486         * modules/unicase/u16-ct-toupper: New file.
48487
48488         New module 'unicase/u8-ct-toupper'.
48489         * lib/unicase/u8-ct-toupper.c: New file.
48490         * modules/unicase/u8-ct-toupper: New file.
48491
48492         Add context arguments to u*_casemap functions.
48493         * lib/unicase/unicasemap.h: Include unicase.h.
48494         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48495         suffix_context arguments.
48496         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48497         functions.
48498         (FUNC): Add prefix_context and suffix_context arguments. Use
48499         uc_is_cased and uc_is_case_ignorable.
48500         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48501         * lib/unicase/u16-casemap.c: Likewise.
48502         * lib/unicase/u32-casemap.c: Likewise.
48503         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48504         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48505         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48506         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48507         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48508         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48509
48510         New module 'unicase/u32-suffix-context'.
48511         * lib/unicase/u32-suffix-context.c: New file.
48512         * modules/unicase/u32-suffix-context: New file.
48513
48514         New module 'unicase/u16-suffix-context'.
48515         * lib/unicase/u16-suffix-context.c: New file.
48516         * modules/unicase/u16-suffix-context: New file.
48517
48518         New module 'unicase/u8-suffix-context'.
48519         * lib/unicase/u8-suffix-context.c: New file.
48520         * lib/unicase/u-suffix-context.h: New file.
48521         * modules/unicase/u8-suffix-context: New file.
48522
48523         New module 'unicase/empty-suffix-context'.
48524         * lib/unicase/empty-suffix-context.c: New file.
48525         * modules/unicase/empty-suffix-context: New file.
48526
48527         New module 'unicase/u32-prefix-context'.
48528         * lib/unicase/u32-prefix-context.c: New file.
48529         * modules/unicase/u32-prefix-context: New file.
48530
48531         New module 'unicase/u16-prefix-context'.
48532         * lib/unicase/u16-prefix-context.c: New file.
48533         * modules/unicase/u16-prefix-context: New file.
48534
48535         New module 'unicase/u8-prefix-context'.
48536         * lib/unicase/u8-prefix-context.c: New file.
48537         * lib/unicase/u-prefix-context.h: New file.
48538         * lib/unicase/context.h: New file.
48539         * modules/unicase/u8-prefix-context: New file.
48540
48541         New module 'unicase/empty-prefix-context'.
48542         * lib/unicase/empty-prefix-context.c: New file.
48543         * modules/unicase/empty-prefix-context: New file.
48544
48545         New module 'unicase/ignorable'.
48546         * lib/unicase/ignorable.c: New file.
48547         * modules/unicase/ignorable: New file.
48548
48549         New module 'unicase/cased'.
48550         * lib/unicase/caseprop.h: New file.
48551         * lib/unicase/cased.c: New file.
48552         * modules/unicase/cased: New file.
48553
48554         New functions for case mapping of substrings.
48555         * lib/unicase.h (casing_prefix_context_t): New type.
48556         (unicase_empty_prefix_context): New variable.
48557         (u8_casing_prefix_context, u16_casing_prefix_context,
48558         u32_casing_prefix_context, u8_casing_prefixes_context,
48559         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48560         declarations.
48561         (casing_suffix_context_t): New type.
48562         (unicase_empty_suffix_context): New variable.
48563         (u8_casing_suffix_context, u16_casing_suffix_context,
48564         u32_casing_suffix_context, u8_casing_suffixes_context,
48565         u16_casing_suffixes_context, u32_casing_suffixes_context,
48566         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48567         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48568         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48569         declarations.
48570
48571 2009-06-28  Jim Meyering  <meyering@redhat.com>
48572
48573         boostrap: indent only with spaces
48574         * build-aux/bootstrap: Indent only with spaces, never TABs.
48575
48576         bootstrap: split long lines
48577         * build-aux/bootstrap: Keep line length < 80.
48578
48579         bootstrap: sync from coreutils
48580         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48581         just as autoreconf does.  Verify a list of prerequisite
48582         package-name,version-number pairs if defined in bootstrap.conf.
48583         Refer to README-prereq, if prerequisites are not satisfied.
48584
48585 2009-06-27  Eric Blake  <ebb9@byu.net>
48586
48587         tests: add test for bogus NULL definition
48588         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48589         * tests/test-stdlib.c: Likewise.
48590         * tests/test-string.c: Likewise.
48591         * tests/test-locale.c: Likewise.
48592         * tests/test-unistd.c: Likewise.
48593         * modules/stdio-tests (Depends-on): Add verify.
48594         * modules/stdlib-tests (Depends-on): Likewise.
48595         * modules/string-tests (Depends-on): Likewise.
48596         * modules/locale-tests (Depends-on): Likewise.
48597         * modules/unistd-tests (Depends-on): Likewise.
48598
48599 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48600
48601         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48602         self-explaining comment.
48603         * m4/selinux-selinux-h: Update serial.
48604         (gl_LIBSELINUX): New macro, adding a warning for missing development
48605         packages to code extracted from...
48606         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48607         Add warning for missing development packages here, too.
48608
48609 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48610
48611         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48612
48613 2009-06-25  Eric Blake  <ebb9@byu.net>
48614
48615         version-etc: fix regression
48616         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48617         gcc.
48618         (version_etc): Use it, to catch bugs with trailing NULL.
48619         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48620         (version_etc_va): Fix logic bug.
48621         * modules/version-etc-tests: Add test.
48622         * tests/test-version-etc.c: New file.
48623         * tests/test-version-etc.sh: Likewise.
48624
48625 2009-06-25  Sam Steingold  <sds@gnu.org>
48626
48627         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48628         mbtowc declaration.
48629
48630 2009-06-25  Eric Blake  <ebb9@byu.net>
48631
48632         fpurge: migrate into <stdio.h>
48633         * lib/fpurge.h: Delete...
48634         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48635         * lib/fpurge.c (fpurge): Change declaring header.
48636         * modules/fpurge (Files): Drop deleted file.
48637         (Depends-on): Add stdio.
48638         (configure.ac): Set witness.
48639         * modules/stdio (Makefile.am): Support fpurge macros.
48640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48641         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48642         * lib/fflush.c: Update client.
48643         * tests/test-fpurge.c: Likewise.
48644         * NEWS: Mention the change.
48645
48646 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48647
48648         * lib/argp-version-etc.c (program_authors): Add const
48649         qualifier.
48650         * lib/version-etc.c: Fix typos in the comments.
48651         * modules/argp-version-etc: Depends on version-etc.
48652
48653 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48654
48655         argp-version-etc: new module.
48656
48657         * lib/argp-version-etc.c: New file.
48658         * lib/argp-version-etc.h: New file.
48659         * modules/argp-version-etc: New file.
48660         * modules/argp-version-etc-tests: New file.
48661         * tests/test-argp-version-etc.c: New test.
48662         * tests/test-argp-version-etc-1.sh: New test.
48663
48664 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48665
48666         Provide additional interfaces and documentation for version-etc
48667         module.
48668
48669         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48670         interfaces.
48671         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48672         prototypes.
48673
48674 2009-06-24  Bruno Haible  <bruno@clisp.org>
48675
48676         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48677         HAVE_LIB${NAME} macro.
48678         Reported by Sam Steingold <sds@gnu.org>.
48679
48680 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48681
48682         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48683         needed.
48684
48685 2009-06-21  Bruno Haible  <bruno@clisp.org>
48686
48687         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48688         work.
48689         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48690         together with LIB${NAME}, LTLIB${NAME}.
48691         Reported by Sam Steingold <sds@gnu.org>.
48692
48693 2009-06-20  Jim Meyering  <meyering@redhat.com>
48694
48695         tests: make sc_require_test_exit_idiom more generic
48696         * top/maint.mk (Exit_witness_file): New overridable variable.
48697         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48698         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48699
48700 2009-06-19  Jim Meyering  <meyering@redhat.com>
48701
48702         hash: reverse order of src/dst parameters in an internal interface
48703         * lib/hash.c (transfer_entries): Reverse order of parameters to
48704         put DST before SRC.  Adjust callers.
48705
48706         tests: test-hash: avoid wholesale duplication
48707         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48708         Instead, use a loop and add a single conditional.
48709
48710         tests: test-hash: allow seed selection via a command line argument
48711         * tests/test-hash.c (get_seed): New function.
48712         (main): Use it.
48713
48714 2009-06-19  Eric Blake  <ebb9@byu.net>
48715
48716         hash: avoid memory leak on allocation failure
48717         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48718         failure.  Factor repeated algorithm...
48719         (transfer_entries): ...into new helper routine.
48720         (hash_delete): React to hash_rehash return value.
48721
48722         hash: reduce memory pressure in hash_rehash no-op case
48723         * lib/hash.c (next_prime): Avoid overflow.
48724         (hash_initialize): Factor bucket size computation...
48725         (compute_bucket_size): ...into new helper function.
48726         (hash_rehash): Use new function and open coding to reduce memory
48727         pressure, and avoid a memory leak in USE_OBSTACK code.
48728         Reported by Jim Meyering.
48729
48730 2009-06-18  Eric Blake  <ebb9@byu.net>
48731
48732         hash: make rotation more obvious
48733         * modules/hash (Depends-on): Add bitrotate and stdint.
48734         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48735         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48736         (SIZE_MAX): Rely on headers for definition.
48737         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48738         (raw_hasher): Use rotr_sz.
48739         Suggested by Jim Meyering.
48740
48741         hash: fix memory leak in last patch
48742         * lib/hash.c (hash_rehash): Avoid memory leak.
48743
48744         hash: avoid no-op rehashing
48745         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48746
48747         hash: provide default callback functions
48748         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48749         (hash_initialize): Use them as defaults.
48750         * tests/test-hash.c (main): Test this.
48751
48752         hash: minor optimization
48753         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48754         when possible.
48755         (hash_initialize): Document this promise.
48756         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48757         * tests/test-hash.c (hash_compare_strings): Test this.
48758
48759 2009-06-18  Bruno Haible  <bruno@clisp.org>
48760
48761         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48762         going to be replaced anyway.
48763
48764 2009-06-18  Bruno Haible  <bruno@clisp.org>
48765
48766         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48767         in one place.
48768         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48769         be replaced anyway.
48770
48771 2009-06-18  Eric Blake  <ebb9@byu.net>
48772
48773         hash: check for resize before insertion
48774         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48775         threshold before insertion, so that a pathological hash_rehash
48776         that fills every bucket can still trigger another rehash.
48777
48778 2009-06-18  Jim Meyering  <meyering@redhat.com>
48779
48780         hash-tests: add a loop around the small tests
48781         * tests/test-hash.c (main): Repeat small tests with selected
48782         small initial table sizes.
48783
48784 2009-06-17  Eric Blake  <ebb9@byu.net>
48785
48786         hash: minor cleanups
48787         * lib/hash.h (hash_entry): Make opaque, by moving...
48788         * lib/hash.c (hash_entry): ...here.
48789         (hash_insert): Clarify restrictions on what can be inserted.
48790         (hash_get_next): Clarify when it is safe to remove an element
48791         during traversal.
48792         (check_tuning): Skip verification when tuning is known safe.
48793         (hash_initialize): Clarify restrictions on tuning.
48794
48795 2009-06-17  Jim Meyering  <jim@meyering.net>
48796         and Eric Blake  <ebb9@byu.net>
48797
48798         hash-tests: new module
48799         * modules/hash-tests: New file.
48800         * tests/test-hash.c: New file.
48801
48802 2009-06-17  Eric Blake  <ebb9@byu.net>
48803
48804         strstr-simple: document new module
48805         * MODULES.html.sh: Document new module.
48806
48807         strstr, strcasestr: replace on platforms with broken memchr
48808         * modules/strstr: Split into...
48809         * modules/strstr-simple: ...new module that does not care about
48810         performance, but does care about glibc bug.
48811         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48812         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48813         if platform memchr is broken, per Debian bug 521737.
48814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48815         memchr.
48816         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48817         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48818         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48819         * modules/mountlist (Depends-on): Add strstr-simple.
48820         * modules/gen-uni-tables (Depends-on): Likewise.
48821         * modules/argz (Depends-on): Add strstr.
48822
48823 2009-06-17  Bruno Haible  <bruno@clisp.org>
48824
48825         * modules/posix_spawn-internal (Depends-on): Add errno.
48826
48827 2009-06-17  Bruno Haible  <bruno@clisp.org>
48828
48829         Define missing ESTALE on Interix 3.5.
48830         * lib/errno.in.h (ESTALE): Assign a value if missing.
48831         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48832         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48833         missing.
48834         * doc/posix-headers/errno.texi: Mention the Interix bug.
48835         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48836
48837 2009-06-15  Eric Blake  <ebb9@byu.net>
48838
48839         memchr, memchr2: add valgrind exception
48840         * lib/memchr.valgrind: New file.
48841         * lib/memchr2.valgrind: New file.
48842         * modules/memchr (Files): Distribute valgrind file.
48843         * modules/memchr2 (Files): Likewise.
48844
48845         docs: memchr is no longer obsolete
48846         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48847         * lib/string.in.h (memchr): Simplify logic.
48848
48849 2009-06-14  Jim Meyering  <meyering@redhat.com>
48850
48851         link-follow: fix the "checking..." message to not mention trailing slash
48852         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48853         never considered trailing slashes.
48854
48855 2009-06-14  Bruno Haible  <bruno@clisp.org>
48856
48857         * m4/memchr.m4: Mention also the bug on IA-64.
48858         * doc/posix-functions/memchr.texi: Likewise.
48859
48860 2009-06-12  Eric Blake  <ebb9@byu.net>
48861
48862         memchr: detect broken x86_64 and alpha implementations
48863         * modules/memchr-tests (Depends-on): Move mmap detection...
48864         * modules/memchr (Depends-on): ...here.
48865         (configure.ac): Set indicator.
48866         * lib/string.in.h (memchr): Declare replacement.
48867         * modules/string (Makefile.am): Trigger replacement.
48868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48869         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48870         bugs.
48871         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48872         * modules/getpagesize (License): Relax license.
48873
48874 2009-06-11  Bruno Haible  <bruno@clisp.org>
48875
48876         * lib/idpriv.h: Add more references.
48877
48878 2009-06-08  Bruno Haible  <bruno@clisp.org>
48879
48880         Tests for module 'idpriv-droptemp'.
48881         * modules/idpriv-droptemp-tests: New file.
48882         * tests/test-idpriv-droptemp.sh: New file.
48883         * tests/test-idpriv-droptemp.su.sh: New file.
48884         * tests/test-idpriv-droptemp.c: New file.
48885
48886         New module 'idpriv-droptemp'.
48887         * lib/idpriv-droptemp.c: New file.
48888         * modules/idpriv-droptemp: New file.
48889
48890 2009-06-08  Bruno Haible  <bruno@clisp.org>
48891
48892         Tests for module 'idpriv-drop'.
48893         * modules/idpriv-drop-tests: New file.
48894         * tests/test-idpriv-drop.sh: New file.
48895         * tests/test-idpriv-drop.su.sh: New file.
48896         * tests/test-idpriv-drop.c: New file.
48897
48898         New module 'idpriv-drop'.
48899         * lib/idpriv.h: New file.
48900         * lib-idpriv-drop.c: New file.
48901         * m4/idpriv.m4: New file.
48902         * modules/idpriv-drop: New file.
48903
48904 2009-06-08  Bruno Haible  <bruno@clisp.org>
48905
48906         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48907         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48908         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48909         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48910         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48911         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48912         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48913
48914 2009-06-08  Eric Blake  <ebb9@byu.net>
48915
48916         test-strstr: use memory fence, when possible
48917         * tests/test-strstr.c (main): Use memory fence, in order to be
48918         more likely to trigger Debian bug 521737.
48919         * modules/strstr-tests (Files): Pull in additional files.
48920
48921         memchr: no longer obsolete, for wider field testing
48922         * modules/memchr (Status, Notice): Delete, this module is no
48923         longer obsolete.
48924         * modules/vasnprintf (Depends-on): Add memchr.
48925
48926 2009-06-07  Jim Meyering  <meyering@redhat.com>
48927
48928         hash: declare some functions with the warn_unused_result attribute
48929         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48930
48931 2009-06-07  Bruno Haible  <bruno@clisp.org>
48932
48933         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48934         Reported by Eric Blake.
48935
48936 2009-06-06  Eric Blake  <ebb9@byu.net>
48937
48938         test-alignof: fix typo with long double
48939         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48940         compiler error.
48941
48942 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48943
48944         Escape non-texinfo { and }s.
48945         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48946         markup error.
48947
48948 2009-06-04  Jim Meyering  <meyering@redhat.com>
48949
48950         gitlog-to-changelog: don't infloop on an empty commit log
48951         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48952         Reported by Boris Petersen <transacid@centerim.org>.
48953
48954 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48955
48956         version-etc: extend for packagers
48957         Add three new configure options, intended for packagers:
48958           --with-packager="packager name"
48959           --with-packager-version="packager-specific version"
48960           --with-packager-bug-reports="packager bug reporting"
48961         An example with coreutils:
48962           $ ./configure \
48963             --with-packager=Gentoo \
48964             --with-packager-bug-report=http://bugs.gentoo.org/ \
48965             --with-packager-version="patchset 1.6"
48966           $ ./src/ls --version | head -n2
48967           ls (GNU coreutils) 7.1-dirty
48968           Packaged by Gentoo (patchset 1.6)
48969         Note that the bug reporting info via --help doesn't show up because
48970         coreutils uses its own custom emit_bug_reporting_address() implementation
48971         in src/system.h.  If it didn't, it'd look like:
48972           $ ./src/ls --help | tail -n4
48973           Report bugs to <bug-coreutils@gnu.org>.
48974           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48975           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48976           General help using GNU software: <http://www.gnu.org/gethelp/>.
48977         * lib/version-etc.c: Print new information, if provided.
48978         * m4/version-etc.m4: New file.
48979         * modules/version-etc (Files): Add m4/version-etc.m4.
48980         (configure.ac): Add gl_VERSION_ETC.
48981
48982 2009-05-31  Bruno Haible  <bruno@clisp.org>
48983
48984         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48985         and 'int64_t'.
48986         * modules/alignof-tests (Dependencies): Add stdint.
48987         Reported by Eric Blake.
48988
48989 2009-05-31  Bruno Haible  <bruno@clisp.org>
48990
48991         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48992         restriction due to compiler bugs.
48993         Reported by Eric Blake.
48994
48995 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48996             Bruno Haible  <bruno@clisp.org>
48997
48998         Fix test-alignof failure.
48999         * lib/alignof.h (alignof_slot): New macro.
49000         (alignof_type): New macro, with the same semantics as the previous
49001         'alignof'.
49002         (alignof): Alias to alignof_slot.
49003         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49004         check that the results are usable as constant expressions.
49005
49006 2009-05-31  Bruno Haible  <bruno@clisp.org>
49007
49008         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49009         * tests/test-memchr.c (main): Check that memchr does not read past the
49010         first occurrence of the byte.
49011         * tests/test-strstr.c (main): Update comment.
49012         Suggested by Eric Blake.
49013
49014 2009-05-30  Bruno Haible  <bruno@clisp.org>
49015
49016         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49017         detail how to use dumpbin.
49018         Reported by David Byron <dbyron@dbyron.com>.
49019
49020 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49021
49022         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49023
49024 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49025
49026         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49027
49028 2009-05-28  Bruno Haible  <bruno@clisp.org>
49029
49030         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49031         build-aux/ files.
49032
49033 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49034
49035         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49036
49037 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49038
49039         * gnulib-tool (sed_transform_main_lib_file)
49040         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49041         regexps.
49042
49043 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49044
49045         * tests/test-strstr.c: Add another self-test.
49046         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49047         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49048
49049 2009-05-23  Bruno Haible  <bruno@clisp.org>
49050
49051         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49052         change.
49053
49054 2009-05-21  Bruno Haible  <bruno@clisp.org>
49055
49056         Simplify use of mode_t varargs.
49057         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49058         uses 'mode_t' or 'int'.
49059         * lib/openat.c (openat): Likewise.
49060         * lib/open-safer.c (open_safer): Likewise.
49061         * m4/mode_t.m4: New file.
49062         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49063         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49064         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49065         * modules/open (Files): Add m4/mode_t.m4.
49066         * modules/openat (Files): Likewise.
49067         * modules/fcntl-safer (Files): Likewise.
49068         Suggested by Eric Blake.
49069
49070 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49071
49072         * doc/glibc-functions/fallocate.texi: New file.
49073         * doc/gnulib.texi: Include it.
49074
49075 2009-05-21  Eric Blake  <ebb9@byu.net>
49076             Bruno Haible  <bruno@clisp.org>
49077
49078         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49079         invocations.
49080         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49081
49082 2009-05-21  Eric Blake  <ebb9@byu.net>
49083             Bruno Haible  <bruno@clisp.org>
49084
49085         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49086         include_next. Fix of 2008-11-20 commit.
49087         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49088         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49089         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49090         NEXT_MATH_H.
49091         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49092         instead of NEXT_MATH_H.
49093
49094 2009-05-21  Bruno Haible  <bruno@clisp.org>
49095
49096         Avoid redefinition warnings for SIZE_MAX.
49097         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49098         Reported by Simon Josefsson.
49099
49100 2009-05-21  Bruno Haible  <bruno@clisp.org>
49101
49102         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49103         AC_CACHE_VAL.
49104
49105 2009-05-20  Bruno Haible  <bruno@clisp.org>
49106
49107         Make zeroptr.h work on mingw.
49108         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49109         mprotect.
49110         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49111         * modules/memchr2-tests (configure.ac): Likewise.
49112         * modules/memcmp-tests (configure.ac): Likewise.
49113         * modules/memmem-tests (configure.ac): Likewise.
49114         * modules/memrchr-tests (configure.ac): Likewise.
49115         Reported by Simon Josefsson.
49116
49117 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49118
49119         * tests/test-glob.c: Include string.h for strcmp prototype.
49120
49121 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49122
49123         * modules/getdelim (Depends-on): Add explicit stdint, although it
49124         was implicitly already pulled in via realloc-posix.
49125         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49126
49127 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49128
49129         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49130         G. Christensen" <tgc@jupiterrise.com>.
49131         * m4/sys_socket_h.m4: Check for sa_family_t.
49132         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49133         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49134         * tests/test-sys_socket.c: Check that sa_family_t works.
49135
49136 2009-05-18  Eric Blake  <ebb9@byu.net>
49137
49138         maint.mk: allow gnulib_dir in VPATH build
49139         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49140
49141 2009-05-15  Jim Meyering  <meyering@redhat.com>
49142
49143         maint.mk: Give gnulib_dir a default definition.
49144         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49145         Thus, most packages no longer need to specify this variable in cfg.mk
49146
49147 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49148
49149         rename.m4: fix typos that would make non-mingw cross-configure fail
49150         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49151
49152 2009-05-13  Eric Blake  <ebb9@byu.net>
49153
49154         mmap-anon: avoid out-of-order autoconf expansion
49155         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49156         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49157         * modules/memchr-tests (Depends-on): Add extensions.
49158         * modules/memchr2-tests (Depends-on): Add extensions.
49159         * modules/memcmp-tests (Depends-on): Add extensions.
49160         * modules/memmem-tests (Depends-on): Add extensions.
49161         * modules/memrchr-tests (Depends-on): Add extensions.
49162
49163 2009-05-13  Bruno Haible  <bruno@clisp.org>
49164
49165         Make some tests ISO C 99 compliant.
49166         * tests/zerosize-ptr.h: New file.
49167         * tests/test-memchr.c: Include zerosize-ptr.h.
49168         (main): Use a zero-size object pointer instead of NULL.
49169         * tests/test-memchr2.c: Include zerosize-ptr.h.
49170         (main): Use a zero-size object pointer instead of NULL.
49171         * tests/test-memcmp.c: Include zerosize-ptr.h.
49172         (main): Use a zero-size object pointer instead of NULL.
49173         * tests/test-memmem.c: Include zerosize-ptr.h.
49174         (main): Use a zero-size object pointer instead of NULL.
49175         * tests/test-memrchr.c: Include zerosize-ptr.h.
49176         (main): Use a zero-size object pointer instead of NULL.
49177         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49178         m4/mmap-anon.m4.
49179         (Depends-on): Add getpagesize.
49180         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49181         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49182         m4/mmap-anon.m4.
49183         (Depends-on): Add getpagesize.
49184         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49185         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49186         m4/mmap-anon.m4.
49187         (Depends-on): Add getpagesize.
49188         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49189         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49190         m4/mmap-anon.m4.
49191         (Depends-on): Add getpagesize.
49192         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49193         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49194         m4/mmap-anon.m4.
49195         (Depends-on): Add getpagesize.
49196         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49197
49198 2009-05-12  Bruno Haible  <bruno@clisp.org>
49199
49200         Tests for module 'alignof'.
49201         * modules/alignof-tests: New file.
49202         * tests/test-alignof.c: New file.
49203
49204 2009-05-12  Bruno Haible  <bruno@clisp.org>
49205
49206         Fix alignof macro.
49207         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49208         vendor compilers that are always correct.
49209
49210 2009-05-12  Bruno Haible  <bruno@clisp.org>
49211
49212         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49213         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49214         not whether its fully works.
49215
49216 2009-05-12  Bruno Haible  <bruno@clisp.org>
49217
49218         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49219
49220 2009-05-12  Jim Meyering  <meyering@redhat.com>
49221
49222         * top/maint.mk: Adjust backslash alignment.
49223
49224 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49225
49226         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49227
49228 2009-05-11  Eric Blake  <ebb9@byu.net>
49229
49230         argp: avoid undefined behavior
49231         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49232         macros.
49233
49234 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49235
49236         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49237         user.name to prevent git commit from complaining.
49238
49239 2009-05-10  Bruno Haible  <bruno@clisp.org>
49240
49241         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49242         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49243         it rewrites every file name only once.
49244         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49245
49246 2009-05-08  Bruno Haible  <bruno@clisp.org>
49247
49248         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49249         instead of 'max'.
49250
49251 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49252
49253         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49254         sockaddr_storage test.
49255
49256 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49257
49258         * modules/sys_socket (Makefile.am): Substitute
49259         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49260         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49261         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49262         * tests/test-sys_socket.c: Check sockaddr_storage.
49263
49264 2009-05-08  Bruno Haible  <bruno@clisp.org>
49265
49266         New module 'alignof'.
49267         * lib/alignof.h: New file.
49268         * modules/alignof: New file.
49269
49270 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49271             Bruno Haible  <bruno@clisp.org>
49272
49273         Fix test-file-has-acl on FreeBSD.
49274         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49275         mask is implicitly added.
49276         * tests/test-file-has-acl.c: Include <signal.h>.
49277         (main): Terminate the test after 5 seconds.
49278         * modules/acl-tests (configure.ac): Check for alarm function.
49279
49280 2009-05-04  Bruno Haible  <bruno@clisp.org>
49281
49282         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49283         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49284         * modules/errno (configure.ac): Drop AC_REQUIRE.
49285         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49286         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49287
49288 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49289
49290         * modules/glob-tests: New module.
49291         * tests/test-glob.c: Add.
49292
49293 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49294
49295         * modules/fnmatch-tests: New module.
49296         * tests/test-fnmatch.c: Add.
49297
49298 2009-05-04  Eric Blake  <ebb9@byu.net>
49299
49300         maint: make the new no-submodule-changes rule VPATH-safe
49301         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49302
49303 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49304             Bruno Haible  <bruno@clisp.org>
49305
49306         acl: Fix infinite loop on FreeBSD.
49307         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49308         of return value from acl_get_entry.
49309         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49310         Likewise.
49311
49312 2009-05-03  Bruno Haible  <bruno@clisp.org>
49313
49314         * lib/acl-internal.h (acl_entries): Clarify return value.
49315         * lib/acl_entries.c (acl_entries): Likewise.
49316
49317 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49318
49319         Bug fix in acl module.
49320         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49321
49322 2009-05-03  Bruno Haible  <bruno@clisp.org>
49323
49324         Create gperf-generated file in the source dir, not in the build dir.
49325         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49326         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49327         * modules/unicase/locale-language (unicase/locale-languages.h):
49328         Likewise.
49329         * modules/unicase/special-casing (unicase/special-casing-table.h):
49330         Likewise.
49331         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49332         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49333         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49334         Reported by Ralf Wildenhues.
49335
49336 2009-05-03  Bruno Haible  <bruno@clisp.org>
49337
49338         * modules/fnmatch (Description, configure.ac): Taken from
49339         fnmatch-posix.
49340         * modules/fnmatch-posix: Turn into a symbolic reference to the
49341         'fnmatch' module, and deprecate.
49342         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49343
49344 2009-05-03  Bruno Haible  <bruno@clisp.org>
49345
49346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49347         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49348         Reported by Ralf Wildenhues.
49349
49350 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49351
49352         * m4/fnmatch.m4: Fix fnmatch re-define.
49353
49354 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49355
49356         priv-set: new module and tests; adapt write-any-file
49357         * lib/priv-set.c: New file.
49358         * lib/priv-set.h: New file.
49359         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49360         * lib/write-any-file.c: Simplify by using priv-set module.
49361         * m4/priv-set.m4: New file.
49362         * modules/priv-set: New file.
49363         * modules/unlinkdir: Add dependency on priv-set module.
49364         * modules/write-any-file: Likewise.
49365
49366         Tests for module 'priv-set'.
49367         * modules/priv-set-tests: New file.
49368         * tests/test-priv-set.c: New file.
49369
49370 2009-05-03  Jim Meyering  <meyering@redhat.com>
49371             Bruno Haible  <bruno@clisp.org>
49372
49373         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49374         use the converted UTF-8 variant of the name instead.
49375
49376 2009-05-03  Jim Meyering  <meyering@redhat.com>
49377
49378         tests: tighten some getdate tests
49379         * tests/test-getdate.c (main): Tighten tests: require equality,
49380         not just greater than.  Set TZ envvar to UTC0.
49381
49382 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49383
49384         getdate: correctly interpret "next monday" when run on a Monday
49385         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49386         that e.g., "next tues" (when run on a tuesday) results in a date
49387         that is one week in the future, and not today's date.
49388         I.e., add a week when the wday is the same as the current one.
49389         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49390         and earlier by Martin Bernreuther and Jan Minář.
49391         * tests/test-getdate.c (main): Check that "next DAY" is always in
49392         the future and that "last DAY" is always in the past.
49393
49394 2009-05-02  Jim Meyering  <meyering@redhat.com>
49395
49396         build: ensure that a release build fails when a submodule is unclean
49397         * top/maint.mk (no-submodule-changes): New rule.
49398         (alpha beta major): Depend on it.
49399
49400 2009-05-02  Bruno Haible  <bruno@clisp.org>
49401
49402         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49403         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49404         shell variable gl_fnmatch_required to detect which variant is
49405         requested.
49406         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49407         gl_FUNC_FNMATCH_POSIX.
49408         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49409         exclude fnmatch-posix.
49410
49411 2009-05-02  Bruno Haible  <bruno@clisp.org>
49412
49413         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49414         * modules/mbsrtowcs (License): Change to LGPLv2+.
49415         * modules/strnlen1 (License): Likewise.
49416         Reported by Simon Josefsson.
49417
49418 2009-05-02  Bruno Haible  <bruno@clisp.org>
49419
49420         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49421         "cross".
49422         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49423         gnulib-tool was called with option --source-base=lib.
49424
49425 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49426
49427         Use automake *-local hooks without commands, for extensibility.
49428         * modules/localcharset (Makefile.am): Rename install-exec-local
49429         rule to install-exec-localcharset, and make it a prerequisite of
49430         install-exec-local.  Likewise, rename the uninstall-local rule to
49431         uninstall-localcharset, and make it a prerequisite of the former.
49432
49433 2009-05-01  Bruno Haible  <bruno@clisp.org>
49434
49435         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49436         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49437         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49439         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49440         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49441         m4/locale-zh.m4, m4/codeset.m4.
49442
49443         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49444         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49445         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49446         m4/locale-zh.m4.
49447
49448         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49449         REPLACE_WCRTOMB if mbstate_t must be replaced.
49450         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49451         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49452
49453 2009-05-01  Bruno Haible  <bruno@clisp.org>
49454
49455         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49456         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49457         dngettext, dcngettext, textdomain, bindtextdomain,
49458         bind_textdomain_codeset): Undefine before redefining.
49459
49460 2009-04-30  Bruno Haible  <bruno@clisp.org>
49461
49462         Fix bug introduced on 2009-04-25.
49463         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49464         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49465         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49466         is defined.
49467         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49468         is defined.
49469         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49470         is defined.
49471         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49472
49473 2009-04-28  Bruno Haible  <bruno@clisp.org>
49474
49475         Comment tweaks.
49476         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49477         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49478         * lib/unicase.h (u*_casexfrm): Likewise.
49479         Reported by Paolo Bonzini.
49480
49481 2009-04-28  Bruno Haible  <bruno@clisp.org>
49482
49483         Fix a compilation error.
49484         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49485         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49486         Reported by Jim Meyering.
49487
49488 2009-04-27  Bruno Haible  <bruno@clisp.org>
49489
49490         New module 'libunistring'.
49491         * modules/libunistring: New file.
49492         * m4/libunistring.m4: New file.
49493         * MODULES.html.sh (Unicode string functions): Add it.
49494
49495 2009-04-27  Eric Blake  <ebb9@byu.net>
49496
49497         maint.mk: allow package-specific header to provide <config.h>
49498         * top/maint.mk (sc_require_config_h): New variable.
49499         (sc_require_config_h, sc_require_config_h_first): Use it.
49500
49501 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49502
49503         * top/maint.mk (sc_avoid_if_before_free): Except
49504         useless-if-before-free script.
49505
49506 2009-04-27  Eric Blake  <ebb9@byu.net>
49507
49508         maintainer-makefile: depend on all required helper scripts
49509         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49510         useless-if-before-free.
49511         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49512         version, rather than assuming gnulib checkout is available.
49513         Reported by Simen Josefsson.
49514
49515 2009-04-26  Bruno Haible  <bruno@clisp.org>
49516
49517         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49518         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49519         "../" or "..".
49520
49521 2009-04-26  Bruno Haible  <bruno@clisp.org>
49522
49523         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49524         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49525         AC_LIB_HAVE_LINKFLAGS.
49526
49527 2009-04-26  Bruno Haible  <bruno@clisp.org>
49528
49529         Simplify calling convention of u*_conv_from_encoding.
49530         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49531         u32_conv_from_encoding): Expect a resultbuf argument and return the
49532         result directly as a pointer.
49533         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49534         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49535         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49536         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49537         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49538         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49539         Update.
49540         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49541         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49542         * lib/vasnprintf.c (VASNPRINTF): Update.
49543         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49544         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49545         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49546         * NEWS: Mention the change.
49547
49548 2009-04-26  Bruno Haible  <bruno@clisp.org>
49549
49550         Simplify calling convention of u*_conv_to_encoding.
49551         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49552         u32_conv_to_encoding): Expect a resultbuf argument and return the
49553         result directly as a pointer.
49554         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49555         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49556         freeing scaled_offsets if mem_iconveha failed.
49557         * lib/unicase/u-casexfrm.h (FUNC): Update.
49558         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49559         * lib/vasnprintf.c (VASNPRINTF): Update.
49560         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49561         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49562         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49563         * NEWS: Mention the change.
49564
49565 2009-04-26  Bruno Haible  <bruno@clisp.org>
49566
49567         Avoid test failures on AIX and OSF/1.
49568         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49569         malloc(0).
49570         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49571         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49572         Likewise.
49573         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49574         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49575         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49576         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49577         * doc/posix-functions/malloc.texi: Document the portability problem
49578         related to malloc(0).
49579
49580 2009-04-26  Bruno Haible  <bruno@clisp.org>
49581
49582         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49583         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49584         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49585
49586 2009-04-25  Bruno Haible  <bruno@clisp.org>
49587
49588         Avoid link error when creating a namespace clean library.
49589         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49590         as macro with arguments if already defined as an alias.
49591         * lib/signbitf.c (gl_signbitf): Don't undefine.
49592         * lib/signbitd.c (gl_signbitd): Don't undefine.
49593         * lib/signbitl.c (gl_signbitl): Don't undefine.
49594
49595 2009-04-25  Jim Meyering  <meyering@redhat.com>
49596
49597         vc-list-files: fix another quoting bug
49598         * build-aux/vc-list-files: Avoid sed backslash expansion
49599         of pathological directory names.
49600
49601 2009-04-25  Eric Blake  <ebb9@byu.net>
49602
49603         vc-list-files: fix shell quoting error
49604         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49605         timestamp.
49606
49607 2009-04-25  Jim Meyering  <meyering@redhat.com>
49608
49609         vc-list-files: restore lost functionality with subdir argument
49610         * build-aux/vc-list-files: When given a non-"." sub-directory
49611         argument, substitute the $dir/ prefix back onto each resulting name.
49612         Otherwise, coreutils' root_tests check would fail.
49613
49614 2009-04-24  Eric Blake  <ebb9@byu.net>
49615
49616         vc-list-files: ignore git symlinks
49617         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49618         than ls-files, to ignore git symlinks.
49619
49620         maint.mk: import improvements from m4
49621         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49622         (move_if_change): Delete unused macro.
49623         (news-date-check, vc-diff-check): Support VPATH builds.
49624         (announcement): Likewise.  Split --bootstrap-tools list...
49625         (boostrap-tools): ...into separate list, which can be overridden
49626         in cfg.mk.
49627         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49628         requiring dependency on useless-if-before-free module.
49629         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49630         Support VPATH builds.
49631
49632 2009-04-24  Jim Meyering  <meyering@redhat.com>
49633
49634         maint.mk: remove coreutils-specific rules and variables
49635         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49636         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49637         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49638
49639         maint.mk: remove obsolete rule
49640         * top/maint.mk (rel-check): Remove rule.
49641         (WGET, WGETFLAGS): Remove now-unused variables.
49642
49643 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49644
49645         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49646         consistency.
49647
49648         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49649         '$(PATH_SEPARATOR)' instead of ':'.
49650
49651 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49652
49653         * lib/getopt1.c (main): Use 'const' for static array.
49654
49655 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49656
49657         * top/maint.mk: Sync with coreutils.
49658         * NEWS: Explain incompatibilities.
49659
49660 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49661             Bruno Haible  <bruno@clisp.org>
49662
49663         Fix cross-compilation results.
49664         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49665         statement, as third argument of AC_TRY_RUN.
49666         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49667         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49668         Likewise.
49669         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49670         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49671         Likewise.
49672         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49673         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49674         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49675
49676 2009-04-20  Bruno Haible  <bruno@clisp.org>
49677
49678         Avoid test failure on mingw.
49679         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49680
49681 2009-04-20  Bruno Haible  <bruno@clisp.org>
49682
49683         Avoid compilation error on mingw.
49684         * modules/localename-tests (Depends-on): Add locale.
49685
49686 2009-04-19  Bruno Haible  <bruno@clisp.org>
49687
49688         Support for building a shared library on Windows platforms.
49689         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49690         (main): Test the presence of UNINORM_NFC here.
49691         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49692         (main): Test the presence of UNINORM_NFD here.
49693         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49694         (main): Test the presence of UNINORM_NFKC here.
49695         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49696         (main): Test the presence of UNINORM_NFKD here.
49697
49698 2009-04-19  Bruno Haible  <bruno@clisp.org>
49699
49700         Avoid a compiler warning.
49701         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49702         Change type of variable 'sequence'.
49703
49704 2009-04-19  Bruno Haible  <bruno@clisp.org>
49705
49706         * modules/configmake (Makefile.am): When the contents of configmake.h
49707         does not change, arrange to preserve its modification time.
49708
49709 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49710
49711         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49712         gettext domain.
49713
49714 2009-04-16  Jim Meyering  <meyering@redhat.com>
49715
49716         useless-if-before-free: improve conversion code
49717         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49718         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49719
49720 2009-04-14  Bruno Haible  <bruno@clisp.org>
49721
49722         * modules/fcntl (Depends-on): Add extensions.
49723         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49724
49725 2009-04-12  Ben Pfaff  <blp@gnu.org>
49726
49727         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49728         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49729
49730 2009-03-20  Ben Pfaff  <blp@gnu.org>
49731
49732         Make rename replace existing destinations on Windows.
49733         * m4/rename.m4: Add test for Mingw.
49734         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49735         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49736         * doc/posix-functions/rename.texi: Document.
49737
49738 2009-04-10  Bruno Haible  <bruno@clisp.org>
49739
49740         New include file "iconveh.h".
49741         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49742         * lib/striconveh.h: Include it.
49743         (enum iconv_ilseq_handler): Remove definition.
49744         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49745         striconveh.h.
49746         * lib/striconveha.c: Include striconveh.h.
49747         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49748         * modules/striconveh (Files): Add lib/iconveh.h.
49749         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49750         lib/striconveh.h.
49751
49752 2009-04-10  Bruno Haible  <bruno@clisp.org>
49753
49754         * lib/uniconv.h: Update comment.
49755
49756 2009-04-10  Bruno Haible  <bruno@clisp.org>
49757
49758         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49759         always.
49760         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49761         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49762         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49763         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49764         "unistring-notinline.h", so that the function gets defined always.
49765         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49766         * lib/unistr/u8-uctomb.c: Likewise.
49767         * lib/unistr/u16-mbtouc.c: Likewise.
49768         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49769         * lib/unistr/u16-uctomb.c: Likewise.
49770         * lib/unistr/u32-mbtouc.c: Likewise.
49771         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49772         * lib/unistr/u32-uctomb.c: Likewise.
49773
49774 2009-04-10  Bruno Haible  <bruno@clisp.org>
49775
49776         Mark 'utime' obsolete.
49777         * modules/utime (Status, Notice): New sections.
49778         Suggested by Jim Meyering.
49779
49780         Fix cross-compile guess for utime test.
49781         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49782         autoconf.
49783         * doc/posix-functions/utime.texi: Give more precisions.
49784         Reported by Jan <ipif@ymail.com>.
49785
49786 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49787
49788         filevercmp: correct today's change
49789         * lib/filevercmp.c: Also handle coreutils' test inputs.
49790         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49791
49792         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49793         for reporting it.
49794         * lib/filevercmp.c: Special handle for "", "." and "..".
49795         * tests/test-filevercmp.c: Enlarge the set suite.
49796
49797 2009-04-07  Jim Meyering  <meyering@redhat.com>
49798
49799         useless-if-before-free: show how to remove braced useless free, too
49800         * build-aux/useless-if-before-free: still only in a comment, though.
49801
49802 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49803
49804         maint.mk: import changes to syntax-check macros from coreutils
49805         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49806         Use them in the relevant macros.
49807
49808 2009-04-06  Bruno Haible  <bruno@clisp.org>
49809
49810         Fix unportable use of bit-fields.
49811         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49812         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49813         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49814
49815 2009-04-06  Bruno Haible  <bruno@clisp.org>
49816
49817         Avoid test failures on AIX and OSF/1.
49818         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49819         that malloc(0) = NULL.
49820         * tests/unicase/test-u8-tolower.c (check): Likewise.
49821         * tests/unicase/test-u8-totitle.c (check): Likewise.
49822         * tests/unicase/test-u8-toupper.c (check): Likewise.
49823         * tests/unicase/test-u16-casefold.c (check): Likewise.
49824         * tests/unicase/test-u16-tolower.c (check): Likewise.
49825         * tests/unicase/test-u16-totitle.c (check): Likewise.
49826         * tests/unicase/test-u16-toupper.c (check): Likewise.
49827         * tests/unicase/test-u32-casefold.c (check): Likewise.
49828         * tests/unicase/test-u32-tolower.c (check): Likewise.
49829         * tests/unicase/test-u32-totitle.c (check): Likewise.
49830         * tests/unicase/test-u32-toupper.c (check): Likewise.
49831         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49832         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49833         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49834         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49835         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49836         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49837         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49838         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49839         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49840         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49841         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49842         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49843
49844 2009-04-05  Bruno Haible  <bruno@clisp.org>
49845
49846         Work around an autoconf limitation.
49847         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49848         comment line if it would be longer than 3 KB.
49849
49850 2009-04-05  Bruno Haible  <bruno@clisp.org>
49851
49852         Avoid test failure with libiconv-1.13.
49853         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49854         of the expected test results.
49855
49856 2009-04-05  Bruno Haible  <bruno@clisp.org>
49857
49858         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49859         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49860         that it should be installed.
49861
49862 2009-04-05  Bruno Haible  <bruno@clisp.org>
49863
49864         * gnulib-tool: New option --copy-file.
49865         (func_usage): Document it.
49866         (func_dest_tmpfilename): Moved out of func_import.
49867         (func_add_file, func_update_file): New functions, extracted from
49868         func_import.
49869         (func_import): Update.
49870
49871 2009-04-05  Karl Berry  <karl@gnu.org>
49872
49873         * README: prominently mention gnulib-tool.
49874         Rearrange sections so getting the code is near the top.
49875
49876 2009-04-05  Bruno Haible  <bruno@clisp.org>
49877
49878         * lib/unicase.h: Mention u*_cmp2.
49879         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49880         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49881         * lib/unicase/ulc-casecmp.c: Likewise.
49882         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49883         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49884         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49885         unistr/u8-cmp.
49886         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49887         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49888         unistr/u16-cmp.
49889         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49890         unistr/u32-cmp.
49891
49892         * lib/uninorm.h: Mention u*_cmp2.
49893         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49894         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49895         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49896         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49897         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49898         unistr/u8-cmp.
49899         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49900         unistr/u16-cmp.
49901         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49902         unistr/u32-cmp.
49903
49904         New module 'unistr/u32-cmp2'.
49905         * lib/unistr/u32-cmp2.c: New file.
49906         * modules/unistr/u32-cmp2: New file.
49907
49908         New module 'unistr/u16-cmp2'.
49909         * lib/unistr/u16-cmp2.c: New file.
49910         * modules/unistr/u16-cmp2: New file.
49911
49912         New module 'unistr/u8-cmp2'.
49913         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49914         * lib/unistr/u8-cmp2.c: New file.
49915         * lib/unistr/u-cmp2.h: New file.
49916         * modules/unistr/u8-cmp2: New file.
49917
49918 2009-04-05  Bruno Haible  <bruno@clisp.org>
49919
49920         * lib/unictype.h (uc_property_is_valid): New macro.
49921         * tests/unictype/test-pr_byname.c (main): Use it.
49922
49923         * lib/unistr.h: Doc fixes.
49924         * lib/uniconv.h: Doc fixes.
49925         * lib/unictype.h: Doc fixes.
49926
49927 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         Port coreutils 7.2 to Solaris 8.
49930
49931         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49932         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49933         for Solaris 8.  This is a bit of a hack, as it means it's the
49934         caller's responsibility to add -lnsl if needed, but most likely it
49935         won't be needed since only getaddrinfo uses this and getaddrinfo
49936         isn't needed on Solaris 8.
49937
49938         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49939         problem to Solaris 8 encountered with coreutils 7.2, which
49940         resulted in a message "fnmatch.c:292: warning: passing argument 4
49941         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49942         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49943
49944 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49945
49946         * m4/ld-version-script.m4: Add FIXME comment.
49947
49948 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49949
49950         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49951         SOVERSION variable.
49952
49953 2009-04-02  Bruno Haible  <bruno@clisp.org>
49954
49955         * Makefile (info, html, dvi, pdf): Combine the rules.
49956         Suggested by Jim Meyering.
49957
49958 2009-04-01  Bruno Haible  <bruno@clisp.org>
49959
49960         * Makefile (info, html, dvi, pdf): New targets.
49961         Reported by Reuben Thomas <rrt@sc3d.org>.
49962
49963 2009-04-01  Bruno Haible  <bruno@clisp.org>
49964
49965         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49966         can be put into PATH.
49967         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49968
49969 2009-04-01  Bruno Haible  <bruno@clisp.org>
49970
49971         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49972
49973 2009-04-01  Bruno Haible  <bruno@clisp.org>
49974
49975         Rename module 'visibility'.
49976         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49977         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49978         * doc/gnulib.texi: Update.
49979         * MODULES.html.sh (Misc): Update.
49980         * NEWS: Mention the change.
49981
49982 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49983
49984         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49985         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49986         Eric Blake <ebb9@byu.net> for review.
49987         * MODULES.html.sh: Add lib-msvc-compat.
49988         * doc/gnulib.texi: Link to new section.
49989         * m4/ld-output-def.m4: New file.
49990         * doc/ld-output-def.texi: New file.
49991
49992 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49993
49994         Rename ld-version-script to lib-symbol-versions.  Suggested by
49995         Bruno Haible <bruno@clisp.org>.
49996         * modules/ld-version-script: Renamed to lib-symbol-versions.
49997         * doc/ld-version-script.texi: Fix module name.
49998         * MODULES.html.sh: Add lib-symbol-versions.
49999
50000 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50001
50002         * modules/u64-tests: New file.
50003         * tests/test-u64.c: New file.
50004
50005 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50006
50007         * MODULES.html.sh: Mention u64.
50008         * modules/u64: New module.
50009         * modules/crypto/sha512: Depend on u64 module instead of providing
50010         u64.h.
50011
50012 2009-03-27  Eric Blake  <ebb9@byu.net>
50013
50014         test-strerror: make debugging EAI_SYSTEM easier
50015         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50016         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50017         failure was EAI_SYSTEM.
50018
50019 2009-03-25  Bruno Haible  <bruno@clisp.org>
50020
50021         Fix a problem with --enable-relocatable on Solaris 7.
50022         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50023         since 2008-02-24.
50024
50025 2009-03-25  Eric Blake  <ebb9@byu.net>
50026
50027         test-sockets: avoid gcc warning
50028         * tests/test-sockets.c (main): Silence compiler warning.
50029
50030 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50031
50032         New modules nproc, pthread, contributed by Glen Lenker.
50033
50034         * MODULES.html.sh: Add pthread, nproc.
50035         * lib/nproc.c: New file.
50036         * lib/nproc.h: New file.
50037         * lib/pthread.in.h: New file.
50038         * m4/pthread.m4: New file.
50039         * modules/nproc: New file.
50040         * modules/pthread: New file.
50041
50042 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50043
50044         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50045         New variable.
50046
50047 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50048
50049         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50050         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50051         * tests/test-filevercmp.c: Add tests for backup suffixes.
50052
50053 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50054
50055         * modules/stdlib (Depends-on): Add stdint, needed when defining
50056         struct random_data on, for example, HP-UX 10.20.  Reported by
50057         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50058
50059 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50060
50061         * lib/readline.c (readline): Call fflush on stdout after printing
50062         prompt.
50063
50064 2009-03-20  Bruno Haible  <bruno@clisp.org>
50065
50066         Remove dependency from 'close' module to -lws2_32 on native Windows.
50067         * lib/close-hook.h: New file.
50068         * lib/close-hook.c: New file.
50069         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50070         w32sock.h.
50071         (_gl_close_fd_maybe_socket): Remove function.
50072         (rpl_close): Invoke execute_all_close_hooks instead of
50073         _gl_close_fd_maybe_socket.
50074         * lib/sockets.c: Include close-hook.h, w32sock.h.
50075         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50076         (close_sockets_hook): New variable.
50077         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50078         (gl_sockets_cleanup): Unregister it.
50079         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50080         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50081         * modules/close-hook: New file.
50082         * modules/close (Files): Remove lib/w32sock.h.
50083         (Depends-on): Add close-hook.
50084         (Link): Remove section.
50085         * modules/sockets (Files): Add lib/w32sock.h.
50086         (Depends-on): Add close-hook.
50087         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50088         invocation.
50089         * NEWS: Mention that LIB_CLOSE is gone.
50090
50091 2009-03-23  Eric Blake  <ebb9@byu.net>
50092
50093         signal-tests: test previous patch
50094         * tests/test-signal.c: New file.
50095         * modules/signal-tests: Likewise.
50096
50097         signal.h: always support 'volatile sig_atomic_t'
50098         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50099         (gl_SIGNAL_H_DEFAULTS): Add a default.
50100         * modules/signal (Makefile.am): Substitute if needed.
50101         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50102         users can blindly add volatile.
50103         * doc/posix-headers/signal.texi (signal.h): Document it.
50104         Reported by Matthew Woehlke.
50105
50106 2009-03-23  Jim Meyering  <meyering@redhat.com>
50107
50108         pathmax: PATH_MAX: use pathconf only when available
50109         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50110         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50111         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50112         This avoids a link failure in a PSP cross-compilation environment
50113         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50114
50115         * lib/vasnprintf.c (divide): Fix typo in comment.
50116
50117 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50118
50119         * gnulib-tool (func_filter_filelist): Fix comment.
50120
50121 2009-03-20  Bruno Haible  <bruno@clisp.org>
50122
50123         Make sockets.h self-contained.
50124         * lib/sockets.c: Include sockets.h first.
50125         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50126
50127 2009-03-19  Eric Blake  <ebb9@byu.net>
50128
50129         doc: mention more functions added in cygwin 1.7.0
50130         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50131         addition.
50132         * doc/posix-functions/log2f.texi: Likewise.
50133
50134 2009-03-19  Jim Meyering  <meyering@redhat.com>
50135
50136         fsusage: avoid syntax error due to statement-before-declaration
50137         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50138         after all declarations.  Reported by Matthew Woehlke in
50139         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50140
50141 2009-03-18  Eric Blake  <ebb9@byu.net>
50142
50143         build-aux/compile: sync from automake
50144         * build-aux/compile: New file, from automake.
50145         * config/srclist.txt: Mention build-aux/compile.
50146
50147 2009-03-17  Bruno Haible  <bruno@clisp.org>
50148
50149         * lib/git-merge-changelog.c: Fix typo in comment.
50150         Reported by Reuben Thomas <rrt@sc3d.org>.
50151
50152 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50153
50154         * m4/regex.m4: update and improve help for
50155         --without-included-regex.
50156
50157 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50158
50159         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50160         failure on missing include files.
50161
50162 2009-03-17  Eric Blake  <ebb9@byu.net>
50163
50164         doc: mention more functions added in cygwin 1.7.0
50165         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50166         addition.
50167         * doc/posix-functions/fwscanf.texi: Likewise.
50168         * doc/posix-functions/swprintf.texi: Likewise.
50169         * doc/posix-functions/swscanf.texi: Likewise.
50170         * doc/posix-functions/vfwprintf.texi: Likewise.
50171         * doc/posix-functions/vfwscanf.texi: Likewise.
50172         * doc/posix-functions/vswprintf.texi: Likewise.
50173         * doc/posix-functions/vswscanf.texi: Likewise.
50174         * doc/posix-functions/vwprintf.texi: Likewise.
50175         * doc/posix-functions/vwscanf.texi: Likewise.
50176         * doc/posix-functions/wcscasecmp.texi: Likewise.
50177         * doc/posix-functions/wcsdup.texi: Likewise.
50178         * doc/posix-functions/wcsftime.texi: Likewise.
50179         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50180         * doc/posix-functions/wprintf.texi: Likewise.
50181         * doc/posix-functions/wscanf.texi: Likewise.
50182         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50183
50184 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50185
50186         maint.mk: really add $(AM_MAKEFLAGS)
50187         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50188         was inadvertently omitted in the last commit.
50189         Spotted by Bruno Haible.
50190
50191         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50192         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50193         $(AM_MAKEFLAGS)' rather than plain `make'.
50194
50195         gnulib-tool: execute $MAKE not make
50196         * gnulib-tool: Default $MAKE to 'make'.
50197         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50198         than make.  Initialize $MAKE in the do-autobuild script.
50199
50200         gnulib-tool: use $MAKE not make in generated files
50201         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50202         make, in generated files.  Initialize $MAKE in the do-autobuild
50203         script.
50204
50205         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50206
50207         GNUmakefile: disable parallelism only for multiple, recursive targets
50208         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50209         additions in the Makefile.
50210         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50211         by Automake.
50212         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50213         are listed on the command line and at least one of them is
50214         listed in $(ALL_RECURSIVE_TARGETS).
50215
50216 2009-03-14  Bruno Haible  <bruno@clisp.org>
50217
50218         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50219         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50220         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50221         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50222         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50223         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50224         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50225         unistr/u8-uctomb.
50226         * modules/unistr/u8-strchr (Depends-on): Likewise.
50227         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50228         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50229         unistr/u16-uctomb.
50230         * modules/unistr/u16-strchr (Depends-on): Likewise.
50231         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50232
50233 2009-03-12  Bruno Haible  <bruno@clisp.org>
50234
50235         Work around select() bug on Interix 3.5.
50236         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50237         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50238         * m4/select.m4: New file.
50239         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50240         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50241         * modules/select (Files): Add m4/select.m4.
50242         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50243         * modules/nanosleep (Depends-on): Add select.
50244         * modules/poll (Depends-on): Likewise.
50245         * doc/posix-functions/select.texi: Mention the Interix bug.
50246         Reported by Markus Duft <mduft@gentoo.org>.
50247
50248         * lib/select.c: Renamed from lib/winsock-select.c.
50249         * modules/select (Files): Add lib/select.c, remove
50250         lib/winsock-select.c.
50251         (configure.ac): Update.
50252
50253 2009-03-12  Jim Meyering  <meyering@redhat.com>
50254
50255         avoid gcc warnings about unused macro definitions
50256         * lib/readtokens.c (STREQ): Remove unused definition.
50257         * lib/xmalloc.c (SIZE_MAX): Likewise.
50258         * lib/openat-die.c (N_): Likewise.
50259         * lib/mountlist.c (SIZE_MAX): Remove definition.
50260         Instead, include <stdint.h>.
50261         * lib/readutmp.c: Likewise.
50262         * modules/readutmp (Depends-on): Add stdint.
50263         * modules/mountlist (Depends-on): Add stdint.
50264         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50265
50266 2009-03-10  Bruno Haible  <bruno@clisp.org>
50267
50268         Tests for module 'mbmemcasecoll'.
50269         * modules/mbmemcasecoll-tests: New file.
50270         * tests/test-mbmemcasecoll1.sh: New file.
50271         * tests/test-mbmemcasecoll2.sh: New file.
50272         * tests/test-mbmemcasecoll3.sh: New file.
50273         * tests/test-mbmemcasecoll.c: New file.
50274
50275         New module 'mbmemcasecoll'.
50276         * lib/mbmemcasecoll.h: New file.
50277         * lib/mbmemcasecoll.c: New file.
50278         * modules/mbmemcasecoll: New file.
50279
50280         * tests/test-mbmemcasecmp.h: New file, extracted from
50281         tests/test-mbmemcasecmp.c.
50282         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50283         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50284         (main): Update.
50285         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50286
50287 2009-03-09  Bruno Haible  <bruno@clisp.org>
50288
50289         Tests for module 'mbmemcasecmp'.
50290         * modules/mbmemcasecmp-tests: New file.
50291         * tests/test-mbmemcasecmp1.sh: New file.
50292         * tests/test-mbmemcasecmp2.sh: New file.
50293         * tests/test-mbmemcasecmp3.sh: New file.
50294         * tests/test-mbmemcasecmp.c: New file.
50295
50296         New module 'mbmemcasecmp'.
50297         * lib/mbmemcasecmp.h: New file.
50298         * lib/mbmemcasecmp.c: New file.
50299         * modules/mbmemcasecmp: New file.
50300
50301 2009-03-09  Bruno Haible  <bruno@clisp.org>
50302
50303         Tests for module 'unicase/ulc-casecoll'.
50304         * modules/unicase/ulc-casecoll-tests: New file.
50305         * tests/unicase/test-ulc-casecoll1.sh: New file.
50306         * tests/unicase/test-ulc-casecoll2.sh: New file.
50307         * tests/unicase/test-ulc-casecoll.c: New file.
50308
50309         New module 'unicase/ulc-casecoll'.
50310         * lib/unicase.h (ulc_casecoll): New declaration.
50311         * lib/unicase/ulc-casecoll.c: New file.
50312         * modules/unicase/ulc-casecoll: New file.
50313
50314         New module 'unicase/ulc-casexfrm'.
50315         * lib/unicase.h (ulc_casexfrm): New declaration.
50316         * lib/unicase/ulc-casexfrm.c: New file.
50317         * modules/unicase/ulc-casexfrm: New file.
50318
50319 2009-03-09  Bruno Haible  <bruno@clisp.org>
50320
50321         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50322         invocations.
50323
50324         * m4/mbscasecmp.m4: Remove file.
50325         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50326         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50327
50328         * m4/mbscasestr.m4: Remove file.
50329         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50330         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50331
50332         * m4/mbschr.m4: Remove file.
50333         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50334         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50335
50336         * m4/mbscspn.m4: Remove file.
50337         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50338         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50339
50340         * m4/mbslen.m4: Remove file.
50341         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50342         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50343
50344         * m4/mbsncasecmp.m4: Remove file.
50345         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50346         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50347
50348         * m4/mbsnlen.m4: Remove file.
50349         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50350         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50351
50352         * m4/mbspbrk.m4: Remove file.
50353         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50354         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50355
50356         * m4/mbspcasecmp.m4: Remove file.
50357         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50358         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50359
50360         * m4/mbsrchr.m4: Remove file.
50361         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50362         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50363
50364         * m4/mbssep.m4: Remove file.
50365         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50366         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50367
50368         * m4/mbsspn.m4: Remove file.
50369         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50370         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50371
50372         * m4/mbsstr.m4: Remove file.
50373         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50374         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50375
50376         * m4/mbstok_r.m4: Remove file.
50377         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50378         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50379
50380         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50381
50382         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50383         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50384
50385         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50386
50387 2009-03-08  Bruno Haible  <bruno@clisp.org>
50388
50389         Tests for module 'unicase/ulc-casecmp'.
50390         * modules/unicase/ulc-casecmp-tests: New file.
50391         * tests/unicase/test-ulc-casecmp1.sh: New file.
50392         * tests/unicase/test-ulc-casecmp2.sh: New file.
50393         * tests/unicase/test-ulc-casecmp.c: New file.
50394
50395         New module 'unicase/ulc-casecmp'.
50396         * lib/unicase.h (ulc_casecmp): New declaration.
50397         * lib/unicase/ulc-casecmp.c: New file.
50398         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50399         'const SRC_UNIT *'.
50400         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50401         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50402         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50403         * modules/unicase/ulc-casecmp: New file.
50404
50405         Tests for module 'unicase/u32-is-cased'.
50406         * modules/unicase/u32-is-cased-tests: New file.
50407         * tests/unicase/test-u32-is-cased.c: New file.
50408
50409         Tests for module 'unicase/u16-is-cased'.
50410         * modules/unicase/u16-is-cased-tests: New file.
50411         * tests/unicase/test-u16-is-cased.c: New file.
50412
50413         Tests for module 'unicase/u8-is-cased'.
50414         * modules/unicase/u8-is-cased-tests: New file.
50415         * tests/unicase/test-u8-is-cased.c: New file.
50416         * tests/unicase/test-is-cased.h: New file.
50417
50418         New module 'unicase/u32-is-cased'.
50419         * lib/unicase/u32-is-cased.c: New file.
50420         * modules/unicase/u32-is-cased: New file.
50421
50422         New module 'unicase/u16-is-cased'.
50423         * lib/unicase/u16-is-cased.c: New file.
50424         * modules/unicase/u16-is-cased: New file.
50425
50426         New module 'unicase/u8-is-cased'.
50427         * lib/unicase/u8-is-cased.c: New file.
50428         * lib/unicase/u-is-cased.h: New file.
50429         * modules/unicase/u8-is-cased: New file.
50430
50431         Tests for module 'unicase/u32-is-casefolded'.
50432         * modules/unicase/u32-is-casefolded-tests: New file.
50433         * tests/unicase/test-u32-is-casefolded.c: New file.
50434
50435         Tests for module 'unicase/u16-is-casefolded'.
50436         * modules/unicase/u16-is-casefolded-tests: New file.
50437         * tests/unicase/test-u16-is-casefolded.c: New file.
50438
50439         Tests for module 'unicase/u8-is-casefolded'.
50440         * modules/unicase/u8-is-casefolded-tests: New file.
50441         * tests/unicase/test-u8-is-casefolded.c: New file.
50442         * tests/unicase/test-is-casefolded.h: New file.
50443
50444         New module 'unicase/u32-is-casefolded'.
50445         * lib/unicase/u32-is-casefolded.c: New file.
50446         * modules/unicase/u32-is-casefolded: New file.
50447
50448         New module 'unicase/u16-is-casefolded'.
50449         * lib/unicase/u16-is-casefolded.c: New file.
50450         * modules/unicase/u16-is-casefolded: New file.
50451
50452         New module 'unicase/u8-is-casefolded'.
50453         * lib/unicase/u8-is-casefolded.c: New file.
50454         * modules/unicase/u8-is-casefolded: New file.
50455
50456         Tests for module 'unicase/u32-is-titlecase'.
50457         * modules/unicase/u32-is-titlecase-tests: New file.
50458         * tests/unicase/test-u32-is-titlecase.c: New file.
50459
50460         Tests for module 'unicase/u16-is-titlecase'.
50461         * modules/unicase/u16-is-titlecase-tests: New file.
50462         * tests/unicase/test-u16-is-titlecase.c: New file.
50463
50464         Tests for module 'unicase/u8-is-titlecase'.
50465         * modules/unicase/u8-is-titlecase-tests: New file.
50466         * tests/unicase/test-u8-is-titlecase.c: New file.
50467         * tests/unicase/test-is-titlecase.h: New file.
50468
50469         New module 'unicase/u32-is-titlecase'.
50470         * lib/unicase/u32-is-titlecase.c: New file.
50471         * modules/unicase/u32-is-titlecase: New file.
50472
50473         New module 'unicase/u16-is-titlecase'.
50474         * lib/unicase/u16-is-titlecase.c: New file.
50475         * modules/unicase/u16-is-titlecase: New file.
50476
50477         New module 'unicase/u8-is-titlecase'.
50478         * lib/unicase/u8-is-titlecase.c: New file.
50479         * modules/unicase/u8-is-titlecase: New file.
50480
50481         Tests for module 'unicase/u32-is-lowercase'.
50482         * modules/unicase/u32-is-lowercase-tests: New file.
50483         * tests/unicase/test-u32-is-lowercase.c: New file.
50484
50485         Tests for module 'unicase/u16-is-lowercase'.
50486         * modules/unicase/u16-is-lowercase-tests: New file.
50487         * tests/unicase/test-u16-is-lowercase.c: New file.
50488
50489         Tests for module 'unicase/u8-is-lowercase'.
50490         * modules/unicase/u8-is-lowercase-tests: New file.
50491         * tests/unicase/test-u8-is-lowercase.c: New file.
50492         * tests/unicase/test-is-lowercase.h: New file.
50493
50494         New module 'unicase/u32-is-lowercase'.
50495         * lib/unicase/u32-is-lowercase.c: New file.
50496         * modules/unicase/u32-is-lowercase: New file.
50497
50498         New module 'unicase/u16-is-lowercase'.
50499         * lib/unicase/u16-is-lowercase.c: New file.
50500         * modules/unicase/u16-is-lowercase: New file.
50501
50502         New module 'unicase/u8-is-lowercase'.
50503         * lib/unicase/u8-is-lowercase.c: New file.
50504         * modules/unicase/u8-is-lowercase: New file.
50505
50506         Tests for module 'unicase/u32-is-uppercase'.
50507         * modules/unicase/u32-is-uppercase-tests: New file.
50508         * tests/unicase/test-u32-is-uppercase.c: New file.
50509
50510         Tests for module 'unicase/u16-is-uppercase'.
50511         * modules/unicase/u16-is-uppercase-tests: New file.
50512         * tests/unicase/test-u16-is-uppercase.c: New file.
50513
50514         Tests for module 'unicase/u8-is-uppercase'.
50515         * modules/unicase/u8-is-uppercase-tests: New file.
50516         * tests/unicase/test-u8-is-uppercase.c: New file.
50517         * tests/unicase/test-is-uppercase.h: New file.
50518
50519         New module 'unicase/u32-is-uppercase'.
50520         * lib/unicase/u32-is-uppercase.c: New file.
50521         * modules/unicase/u32-is-uppercase: New file.
50522
50523         New module 'unicase/u16-is-uppercase'.
50524         * lib/unicase/u16-is-uppercase.c: New file.
50525         * modules/unicase/u16-is-uppercase: New file.
50526
50527         New module 'unicase/u8-is-uppercase'.
50528         * lib/unicase/u8-is-uppercase.c: New file.
50529         * modules/unicase/u8-is-uppercase: New file.
50530
50531         New module 'unicase/u32-is-invariant'.
50532         * lib/unicase/u32-is-invariant.c: New file.
50533         * modules/unicase/u32-is-invariant: New file.
50534
50535         New module 'unicase/u16-is-invariant'.
50536         * lib/unicase/u16-is-invariant.c: New file.
50537         * modules/unicase/u16-is-invariant: New file.
50538
50539         New module 'unicase/u8-is-invariant'.
50540         * lib/unicase/u8-is-invariant.c: New file.
50541         * lib/unicase/invariant.h: New file.
50542         * lib/unicase/u-is-invariant.h: New file.
50543         * modules/unicase/u8-is-invariant: New file.
50544
50545         Tests for module 'unicase/u32-casecoll'.
50546         * modules/unicase/u32-casecoll-tests: New file.
50547         * tests/unicase/test-u32-casecoll.c: New file.
50548
50549         Tests for module 'unicase/u16-casecoll'.
50550         * modules/unicase/u16-casecoll-tests: New file.
50551         * tests/unicase/test-u16-casecoll.c: New file.
50552
50553         Tests for module 'unicase/u8-casecoll'.
50554         * modules/unicase/u8-casecoll-tests: New file.
50555         * tests/unicase/test-u8-casecoll.c: New file.
50556
50557         New module 'unicase/u32-casecoll'.
50558         * lib/unicase/u32-casecoll.c: New file.
50559         * modules/unicase/u32-casecoll: New file.
50560
50561         New module 'unicase/u16-casecoll'.
50562         * lib/unicase/u16-casecoll.c: New file.
50563         * modules/unicase/u16-casecoll: New file.
50564
50565         New module 'unicase/u8-casecoll'.
50566         * lib/unicase/u8-casecoll.c: New file.
50567         * lib/unicase/u-casecoll.h: New file.
50568         * modules/unicase/u8-casecoll: New file.
50569
50570         New module 'unicase/u32-casexfrm'.
50571         * lib/unicase/u32-casexfrm.c: New file.
50572         * modules/unicase/u32-casexfrm: New file.
50573
50574         New module 'unicase/u16-casexfrm'.
50575         * lib/unicase/u16-casexfrm.c: New file.
50576         * modules/unicase/u16-casexfrm: New file.
50577
50578         New module 'unicase/u8-casexfrm'.
50579         * lib/unicase/u8-casexfrm.c: New file.
50580         * lib/unicase/u-casexfrm.h: New file.
50581         * modules/unicase/u8-casexfrm: New file.
50582
50583         Tests for module 'unicase/u32-casecmp'.
50584         * modules/unicase/u32-casecmp-tests: New file.
50585         * tests/unicase/test-u32-casecmp.c: New file.
50586
50587         Tests for module 'unicase/u16-casecmp'.
50588         * modules/unicase/u16-casecmp-tests: New file.
50589         * tests/unicase/test-u16-casecmp.c: New file.
50590
50591         Tests for module 'unicase/u8-casecmp'.
50592         * modules/unicase/u8-casecmp-tests: New file.
50593         * tests/unicase/test-u8-casecmp.c: New file.
50594         * tests/unicase/test-casecmp.h: New file.
50595
50596         New module 'unicase/u32-casecmp'.
50597         * lib/unicase/u32-casecmp.c: New file.
50598         * modules/unicase/u32-casecmp: New file.
50599
50600         New module 'unicase/u16-casecmp'.
50601         * lib/unicase/u16-casecmp.c: New file.
50602         * modules/unicase/u16-casecmp: New file.
50603
50604         New module 'unicase/u8-casecmp'.
50605         * lib/unicase/u8-casecmp.c: New file.
50606         * lib/unicase/u-casecmp.h: New file.
50607         * modules/unicase/u8-casecmp: New file.
50608
50609         Tests for module 'unicase/u32-casefold'.
50610         * modules/unicase/u32-casefold-tests: New file.
50611         * tests/unicase/test-u32-casefold.c: New file.
50612
50613         Tests for module 'unicase/u16-casefold'.
50614         * modules/unicase/u16-casefold-tests: New file.
50615         * tests/unicase/test-u16-casefold.c: New file.
50616
50617         Tests for module 'unicase/u8-casefold'.
50618         * modules/unicase/u8-casefold-tests: New file.
50619         * tests/unicase/test-u8-casefold.c: New file.
50620
50621         New module 'unicase/u32-casefold'.
50622         * lib/unicase/u32-casefold.c: New file.
50623         * modules/unicase/u32-casefold: New file.
50624
50625         New module 'unicase/u16-casefold'.
50626         * lib/unicase/u16-casefold.c: New file.
50627         * modules/unicase/u16-casefold: New file.
50628
50629         New module 'unicase/u8-casefold'.
50630         * lib/unicase/u8-casefold.c: New file.
50631         * lib/unicase/u-casefold.h: New file.
50632         * modules/unicase/u8-casefold: New file.
50633
50634         New module 'unicase/tocasefold'.
50635         * lib/unicase/casefold.h: New file.
50636         * lib/unicase/tocasefold.c: New file.
50637         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50638         * modules/unicase/tocasefold: New file.
50639
50640         Tests for module 'unicase/u32-totitle'.
50641         * modules/unicase/u32-totitle-tests: New file.
50642         * tests/unicase/test-u32-totitle.c: New file.
50643
50644         Tests for module 'unicase/u16-totitle'.
50645         * modules/unicase/u16-totitle-tests: New file.
50646         * tests/unicase/test-u16-totitle.c: New file.
50647
50648         Tests for module 'unicase/u8-totitle'.
50649         * modules/unicase/u8-totitle-tests: New file.
50650         * tests/unicase/test-u8-totitle.c: New file.
50651
50652         New module 'unicase/u32-totitle'.
50653         * lib/unicase/u32-totitle.c: New file.
50654         * modules/unicase/u32-totitle: New file.
50655
50656         New module 'unicase/u16-totitle'.
50657         * lib/unicase/u16-totitle.c: New file.
50658         * modules/unicase/u16-totitle: New file.
50659
50660         New module 'unicase/u8-totitle'.
50661         * lib/unicase/u8-totitle.c: New file.
50662         * lib/unicase/u-totitle.h: New file.
50663         * modules/unicase/u8-totitle: New file.
50664
50665         Tests for module 'unicase/u32-tolower'.
50666         * modules/unicase/u32-tolower-tests: New file.
50667         * tests/unicase/test-u32-tolower.c: New file.
50668
50669         Tests for module 'unicase/u16-tolower'.
50670         * modules/unicase/u16-tolower-tests: New file.
50671         * tests/unicase/test-u16-tolower.c: New file.
50672
50673         Tests for module 'unicase/u8-tolower'.
50674         * modules/unicase/u8-tolower-tests: New file.
50675         * tests/unicase/test-u8-tolower.c: New file.
50676
50677         New module 'unicase/u32-tolower'.
50678         * lib/unicase/u32-tolower.c: New file.
50679         * modules/unicase/u32-tolower: New file.
50680
50681         New module 'unicase/u16-tolower'.
50682         * lib/unicase/u16-tolower.c: New file.
50683         * modules/unicase/u16-tolower: New file.
50684
50685         New module 'unicase/u8-tolower'.
50686         * lib/unicase/u8-tolower.c: New file.
50687         * modules/unicase/u8-tolower: New file.
50688
50689         Tests for module 'unicase/u32-toupper'.
50690         * modules/unicase/u32-toupper-tests: New file.
50691         * tests/unicase/test-u32-toupper.c: New file.
50692
50693         Tests for module 'unicase/u16-toupper'.
50694         * modules/unicase/u16-toupper-tests: New file.
50695         * tests/unicase/test-u16-toupper.c: New file.
50696
50697         Tests for module 'unicase/u8-toupper'.
50698         * modules/unicase/u8-toupper-tests: New file.
50699         * tests/unicase/test-u8-toupper.c: New file.
50700
50701         New module 'unicase/u32-toupper'.
50702         * lib/unicase/u32-toupper.c: New file.
50703         * modules/unicase/u32-toupper: New file.
50704
50705         New module 'unicase/u16-toupper'.
50706         * lib/unicase/u16-toupper.c: New file.
50707         * modules/unicase/u16-toupper: New file.
50708
50709         New module 'unicase/u8-toupper'.
50710         * lib/unicase/u8-toupper.c: New file.
50711         * modules/unicase/u8-toupper: New file.
50712
50713         New module 'unicase/u32-casemap'.
50714         * lib/unicase/u32-casemap.c: New file.
50715         * modules/unicase/u32-casemap: New file.
50716
50717         New module 'unicase/u16-casemap'.
50718         * lib/unicase/u16-casemap.c: New file.
50719         * modules/unicase/u16-casemap: New file.
50720
50721         New module 'unicase/u8-casemap'.
50722         * lib/unicase/unicasemap.h: New file.
50723         * lib/unicase/u8-casemap.c: New file.
50724         * lib/unicase/u-casemap.h: New file.
50725         * modules/unicase/u8-casemap: New file.
50726
50727         New module 'unicase/special-casing'.
50728         * lib/unicase/special-casing.h: New file.
50729         * lib/unicase/special-casing.c: New file.
50730         * lib/unicase/special-casing-table.gperf: New file, generated by
50731         gen-uni-tables.c.
50732         * modules/unicase/special-casing: New file.
50733
50734         Tests for module 'unicase/locale-language'.
50735         * modules/unicase/locale-language-tests: New file.
50736         * tests/unicase/test-locale-language.sh: New file.
50737         * tests/unicase/test-locale-language.c: New file.
50738
50739         New module 'unicase/locale-language'.
50740         * lib/unicase/locale-language.c: New file.
50741         * lib/unicase/locale-languages.gperf: New file.
50742         * modules/unicase/locale-language: New file.
50743
50744         Generate more tables for case conversion and case folding.
50745         * lib/gen-uni-tables.c (SCC_*): New enum items.
50746         (struct special_casing_rule): New type.
50747         (casing_rules, num_casing_rules, allocated_casing_rules): New
50748         variables.
50749         (add_casing_rule, fill_casing_rules): New functions.
50750         (struct casefold_rule): New type.
50751         (casefolding_rules, num_casefolding_rules,
50752         allocated_casefolding_rules): New variables.
50753         (fill_casefolding_rules): New function.
50754         (unicode_casefold): New variable.
50755         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50756         sort_casing_rules, output_casing_rules): New functions.
50757         (main): Accept to more arguments: SpecialCasing.txt and
50758         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50759         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50760         Output mapping for casefolding.
50761
50762         * lib/unicase.h: Include stdbool.h, uninorm.h.
50763         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50764         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50765         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50766         arguments.
50767         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50768         resultp arguments.
50769         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50770         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50771         resultp arguments.
50772         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50773         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50774         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50775         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50776         declarations.
50777         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50778
50779 2009-03-08  Bruno Haible  <bruno@clisp.org>
50780
50781         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50782         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50783         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50784         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50785
50786 2009-03-07  Bruno Haible  <bruno@clisp.org>
50787
50788         Adjust u*_normcmp, u*_normcoll API.
50789         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50790         u16_normcoll, u32_normcoll): Change failure conventions.
50791         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50792         errno and return -1.
50793         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50794
50795 2009-03-07  Bruno Haible  <bruno@clisp.org>
50796
50797         Tests for module 'uninorm/u32-normcoll'.
50798         * modules/uninorm/u32-normcoll-tests: New file.
50799         * tests/uninorm/test-u32-normcoll.c: New file.
50800
50801         Tests for module 'uninorm/u16-normcoll'.
50802         * modules/uninorm/u16-normcoll-tests: New file.
50803         * tests/uninorm/test-u16-normcoll.c: New file.
50804
50805         Tests for module 'uninorm/u8-normcoll'.
50806         * modules/uninorm/u8-normcoll-tests: New file.
50807         * tests/uninorm/test-u8-normcoll.c: New file.
50808
50809 2009-03-07  Bruno Haible  <bruno@clisp.org>
50810
50811         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50812         tests/uninorm/test-u32-normcmp.c.
50813         * tests/uninorm/test-u32-normcmp.c: Include it.
50814         (test_nonascii): New function, extracted from main. Add some more
50815         tests.
50816         (main): Invoke test_ascii and test_nonascii.
50817         * modules/uninorm/u32-normcmp-tests (Files): Add
50818         tests/uninorm/test-u32-normcmp.h.
50819         (Depends-on): Remove uninorm/u32-normcmp.
50820
50821         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50822         tests/uninorm/test-u16-normcmp.c.
50823         * tests/uninorm/test-u16-normcmp.c: Include it.
50824         (test_nonascii): New function, extracted from main. Add some more
50825         tests.
50826         (main): Invoke test_ascii and test_nonascii.
50827         * modules/uninorm/u16-normcmp-tests (Files): Add
50828         tests/uninorm/test-u16-normcmp.h.
50829         (Depends-on): Remove uninorm/u16-normcmp.
50830
50831         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50832         tests/uninorm/test-u8-normcmp.c.
50833         * tests/uninorm/test-u8-normcmp.c: Include it.
50834         (test_nonascii): New function, extracted from main. Add some more
50835         tests.
50836         (main): Invoke test_ascii and test_nonascii.
50837         * modules/uninorm/u8-normcmp-tests (Files): Add
50838         tests/uninorm/test-u8-normcmp.h.
50839         (Depends-on): Remove uninorm/u8-normcmp.
50840
50841 2009-03-07  Bruno Haible  <bruno@clisp.org>
50842
50843         New module 'uninorm/u32-normcoll'.
50844         * lib/uninorm/u32-normcoll.c: New file.
50845         * modules/uninorm/u32-normcoll: New file.
50846
50847         New module 'uninorm/u16-normcoll'.
50848         * lib/uninorm/u16-normcoll.c: New file.
50849         * modules/uninorm/u16-normcoll: New file.
50850
50851         New module 'uninorm/u8-normcoll'.
50852         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50853         declarations.
50854         * lib/uninorm/u8-normcoll.c: New file.
50855         * lib/uninorm/u-normcoll.h: New file.
50856         * modules/uninorm/u8-normcoll: New file.
50857
50858         New module 'uninorm/u32-normxfrm'.
50859         * lib/uninorm/u32-normxfrm.c: New file.
50860         * modules/uninorm/u32-normxfrm: New file.
50861
50862         New module 'uninorm/u16-normxfrm'.
50863         * lib/uninorm/u16-normxfrm.c: New file.
50864         * modules/uninorm/u16-normxfrm: New file.
50865
50866         New module 'uninorm/u8-normxfrm'.
50867         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50868         declarations.
50869         * lib/uninorm/u8-normxfrm.c: New file.
50870         * lib/uninorm/u-normxfrm.h: New file.
50871         * modules/uninorm/u8-normxfrm: New file.
50872
50873 2009-03-07  Bruno Haible  <bruno@clisp.org>
50874
50875         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50876         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50877         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50878
50879 2009-03-07  Bruno Haible  <bruno@clisp.org>
50880
50881         New module 'memxfrm'.
50882         * lib/memxfrm.h: New file.
50883         * lib/memxfrm.c: New file.
50884         * modules/memxfrm: New file.
50885
50886 2009-03-07  Bruno Haible  <bruno@clisp.org>
50887
50888         New module 'memcmp2'.
50889         * lib/memcmp2.h: New file.
50890         * lib/memcmp2.c: New file.
50891         * modules/memcmp2: New file.
50892
50893 2009-03-07  Bruno Haible  <bruno@clisp.org>
50894
50895         Tests for module 'uninorm/decomposing-form'.
50896         * modules/uninorm/decomposing-form-tests: New file.
50897         * tests/uninorm/test-decomposing-form.c: New file.
50898
50899         New module 'uninorm/decomposing-form'.
50900         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50901         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50902         Add 'decomposing_variant' field.
50903         * lib/uninorm/decomposing-form.c: New file.
50904         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50905         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50906         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50907         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50908         * modules/uninorm/decomposing-form: New file.
50909         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50910         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50911
50912 2009-03-07  Bruno Haible  <bruno@clisp.org>
50913
50914         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50915         strings.
50916
50917 2009-03-06  Bruno Haible  <bruno@clisp.org>
50918
50919         Tests for module 'uninorm/u32-normcmp'.
50920         * tests/uninorm/test-u32-normcmp.c: New file.
50921         * modules/uninorm/u32-normcmp-tests: New file.
50922
50923         Tests for module 'uninorm/u16-normcmp'.
50924         * tests/uninorm/test-u16-normcmp.c: New file.
50925         * modules/uninorm/u16-normcmp-tests: New file.
50926
50927         Tests for module 'uninorm/u8-normcmp'.
50928         * tests/uninorm/test-u8-normcmp.c: New file.
50929         * modules/uninorm/u8-normcmp-tests: New file.
50930
50931         New module 'uninorm/u32-normcmp'.
50932         * lib/uninorm/u32-normcmp.c: New file.
50933         * modules/uninorm/u32-normcmp: New file.
50934
50935         New module 'uninorm/u16-normcmp'.
50936         * lib/uninorm/u16-normcmp.c: New file.
50937         * modules/uninorm/u16-normcmp: New file.
50938
50939         New module 'uninorm/u8-normcmp'.
50940         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50941         declarations.
50942         * lib/uninorm/u8-normcmp.c: New file.
50943         * lib/uninorm/u-normcmp.h: New file.
50944         * modules/uninorm/u8-normcmp: New file.
50945
50946 2009-03-06  Bruno Haible  <bruno@clisp.org>
50947
50948         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50949         Reported by Eric Blake.
50950
50951 2009-03-06  Eric Blake  <ebb9@byu.net>
50952             Bruno Haible  <bruno@clisp.org>
50953
50954         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50955         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50956         condition.
50957         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50958         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50959         condition.
50960         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50961
50962 2009-03-06  Eric Blake  <ebb9@byu.net>
50963
50964         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50965         to avoid compiler warnings.
50966         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50967
50968 2009-03-05  Bruno Haible  <bruno@clisp.org>
50969
50970         * tests/test-ftell.c (main): Disable test beyond end of file on
50971         FreeMiNT.
50972         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50973
50974 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50975
50976         * lib/filevercmp.c: Move hidden files up in ordering.
50977         * tests/test-filevercmp.c: Add tests for hidden files.
50978
50979 2009-03-04  Bruno Haible  <bruno@clisp.org>
50980
50981         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50982         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50983         AM_CFLAGS.
50984         Reported by Simon Josefsson.
50985
50986 2009-03-03  Bruno Haible  <bruno@clisp.org>
50987
50988         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50989         Reported by Simon Josefsson.
50990
50991         * doc/ld-version-script.texi: Update node reference.
50992
50993 2009-03-03  Bruno Haible  <bruno@clisp.org>
50994
50995         * modules/visibility (License): Change to 'unlimited'.
50996         Suggested by Simon Josefsson.
50997
50998 2009-03-03  Jim Meyering  <meyering@redhat.com>
50999
51000         unlinkdir: cannot_unlink_dir may modify process state
51001         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51002         it's neither thread-safe nor appropriate for use in a library.
51003
51004 2009-03-03  Eric Blake  <ebb9@byu.net>
51005
51006         test-closein: silence test under Darwin
51007         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51008         care if it dies from EPIPE or EBADF.
51009
51010 2009-03-03  Bruno Haible  <bruno@clisp.org>
51011
51012         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51013         earlier.
51014         * doc/visibility.texi: Fix @node and @section.
51015
51016 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51017
51018         * doc/gnulib.texi: Link to sections for ld version script and
51019         visibility.
51020         * doc/visibility.texi: Add @node and @section.
51021         * modules/ld-version-script: New module.
51022         * m4/ld-version-script.m4: New file.
51023         * doc/ld-version-script.texi: New file.
51024
51025 2009-03-02  David Lutterkort  <lutter@redhat.com>
51026
51027         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51029
51030 2009-03-02  Bruno Haible  <bruno@clisp.org>
51031
51032         * doc/visibility.texi: Mention libtool's -export-symbols option.
51033
51034 2009-03-02  Jim Meyering  <meyering@redhat.com>
51035
51036         announce-gen: new option: --no-print-checksums
51037         * build-aux/announce-gen (usage): Describe it.
51038         (print_checksums): Print a newline here, not in the [*] footnote.
51039         (main): Honor it.
51040
51041 2009-03-01  Bruno Haible  <bruno@clisp.org>
51042
51043         Use socklen_t in the native Windows replacements prototypes.
51044         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51045         instead of 'int'.
51046         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51047         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51048         * modules/getsockopt (Depends-on): Add socklen.
51049         * modules/setsockopt (Depends-on): Add socklen.
51050
51051 2009-03-01  Bruno Haible  <bruno@clisp.org>
51052
51053         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51054         least 4.2.
51055
51056 2009-03-01  Eric Blake  <ebb9@byu.net>
51057             Bruno Haible  <bruno@clisp.org>
51058
51059         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51060         error messages.
51061         * lib/wait-process.c (wait_subprocess): Omit error message about
51062         deadly signal sent to the child of termsigp != NULL.
51063
51064 2009-03-01  Eric Blake  <ebb9@byu.net>
51065
51066         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51067
51068 2009-03-01  Bruno Haible  <bruno@clisp.org>
51069
51070         Avoid a gcc warning.
51071         * tests/test-sched.c (b): Make global.
51072         Reported by Eric Blake.
51073
51074 2009-01-19  Martin Lambers  <marlam@marlam.de>
51075
51076         Provide POSIX semantics for socket timeout options on W32.
51077         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51078         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51079         * modules/setsockopt: Depend on sys_time module for struct timeval.
51080         * modules/getsockopt: Depend on sys_time module for struct timeval.
51081
51082 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51083
51084         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51085         __USE_GNU, for consistency with netdb.in.h.
51086         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51087
51088 2009-03-01  Bruno Haible  <bruno@clisp.org>
51089
51090         More support for FreeMiNT.
51091         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51092         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51093
51094 2009-03-01  Bruno Haible  <bruno@clisp.org>
51095
51096         More support for FreeMiNT.
51097         * lib/fpurge.c (fpurge): Correct last commit.
51098         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51099
51100 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51101
51102         Fix unportable awk script in vc-list-files.
51103         * build-aux/vc-list-files: In the replacement awk script, use
51104         substr with a second argument of 1, not zero.
51105         Report by Simon Josefsson.
51106
51107 2009-02-28  Bruno Haible  <bruno@clisp.org>
51108
51109         More support for FreeMiNT.
51110         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51111         to FreeMiNT today.
51112         * lib/fwriting.c (fwriting): Likewise.
51113         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51114
51115 2009-02-28  Bruno Haible  <bruno@clisp.org>
51116
51117         * tests/test-freadseek.c (main): Disable test beyond end of file on
51118         FreeMiNT.
51119         * tests/test-ftello.c (main): Likewise.
51120         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51121
51122 2009-02-28  Bruno Haible  <bruno@clisp.org>
51123
51124         Add tentative support for FreeMiNT.
51125         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51126         * lib/fpurge.c (fpurge): Likewise.
51127         * lib/freadable.c (freadable): Likewise.
51128         * lib/freading.c (freading): Likewise.
51129         * lib/freadptr.c (freadptr): Likewise.
51130         * lib/freadseek.c (freadptrinc): Likewise.
51131         * lib/fseeko.c (rpl_fseeko): Likewise.
51132         * lib/fseterr.c (fseterr): Likewise.
51133         * lib/fwritable.c (fwritable): Likewise.
51134         * lib/fwriting.c (fwriting): Likewise.
51135         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51136         Hourihane.
51137         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51138
51139 2009-02-28  Bruno Haible  <bruno@clisp.org>
51140
51141         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51142         SIGCHLD.
51143         Reported by Jim Meyering.
51144
51145 2009-02-28  Bruno Haible  <bruno@clisp.org>
51146
51147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51148         Mention the results of these tests on various platforms.
51149         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51150         order.
51151         * doc/posix-functions/printf.texi: Likewise.
51152         * doc/posix-functions/snprintf.texi: Likewise.
51153         * doc/posix-functions/sprintf.texi: Likewise.
51154         * doc/posix-functions/vfprintf.texi: Likewise.
51155         * doc/posix-functions/vprintf.texi: Likewise.
51156         * doc/posix-functions/vsnprintf.texi: Likewise.
51157         * doc/posix-functions/vsprintf.texi: Likewise.
51158         * doc/glibc-functions/obstack_printf.texi: Likewise.
51159         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51160
51161 2009-02-28  Bruno Haible  <bruno@clisp.org>
51162
51163         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51164         Reported by Loïc Minier <lool@dooz.org>.
51165
51166 2009-02-27  Bruno Haible  <bruno@clisp.org>
51167
51168         * gnulib-tool (func_import): Make the sed expression used to create the
51169         sed script for updating the .gitignore file POSIX compliant.
51170         Reported by Eric Blake.
51171
51172 2009-02-27  Bruno Haible  <bruno@clisp.org>
51173
51174         * gnulib-tool (sed): Don't alias as "sed --posix".
51175         Reported by Eric Blake.
51176
51177 2009-02-27  Bruno Haible  <bruno@clisp.org>
51178
51179         Avoid test link errors.
51180         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51181         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51182         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51183         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51185
51186 2009-02-27  Bruno Haible  <bruno@clisp.org>
51187
51188         Avoid spurious "(cached)" in configure output.
51189         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51190         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51191         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51192         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51193         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51194         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51195         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51196         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51197         Reported by Eric Blake.
51198
51199 2009-02-27  Eric Blake  <ebb9@byu.net>
51200
51201         printf: fix regression in previous patch
51202         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51203
51204 2009-02-27  Bruno Haible  <bruno@clisp.org>
51205
51206         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51207         value.
51208         * lib/stdint.in.h: Likewise.
51209         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51210
51211 2009-02-27  Eric Blake  <ebb9@byu.net>
51212
51213         doc: mention more functions added in cygwin 1.7.0
51214         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51215         addition.
51216         * doc/posix-functions/open_wmemstream.texi: Likewise.
51217         * doc/posix-functions/wcsnlen.texi: Likewise.
51218         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51219         * doc/posix-functions/wcstod.texi: Likewise.
51220         * doc/posix-functions/wcstof.texi: Likewise.
51221         * doc/posix-functions/wcstoimax.texi: Likewise.
51222         * doc/posix-functions/wcstok.texi: Likewise.
51223         * doc/posix-functions/wcstoumax.texi: Likewise.
51224
51225         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51227         * doc/posix-functions/fprintf.texi: Update.
51228         * doc/posix-functions/printf.texi: Update.
51229         * doc/posix-functions/snprintf.texi: Update.
51230         * doc/posix-functions/sprintf.texi: Update.
51231         * doc/posix-functions/vfprintf.texi: Update.
51232         * doc/posix-functions/vprintf.texi: Update.
51233         * doc/posix-functions/vsnprintf.texi: Update.
51234         * doc/posix-functions/vsprintf.texi: Update.
51235         * doc/glibc-functions/obstack_printf.texi: Update.
51236         * doc/glibc-functions/obstack_vprintf.texi: Update.
51237
51238 2009-02-26  Eric Blake  <ebb9@byu.net>
51239
51240         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51241         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51242         compilation bug by using runtime conversion.
51243         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51244         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51245         * modules/ceill-tests (Files): Use nan.h.
51246         * modules/floorl-tests (Files): Likewise.
51247         * modules/frexpl-tests (Files): Likewise.
51248         * modules/isnanl-tests (Files): Likewise.
51249         * modules/ldexpl-tests (Files): Likewise.
51250         * modules/roundl-tests (Files): Likewise.
51251         * modules/truncl-tests (Files): Likewise.
51252         * tests/test-ceill.c (main): Use a working NaN.
51253         * tests/test-floorl.c (main): Likewise.
51254         * tests/test-frexpl.c (main): Likewise.
51255         * tests/test-isnan.c (test_long_double): Likewise.
51256         * tests/test-isnanl.h (main): Likewise.
51257         * tests/test-ldexpl.h (main): Likewise.
51258         * tests/test-roundl.h (main): Likewise.
51259         * tests/test-truncl.h (main): Likewise.
51260         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51261
51262 2009-02-26  Eric Blake  <ebb9@byu.net>
51263             Bruno Haible  <bruno@clisp.org>
51264
51265         Work around a *printf bug with %ls on Solaris.
51266         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51267         precision is specified, sprintf stops converting the wide string
51268         argument when the number of bytes that have been produced by this
51269         conversion equals or exceeds the precision.
51270         * doc/posix-functions/fprintf.texi: Update.
51271         * doc/posix-functions/printf.texi: Update.
51272         * doc/posix-functions/snprintf.texi: Update.
51273         * doc/posix-functions/sprintf.texi: Update.
51274         * doc/posix-functions/vfprintf.texi: Update.
51275         * doc/posix-functions/vprintf.texi: Update.
51276         * doc/posix-functions/vsnprintf.texi: Update.
51277         * doc/posix-functions/vsprintf.texi: Update.
51278         * doc/glibc-functions/obstack_printf.texi: Update.
51279         * doc/glibc-functions/obstack_vprintf.texi: Update.
51280
51281 2009-02-26  Eric Blake  <ebb9@byu.net>
51282
51283         stdlib: favor compiler check of random.h
51284         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51285         to avoid an ObjC random.h installed by Swarm.
51286
51287 2009-02-26  Bruno Haible  <bruno@clisp.org>
51288
51289         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51290         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51291         Reported by Gary V. Vaughan <gary@gnu.org>.
51292
51293 2009-02-26  Bruno Haible  <bruno@clisp.org>
51294
51295         Fix *printf behaviour regarding the %ls directive.
51296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51297         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51298         NEED_PRINTF_DIRECTIVE_LS.
51299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51300         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51301         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51302         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51303         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51304         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51305         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51306         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51308         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51309         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51310         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51314         * doc/posix-functions/fprintf.texi: Update.
51315         * doc/posix-functions/printf.texi: Update.
51316         * doc/posix-functions/snprintf.texi: Update.
51317         * doc/posix-functions/sprintf.texi: Update.
51318         * doc/posix-functions/vfprintf.texi: Update.
51319         * doc/posix-functions/vprintf.texi: Update.
51320         * doc/posix-functions/vsnprintf.texi: Update.
51321         * doc/posix-functions/vsprintf.texi: Update.
51322         * doc/glibc-functions/obstack_printf.texi: Update.
51323         * doc/glibc-functions/obstack_vprintf.texi: Update.
51324         Reported by Eric Blake.
51325
51326 2009-02-25  Bruno Haible  <bruno@clisp.org>
51327
51328         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51329         with known value.
51330         Reported by Gary V. Vaughan <gary@gnu.org>.
51331
51332 2009-02-25  Bruno Haible  <bruno@clisp.org>
51333
51334         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51335         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51336         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51337         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51338         Reported by Gary V. Vaughan <gary@gnu.org>.
51339
51340 2009-02-25  Bruno Haible  <bruno@clisp.org>
51341
51342         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51343         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51344         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51345         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51346         Reported by Gary V. Vaughan <gary@gnu.org>.
51347
51348 2009-02-25  Eric Blake  <ebb9@byu.net>
51349
51350         tests: skip fseek/ftell tests if ungetc is broken
51351         * m4/ungetc.m4: New file.
51352         * modules/fseek-tests: Split test, so ungetc dependency is
51353         separate from rest of test.
51354         * modules/fseeko-tests: Likewise.
51355         * modules/ftell-tests: Likewise.
51356         * modules/ftello-tests: Likewise.
51357         * tests/test-fseek.c (main): Isolate ungetc dependency.
51358         * tests/test-fseeko.c (main): Likewise.
51359         * tests/test-ftell.c (main): Likewise.
51360         * tests/test-ftello.c (main): Likewise.
51361         * tests/test-fseek2.sh: New file.
51362         * tests/test-fseeko2.sh: Likewise.
51363         * tests/test-ftell2.sh: Likewise.
51364         * tests/test-ftello2.sh: Likewise.
51365
51366 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51367
51368         test-getaddrinfo: fix usage of skip return code 77
51369         * tests/test-gettaddrinfo.c: Return skip code 77 only
51370         for first occurrence of skip (4x77 is not 77)
51371
51372 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51373
51374         strtod: avoid C99 decl-after-statement
51375         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51376
51377 2009-02-24  Eric Blake  <ebb9@byu.net>
51378
51379         strtod: detect HP-UX 11.31 bug
51380         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51381         Reported by Gary V. Vaughan.
51382
51383 2009-02-23  Bruno Haible  <bruno@clisp.org>
51384
51385         Fix invalid read past end of memory block.
51386         * lib/vasnprintf.c (DCHAR_SET): Define.
51387         (local_wcslen): Define only when needed.
51388         (local_strnlen, local_wcsnlen): New functions.
51389         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51390         directives that involve a conversion ourselves.
51391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51392         wcsnlen, mbrtowc, wcrtomb.
51393         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51394         * tests/test-vasprintf-posix.c (test_function): Likewise.
51395         * tests/test-snprintf-posix.h (test_function): Likewise.
51396         * tests/test-sprintf-posix.h (test_function): Likewise.
51397         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51398
51399 2009-02-22  Bruno Haible  <bruno@clisp.org>
51400
51401         Implement new clarified decomposition of Hangul syllables.
51402         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51403         of type LTV, return only a pairwise decomposition.
51404         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51405         Likewise.
51406         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51407         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51408         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51409
51410 2009-02-22  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51413         zero-length results and shrink excess allocated memory.
51414         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51415         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51416         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51417         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51418         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51419         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51420         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51421         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51422         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51423         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51424         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51425         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51426
51427 2009-02-21  Bruno Haible  <bruno@clisp.org>
51428
51429         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51430         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51431         spaces after a period. Put a space between a macro name and its
51432         argument list. Trivial rewordings.
51433         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51434         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51435         (main): Return 0 explicitly.
51436
51437 2009-02-21  Bruno Haible  <bruno@clisp.org>
51438
51439         Tests for module 'uninorm/filter'.
51440         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51441         * modules/uninorm/filter-tests: New file.
51442
51443         New module 'uninorm/filter'.
51444         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51445         uninorm_filter_flush, uninorm_filter_free): New declarations.
51446         * lib/uninorm/uninorm-filter.c: New file.
51447         * modules/uninorm/filter: New file.
51448
51449 2009-02-21  Bruno Haible  <bruno@clisp.org>
51450
51451         Tests for module 'uninorm/nfkc'.
51452         * tests/uninorm/test-nfkc.c: New file.
51453         * tests/uninorm/test-u8-nfkc.c: New file.
51454         * tests/uninorm/test-u16-nfkc.c: New file.
51455         * tests/uninorm/test-u32-nfkc.c: New file.
51456         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51457         * tests/uninorm/test-u32-nfkc-big.c: New file.
51458         * modules/uninorm/nfkc-tests: New file.
51459
51460         New module 'uninorm/nfkc'.
51461         * lib/uninorm/nfkc.c: New file.
51462         * modules/uninorm/nfkc: New file.
51463
51464         Tests for module 'uninorm/nfkd'.
51465         * tests/uninorm/test-nfkd.c: New file.
51466         * tests/uninorm/test-u8-nfkd.c: New file.
51467         * tests/uninorm/test-u16-nfkd.c: New file.
51468         * tests/uninorm/test-u32-nfkd.c: New file.
51469         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51470         * tests/uninorm/test-u32-nfkd-big.c: New file.
51471         * modules/uninorm/nfkd-tests: New file.
51472
51473         New module 'uninorm/nfkd'.
51474         * lib/uninorm/nfkd.c: New file.
51475         * modules/uninorm/nfkd: New file.
51476
51477         Tests for module 'uninorm/nfc'.
51478         * tests/uninorm/test-nfc.c: New file.
51479         * tests/uninorm/test-u8-nfc.c: New file.
51480         * tests/uninorm/test-u16-nfc.c: New file.
51481         * tests/uninorm/test-u32-nfc.c: New file.
51482         * tests/uninorm/test-u32-nfc-big.sh: New file.
51483         * tests/uninorm/test-u32-nfc-big.c: New file.
51484         * modules/uninorm/nfc-tests: New file.
51485
51486         New module 'uninorm/nfc'.
51487         * lib/uninorm/nfc.c: New file.
51488         * modules/uninorm/nfc: New file.
51489
51490         Tests for module 'uninorm/nfd'.
51491         * tests/uninorm/test-nfd.c: New file.
51492         * tests/uninorm/test-u8-nfd.c: New file.
51493         * tests/uninorm/test-u16-nfd.c: New file.
51494         * tests/uninorm/test-u32-nfd.c: New file.
51495         * tests/uninorm/test-u32-nfd-big.sh: New file.
51496         * tests/uninorm/test-u32-nfd-big.c: New file.
51497         * tests/uninorm/test-u32-normalize-big.h: New file.
51498         * tests/uninorm/test-u32-normalize-big.c: New file.
51499         * tests/uninorm/NormalizationTest.txt: New file, created from
51500         Unicode 5.1.0 NormalizationTest.txt.
51501         * modules/uninorm/nfd-tests: New file.
51502
51503         New module 'uninorm/nfd'.
51504         * lib/uninorm/nfd.c: New file.
51505         * modules/uninorm/nfd: New file.
51506
51507         New module 'uninorm/u32-normalize'.
51508         * lib/uninorm/u32-normalize.c: New file.
51509         * modules/uninorm/u32-normalize: New file.
51510
51511         New module 'uninorm/u16-normalize'.
51512         * lib/uninorm/u16-normalize.c: New file.
51513         * modules/uninorm/u16-normalize: New file.
51514
51515         New module 'uninorm/u8-normalize'.
51516         * lib/uninorm/u8-normalize.c: New file.
51517         * lib/uninorm/normalize-internal.h: New file.
51518         * lib/uninorm/u-normalize-internal.h: New file.
51519         * modules/uninorm/u8-normalize: New file.
51520
51521         New module 'uninorm/decompose-internal'.
51522         * lib/uninorm/decompose-internal.c: New file.
51523         * modules/uninorm/decompose-internal: New file.
51524
51525         Tests for module 'uninorm/composition'.
51526         * tests/uninorm/test-composition.c: New file.
51527         * modules/uninorm/composition-tests: New file.
51528
51529         New module 'uninorm/composition'.
51530         * lib/uninorm/composition.c: New file.
51531         * lib/uninorm/composition-table.gperf: New file, generated by
51532         gen-uni-tables.
51533         * modules/uninorm/composition: New file.
51534
51535         Tests for module 'uninorm/compat-decomposition'.
51536         * tests/uninorm/test-compat-decomposition.c: New file.
51537         * modules/uninorm/compat-decomposition-tests: New file.
51538
51539         New module 'uninorm/compat-decomposition'.
51540         * lib/uninorm/decompose-internal.h: New file.
51541         * lib/uninorm/compat-decomposition.c: New file.
51542         * modules/uninorm/compat-decomposition: New file.
51543
51544         Tests for module 'uninorm/canonical-decomposition'.
51545         * tests/uninorm/test-canonical-decomposition.c: New file.
51546         * modules/uninorm/canonical-decomposition-tests: New file.
51547
51548         New module 'uninorm/canonical-decomposition'.
51549         * lib/uninorm/canonical-decomposition.c: New file.
51550         * modules/uninorm/canonical-decomposition: New file.
51551
51552         Tests for module 'uninorm/decomposition'.
51553         * tests/uninorm/test-decomposition.c: New file.
51554         * modules/uninorm/decomposition-tests: New file.
51555
51556         New module 'uninorm/decomposition'.
51557         * lib/uninorm/decomposition.c: New file.
51558         * modules/uninorm/decomposition: New file.
51559
51560         New module 'uninorm/decomposition-table'.
51561         * lib/uninorm/decomposition-table.h: New file.
51562         * lib/uninorm/decomposition-table.c: New file.
51563         * lib/uninorm/decomposition-table1.h: New file, generated by
51564         gen-uni-tables.
51565         * lib/uninorm/decomposition-table2.h: New file, generated by
51566         gen-uni-tables.
51567         * modules/uninorm/decomposition-table: New file.
51568
51569         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51570         (UC_DECOMP_*): New enumeration items.
51571         (get_decomposition): New function.
51572         (struct decomp_table): New type.
51573         (output_decomposition, output_decomposition_tables): New functions.
51574         (unicode_composition_exclusions): New variable.
51575         (fill_composition_exclusions, debug_output_composition_tables): New
51576         functions.
51577         (main): Accept one more argument. Invoke fill_composition_exclusions.
51578         Output decomposition and composition tables.
51579
51580         New module 'uninorm/base'.
51581         * lib/uninorm.h: New file.
51582         * lib/unictype.h: Update comment.
51583         * modules/uninorm/base: New file.
51584
51585 2009-02-21  David Lutterkort  <lutter@redhat.com>
51586
51587         Tests for module 'safe-alloc'.
51588         * tests/test-safe-alloc.c: New file.
51589         * modules/safe-alloc-tests: New file.
51590
51591         New module 'safe-alloc'.
51592         * lib/safe-alloc.h: New file.
51593         * lib/safe-alloc.c: New file.
51594         * m4/safe-alloc.m4: New file.
51595         * modules/safe-alloc: New file.
51596         * doc/safe-alloc.texi: New file.
51597         * doc/gnulib.texi: Include it.
51598         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51599         safe-alloc.
51600
51601 2009-02-18  Bruno Haible  <bruno@clisp.org>
51602
51603         Fix link error on non-glibc systems.
51604         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51605         variable.
51606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51607
51608 2009-02-18  Jim Meyering  <meyering@redhat.com>
51609
51610         fts: avoid used-uninitialized error due to recent change
51611         * lib/fts.c (fts_read): Guard uses of the new member,
51612         parent->fts_n_dirs_remaining, since it's not relevant for
51613         the parent of a directory specified on the command-line.
51614
51615 2009-02-17  James Youngman  <jay@gnu.org>
51616             Bruno Haible  <bruno@clisp.org>
51617
51618         * m4/include_next.m4: Reformulate comment.
51619
51620 2009-02-16  Jim Meyering  <meyering@redhat.com>
51621
51622         fts: add #if guards so that the fts_lgpl module still builds
51623         * lib/fts.c: Guard just-added hash-table-using parts with
51624         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51625         Reported by Simon Josefsson.
51626
51627 2009-02-15  Bruno Haible  <bruno@clisp.org>
51628
51629         * modules/array-mergesort-tests: New file.
51630         * tests/test-array-mergesort.c: New file.
51631
51632         New module 'array-mergesort'.
51633         * modules/array-mergesort: New file.
51634         * lib/array-mergesort.h: New file.
51635
51636 2009-02-15  Bruno Haible  <bruno@clisp.org>
51637
51638         Fix 2009-02-07 commit.
51639         * lib/gen-uni-tables.c (output_predicate, output_category,
51640         output_combclass, output_bidi_category, output_decimal_digit,
51641         output_digit, output_numeric, output_mirror, output_scripts,
51642         output_ident_category, output_simple_mapping): Fix format directives.
51643         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51644
51645 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51646
51647         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51648         fixes are available from IBM.
51649
51650 2009-02-13  Jim Meyering  <meyering@redhat.com>
51651
51652         fts: arrange not to stat non-directories in more cases
51653         This makes GNU find (when it doesn't need to stat each file)
51654         *much* more efficient at traversing reiserfs file systems.
51655         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51656         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51657         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51658         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51659         (leaf_optimization_applies): New function.
51660         (LCO_hash, LCO_compare): New helper functions.
51661         (link_count_optimize_ok): New function.
51662         (fts_stat): Initialize new member (if dir).
51663         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51664         we've just stat'ed a directory.  Skip the stat call when possible.
51665         ---
51666         Note this AFS-related exchange:
51667         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51668         and note find's pioctl call in find/fstype.c.
51669         But that is necessary only if you want to enable the
51670         optimization for AFS, and for now, I don't.
51671
51672         fts: move a function definition "up" (no semantic change)
51673         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51674         "up" to precede upcoming use of a related function.
51675
51676 2009-02-11  Jim Meyering  <meyering@redhat.com>
51677
51678         fts: correct internal computation of nlinks (optimization-related)
51679         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51680         whether the current entry is a directory, so don't test it.
51681
51682 2009-02-10  Bruno Haible  <bruno@clisp.org>
51683
51684         Tests for module 'uniwbrk/ulc-wordbreaks'.
51685         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51686         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51687         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51688
51689         Tests for module 'uniwbrk/u32-wordbreaks'.
51690         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51691         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51692
51693         Tests for module 'uniwbrk/u16-wordbreaks'.
51694         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51695         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51696
51697         Tests for module 'uniwbrk/u8-wordbreaks'.
51698         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51699         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51700
51701 2009-02-10  Bruno Haible  <bruno@clisp.org>
51702
51703         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51704         property.
51705         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51706         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51707         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51708
51709 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51710
51711         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51712         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51713
51714 2009-02-10  Bruno Haible  <bruno@clisp.org>
51715
51716         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51717         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51718         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51719         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51720         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51721         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51722
51723 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51724
51725         * lib/sockets.h (gl_fd_to_handle): New function.
51726
51727         * tests/test-sockets.c: Call gl_fd_to_handle.
51728
51729 2009-02-09  Bruno Haible  <bruno@clisp.org>
51730
51731         * doc/havelib.texi: Document the conventions on bi-arch systems.
51732
51733 2009-02-08  Bruno Haible  <bruno@clisp.org>
51734
51735         Document the AC_LIB_LINKFLAGS macro.
51736         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51737         * doc/gnulib.texi: Include it.
51738
51739 2009-02-08  Bruno Haible  <bruno@clisp.org>
51740
51741         Fix wrong order of sections, compared to TOC.
51742         * doc/gnulib.texi: Include relocatable-maint.texi after the
51743         "Regular expressions" node, not before.
51744
51745 2009-02-08  Bruno Haible  <bruno@clisp.org>
51746
51747         Tests for module 'unicase/totitle'.
51748         * modules/unicase/totitle-tests: New file.
51749
51750         Tests for module 'unicase/tolower'.
51751         * modules/unicase/tolower-tests: New file.
51752
51753         Tests for module 'unicase/toupper'.
51754         * modules/unicase/toupper-tests: New file.
51755         * tests/unicase/test-mapping-part1.h: New file.
51756         * tests/unicase/test-mapping-part2.h: New file.
51757
51758         New module 'unicase/totitle'.
51759         * modules/unicase/totitle: New file.
51760         * lib/unicase/totitle.c: New file.
51761
51762         New module 'unicase/tolower'.
51763         * modules/unicase/tolower: New file.
51764         * lib/unicase/tolower.c: New file.
51765
51766         New module 'unicase/toupper'.
51767         * modules/unicase/toupper: New file.
51768         * lib/unicase/toupper.c: New file.
51769         * lib/unicase/simple-mapping.h: New file.
51770
51771         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51772         (mapping_table): New structure.
51773         (output_simple_mapping): New function.
51774         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51775         * modules/gen-uni-tables (Description): Update.
51776         * lib/unicase/toupper.h: New file, automatically generated by
51777         gen-uni-tables.
51778         * lib/unicase/tolower.h: New file, automatically generated by
51779         gen-uni-tables.
51780         * lib/unicase/totitle.h: New file, automatically generated by
51781         gen-uni-tables.
51782         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51783         gen-uni-tables.
51784         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51785         gen-uni-tables.
51786         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51787         gen-uni-tables.
51788
51789         New module 'unicase/base'.
51790         * modules/unicase/base: New file.
51791         * lib/unicase.h: New file.
51792
51793 2009-02-08  Bruno Haible  <bruno@clisp.org>
51794
51795         New module 'uniwbrk/ulc-wordbreaks'.
51796         * modules/uniwbrk/ulc-wordbreaks: New file.
51797         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51798
51799         New module 'uniwbrk/u32-wordbreaks'.
51800         * modules/uniwbrk/u32-wordbreaks: New file.
51801         * lib/uniwbrk/u32-wordbreaks.c: New file.
51802
51803         New module 'uniwbrk/u16-wordbreaks'.
51804         * modules/uniwbrk/u16-wordbreaks: New file.
51805         * lib/uniwbrk/u16-wordbreaks.c: New file.
51806
51807         New module 'uniwbrk/u8-wordbreaks'.
51808         * modules/uniwbrk/u8-wordbreaks: New file.
51809         * lib/uniwbrk/u8-wordbreaks.c: New file.
51810         * lib/uniwbrk/u-wordbreaks.h: New file.
51811
51812         New module 'uniwbrk/table'.
51813         * modules/uniwbrk/table: New file.
51814         * lib/uniwbrk/wbrktable.h: New file.
51815         * lib/uniwbrk/wbrktable.c: New file.
51816
51817         New module 'uniwbrk/wordbreak-property'.
51818         * modules/uniwbrk/wordbreak-property: New file.
51819         * lib/uniwbrk/wordbreak-property.c: New file.
51820
51821         * lib/gen-uni-tables.c (WBP_*): New enum items.
51822         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51823         (unicode_org_wbp): New variable.
51824         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51825         New functions.
51826         (wbp_table): New structure.
51827         (output_wbp, output_wbrk_tables): New functions.
51828         (main): Accept additional argument. Invoke fill_org_wbp,
51829         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51830         output_wbrk_tables.
51831         * modules/gen-uni-tables (Description): Update.
51832         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51833         gen-uni-tables.
51834
51835         New module 'uniwbrk/base'.
51836         * modules/uniwbrk/base: New file.
51837         * lib/uniwbrk.h: New file.
51838
51839 2009-02-08  Bruno Haible  <bruno@clisp.org>
51840
51841         Update to Unicode 5.1.0.
51842         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51843         U+2185..U+2188.
51844         (is_property_default_ignorable_code_point): Don't include characters
51845         of category Cc or Cs and not-a-characters.
51846         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51847         U+0D79, U+109E, U+109F, U+A60C.
51848         * lib/unictype/bidi_of.h: Regenerated.
51849         * lib/unictype/blocks.h: Regenerated.
51850         * lib/unictype/categ_C.h: Regenerated.
51851         * lib/unictype/categ_Cf.h: Regenerated.
51852         * lib/unictype/categ_Cn.h: Regenerated.
51853         * lib/unictype/categ_L.h: Regenerated.
51854         * lib/unictype/categ_Ll.h: Regenerated.
51855         * lib/unictype/categ_Lm.h: Regenerated.
51856         * lib/unictype/categ_Lo.h: Regenerated.
51857         * lib/unictype/categ_Lu.h: Regenerated.
51858         * lib/unictype/categ_M.h: Regenerated.
51859         * lib/unictype/categ_Mc.h: Regenerated.
51860         * lib/unictype/categ_Me.h: Regenerated.
51861         * lib/unictype/categ_Mn.h: Regenerated.
51862         * lib/unictype/categ_N.h: Regenerated.
51863         * lib/unictype/categ_Nd.h: Regenerated.
51864         * lib/unictype/categ_Nl.h: Regenerated.
51865         * lib/unictype/categ_No.h: Regenerated.
51866         * lib/unictype/categ_P.h: Regenerated.
51867         * lib/unictype/categ_Pd.h: Regenerated.
51868         * lib/unictype/categ_Pe.h: Regenerated.
51869         * lib/unictype/categ_Pf.h: Regenerated.
51870         * lib/unictype/categ_Pi.h: Regenerated.
51871         * lib/unictype/categ_Po.h: Regenerated.
51872         * lib/unictype/categ_Ps.h: Regenerated.
51873         * lib/unictype/categ_S.h: Regenerated.
51874         * lib/unictype/categ_Sk.h: Regenerated.
51875         * lib/unictype/categ_Sm.h: Regenerated.
51876         * lib/unictype/categ_So.h: Regenerated.
51877         * lib/unictype/categ_of.h: Regenerated.
51878         * lib/unictype/combining.h: Regenerated.
51879         * lib/unictype/ctype_alnum.h: Regenerated.
51880         * lib/unictype/ctype_alpha.h: Regenerated.
51881         * lib/unictype/ctype_graph.h: Regenerated.
51882         * lib/unictype/ctype_lower.h: Regenerated.
51883         * lib/unictype/ctype_print.h: Regenerated.
51884         * lib/unictype/ctype_punct.h: Regenerated.
51885         * lib/unictype/ctype_upper.h: Regenerated.
51886         * lib/unictype/decdigit.h: Regenerated.
51887         * lib/unictype/digit.h: Regenerated.
51888         * lib/unictype/mirror.h: Regenerated.
51889         * lib/unictype/numeric.h: Regenerated.
51890         * lib/unictype/pr_alphabetic.h: Regenerated.
51891         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51892         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51893         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51894         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51895         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51896         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51897         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51898         * lib/unictype/pr_combining.h: Regenerated.
51899         * lib/unictype/pr_dash.h: Regenerated.
51900         * lib/unictype/pr_decimal_digit.h: Regenerated.
51901         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51902         * lib/unictype/pr_deprecated.h: Regenerated.
51903         * lib/unictype/pr_diacritic.h: Regenerated.
51904         * lib/unictype/pr_extender.h: Regenerated.
51905         * lib/unictype/pr_format_control.h: Regenerated.
51906         * lib/unictype/pr_grapheme_base.h: Regenerated.
51907         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51908         * lib/unictype/pr_grapheme_link.h: Regenerated.
51909         * lib/unictype/pr_id_continue.h: Regenerated.
51910         * lib/unictype/pr_id_start.h: Regenerated.
51911         * lib/unictype/pr_ideographic.h: Regenerated.
51912         * lib/unictype/pr_ignorable_control.h: Regenerated.
51913         * lib/unictype/pr_lowercase.h: Regenerated.
51914         * lib/unictype/pr_math.h: Regenerated.
51915         * lib/unictype/pr_numeric.h: Regenerated.
51916         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51917         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51918         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51919         * lib/unictype/pr_other_id_continue.h: Regenerated.
51920         * lib/unictype/pr_other_lowercase.h: Regenerated.
51921         * lib/unictype/pr_other_math.h: Regenerated.
51922         * lib/unictype/pr_punctuation.h: Regenerated.
51923         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51924         * lib/unictype/pr_soft_dotted.h: Regenerated.
51925         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51926         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51927         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51928         * lib/unictype/pr_uppercase.h: Regenerated.
51929         * lib/unictype/pr_xid_continue.h: Regenerated.
51930         * lib/unictype/pr_xid_start.h: Regenerated.
51931         * lib/unictype/pr_zero_width.h: Regenerated.
51932         * lib/unictype/scripts.h: Regenerated.
51933         * lib/unictype/scripts_byname.gperf: Regenerated.
51934         * lib/unictype/sy_java_ident.h: Regenerated.
51935         * lib/unilbrk/lbrkprop1.h: Regenerated.
51936         * lib/unilbrk/lbrkprop2.h: Regenerated.
51937         * tests/unictype/test-categ_C.c: Regenerated.
51938         * tests/unictype/test-categ_Cf.c: Regenerated.
51939         * tests/unictype/test-categ_Cn.c: Regenerated.
51940         * tests/unictype/test-categ_L.c: Regenerated.
51941         * tests/unictype/test-categ_Ll.c: Regenerated.
51942         * tests/unictype/test-categ_Lm.c: Regenerated.
51943         * tests/unictype/test-categ_Lo.c: Regenerated.
51944         * tests/unictype/test-categ_Lu.c: Regenerated.
51945         * tests/unictype/test-categ_M.c: Regenerated.
51946         * tests/unictype/test-categ_Mc.c: Regenerated.
51947         * tests/unictype/test-categ_Me.c: Regenerated.
51948         * tests/unictype/test-categ_Mn.c: Regenerated.
51949         * tests/unictype/test-categ_N.c: Regenerated.
51950         * tests/unictype/test-categ_Nd.c: Regenerated.
51951         * tests/unictype/test-categ_Nl.c: Regenerated.
51952         * tests/unictype/test-categ_No.c: Regenerated.
51953         * tests/unictype/test-categ_P.c: Regenerated.
51954         * tests/unictype/test-categ_Pd.c: Regenerated.
51955         * tests/unictype/test-categ_Pe.c: Regenerated.
51956         * tests/unictype/test-categ_Pf.c: Regenerated.
51957         * tests/unictype/test-categ_Pi.c: Regenerated.
51958         * tests/unictype/test-categ_Po.c: Regenerated.
51959         * tests/unictype/test-categ_Ps.c: Regenerated.
51960         * tests/unictype/test-categ_S.c: Regenerated.
51961         * tests/unictype/test-categ_Sk.c: Regenerated.
51962         * tests/unictype/test-categ_Sm.c: Regenerated.
51963         * tests/unictype/test-categ_So.c: Regenerated.
51964         * tests/unictype/test-ctype_alnum.c: Regenerated.
51965         * tests/unictype/test-ctype_alpha.c: Regenerated.
51966         * tests/unictype/test-ctype_graph.c: Regenerated.
51967         * tests/unictype/test-ctype_lower.c: Regenerated.
51968         * tests/unictype/test-ctype_print.c: Regenerated.
51969         * tests/unictype/test-ctype_punct.c: Regenerated.
51970         * tests/unictype/test-ctype_upper.c: Regenerated.
51971         * tests/unictype/test-decdigit.h: Regenerated.
51972         * tests/unictype/test-digit.h: Regenerated.
51973         * tests/unictype/test-numeric.h: Regenerated.
51974         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51975         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51976         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51977         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51978         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51979         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51980         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51981         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51982         * tests/unictype/test-pr_combining.c: Regenerated.
51983         * tests/unictype/test-pr_dash.c: Regenerated.
51984         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51985         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51986         * tests/unictype/test-pr_deprecated.c: Regenerated.
51987         * tests/unictype/test-pr_diacritic.c: Regenerated.
51988         * tests/unictype/test-pr_extender.c: Regenerated.
51989         * tests/unictype/test-pr_format_control.c: Regenerated.
51990         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51991         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51992         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51993         * tests/unictype/test-pr_id_continue.c: Regenerated.
51994         * tests/unictype/test-pr_id_start.c: Regenerated.
51995         * tests/unictype/test-pr_ideographic.c: Regenerated.
51996         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51997         * tests/unictype/test-pr_lowercase.c: Regenerated.
51998         * tests/unictype/test-pr_math.c: Regenerated.
51999         * tests/unictype/test-pr_numeric.c: Regenerated.
52000         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52001         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52002         Regenerated.
52003         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52004         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52005         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52006         * tests/unictype/test-pr_other_math.c: Regenerated.
52007         * tests/unictype/test-pr_punctuation.c: Regenerated.
52008         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52009         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52010         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52011         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52012         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52013         * tests/unictype/test-pr_uppercase.c: Regenerated.
52014         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52015         * tests/unictype/test-pr_xid_start.c: Regenerated.
52016         * tests/unictype/test-pr_zero_width.c: Regenerated.
52017
52018         Update to Unicode 5.1.0.
52019         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52020         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52021         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52022         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52023         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52024         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52025         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52026         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52027         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52028         (nonspacing_table_ind): Update.
52029         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52030
52031         Update to Unicode 5.1.0.
52032         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52033         code transform.
52034         * lib/uniname/uniname.c (unicode_character_name,
52035         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52036         * lib/uniname/uninames.h: Regenerated.
52037         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52038
52039 2009-02-07  Bruno Haible  <bruno@clisp.org>
52040
52041         Merge gen-ctype and gen-lbrk into a single program.
52042         * lib/gen-uni-tables.c: New file, incorporating
52043         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52044         Add directory prefixes to the names of the generated files.
52045         * lib/unictype/gen-ctype.c: Remove file.
52046         * lib/unilbrk/gen-lbrk.c: Remove file.
52047         * modules/gen-uni-tables: New file.
52048         * modules/unictype/gen-ctype: Remove file.
52049         * modules/unilbrk/gen-lbrk: Remove file.
52050
52051 2009-02-07  Bruno Haible  <bruno@clisp.org>
52052
52053         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52054
52055         New module 'unistr/u32-strcoll'.
52056         * modules/unistr/u32-strcoll: New file.
52057         * lib/unistr/u32-strcoll.c: New file.
52058
52059         New module 'unistr/u16-strcoll'.
52060         * modules/unistr/u16-strcoll: New file.
52061         * lib/unistr/u16-strcoll.c: New file.
52062
52063         New module 'unistr/u8-strcoll'.
52064         * modules/unistr/u8-strcoll: New file.
52065         * lib/unistr/u8-strcoll.c: New file.
52066         * lib/unistr/u-strcoll.h: New file.
52067
52068 2009-02-07  Bruno Haible  <bruno@clisp.org>
52069
52070         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52071         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52072         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52073         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52074         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52075         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52076
52077 2009-02-07  Bruno Haible  <bruno@clisp.org>
52078
52079         Make 64-bit clean.
52080         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52081         output_combclass, output_bidi_category, output_decimal_digit,
52082         output_digit, output_numeric, output_mirror, output_scripts,
52083         output_ident_category): Use proper width specifier in format strings.
52084
52085 2009-02-07  Bruno Haible  <bruno@clisp.org>
52086
52087         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52088         failure behaviour.
52089
52090 2009-02-07  Jim Meyering  <meyering@redhat.com>
52091
52092         regex: avoid compilation failure with upcoming gcc-4.4
52093         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52094         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52095         "... error: integer overflow in preprocessor expression".
52096
52097 2009-02-05  Ben Pfaff  <blp@gnu.org>
52098
52099         Fix link errors on Windows when close module is used.
52100         * modules/close: Add $(LIB_CLOSE) to Link section.
52101         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52102         $(LIB_CLOSE) on Windows.
52103
52104 2009-02-05  Jim Meyering  <meyering@redhat.com>
52105
52106         still avoid unused-parameter warnings, but do it cleanly
52107         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52108         (get_fs_usage): Cast to void instead.
52109         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52110         (dev_from_mount_options, read_file_system_list): Cast to void.
52111         Prompted by Bruno Haible.
52112
52113 2009-02-04  Jim Meyering  <meyering@redhat.com>
52114
52115         fsusage.c: correct copyright year
52116         * lib/fsusage.c: Reflect year in which the change is pushed into
52117
52118         avoid misc. warnings
52119         * lib/fsusage.c (UNUSED_PARAM): Define.
52120         (get_fs_usage): Mark parameter "disk" as unused.
52121         * lib/getugroups.c (getgrent): Use "void" in prototype.
52122         * lib/mountlist.c: Mark unused parameters.
52123         (read_file_system_list): Declare a local with "const".
52124         * lib/nanosleep.c (getnow): Declare static.
52125         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52126
52127         dirfd: set errno upon failure
52128         * lib/dirfd.c: Include <errno.h>.
52129         Set errno to ENOTSUP when returning -1.
52130         * modules/dirfd (Depends-on): Add errno.
52131         Suggested by John Kodis <kodis@comcast.net>.
52132
52133 2009-02-01  Bruno Haible  <bruno@clisp.org>
52134
52135         Don't assume sizeof (long) >= sizeof (void *).
52136         * lib/memcmp.c: Include stdint.h.
52137         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52138         srcp2 to 'const byte *'.
52139         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52140         types to uintptr_t.
52141         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52142         * modules/memcmp (Depends-on): Add stdint.
52143         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52144
52145 2009-01-30  Eric Blake  <ebb9@byu.net>
52146
52147         fix more require-before-expand issues
52148         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52149         expand, AC_PROG_AWK.
52150         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52151
52152 2009-01-28  Eric Blake  <ebb9@byu.net>
52153
52154         version-etc: use consistent URL formatting
52155         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52156         Improve formatting.  Use fputs for string without %.
52157
52158 2009-01-28  Jim Meyering  <meyering@redhat.com>
52159
52160         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52161         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52162         "underquoted definition of NAME" from autoconf-2.59.
52163
52164 2009-01-28  Bruno Haible  <bruno@clisp.org>
52165
52166         * doc/gnulib.texi: Add "Obsolete modules" to index.
52167
52168 2009-01-28  Jim Meyering  <meyering@redhat.com>
52169
52170         useless-if-before-free: recognize more variants
52171         * build-aux/useless-if-before-free: Also recognize e.g.,
52172         if (NULL != p) free (p);
52173
52174 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52175
52176         test-getaddrinfo: skip (don't fail) this test when there's no network
52177         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52178         on the presumption that it means you lack network access.
52179
52180 2009-01-26  Jim Meyering  <meyering@redhat.com>
52181
52182         fflush: avoid warnings on modern systems
52183         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52184         pos and result, into scopes where they're used.
52185
52186 2009-01-26  Eric Blake  <ebb9@byu.net>
52187
52188         Silence warning reintroduced by recent extensions patch.
52189         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52190         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52191         autoconf.
52192
52193         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52194         * m4/00gnulib.m4: New file.
52195         * gnulib-tool (func_get_filelist): Always use it.
52196         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52197         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52198
52199 2009-01-25  Bruno Haible  <bruno@clisp.org>
52200
52201         Make test-quotearg work on MacOS X and AIX.
52202         * tests/test-quotearg.sh: New file.
52203         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52204         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52205         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52206         include <libintl.h>.
52207         (fake_locale): Remove variable.
52208         (gettext, dgettext, dcgettext): Remove functions.
52209         (main): Instead of setting a fake locale, set a real locale. Call
52210         textdomain and bindtextdomain.
52211         * modules/quotearg-tests (Files): Add the new files.
52212         (Depends-on): Add gettext, setenv, unsetenv.
52213         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52214         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52215         Augment TESTS_ENVIRONMENT.
52216
52217 2009-01-25  Bruno Haible  <bruno@clisp.org>
52218
52219         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52220         fr_FR.ISO8859-1 locale on MacOS X.
52221         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52222         ja_JP.eucJP locale on MacOS X.
52223         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52224         zh_CN.GB18030 locale on MacOS X.
52225
52226 2009-01-25  Bruno Haible  <bruno@clisp.org>
52227
52228         Avoid link errors on MacOS X 10.3.
52229         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52230         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52231
52232 2009-01-25  Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52235         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52236         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52237         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52238         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52239         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52240         posix_spawnattr_init, posix_spawnattr_setsigmask,
52241         posix_spawnattr_setflags, posix_spawnattr_destroy.
52242
52243         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52244         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52245         * modules/execute (Files): Remove m4/posix_spawn.m4.
52246         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52247         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52248         posix_spawnattr_init, posix_spawnattr_setsigmask,
52249         posix_spawnattr_setflags, posix_spawnattr_destroy.
52250
52251 2009-01-25  Bruno Haible  <bruno@clisp.org>
52252
52253         * lib/glthread/threadlib.c: Include <stdlib.h>.
52254
52255 2009-01-25  Bruno Haible  <bruno@clisp.org>
52256
52257         * lib/glthread/threadlib.c (dummy): New declaration.
52258
52259 2009-01-25  Bruno Haible  <bruno@clisp.org>
52260
52261         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52262         multibyte characters also for the GB18030 encoding. Don't crash when
52263         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52264
52265 2009-01-25  Bruno Haible  <bruno@clisp.org>
52266
52267         Avoid redefining 'struct random_data' on OSF/1 5.1.
52268         * lib/stdlib.in.h: Include <random.h> if it exists.
52269         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52270         HAVE_RANDOM_H. Include <random.h> when testing whether
52271         'struct random_data' exists.
52272         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52273
52274 2009-01-25  Bruno Haible  <bruno@clisp.org>
52275
52276         Don't install charset.alias on MacOS X >= 10.3.
52277         * lib/localcharset.c (DARWIN7): New macro.
52278         (get_charset_aliases): Hardcode the result for Darwin7.
52279         * modules/localcharset (install-exec-local): Don't install
52280         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52281
52282 2009-01-25  Bruno Haible  <bruno@clisp.org>
52283
52284         Don't install charset.alias on mingw and Cygwin.
52285         * modules/localcharset (install-exec-local): Don't install
52286         charset.alias on mingw and Cygwin, if the file does not yet exist.
52287         The result for these platforms is hardcoded in localcharset.c.
52288
52289 2009-01-25  Bruno Haible  <bruno@clisp.org>
52290
52291         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52292         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52293         before requiring AC_USE_SYSTEM_EXTENSIONS.
52294
52295 2009-01-25  Jim Meyering  <meyering@redhat.com>
52296
52297         c-strtod: avoid warnings
52298         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52299         "assignment discards qualifiers from pointer target type" warnings.
52300
52301 2009-01-24  Bruno Haible  <bruno@clisp.org>
52302
52303         Add support for non-UTF-8 locales on MacOS X.
52304         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52305         canonical encodings. For Darwin 7 and newer, don't map traditional
52306         encodings to UTF-8.
52307         Reported by Vincent Lefevre <vincent@vinc17.org>
52308         at <http://savannah.gnu.org/bugs/?25235>.
52309
52310 2009-01-24  Bruno Haible  <bruno@clisp.org>
52311
52312         * doc/gnulib.texi (Obsolete modules): New section.
52313         Reported by Mike Frysinger <vapier@gentoo.org>.
52314
52315 2009-01-24  Bruno Haible  <bruno@clisp.org>
52316
52317         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52318         (%.dvi): New rule.
52319
52320 2009-01-24  Bruno Haible  <bruno@clisp.org>
52321
52322         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52323         Reported by Eric Blake.
52324
52325 2009-01-24  Bruno Haible  <bruno@clisp.org>
52326
52327         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52328         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52329         Reported by Gary V. Vaughan <gary@gnu.org>.
52330
52331 2009-01-24  Bruno Haible  <bruno@clisp.org>
52332
52333         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52334
52335 2009-01-23  Bruno Haible  <bruno@clisp.org>
52336
52337         Make c-strtod, c-strtold usable in libraries.
52338         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52339         (C_STRTOD): Call strdup instead of xstrdup.
52340         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52341         * modules/c-strtold (Depends-on): Likewise.
52342         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52343         * NEWS: Mention the change.
52344         Reported by Michael Gold <mgold@ncf.ca>.
52345
52346 2009-01-23  Jim Meyering  <meyering@redhat.com>
52347
52348         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52349         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52350         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52351
52352 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52353
52354         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52355         GNU CoreUtils.
52356         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52357         * modules/version-etc (Description): Update.
52358
52359 2009-01-22  Bruno Haible  <bruno@clisp.org>
52360
52361         Cache the C locale object.
52362         * lib/c-strtod.c (c_locale_cache): New variable.
52363         (c_locale): New function.
52364         (C_STRTOD): Use it, and don't call freelocale.
52365         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52366         Suggested by Paolo Bonzini.
52367
52368 2009-01-21  Bruno Haible  <bruno@clisp.org>
52369
52370         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52371         conditions other than overflow.
52372
52373 2009-01-21  Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/c-strtod.c: Include errno.h.
52376         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52377         value from STRTOD_L and STRTOD.
52378
52379 2009-01-21  Bruno Haible  <bruno@clisp.org>
52380         and Jim Meyering  <meyering@redhat.com>
52381
52382         nanosleep: skip configure test (fail it) for apple universal builds
52383         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52384         universal builds, assume that nanosleep does not work.
52385         * modules/nanosleep (Depends-on): Add multiarch.
52386
52387         mktime: skip configure test (fail it) for apple universal builds
52388         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52389         universal builds, assume that mktime does not work.
52390         * modules/mktime (Depends-on): Add multiarch.
52391
52392 2009-01-21  Eric Blake  <ebb9@byu.net>
52393
52394         multiarch: avoid expand-before-require warning
52395         * modules/multiarch (configure.ac): Require, rather than expand,
52396         gl_MULTIARCH.
52397         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52398         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52399         enforce that all clients require it.  Partial reversion of
52400         2008-12-29 patch.
52401
52402         error: avoid expand-before-require warning
52403         * modules/errno (configure.ac): Require, rather than expand,
52404         gl_HEADER_ERRNO_H.
52405         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52406         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52407         enforce that all clients require it.
52408
52409         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52410         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52411         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52412         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52413
52414 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52415
52416         Revert:
52417         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52418
52419         regex: do not depend on obsolete modules.
52420         * modules/regex: Remove memcmp and memmove.
52421
52422 2009-01-20  Bruno Haible  <bruno@clisp.org>
52423
52424         Make the 'link' module link on Windows NT 4.
52425         * lib/link.c (_WIN32_WINNT): Don't define.
52426         (CreateHardLinkFuncType): New type.
52427         (CreateHardLinkFunc, initialized): New variables.
52428         (initialize): New function.
52429         (link): Invoke CreateHardLink indirectly through the function pointer.
52430
52431 2009-01-20  Bruno Haible  <bruno@clisp.org>
52432
52433         Fix compilation failure on mingw.
52434         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52435
52436 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52437
52438         * doc/c-strtod.texi: Mention a couple of restrictions.
52439
52440 2009-01-20  Jim Meyering  <meyering@redhat.com>
52441
52442         gettimeofday: move more declarations out of functions
52443         * lib/gettimeofday.c: Move extern declarations of tzset and
52444         gmtime out of containing functions.  Prompted by Bruno Haible.
52445
52446 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52447
52448         regex: do not depend on obsolete modules.
52449         * modules/regex: Remove memcmp and memmove.
52450
52451 2009-01-19  Bruno Haible  <bruno@clisp.org>
52452
52453         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52454         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52455         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52456         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52457         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52458
52459 2009-01-19  Bruno Haible  <bruno@clisp.org>
52460
52461         * tests/test-link.c: Include <errno.h>.
52462         (main): Exit with code 77 when a hard link cannot be created due to
52463         the file system.
52464         * tests/test-link.sh: Skip test when a hard link cannot be created due
52465         to the file system.
52466         Suggested by Eric Blake.
52467
52468 2009-01-19  Martin Lambers  <marlam@marlam.de>
52469
52470         * modules/link-tests: New file.
52471         * tests/test-link.sh: New file.
52472         * tests/test-link.c: New file.
52473
52474 2009-01-19  Eric Blake  <ebb9@byu.net>
52475
52476         doc: mention another function added in cygwin 1.7.0
52477         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52478         Another new function in cygwin 1.7.
52479
52480 2009-01-19  Bruno Haible  <bruno@clisp.org>
52481
52482         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52483         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52484         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52485         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52486         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52487         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52488         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52489         * m4/md4.m4 (gl_MD4): Likewise.
52490         * m4/md5.m4 (gl_MD5): Likewise.
52491         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52492         * m4/sha1.m4 (gl_SHA1): Likewise.
52493         * m4/sha256.m4 (gl_SHA256): Likewise.
52494         * m4/sha512.m4 (gl_SHA512): Likewise.
52495
52496 2009-01-19  Bruno Haible  <bruno@clisp.org>
52497
52498         * modules/uniname/uniname-tests (Depends-on): Add progname.
52499         * tests/uniname/test-uninames.c: Include progname.h.
52500         (main): Call set_program_name.
52501
52502         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52503         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52504         (main): Call set_program_name.
52505
52506         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52507         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52508         (main): Call set_program_name.
52509
52510         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52511         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52512         (main): Call set_program_name.
52513
52514         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52515         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52516         (main): Call set_program_name.
52517
52518         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52519         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52520         (main): Call set_program_name.
52521
52522         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52523         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52524         (main): Call set_program_name.
52525
52526         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52527         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52528         (main): Call set_program_name.
52529
52530         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52531         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52532         (main): Call set_program_name.
52533
52534 2009-01-19  Eric Blake  <ebb9@byu.net>
52535
52536         test-unistd: test previous patch
52537         * tests/test-unistd.c: Test *_FILENO macros.
52538
52539         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52540         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52541         Guarantee a definition.
52542         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52543         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52544         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52545         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52546         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52547         Likewise.
52548         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52549         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52550         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52551         Likewise.
52552         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52553         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52554         (STDERR_FILENO): Likewise.
52555         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52556         (STDERR_FILENO): Likewise.
52557         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52558         (STDERR_FILENO): Likewise.
52559         Reported by Elbert Pol.
52560
52561 2009-01-19  Eric Blake  <ebb9@byu.net>
52562
52563         doc: mention more functions added in cygwin 1.7.0
52564         * doc/posix-functions/abort.texi (abort): Update wording related
52565         to cygwin.
52566         * doc/posix-functions/daylight.texi (daylight): Likewise.
52567         * doc/posix-functions/optarg.texi (optarg): Likewise.
52568         * doc/posix-functions/optarg.texi (opterr): Likewise.
52569         * doc/posix-functions/optarg.texi (optind): Likewise.
52570         * doc/posix-functions/optarg.texi (optopt): Likewise.
52571         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52572         worked in 1.5.x, and was withdrawn in 1.7.
52573         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52574         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52575         cygwin versions.
52576         * doc/posix-functions/perror.texi (perror): Likewise.
52577         * doc/posix-functions/printf.texi (printf): Likewise.
52578         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52579         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52580         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52581         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52582         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52583         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52584         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52585         Likewise.
52586         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52587         Likewise.
52588         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52589         this function.
52590         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52591         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52592         Likewise.
52593         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52594         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52595         * doc/posix-functions/confstr.texi (confstr): Likewise.
52596         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52597         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52598         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52599         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52600         * doc/posix-functions/fputws.texi (fputws): Likewise.
52601         * doc/posix-functions/fwide.texi (fwide): Likewise.
52602         * doc/posix-functions/getwc.texi (getwc): Likewise.
52603         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52604         * doc/posix-functions/putwc.texi (putwc): Likewise.
52605         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52606         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52607         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52608         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52609         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52610         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52611         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52612         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52613         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52614         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52615         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52616
52617 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52618
52619         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52620         * lib/ioctl.c: Include <sys/ioctl.h>.
52621
52622 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52623
52624         * modules/getdate-tests (Depends-on): Add progname.
52625         * tests/test-getdate.c: Use progname module, to avoid link errors
52626         on non-glibc systems.
52627
52628 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52629
52630         * modules/filenamecat-tests (Depends-on): Add progname.
52631         * modules/fstrcmp-tests (Depends-on): Likewise.
52632
52633         * tests/test-filenamecat.c: Use progname module, to avoid link
52634         errors on non-glibc systems.
52635         * tests/test-fstrcmp.c: Likewise.
52636
52637 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52638
52639         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52640         * lib/gettimeofday.c: Move extern declaration out of function.
52641
52642 2009-01-18  Bruno Haible  <bruno@clisp.org>
52643
52644         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52645         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52646         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52647
52648 2009-01-18  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/strftime.c (MEMPCPY): Remove unused macro.
52651         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52652
52653 2009-01-18  Martin Lambers  <marlam@marlam.de>
52654
52655         New module 'link'.
52656         * lib/unistd.in.h (link): New declaration.
52657         * lib/link.c: New file.
52658         * m4/link.m4: New file.
52659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52660         HAVE_LINK.
52661         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52662         * modules/link: New file.
52663         * doc/posix-functions/link.texi: Mention the new module.
52664
52665 2009-01-18  Bruno Haible  <bruno@clisp.org>
52666
52667         * tests/test-avltree_list.c (main): Call set_program_name.
52668         * tests/test-avltree_oset.c (main): Likewise.
52669         * tests/test-obstack-printf.c: Include progname.h.
52670         (main): Call set_program_name.
52671         * tests/test-quotearg.c: Include progname.h.
52672         (main): Call set_program_name.
52673         * tests/test-xmemdup0.c: Include progname.h.
52674         (main): Call set_program_name.
52675
52676 2009-01-18  Bruno Haible  <bruno@clisp.org>
52677
52678         New module 'alphasort'.
52679         * lib/dirent.in.h (alphasort): New declaration.
52680         * lib/alphasort.c: New file, from glibc with modifications.
52681         * m4/alphasort.m4: New file.
52682         * modules/alphasort: New file.
52683         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52684         HAVE_ALPHASORT.
52685         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52686         HAVE_ALPHASORT.
52687         * doc/posix-functions/alphasort.texi: Mention the new module and the
52688         portability problems.
52689
52690 2009-01-18  Bruno Haible  <bruno@clisp.org>
52691
52692         New module 'scandir'.
52693         * lib/dirent.in.h (scandir): New declaration.
52694         * lib/scandir.c: New file, from glibc with modifications.
52695         * m4/scandir.m4: New file.
52696         * modules/scandir: New file.
52697         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52698         HAVE_SCANDIR.
52699         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52700         HAVE_SCANDIR.
52701         * doc/posix-functions/scandir.texi: Mention the new module and the
52702         portability problems.
52703
52704 2009-01-17  Bruno Haible  <bruno@clisp.org>
52705
52706         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52707         Update documentation.
52708         (func_remove_suffix): Escape all dots in the suffix. Update
52709         documentation.
52710         (func_filter_filelist): Update documentation.
52711         Reported by Ralf Wildenhues.
52712
52713 2009-01-17  Bruno Haible  <bruno@clisp.org>
52714
52715         * modules/dprintf-posix-tests: New file.
52716         * tests/test-dprintf-posix.sh: New file.
52717         * tests/test-dprintf-posix.c: New file.
52718
52719         New modules 'dprintf', 'dprintf-posix'.
52720         * lib/stdio.in.h (dprintf): New declaration.
52721         * lib/dprintf.c: New file.
52722         * m4/dprintf.m4: New file.
52723         * m4/dprintf-posix.m4: New file.
52724         * modules/dprintf: New file.
52725         * modules/dprintf-posix: New file.
52726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52727         HAVE_DPRINTF, REPLACE_DPRINTF.
52728         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52729         HAVE_DPRINTF, REPLACE_DPRINTF.
52730         * doc/posix-functions/dprintf.texi: Mention the new modules.
52731
52732 2009-01-17  Bruno Haible  <bruno@clisp.org>
52733
52734         * modules/vdprintf-posix-tests: New file.
52735         * tests/test-vdprintf-posix.sh: New file.
52736         * tests/test-vdprintf-posix.c: New file.
52737
52738         New modules 'vdprintf', 'vdprintf-posix'.
52739         * lib/stdio.in.h (vdprintf): New declaration.
52740         * lib/vdprintf.c: New file.
52741         * m4/vdprintf.m4: New file.
52742         * m4/vdprintf-posix.m4: New file.
52743         * modules/vdprintf: New file.
52744         * modules/vdprintf-posix: New file.
52745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52746         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52747         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52748         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52749         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52750
52751 2009-01-17  Bruno Haible  <bruno@clisp.org>
52752
52753         Fix replacement of fopen on mingw.
52754         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52755         mingw.
52756
52757 2009-01-17  Bruno Haible  <bruno@clisp.org>
52758
52759         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52760         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52761
52762 2009-01-17  Bruno Haible  <bruno@clisp.org>
52763
52764         Avoid test-fflush2.sh failure on mingw.
52765         * tests/test-fflush2.c: Include binary-io.h.
52766         (main): Put standard input into binary mode.
52767         * modules/fflush-tests (Depends-on): Add binary-io.
52768
52769 2009-01-17  Bruno Haible  <bruno@clisp.org>
52770
52771         * lib/wchar.in.h: In another particular situation, include only the
52772         system's <wchar.h> file.
52773         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52774         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52775         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52776
52777 2009-01-17  Bruno Haible  <bruno@clisp.org>
52778
52779         Support for stripping executables in --enable-relocatable.
52780         * build-aux/install-reloc: Expect one more argument, or an environment
52781         variable RELOC_STRIP_PROG. If set, strip the destination program and
52782         its wrapper.
52783         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52784         RELOC_STRIP_PROG.
52785         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52786         to set RELOCATABLE_STRIP.
52787         * NEWS: Mention the new Makefile requirement.
52788
52789 2009-01-17  Bruno Haible  <bruno@clisp.org>
52790
52791         * build-aux/install-reloc: Remove debugging information left over by
52792         C compiler on MacOS X.
52793
52794 2009-01-17  Bruno Haible  <bruno@clisp.org>
52795
52796         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52797         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52798         _NSGetExecutablePath.
52799
52800 2009-01-16  Jim Meyering  <meyering@redhat.com>
52801
52802         strerror: avoid warnings about discarding "const"
52803         * lib/strerror.c (rpl_strerror): Instead of returning a const
52804         string from each and every "case", use a variable, and add a single
52805         cast after the switch.
52806
52807 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52808
52809         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52810
52811 2009-01-16  Bruno Haible  <bruno@clisp.org>
52812
52813         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52814         array initializer syntax that also works in C++ mode.
52815         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52816
52817 2009-01-16  Jim Meyering  <meyering@redhat.com>
52818
52819         poll: suppress a warning
52820         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52821         to ignore "...unsigned expression < 0 is always false" warnings.
52822
52823 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52824
52825         poll: remove declarations of unused variables
52826         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52827         sockbuf and optlen.
52828
52829 2009-01-15  Bruno Haible  <bruno@clisp.org>
52830
52831         Make fflush-after-ungetc POSIX compliant on BSD systems.
52832         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52833         (clear_ungetc_buffer): Implement also for other systems.
52834         (rpl_fflush): On glibc systems, invoke
52835         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52836         clear_ungetc_buffer after fetching the stream's position, not before.
52837
52838 2009-01-15  Bruno Haible  <bruno@clisp.org>
52839
52840         Make fflush-after-ungetc POSIX compliant on glibc systems.
52841         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52842         after ungetc.
52843         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52844         (rpl_fflush): On glibc systems, simply call the system's fflush
52845         function after clearing the ungetc buffer.
52846         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52847         Instead, lseek only to the end of file, then use the system's fseeko
52848         for the rest. On glibc systems, reset the EOF indicator bit.
52849
52850 2009-01-15  Jim Meyering  <meyering@redhat.com>
52851
52852         openmp.m4: revert quote-adding change, for portability to older autoconf
52853         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52854         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52855         Simon Josefsson noticed the problem when using autoconf-2.61.
52856
52857 2009-01-15  Bruno Haible  <bruno@clisp.org>
52858
52859         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52860         * tests/test-fflush2.c (ASSERT): Always fail.
52861         (main): Add two tests for fflush() after ungetc(), taking into account
52862         the Austin Group's clarification.
52863         Suggested by Eric Blake.
52864
52865 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52866
52867         mktime.m4: remove K&R-style function prototypes
52868         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52869         for the Sun C++ compiler.
52870
52871 2009-01-14  Bruno Haible  <bruno@clisp.org>
52872
52873         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52874         while including <wchar.h>.
52875         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52876         the system's <wchar.h> file.
52877         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52878
52879 2009-01-14  Bruno Haible  <bruno@clisp.org>
52880
52881         * m4/csharp.m4: Don't mention gettext on the serial number line.
52882         * m4/csharpexec.m4: Likewise.
52883         * m4/eaccess.m4: Likewise.
52884         * m4/javaexec.m4: Likewise.
52885         * m4/sig_atomic_t.m4: Likewise.
52886         * m4/tmpdir.m4: Likewise.
52887         * m4/intldir.m4: Bump gettext version.
52888         * m4/lib-ld.m4: Likewise.
52889
52890 2009-01-14  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/progname.c (set_program_name): Add more comments.
52893         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52894
52895 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52896
52897         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52898         were sys/stat.h does not define it.
52899
52900 2009-01-14  Jim Meyering  <meyering@redhat.com>
52901
52902         many *.m4 files: improve m4 quoting
52903         99% of this change was performed by running the following commands:
52904         git ls-files | grep '\.m4$' | xargs perl -pi \
52905           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52906           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52907           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52908           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52909         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52910         The remainder were to add Copyright dates, increment serial numbers,
52911         undo some changes in comments, exclude m4/intl.m4, and add quotes
52912         around the "1" in ",1" where the unusual spacing prohibited the
52913         above regexps from doing the job.  For more details, see
52914         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52915         * m4/acl.m4: Modified.
52916         * m4/afs.m4: Likewise.
52917         * m4/alloca.m4: Likewise.
52918         * m4/argp.m4: Likewise.
52919         * m4/argz.m4: Likewise.
52920         * m4/atexit.m4: Likewise.
52921         * m4/bison-i18n.m4: Likewise.
52922         * m4/bison.m4: Likewise.
52923         * m4/byteswap.m4: Likewise.
52924         * m4/c-stack.m4: Likewise.
52925         * m4/c-strtod.m4: Likewise.
52926         * m4/calloc.m4: Likewise.
52927         * m4/canonicalize-lgpl.m4: Likewise.
52928         * m4/chown.m4: Likewise.
52929         * m4/clock_time.m4: Likewise.
52930         * m4/codeset.m4: Likewise.
52931         * m4/copy-file.m4: Likewise.
52932         * m4/csharp.m4: Likewise.
52933         * m4/csharpcomp.m4: Likewise.
52934         * m4/csharpexec.m4: Likewise.
52935         * m4/d-ino.m4: Likewise.
52936         * m4/d-type.m4: Likewise.
52937         * m4/dirfd.m4: Likewise.
52938         * m4/double-slash-root.m4: Likewise.
52939         * m4/eaccess.m4: Likewise.
52940         * m4/eealloc.m4: Likewise.
52941         * m4/environ.m4: Likewise.
52942         * m4/errno_h.m4: Likewise.
52943         * m4/euidaccess.m4: Likewise.
52944         * m4/execute.m4: Likewise.
52945         * m4/fatal-signal.m4: Likewise.
52946         * m4/fchdir.m4: Likewise.
52947         * m4/fcntl_h.m4: Likewise.
52948         * m4/fileblocks.m4: Likewise.
52949         * m4/filenamecat.m4: Likewise.
52950         * m4/findprog.m4: Likewise.
52951         * m4/flexmember.m4: Likewise.
52952         * m4/fnmatch.m4: Likewise.
52953         * m4/fopen.m4: Likewise.
52954         * m4/fpending.m4: Likewise.
52955         * m4/fprintf-posix.m4: Likewise.
52956         * m4/free.m4: Likewise.
52957         * m4/frexp.m4: Likewise.
52958         * m4/frexpl.m4: Likewise.
52959         * m4/fsusage.m4: Likewise.
52960         * m4/ftruncate.m4: Likewise.
52961         * m4/gc-camellia.m4: Likewise.
52962         * m4/gc-random.m4: Likewise.
52963         * m4/gc.m4: Likewise.
52964         * m4/getaddrinfo.m4: Likewise.
52965         * m4/getcwd-abort-bug.m4: Likewise.
52966         * m4/getcwd-path-max.m4: Likewise.
52967         * m4/getdate.m4: Likewise.
52968         * m4/getdomainname.m4: Likewise.
52969         * m4/getgroups.m4: Likewise.
52970         * m4/gethostname.m4: Likewise.
52971         * m4/gethrxtime.m4: Likewise.
52972         * m4/getline.m4: Likewise.
52973         * m4/getloadavg.m4: Likewise.
52974         * m4/getndelim2.m4: Likewise.
52975         * m4/getpass.m4: Likewise.
52976         * m4/gettext.m4: Likewise.
52977         * m4/gettime.m4: Likewise.
52978         * m4/gettimeofday.m4: Likewise.
52979         * m4/gnulib-common.m4: Likewise.
52980         * m4/group-member.m4: Likewise.
52981         * m4/host-os.m4: Likewise.
52982         * m4/iconv.m4: Likewise.
52983         * m4/iconv_open.m4: Likewise.
52984         * m4/inet_ntop.m4: Likewise.
52985         * m4/inet_pton.m4: Likewise.
52986         * m4/inline.m4: Likewise.
52987         * m4/intldir.m4: Likewise.
52988         * m4/intlmacosx.m4: Likewise.
52989         * m4/intmax.m4: Likewise.
52990         * m4/intmax_t.m4: Likewise.
52991         * m4/inttypes.m4: Likewise.
52992         * m4/inttypes_h.m4: Likewise.
52993         * m4/inttypes-pri.m4: Likewise.
52994         * m4/isapipe.m4: Likewise.
52995         * m4/isnand.m4: Likewise.
52996         * m4/isnanf.m4: Likewise.
52997         * m4/isnanl.m4: Likewise.
52998         * m4/javacomp.m4: Likewise.
52999         * m4/javaexec.m4: Likewise.
53000         * m4/jm-winsz1.m4: Likewise.
53001         * m4/jm-winsz2.m4: Likewise.
53002         * m4/lchown.m4: Likewise.
53003         * m4/lcmessage.m4: Likewise.
53004         * m4/ldexpl.m4: Likewise.
53005         * m4/lib-ld.m4: Likewise.
53006         * m4/lib-link.m4: Likewise.
53007         * m4/libsigsegv.m4: Likewise.
53008         * m4/link-follow.m4: Likewise.
53009         * m4/localcharset.m4: Likewise.
53010         * m4/locale-fr.m4: Likewise.
53011         * m4/locale-ja.m4: Likewise.
53012         * m4/locale-tr.m4: Likewise.
53013         * m4/locale-zh.m4: Likewise.
53014         * m4/lock.m4: Likewise.
53015         * m4/longlong.m4: Likewise.
53016         * m4/ls-mntd-fs.m4: Likewise.
53017         * m4/lstat.m4: Likewise.
53018         * m4/malloc.m4: Likewise.
53019         * m4/mathl.m4: Likewise.
53020         * m4/mbrtowc.m4: Likewise.
53021         * m4/mbstate_t.m4: Likewise.
53022         * m4/mbswidth.m4: Likewise.
53023         * m4/memchr.m4: Likewise.
53024         * m4/memcmp.m4: Likewise.
53025         * m4/memcpy.m4: Likewise.
53026         * m4/memmem.m4: Likewise.
53027         * m4/memmove.m4: Likewise.
53028         * m4/mempcpy.m4: Likewise.
53029         * m4/memrchr.m4: Likewise.
53030         * m4/memset.m4: Likewise.
53031         * m4/minmax.m4: Likewise.
53032         * m4/mkdir-slash.m4: Likewise.
53033         * m4/mkdtemp.m4: Likewise.
53034         * m4/mktime.m4: Likewise.
53035         * m4/mmap-anon.m4: Likewise.
53036         * m4/mountlist.m4: Likewise.
53037         * m4/nanosleep.m4: Likewise.
53038         * m4/nls.m4: Likewise.
53039         * m4/nocrash.m4: Likewise.
53040         * m4/open.m4: Likewise.
53041         * m4/openat.m4: Likewise.
53042         * m4/openmp.m4: Likewise.
53043         * m4/pathmax.m4: Likewise.
53044         * m4/perl.m4: Likewise.
53045         * m4/physmem.m4: Likewise.
53046         * m4/pipe.m4: Likewise.
53047         * m4/po.m4: Likewise.
53048         * m4/poll.m4: Likewise.
53049         * m4/posixtm.m4: Likewise.
53050         * m4/posixver.m4: Likewise.
53051         * m4/printf-frexp.m4: Likewise.
53052         * m4/printf-frexpl.m4: Likewise.
53053         * m4/printf-posix.m4: Likewise.
53054         * m4/printf-posix-rpl.m4: Likewise.
53055         * m4/printf.m4: Likewise.
53056         * m4/progtest.m4: Likewise.
53057         * m4/putenv.m4: Likewise.
53058         * m4/readline.m4: Likewise.
53059         * m4/readlink.m4: Likewise.
53060         * m4/readutmp.m4: Likewise.
53061         * m4/realloc.m4: Likewise.
53062         * m4/regex.m4: Likewise.
53063         * m4/relocatable.m4: Likewise.
53064         * m4/relocatable-lib.m4: Likewise.
53065         * m4/rename-dest-slash.m4: Likewise.
53066         * m4/rename.m4: Likewise.
53067         * m4/rmdir-errno.m4: Likewise.
53068         * m4/rmdir.m4: Likewise.
53069         * m4/roundf.m4: Likewise.
53070         * m4/roundl.m4: Likewise.
53071         * m4/rpmatch.m4: Likewise.
53072         * m4/save-cwd.m4: Likewise.
53073         * m4/selinux-selinux-h.m4: Likewise.
53074         * m4/setenv.m4: Likewise.
53075         * m4/settime.m4: Likewise.
53076         * m4/sig2str.m4: Likewise.
53077         * m4/sig_atomic_t.m4: Likewise.
53078         * m4/signalblocking.m4: Likewise.
53079         * m4/signbit.m4: Likewise.
53080         * m4/sigpipe.m4: Likewise.
53081         * m4/sockets.m4: Likewise.
53082         * m4/sockpfaf.m4: Likewise.
53083         * m4/st_dm_mode.m4: Likewise.
53084         * m4/stat-time.m4: Likewise.
53085         * m4/stdbool.m4: Likewise.
53086         * m4/stdint.m4: Likewise.
53087         * m4/stdint_h.m4: Likewise.
53088         * m4/stpcpy.m4: Likewise.
53089         * m4/stpncpy.m4: Likewise.
53090         * m4/strcase.m4: Likewise.
53091         * m4/strchrnul.m4: Likewise.
53092         * m4/strcspn.m4: Likewise.
53093         * m4/strdup.m4: Likewise.
53094         * m4/strftime.m4: Likewise.
53095         * m4/strndup.m4: Likewise.
53096         * m4/strnlen.m4: Likewise.
53097         * m4/strpbrk.m4: Likewise.
53098         * m4/strptime.m4: Likewise.
53099         * m4/strsep.m4: Likewise.
53100         * m4/strtod.m4: Likewise.
53101         * m4/strtoimax.m4: Likewise.
53102         * m4/strtok_r.m4: Likewise.
53103         * m4/strtol.m4: Likewise.
53104         * m4/strtoll.m4: Likewise.
53105         * m4/strtoul.m4: Likewise.
53106         * m4/strtoull.m4: Likewise.
53107         * m4/strtoumax.m4: Likewise.
53108         * m4/strverscmp.m4: Likewise.
53109         * m4/threadlib.m4: Likewise.
53110         * m4/timegm.m4: Likewise.
53111         * m4/tm_gmtoff.m4: Likewise.
53112         * m4/tmpdir.m4: Likewise.
53113         * m4/tmpfile.m4: Likewise.
53114         * m4/tzset.m4: Likewise.
53115         * m4/uintmax_t.m4: Likewise.
53116         * m4/unlinkdir.m4: Likewise.
53117         * m4/unlocked-io.m4: Likewise.
53118         * m4/uptime.m4: Likewise.
53119         * m4/userspec.m4: Likewise.
53120         * m4/utimbuf.m4: Likewise.
53121         * m4/utime.m4: Likewise.
53122         * m4/utimes-null.m4: Likewise.
53123         * m4/utimes.m4: Likewise.
53124         * m4/vararrays.m4: Likewise.
53125         * m4/vasnprintf.m4: Likewise.
53126         * m4/vfprintf-posix.m4: Likewise.
53127         * m4/vprintf-posix.m4: Likewise.
53128         * m4/wait-process.m4: Likewise.
53129         * m4/wchar_t.m4: Likewise.
53130         * m4/wint_t.m4: Likewise.
53131         * m4/write-any-file.m4: Likewise.
53132         * m4/yield.m4: Likewise.
53133
53134 2009-01-13  Bruno Haible  <bruno@clisp.org>
53135
53136         Avoid test-copy-file.sh failures when ACL support insufficient.
53137         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53138         TESTS_ENVIRONMENT.
53139         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53140         Reported by Jim Meyering.
53141
53142 2009-01-13  Bruno Haible  <bruno@clisp.org>
53143
53144         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53145         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53146         * modules/unistdio/u8-printf-parse (Files): Likewise.
53147         * modules/unistdio/u32-printf-parse (Files): Likewise.
53148         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53149
53150 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53151
53152         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53153         and m4/inttypes_h.m4 too.
53154
53155 2009-01-12  Eric Blake  <ebb9@byu.net>
53156
53157         tests: IRIX 6.2 cc can't compile -0.0 into .data
53158         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53159         rather than at compile-time.
53160         * tests/test-floorl.c (minus_zero): Likewise.
53161         * tests/test-frexpl.c (minus_zero): Likewise.
53162         * tests/test-isnan.c (minus_zerol): Likewise.
53163         * tests/test-isnanl.h (minus_zero): Likewise.
53164         * tests/test-ldexpl.c (minus_zero): Likewise.
53165         * tests/test-roundl.c (minus_zero): Likewise.
53166         * tests/test-signbit.c (minus_zerol): Likewise.
53167         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53168         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53169         * tests/test-truncl.c (minus_zero): Likewise.
53170         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53171         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53172         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53173
53174 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53175
53176         regex: fix glibc bug 9697
53177         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53178         handling.
53179
53180 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53181
53182         regex: fix glibc bug 697
53183         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53184         being NULL also if there are no backreferences.
53185
53186 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53187
53188         regex: merge glibc changes
53189         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53190         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53191         re_string_skip_chars, re_string_reconstruct): Likewise.
53192         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53193
53194 2009-01-07  Jim Meyering  <meyering@redhat.com>
53195
53196         poll: filter through cppi
53197         * lib/poll.c: Indent cpp directives to reflect nesting.
53198
53199 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53200
53201         poll: don't return uninitialized
53202         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53203
53204 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53205
53206         avoid compile failure on AIX 6.1
53207         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53208         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53209
53210 2009-01-04  Jim Meyering  <meyering@redhat.com>
53211
53212         remove duplicate inclusion of <stdio.h>
53213         * tests/test-fprintf-posix.c: Likewise.
53214         * tests/test-printf-posix.c: Likewise.
53215         * tests/test-snprintf-posix.c: Likewise.
53216         * tests/test-sprintf-posix.c: Likewise.
53217         * tests/test-vasprintf-posix.c: Likewise.
53218         * tests/test-vfprintf-posix.c: Likewise.
53219         * tests/test-vprintf-posix.c: Likewise.
53220         * tests/test-vsnprintf-posix.c: Likewise.
53221         * tests/test-vsprintf-posix.c: Likewise.
53222
53223 2009-01-03  Jim Meyering  <meyering@redhat.com>
53224
53225         gnulib-tool: fix sed-based filtering
53226         * gnulib-tool (func_filter_filelist): Remove extra backslash
53227         in sed_fff_filter definition.
53228
53229 2009-01-02  Jim Meyering  <meyering@redhat.com>
53230
53231         strftime: avoid compilation failure on Solaris 2.6
53232         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53233         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53234         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53235         be available.  Reported by Tom G. Christensen.  Details in
53236         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53237
53238 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53239             Bruno Haible  <bruno@clisp.org>
53240
53241         Speed up gnulib-tool by doing more string processing through shell
53242         built-ins.
53243         * gnulib-tool (fast_func_append): New variable.
53244         (func_remove_prefix, func_remove_suffix): New functions.
53245         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53246         (func_filter_filelist): New function.
53247         (func_get_dependencies): Use func_remove_suffix instead of sed.
53248         (func_get_automake_snippet): Use func_filter_filelist instead of a
53249         subshell and sed invocation.
53250
53251 2009-01-01  Bruno Haible  <bruno@clisp.org>
53252
53253         Fix a security bug.
53254         * gnulib-tool (func_import, import, update): Don't allow the characters
53255         '"', '$', '`', '\' in macro arguments that become part of commands that
53256         are evaluated.
53257
53258 2009-01-01  Bruno Haible  <bruno@clisp.org>
53259
53260         * gnulib-tool (func_reset_sigpipe): Add more comments.
53261
53262 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53263
53264         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53265         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53266         already know the answer.
53267
53268 2009-01-01  Jim Meyering  <meyering@redhat.com>
53269
53270         * lib/version-etc.c (version_etc_va): Update copyright year.
53271
53272 2008-12-30  Bruno Haible  <bruno@clisp.org>
53273
53274         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53275         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53276         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53277
53278 2008-12-29  Eric Blake  <ebb9@byu.net>
53279
53280         multiarch: avoid autoconf AC_REQUIRE bug
53281         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53282         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53283         2.63 and older.
53284         Reported by Bruno Haible, and analyzed in
53285         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53286
53287 2008-12-29  Bruno Haible  <bruno@clisp.org>
53288
53289         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53290         files in subdirectories correctly.
53291         Reported by Ralf Wildenhues.
53292
53293 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53294
53295         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53296         rather than 'join FILE -', for Solaris join.
53297
53298 2008-12-29  Bruno Haible  <bruno@clisp.org>
53299
53300         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53301         quoting.
53302         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53303         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53304         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53305         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53306         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53307         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53308         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53309         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53310         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53311         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53312         * m4/nls.m4 (AM_NLS): Likewise.
53313         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53314         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53315         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53316         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53317         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53318         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53319         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53320         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53321         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53322         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53323         * m4/xsize.m4 (gl_XSIZE): Likewise.
53324         Suggested by Jim Meyering.
53325
53326 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53327
53328         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53329         * lib/parse-duration.c: use a switch instead of cascading if's.
53330
53331 2008-12-29  Eric Blake  <ebb9@byu.net>
53332
53333         wchar.h: supply WEOF on Irix 5.3
53334         * lib/wchar.in.h (wint_t): Also supply WEOF.
53335         * lib/wctype.in.h (wint_t): Likewise.
53336         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53337         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53338         Reported by Tom G. Christensen.
53339
53340 2008-12-26  Bruno Haible  <bruno@clisp.org>
53341
53342         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53343         i486, i586, i686.
53344
53345 2008-12-26  Bruno Haible  <bruno@clisp.org>
53346
53347         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53348
53349 2008-12-26  Bruno Haible  <bruno@clisp.org>
53350
53351         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53352         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53353         not __STDC_CONSTANT_MACROS.
53354         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53355
53356 2008-12-25  Bruno Haible  <bruno@clisp.org>
53357
53358         Add support for universal builds to vasnprintf.
53359         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53360         universal builds, guess no.
53361         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53362         * modules/vasprintf-posix (Depends-on): Likewise.
53363         * modules/fprintf-posix (Depends-on): Likewise.
53364         * modules/vfprintf-posix (Depends-on): Likewise.
53365         * modules/snprintf-posix (Depends-on): Likewise.
53366         * modules/vsnprintf-posix (Depends-on): Likewise.
53367         * modules/sprintf-posix (Depends-on): Likewise.
53368         * modules/vsprintf-posix (Depends-on): Likewise.
53369         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53370         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53371         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53372         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53373         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53374         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53375         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53376
53377         Add support for universal builds to <inttypes.h>.
53378         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53379         _SCNu64_PREFIX): In Apple
53380         universal builds, define directly, using _LP64.
53381         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53382         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53383         * modules/inttypes (Depends-on): Add multiarch.
53384         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53385
53386         Add support for universal builds to <stdint.h>.
53387         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53388         universal builds, define directly, using _LP64.
53389         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53390         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53391         and size_t.
53392         * modules/stdint (Depends-on): Add multiarch.
53393         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53394
53395         New module 'multiarch'.
53396         * modules/multiarch: New file.
53397         * m4/multiarch.m4: New file.
53398
53399 2008-12-25  Bruno Haible  <bruno@clisp.org>
53400
53401         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53402
53403 2008-12-25  Bruno Haible  <bruno@clisp.org>
53404
53405         * modules/btowc (License): Relicense under LGPLv2+.
53406         * modules/mbsinit (License): Likewise.
53407         * modules/mbrtowc (License): Likewise.
53408         * modules/wcrtomb (License): Likewise.
53409         * modules/streq (License): Likewise.
53410         Reported by David Lutterkort <lutter@redhat.com>.
53411
53412 2008-12-23  Bruno Haible  <bruno@clisp.org>
53413
53414         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53415
53416 2008-12-23  Bruno Haible  <bruno@clisp.org>
53417
53418         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53420         GETADDRINFO_LIB, not in LIBS.
53421         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53422         * modules/canon-host (Link): Likewise.
53423         * NEWS: Mention the change.
53424         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53425         GETADDRINFO_LIB.
53426
53427 2008-12-22  Bruno Haible  <bruno@clisp.org>
53428
53429         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53430         * doc/posix-functions/iswalpha_l.texi: Likewise.
53431         * doc/posix-functions/iswblank_l.texi: Likewise.
53432         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53433         * doc/posix-functions/iswctype_l.texi: Likewise.
53434         * doc/posix-functions/iswdigit_l.texi: Likewise.
53435         * doc/posix-functions/iswgraph_l.texi: Likewise.
53436         * doc/posix-functions/iswlower_l.texi: Likewise.
53437         * doc/posix-functions/iswprint_l.texi: Likewise.
53438         * doc/posix-functions/iswpunct_l.texi: Likewise.
53439         * doc/posix-functions/iswspace_l.texi: Likewise.
53440         * doc/posix-functions/iswupper_l.texi: Likewise.
53441         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53442         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53443         * doc/posix-functions/open_wmemstream.texi: Likewise.
53444         * doc/posix-functions/swscanf.texi: Likewise.
53445         * doc/posix-functions/towctrans_l.texi: Likewise.
53446         * doc/posix-functions/towlower.texi: Likewise.
53447         * doc/posix-functions/towlower_l.texi: Likewise.
53448         * doc/posix-functions/towupper.texi: Likewise.
53449         * doc/posix-functions/towupper_l.texi: Likewise.
53450         * doc/posix-functions/vfwprintf.texi: Likewise.
53451         * doc/posix-functions/vfwscanf.texi: Likewise.
53452         * doc/posix-functions/vswscanf.texi: Likewise.
53453         * doc/posix-functions/vwprintf.texi: Likewise.
53454         * doc/posix-functions/vwscanf.texi: Likewise.
53455         * doc/posix-functions/wcpcpy.texi: Likewise.
53456         * doc/posix-functions/wcpncpy.texi: Likewise.
53457         * doc/posix-functions/wcscasecmp.texi: Likewise.
53458         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53459         * doc/posix-functions/wcscoll_l.texi: Likewise.
53460         * doc/posix-functions/wcsdup.texi: Likewise.
53461         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53462         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53463         * doc/posix-functions/wcsnlen.texi: Likewise.
53464         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53465         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53466         * doc/posix-functions/wctrans_l.texi: Likewise.
53467         * doc/posix-functions/wctype_l.texi: Likewise.
53468         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53469         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53470         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53471         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53472         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53473         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53474         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53475         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53476         * doc/glibc-functions/wcschrnul.texi: Likewise.
53477         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53478         * doc/glibc-functions/wcstod_l.texi: Likewise.
53479         * doc/glibc-functions/wcstof_l.texi: Likewise.
53480         * doc/glibc-functions/wcstol_l.texi: Likewise.
53481         * doc/glibc-functions/wcstold_l.texi: Likewise.
53482         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53483         * doc/glibc-functions/wcstoq.texi: Likewise.
53484         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53485         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53486         * doc/glibc-functions/wcstouq.texi: Likewise.
53487         * doc/glibc-functions/wmempcpy.texi: Likewise.
53488
53489 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53490             Eric Blake  <ebb9@byu.net>
53491             Paolo Bonzini  <bonzini@gnu.org>
53492             Bruno Haible  <bruno@clisp.org>
53493
53494         Make c-stack work on Haiku.
53495         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53496         (c_stack_action): Use SA_ONSTACK flag.
53497
53498 2008-12-22  Bruno Haible  <bruno@clisp.org>
53499
53500         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53501
53502 2008-12-22  Bruno Haible  <bruno@clisp.org>
53503
53504         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53505         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53506         being overridden.
53507         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53508         New macros.
53509         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53510         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53511         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53512         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53513
53514 2008-12-22  Bruno Haible  <bruno@clisp.org>
53515
53516         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53517         from test code.
53518
53519 2008-12-22  Eric Blake  <ebb9@byu.net>
53520
53521         Avoid gcc warnings on cygwin.
53522         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53523         Avoid unused variable.
53524         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53525         Likewise.
53526
53527 2008-12-22  Bruno Haible  <bruno@clisp.org>
53528
53529         Remove HAVE_MBRTOWC conditionals.
53530         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53531         (mbscasecmp): Assume mbrtowc function.
53532         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53533         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53534         * lib/mbschr.c: Include mbuiter.h unconditionally.
53535         (mbschr): Assume mbrtowc function.
53536         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53537         (mbscspn): Assume mbrtowc function.
53538         * lib/mbslen.c: Include mbuiter.h unconditionally.
53539         (mbslen): Assume mbrtowc function.
53540         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53541         (mbsncasecmp): Assume mbrtowc function.
53542         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53543         (mbsnlen): Assume mbrtowc function.
53544         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53545         (mbspbrk): Assume mbrtowc function.
53546         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53547         (mbspcasecmp): Assume mbrtowc function.
53548         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53549         (mbsrchr): Assume mbrtowc function.
53550         * lib/mbssep.c: Include mbuiter.h unconditionally.
53551         (mbssep): Assume mbrtowc function.
53552         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53553         (mbsspn): Assume mbrtowc function.
53554         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53555         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53556         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53557         (mbstok_r): Assume mbrtowc function.
53558         * lib/propername.c: Include mbuiter.h unconditionally.
53559         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53560         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53561         (trim2): Assume mbrtowc function.
53562         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53563         (mbsnwidth): Assume mbrtowc function.
53564         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53565         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53566         fallback definitions.
53567         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53568
53569 2008-12-22  Bruno Haible  <bruno@clisp.org>
53570
53571         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53572
53573 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53574
53575         * modules/regex: Request emulations for the mb*/wc* functions we need.
53576         * m4/regex.m4: Don't look for those functions here.
53577         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53578
53579 2008-12-22  Bruno Haible  <bruno@clisp.org>
53580
53581         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53582
53583 2008-12-21  Bruno Haible  <bruno@clisp.org>
53584
53585         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53586         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53587         (Include): Remove conditionalization.
53588         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53589         (Include): Remove conditionalization.
53590         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53591         (Include): Remove conditionalization.
53592         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53593         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53594         * NEWS: Mention the change.
53595         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53596         via Sergey Poznyakoff <gray@gnu.org.ua>.
53597
53598 2008-12-21  Bruno Haible  <bruno@clisp.org>
53599
53600         * MODULES.html.sh (Extended multibyte and wide character utilities
53601         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53602         wcrtomb, wcsrtombs.
53603         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53604         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53605         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53606         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53607
53608 2008-12-21  Bruno Haible  <bruno@clisp.org>
53609
53610         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53611
53612 2008-12-21  Bruno Haible  <bruno@clisp.org>
53613
53614         * modules/wcsnrtombs-tests: New file.
53615         * tests/test-wcsnrtombs1.sh: New file.
53616         * tests/test-wcsnrtombs2.sh: New file.
53617         * tests/test-wcsnrtombs3.sh: New file.
53618         * tests/test-wcsnrtombs4.sh: New file.
53619         * tests/test-wcsnrtombs.c: New file.
53620
53621         New module 'wcsnrtombs'.
53622         * lib/wchar.in.h (wcsnrtombs): New declaration.
53623         * lib/wcsnrtombs.c: New file.
53624         * lib/wcsrtombs-state.c: New file.
53625         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53626         (internal_state): Remove variable.
53627         * m4/wcsnrtombs.m4: New file.
53628         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53629         compilation units.
53630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53631         HAVE_WCSNRTOMBS.
53632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53633         HAVE_WCSNRTOMBS.
53634         * modules/wcsnrtombs: New file.
53635         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53636         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53637
53638 2008-12-21  Bruno Haible  <bruno@clisp.org>
53639
53640         * modules/wcsrtombs-tests: New file.
53641         * tests/test-wcsrtombs1.sh: New file.
53642         * tests/test-wcsrtombs2.sh: New file.
53643         * tests/test-wcsrtombs3.sh: New file.
53644         * tests/test-wcsrtombs4.sh: New file.
53645         * tests/test-wcsrtombs.c: New file.
53646
53647         New module 'wcsrtombs'.
53648         * lib/wchar.in.h (wcsrtombs): New declaration.
53649         * lib/wcsrtombs.c: New file.
53650         * m4/wcsrtombs.m4: New file.
53651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53652         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53653         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53654         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53655         * modules/wcsrtombs: New file.
53656         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53657         bugs.
53658
53659 2008-12-21  Bruno Haible  <bruno@clisp.org>
53660
53661         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53662         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53663         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53664         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53665         if not correct.
53666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53667         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53668         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53669         m4/locale-zh.m4, m4/codeset.m4.
53670         * doc/posix-functions/wcrtomb.texi: Document the bug.
53671
53672 2008-12-21  Bruno Haible  <bruno@clisp.org>
53673
53674         Work around a btowc() bug on IRIX 6.5.
53675         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53676         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53677         REPLACE_WTOBC if not.
53678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53679         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53680         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53681
53682 2008-12-21  Bruno Haible  <bruno@clisp.org>
53683
53684         * modules/wcrtomb-tests: New file.
53685         * tests/test-wcrtomb.sh: New file.
53686         * tests/test-wcrtomb.c: New file.
53687
53688         New module 'wcrtomb'.
53689         * lib/wchar.in.h (wcrtomb): New declaration.
53690         * lib/wcrtomb.c: New file.
53691         * m4/wcrtomb.m4: New file.
53692         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53693         HAVE_WCRTOMB.
53694         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53695         HAVE_WCRTOMB.
53696         * modules/wcrtomb: New file.
53697         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53698
53699 2008-12-21  Bruno Haible  <bruno@clisp.org>
53700
53701         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53702         * modules/mbsrtowcs (Files): Likewise.
53703         * modules/wctob (Files): Likewise.
53704         * modules/c-strcase-tests (Files): Likewise.
53705         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53706         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53707         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53708         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53709         * modules/vasnprintf-posix-tests (Files): Likewise.
53710
53711 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53712
53713         gitlog-to-changelog: pass all command-line arguments to git-log
53714         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53715         it is sometimes convenient to filter the commits in various ways.
53716         gitlog-to-changelog only allows --since to specify a start date,
53717         but git-log itself supports many other filtering mechanisms.
53718         At the moment, I want to filter by branch name.  Rather than
53719         adding a --branch option to gitlog-to-changelog, it seems more
53720         flexible to simply pass all options directly to git-log and let
53721         git do the work.  Notice that this effectively makes --since a
53722         redundant option for gitlog-to-changelog, but removing it would
53723         require current usage to change since calls would then require
53724         an additional '--'.
53725
53726 2008-12-21  Bruno Haible  <bruno@clisp.org>
53727
53728         * modules/mbsnrtowcs-tests: New file.
53729         * tests/test-mbsnrtowcs1.sh: New file.
53730         * tests/test-mbsnrtowcs2.sh: New file.
53731         * tests/test-mbsnrtowcs3.sh: New file.
53732         * tests/test-mbsnrtowcs4.sh: New file.
53733         * tests/test-mbsnrtowcs.c: New file.
53734
53735         New module 'mbsnrtowcs'.
53736         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53737         * lib/mbsnrtowcs.c: New file.
53738         * lib/mbsrtowcs-state.c: New file.
53739         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53740         (internal_state): Remove variable.
53741         * m4/mbsnrtowcs.m4: New file.
53742         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53743         compilation units.
53744         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53745         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53746         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53747         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53748         * modules/mbsnrtowcs: New file.
53749         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53750         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53751         portability problem.
53752
53753 2008-12-21  Bruno Haible  <bruno@clisp.org>
53754
53755         Work around mbsrtowcs bug.
53756         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53757         (gl_FUNC_MBSRTOWCS): Invoke it.
53758         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53759         m4/locale-zh.m4.
53760         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53761
53762 2008-12-21  Bruno Haible  <bruno@clisp.org>
53763
53764         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53765
53766 2008-12-21  Bruno Haible  <bruno@clisp.org>
53767
53768         Update doc for AIX.
53769         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53770         16-bit wchar_t type.
53771         * doc/posix-functions/btowc.texi: Likewise.
53772         * doc/posix-functions/fgetwc.texi: Likewise.
53773         * doc/posix-functions/fgetws.texi: Likewise.
53774         * doc/posix-functions/fputwc.texi: Likewise.
53775         * doc/posix-functions/fputws.texi: Likewise.
53776         * doc/posix-functions/fwide.texi: Likewise.
53777         * doc/posix-functions/fwprintf.texi: Likewise.
53778         * doc/posix-functions/fwscanf.texi: Likewise.
53779         * doc/posix-functions/getwchar.texi: Likewise.
53780         * doc/posix-functions/getwc.texi: Likewise.
53781         * doc/posix-functions/iswalnum.texi: Likewise.
53782         * doc/posix-functions/iswalpha.texi: Likewise.
53783         * doc/posix-functions/iswblank.texi: Likewise.
53784         * doc/posix-functions/iswcntrl.texi: Likewise.
53785         * doc/posix-functions/iswctype.texi: Likewise.
53786         * doc/posix-functions/iswdigit.texi: Likewise.
53787         * doc/posix-functions/iswgraph.texi: Likewise.
53788         * doc/posix-functions/iswlower.texi: Likewise.
53789         * doc/posix-functions/iswprint.texi: Likewise.
53790         * doc/posix-functions/iswpunct.texi: Likewise.
53791         * doc/posix-functions/iswspace.texi: Likewise.
53792         * doc/posix-functions/iswupper.texi: Likewise.
53793         * doc/posix-functions/iswxdigit.texi: Likewise.
53794         * doc/posix-functions/mbrtowc.texi: Likewise.
53795         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53796         * doc/posix-functions/mbstowcs.texi: Likewise.
53797         * doc/posix-functions/mbtowc.texi: Likewise.
53798         * doc/posix-functions/putwchar.texi: Likewise.
53799         * doc/posix-functions/putwc.texi: Likewise.
53800         * doc/posix-functions/swprintf.texi: Likewise.
53801         * doc/posix-functions/tolower.texi: Likewise.
53802         * doc/posix-functions/toupper.texi: Likewise.
53803         * doc/posix-functions/towctrans.texi: Likewise.
53804         * doc/posix-functions/ungetwc.texi: Likewise.
53805         * doc/posix-functions/vswprintf.texi: Likewise.
53806         * doc/posix-functions/wcrtomb.texi: Likewise.
53807         * doc/posix-functions/wcscat.texi: Likewise.
53808         * doc/posix-functions/wcschr.texi: Likewise.
53809         * doc/posix-functions/wcscmp.texi: Likewise.
53810         * doc/posix-functions/wcscoll.texi: Likewise.
53811         * doc/posix-functions/wcscpy.texi: Likewise.
53812         * doc/posix-functions/wcscspn.texi: Likewise.
53813         * doc/posix-functions/wcsftime.texi: Likewise.
53814         * doc/posix-functions/wcslen.texi: Likewise.
53815         * doc/posix-functions/wcsncat.texi: Likewise.
53816         * doc/posix-functions/wcsncmp.texi: Likewise.
53817         * doc/posix-functions/wcsncpy.texi: Likewise.
53818         * doc/posix-functions/wcspbrk.texi: Likewise.
53819         * doc/posix-functions/wcsrchr.texi: Likewise.
53820         * doc/posix-functions/wcsrtombs.texi: Likewise.
53821         * doc/posix-functions/wcsspn.texi: Likewise.
53822         * doc/posix-functions/wcsstr.texi: Likewise.
53823         * doc/posix-functions/wcstod.texi: Likewise.
53824         * doc/posix-functions/wcstof.texi: Likewise.
53825         * doc/posix-functions/wcstoimax.texi: Likewise.
53826         * doc/posix-functions/wcstok.texi: Likewise.
53827         * doc/posix-functions/wcstold.texi: Likewise.
53828         * doc/posix-functions/wcstoll.texi: Likewise.
53829         * doc/posix-functions/wcstol.texi: Likewise.
53830         * doc/posix-functions/wcstombs.texi: Likewise.
53831         * doc/posix-functions/wcstoull.texi: Likewise.
53832         * doc/posix-functions/wcstoul.texi: Likewise.
53833         * doc/posix-functions/wcstoumax.texi: Likewise.
53834         * doc/posix-functions/wcswidth.texi: Likewise.
53835         * doc/posix-functions/wcsxfrm.texi: Likewise.
53836         * doc/posix-functions/wctob.texi: Likewise.
53837         * doc/posix-functions/wctomb.texi: Likewise.
53838         * doc/posix-functions/wctrans.texi: Likewise.
53839         * doc/posix-functions/wctype.texi: Likewise.
53840         * doc/posix-functions/wcwidth.texi: Likewise.
53841         * doc/posix-functions/wmemchr.texi: Likewise.
53842         * doc/posix-functions/wmemcmp.texi: Likewise.
53843         * doc/posix-functions/wmemcpy.texi: Likewise.
53844         * doc/posix-functions/wmemmove.texi: Likewise.
53845         * doc/posix-functions/wmemset.texi: Likewise.
53846         * doc/posix-functions/wprintf.texi: Likewise.
53847         * doc/posix-functions/wscanf.texi: Likewise.
53848
53849 2008-12-21  Bruno Haible  <bruno@clisp.org>
53850
53851         Update doc for HP-UX 11.11.
53852         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53853         in HP-UX version 11.00, not in all versions of HP-UX 11.
53854         * doc/posix-functions/fwide.texi: Likewise.
53855         * doc/posix-functions/fwprintf.texi: Likewise.
53856         * doc/posix-functions/fwscanf.texi: Likewise.
53857         * doc/posix-functions/inet_ntop.texi: Likewise.
53858         * doc/posix-functions/inet_pton.texi: Likewise.
53859         * doc/posix-functions/mbrlen.texi: Likewise.
53860         * doc/posix-functions/mbrtowc.texi: Likewise.
53861         * doc/posix-functions/mbsinit.texi: Likewise.
53862         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53863         * doc/posix-functions/swprintf.texi: Likewise.
53864         * doc/posix-functions/swscanf.texi: Likewise.
53865         * doc/posix-functions/towctrans.texi: Likewise.
53866         * doc/posix-functions/vfwprintf.texi: Likewise.
53867         * doc/posix-functions/vswprintf.texi: Likewise.
53868         * doc/posix-functions/vwprintf.texi: Likewise.
53869         * doc/posix-functions/wcrtomb.texi: Likewise.
53870         * doc/posix-functions/wcsrtombs.texi: Likewise.
53871         * doc/posix-functions/wcsstr.texi: Likewise.
53872         * doc/posix-functions/wctob.texi: Likewise.
53873         * doc/posix-functions/wctrans.texi: Likewise.
53874         * doc/posix-functions/wmemchr.texi: Likewise.
53875         * doc/posix-functions/wmemcmp.texi: Likewise.
53876         * doc/posix-functions/wmemcpy.texi: Likewise.
53877         * doc/posix-functions/wmemmove.texi: Likewise.
53878         * doc/posix-functions/wmemset.texi: Likewise.
53879         * doc/posix-functions/wprintf.texi: Likewise.
53880         * doc/posix-functions/wscanf.texi: Likewise.
53881
53882 2008-12-21  Bruno Haible  <bruno@clisp.org>
53883
53884         Work around a portability problem.
53885         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53886         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53887
53888 2008-12-20  Bruno Haible  <bruno@clisp.org>
53889
53890         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53891         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53892         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53893         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53894         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53895
53896         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53897         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53898         set.
53899         (GNULIB_defined_mbstate_t): New macro.
53900         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53901         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53902         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53903         reuses the system's mbrtowc function but works around the bugs.
53904         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53905         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53906         macros.
53907         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53908         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53909         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53910         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53911         REPLACE_MBSINIT if mbsinit needs to be overridden.
53912         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53913         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53914         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53915         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53916         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53917         m4/locale-zh.m4.
53918         (Depends): Add mbsinit.
53919         * modules/mbsinit (Depends): Add mbrtowc.
53920         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53921
53922 2008-12-20  Bruno Haible  <bruno@clisp.org>
53923
53924         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53925         so that there are no conversion errors on AIX.
53926         * tests/test-mbsrtowcs.c (main): LIkewise.
53927
53928 2008-12-20  Bruno Haible  <bruno@clisp.org>
53929
53930         Work around wctob bug on Solaris <= 9.
53931         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53932         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53934         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53935         * modules/wctob (Files): Add m4/locale-fr.m4.
53936         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53937
53938 2008-12-20  Bruno Haible  <bruno@clisp.org>
53939
53940         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53941         /dev/null.
53942         * tests/test-select-in.sh: Likewise.
53943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53944
53945 2008-12-20  Bruno Haible  <bruno@clisp.org>
53946
53947         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53948         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53949         Cygwin 1.5.x.
53950
53951 2008-12-20  Bruno Haible  <bruno@clisp.org>
53952
53953         Ensure mbstate_t is defined on HP-UX 11.11.
53954         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53955         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53956         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53957         AC_USE_SYSTEM_EXTENSIONS.
53958         * modules/fnmatch (Depends-on): Add extensions.
53959         * modules/mbrlen (Depends-on): Likewise.
53960         * modules/mbrtowc (Depends-on): Likewise.
53961         * modules/mbsinit (Depends-on): Likewise.
53962         * modules/mbsrtowcs (Depends-on): Likewise.
53963         * modules/mbswidth (Depends-on): Likewise.
53964         * modules/quotearg (Depends-on): Likewise.
53965         * modules/strftime (Depends-on): Likewise.
53966
53967 2008-12-20  Bruno Haible  <bruno@clisp.org>
53968
53969         Ensure wctob is declared on IRIX 6.5.
53970         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53971         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53972         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53973         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53974         of HAVE_WCTOB.
53975         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53976         HAVE_WCTOB.
53977         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53978
53979 2008-12-19  Bruno Haible  <bruno@clisp.org>
53980
53981         * modules/mbsrtowcs-tests: New file.
53982         * tests/test-mbsrtowcs1.sh: New file.
53983         * tests/test-mbsrtowcs2.sh: New file.
53984         * tests/test-mbsrtowcs3.sh: New file.
53985         * tests/test-mbsrtowcs4.sh: New file.
53986         * tests/test-mbsrtowcs.c: New file.
53987
53988         New module 'mbsrtowcs'.
53989         * lib/wchar.in.h (mbsrtowcs): New declaration.
53990         * lib/mbsrtowcs.c: New file.
53991         * m4/mbsrtowcs.m4: New file.
53992         * modules/mbsrtowcs: New file.
53993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53994         HAVE_MBSRTOWCS.
53995         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53996         HAVE_MBSRTOWCS.
53997         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53998
53999 2008-12-19  Bruno Haible  <bruno@clisp.org>
54000
54001         New module 'mbrlen'.
54002         * lib/wchar.in.h (mbrlen): New declaration.
54003         * lib/mbrlen.c: New file.
54004         * m4/mbrlen.m4: New file.
54005         * modules/mbrlen: New file.
54006         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54007         HAVE_MBRLEN.
54008         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54009         HAVE_MBRLEN.
54010         * doc/posix-functions/mbrlen.texi: Document the new module.
54011
54012 2008-12-19  Bruno Haible  <bruno@clisp.org>
54013
54014         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54015         * modules/mbrtowc (Depends-on): Add verify.
54016         Suggested by Paul Eggert.
54017
54018 2008-12-18  Bruno Haible  <bruno@clisp.org>
54019
54020         * modules/mbsinit-tests: New file.
54021         * tests/test-mbsinit.sh: New file.
54022         * tests/test-mbsinit.c: New file.
54023
54024 2008-12-18  Bruno Haible  <bruno@clisp.org>
54025
54026         * modules/mbrtowc-tests: New file.
54027         * tests/test-mbrtowc1.sh: New file.
54028         * tests/test-mbrtowc2.sh: New file.
54029         * tests/test-mbrtowc3.sh: New file.
54030         * tests/test-mbrtowc4.sh: New file.
54031         * tests/test-mbrtowc.c: New file.
54032
54033         New module 'mbrtowc'.
54034         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54035         mbsinit and mbrtowc.
54036         (mbrtowc): New declaration.
54037         * lib/mbrtowc.c: New file.
54038         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54039         * modules/mbrtowc: New file.
54040         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54041         HAVE_MBRTOWC.
54042         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54043         HAVE_MBRTOWC.
54044         * doc/posix-functions/mbrtowc.texi: Document the new module.
54045
54046 2008-12-18  Bruno Haible  <bruno@clisp.org>
54047
54048         New module 'wctob'.
54049         * lib/wchar.in.h (wctob): New declaration.
54050         * lib/wctob.c: New file.
54051         * m4/wctob.m4: New file.
54052         * modules/wctob: New file.
54053         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54054         HAVE_WCTOB.
54055         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54056         * doc/posix-functions/wctob.texi: Document the new module.
54057
54058 2008-12-18  Bruno Haible  <bruno@clisp.org>
54059
54060         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54061         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54062
54063 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54064
54065         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54066         G. Christensen" <tgc@jupiterrise.com>.
54067
54068         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54069         G. Christensen" <tgc@jupiterrise.com>.
54070
54071         * lib/flock.c: Need to include string.h.  Reported by "Tom
54072         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54073         <ebb9@byu.net>.
54074
54075 2008-12-18  Bruno Haible  <bruno@clisp.org>
54076
54077         * m4/locale-ja.m4: New file, from GNU gettext.
54078
54079 2008-12-17  Bruno Haible  <bruno@clisp.org>
54080
54081         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54082         Suggested by Eric Blake.
54083
54084 2008-12-17  Bruno Haible  <bruno@clisp.org>
54085
54086         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54087
54088 2008-12-17  Bruno Haible  <bruno@clisp.org>
54089
54090         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54091         * modules/mbsinit (Depends-on): Add verify.
54092         Suggested by Paul Eggert.
54093
54094 2008-12-17  Bruno Haible  <bruno@clisp.org>
54095
54096         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54097         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54098         gl_FUNC_MBRTOWC.
54099         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54100         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54101         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54102         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54103         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54104         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54105         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54106         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54107         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54108         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54109         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54110         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54111         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54112         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54113         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54114         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54115         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54116         * modules/trim (configure.ac): Likewise.
54117
54118 2008-12-17  Bruno Haible  <bruno@clisp.org>
54119
54120         * modules/btowc-tests: New file.
54121         * tests/test-btowc1.sh: New file.
54122         * tests/test-btowc2.sh: New file.
54123         * tests/test-btowc.c: New file.
54124
54125         New module 'btowc'.
54126         * lib/wchar.in.h (btowc): New declaration.
54127         * lib/btowc.c: New file.
54128         * m4/btowc.m4: New file.
54129         * modules/btowc: New file.
54130         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54131         HAVE_BTOWC.
54132         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54133         * doc/posix-functions/btowc.texi: Document the new module.
54134
54135 2008-12-17  Bruno Haible  <bruno@clisp.org>
54136
54137         New module 'mbsinit'.
54138         * lib/wchar.in.h (mbsinit): New declaration.
54139         * lib/mbsinit.c: New file.
54140         * m4/mbsinit.m4: New file.
54141         * modules/mbsinit: New file.
54142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54143         HAVE_MBSINIT.
54144         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54145         HAVE_MBSINIT.
54146         * doc/posix-functions/mbsinit.texi: Document the new module.
54147
54148 2008-12-16  Bruno Haible  <bruno@clisp.org>
54149
54150         * lib/unistd.in.h: Add comment.
54151         * tests/test-environ.c: Don't include <stdlib.h>.
54152
54153 2008-12-16  Bruno Haible  <bruno@clisp.org>
54154
54155         * lib/parse-duration.h (parse_duration): Document return value
54156         convention.
54157         * lib/parse-duration.c: Include specification header first. Add
54158         comments.
54159         (_): Remove macro.
54160         (parse_year_month_day, parse_hour_minute_second): Move side effects
54161         outside of strchr call.
54162         (parse_non_iso8601): Move side effects outside of isspace call.
54163         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54164         call.
54165
54166 2008-12-16  Bruno Haible  <bruno@clisp.org>
54167
54168         * tests/test-parse-duration.sh: Produce no output when the test
54169         succeeds.
54170
54171 2008-12-16  Bruno Haible  <bruno@clisp.org>
54172
54173         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54174         expressions.
54175
54176 2008-12-15  Bruno Haible  <bruno@clisp.org>
54177
54178         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54179         * doc/glibc-functions/flistxattr.texi: Likewise.
54180         * doc/glibc-functions/fopencookie.texi: Likewise.
54181         * doc/glibc-functions/fremovexattr.texi: Likewise.
54182         * doc/glibc-functions/fsetxattr.texi: Likewise.
54183         * doc/glibc-functions/getxattr.texi: Likewise.
54184         * doc/glibc-functions/lgetxattr.texi: Likewise.
54185         * doc/glibc-functions/listxattr.texi: Likewise.
54186         * doc/glibc-functions/llistxattr.texi: Likewise.
54187         * doc/glibc-functions/lremovexattr.texi: Likewise.
54188         * doc/glibc-functions/lsetxattr.texi: Likewise.
54189         * doc/glibc-functions/removexattr.texi: Likewise.
54190         * doc/glibc-functions/setxattr.texi: Likewise.
54191         * doc/posix-functions/open_memstream.texi: Likewise.
54192
54193 2008-12-15  Eric Blake  <ebb9@byu.net>
54194
54195         Update doc for cygwin 1.7.
54196         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54197         functions.
54198         * doc/posix-functions/fchmodat.texi: Likewise.
54199         * doc/posix-functions/fchownat.texi: Likewise.
54200         * doc/posix-functions/fdopendir.texi: Likewise.
54201         * doc/posix-functions/fmemopen.texi: Likewise.
54202         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54203         * doc/posix-functions/fstatat.texi: Likewise.
54204         * doc/posix-functions/futimens.texi: Likewise.
54205         * doc/posix-functions/gai_strerror.texi: Likewise.
54206         * doc/posix-functions/getaddrinfo.texi: Likewise.
54207         * doc/posix-functions/getnameinfo.texi: Likewise.
54208         * doc/posix-functions/if_freenameindex.texi: Likewise.
54209         * doc/posix-functions/if_indextoname.texi: Likewise.
54210         * doc/posix-functions/if_nameindex.texi: Likewise.
54211         * doc/posix-functions/if_nametoindex.texi: Likewise.
54212         * doc/posix-functions/insque.texi: Likewise.
54213         * doc/posix-functions/linkat.texi: Likewise.
54214         * doc/posix-functions/llrint.texi: Likewise.
54215         * doc/posix-functions/llrintf.texi: Likewise.
54216         * doc/posix-functions/llrintl.texi: Likewise.
54217         * doc/posix-functions/lockf.texi: Likewise.
54218         * doc/posix-functions/lrintl.texi: Likewise.
54219         * doc/posix-functions/mkdirat.texi: Likewise.
54220         * doc/posix-functions/mkfifoat.texi: Likewise.
54221         * doc/posix-functions/mknodat.texi: Likewise.
54222         * doc/posix-functions/mq_close.texi: Likewise.
54223         * doc/posix-functions/mq_getattr.texi: Likewise.
54224         * doc/posix-functions/mq_notify.texi: Likewise.
54225         * doc/posix-functions/mq_open.texi: Likewise.
54226         * doc/posix-functions/mq_receive.texi: Likewise.
54227         * doc/posix-functions/mq_send.texi: Likewise.
54228         * doc/posix-functions/mq_setattr.texi: Likewise.
54229         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54230         * doc/posix-functions/mq_timedsend.texi: Likewise.
54231         * doc/posix-functions/mq_unlink.texi: Likewise.
54232         * doc/posix-functions/open_memstream.texi: Likewise.
54233         * doc/posix-functions/openat.texi: Likewise.
54234         * doc/posix-functions/posix_fadvise.texi: Likewise.
54235         * doc/posix-functions/posix_fallocate.texi: Likewise.
54236         * doc/posix-functions/posix_madvise.texi: Likewise.
54237         * doc/posix-functions/posix_memalign.texi: Likewise.
54238         * doc/posix-functions/posix_openpt.texi: Likewise.
54239         * doc/posix-functions/readlinkat.texi: Likewise.
54240         * doc/posix-functions/remque.texi: Likewise.
54241         * doc/posix-functions/renameat.texi: Likewise.
54242         * doc/posix-functions/rintl.texi: Likewise.
54243         * doc/posix-functions/sem_unlink.texi: Likewise.
54244         * doc/posix-functions/shm_open.texi: Likewise.
54245         * doc/posix-functions/shm_unlink.texi: Likewise.
54246         * doc/posix-functions/signgam.texi: Likewise.
54247         * doc/posix-functions/sigset.texi: Likewise.
54248         * doc/posix-functions/stpcpy.texi: Likewise.
54249         * doc/posix-functions/stpncpy.texi: Likewise.
54250         * doc/posix-functions/strerror.texi: Likewise.
54251         * doc/posix-functions/strtod.texi: Likewise.
54252         * doc/posix-functions/symlinkat.texi: Likewise.
54253         * doc/posix-functions/unlinkat.texi: Likewise.
54254         * doc/posix-functions/utimensat.texi: Likewise.
54255         * doc/glibc-functions/bindresvport.texi: Likewise.
54256         * doc/glibc-functions/dn_expand.texi: Likewise.
54257         * doc/glibc-functions/exp10.texi: Likewise.
54258         * doc/glibc-functions/exp10f.texi: Likewise.
54259         * doc/glibc-functions/fgetxattr.texi: Likewise.
54260         * doc/glibc-functions/flistxattr.texi: Likewise.
54261         * doc/glibc-functions/fopencookie.texi: Likewise.
54262         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54263         * doc/glibc-functions/fremovexattr.texi: Likewise.
54264         * doc/glibc-functions/fsetxattr.texi: Likewise.
54265         * doc/glibc-functions/getifaddrs.texi: Likewise.
54266         * doc/glibc-functions/getxattr.texi: Likewise.
54267         * doc/glibc-functions/lgetxattr.texi: Likewise.
54268         * doc/glibc-functions/listxattr.texi: Likewise.
54269         * doc/glibc-functions/llistxattr.texi: Likewise.
54270         * doc/glibc-functions/lremovexattr.texi: Likewise.
54271         * doc/glibc-functions/lsetxattr.texi: Likewise.
54272         * doc/glibc-functions/pow10.texi: Likewise.
54273         * doc/glibc-functions/pow10f.texi: Likewise.
54274         * doc/glibc-functions/rcmd_af.texi: Likewise.
54275         * doc/glibc-functions/removexattr.texi: Likewise.
54276         * doc/glibc-functions/res_init.texi: Likewise.
54277         * doc/glibc-functions/res_mkquery.texi: Likewise.
54278         * doc/glibc-functions/res_query.texi: Likewise.
54279         * doc/glibc-functions/res_querydomain.texi: Likewise.
54280         * doc/glibc-functions/res_send.texi: Likewise.
54281         * doc/glibc-functions/rresvport_af.texi: Likewise.
54282         * doc/glibc-functions/setxattr.texi: Likewise.
54283         * doc/glibc-functions/strcasestr.texi: Likewise.
54284
54285 2008-12-15  Bruno Haible  <bruno@clisp.org>
54286
54287         Fix compilation error on OSF/1 4.0.
54288         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54289         <sys/time.h>, simply delegate to the system header.
54290         Reported by Daniel Richard G. <oss@teragram.com>.
54291
54292 2008-12-15  Bruno Haible  <bruno@clisp.org>
54293
54294         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54295         * doc/posix-functions/fchmodat.texi: Likewise.
54296         * doc/posix-functions/fchownat.texi: Likewise.
54297         * doc/posix-functions/fdopendir.texi: Likewise.
54298         * doc/posix-functions/fstatat.texi: Likewise.
54299         * doc/posix-functions/mkdirat.texi: Likewise.
54300         * doc/posix-functions/unlinkat.texi: Likewise.
54301
54302 2008-12-14  Bruno Haible  <bruno@clisp.org>
54303
54304         Update doc for POSIX:2008.
54305         * doc/posix-functions/faccessat.texi: New file.
54306         * doc/posix-functions/fchmodat.texi: New file.
54307         * doc/posix-functions/fchownat.texi: New file.
54308         * doc/posix-functions/fdopendir.texi: New file.
54309         * doc/posix-functions/fstatat.texi: New file.
54310         * doc/posix-functions/futimens.texi: New file.
54311         * doc/posix-functions/linkat.texi: New file.
54312         * doc/posix-functions/mkdirat.texi: New file.
54313         * doc/posix-functions/mkfifoat.texi: New file.
54314         * doc/posix-functions/mknodat.texi: New file.
54315         * doc/posix-functions/open_wmemstream.texi: New file.
54316         * doc/posix-functions/openat.texi: New file.
54317         * doc/posix-functions/psiginfo.texi: New file.
54318         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54319         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54320         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54321         * doc/posix-functions/readlinkat.texi: New file.
54322         * doc/posix-functions/renameat.texi: New file.
54323         * doc/posix-functions/strerror_l.texi: New file.
54324         * doc/posix-functions/symlinkat.texi: New file.
54325         * doc/posix-functions/unlinkat.texi: New file.
54326         * doc/posix-functions/utimensat.texi: New file.
54327         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54328
54329 2008-12-14  Bruno Haible  <bruno@clisp.org>
54330
54331         Update doc for POSIX:2008.
54332         * doc/posix-functions/alphasort.texi: Renamed from
54333         doc/glibc-functions/alphasort.texi.
54334         * doc/posix-functions/dirfd.texi: Renamed from
54335         doc/glibc-functions/dirfd.texi.
54336         * doc/posix-functions/dprintf.texi: Renamed from
54337         doc/glibc-functions/dprintf.texi.
54338         * doc/posix-functions/duplocale.texi: Renamed from
54339         doc/glibc-functions/duplocale.texi.
54340         * doc/posix-functions/fexecve.texi: Renamed from
54341         doc/glibc-functions/fexecve.texi.
54342         * doc/posix-functions/fmemopen.texi: Renamed from
54343         doc/glibc-functions/fmemopen.texi.
54344         * doc/posix-functions/freelocale.texi: Renamed from
54345         doc/glibc-functions/freelocale.texi.
54346         * doc/posix-functions/getdate_err.texi: Renamed from
54347         doc/glibc-functions/getdate_err.texi.
54348         * doc/posix-functions/isalnum_l.texi: Renamed from
54349         doc/glibc-functions/isalnum_l.texi.
54350         * doc/posix-functions/isalpha_l.texi: Renamed from
54351         doc/glibc-functions/isalpha_l.texi.
54352         * doc/posix-functions/isblank_l.texi: Renamed from
54353         doc/glibc-functions/isblank_l.texi.
54354         * doc/posix-functions/iscntrl_l.texi: Renamed from
54355         doc/glibc-functions/iscntrl_l.texi.
54356         * doc/posix-functions/isdigit_l.texi: Renamed from
54357         doc/glibc-functions/isdigit_l.texi.
54358         * doc/posix-functions/isgraph_l.texi: Renamed from
54359         doc/glibc-functions/isgraph_l.texi.
54360         * doc/posix-functions/islower_l.texi: Renamed from
54361         doc/glibc-functions/islower_l.texi.
54362         * doc/posix-functions/isprint_l.texi: Renamed from
54363         doc/glibc-functions/isprint_l.texi.
54364         * doc/posix-functions/ispunct_l.texi: Renamed from
54365         doc/glibc-functions/ispunct_l.texi.
54366         * doc/posix-functions/isspace_l.texi: Renamed from
54367         doc/glibc-functions/isspace_l.texi.
54368         * doc/posix-functions/isupper_l.texi: Renamed from
54369         doc/glibc-functions/isupper_l.texi.
54370         * doc/posix-functions/iswalnum_l.texi: Renamed from
54371         doc/glibc-functions/iswalnum_l.texi.
54372         * doc/posix-functions/iswalpha_l.texi: Renamed from
54373         doc/glibc-functions/iswalpha_l.texi.
54374         * doc/posix-functions/iswblank_l.texi: Renamed from
54375         doc/glibc-functions/iswblank_l.texi.
54376         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54377         doc/glibc-functions/iswcntrl_l.texi.
54378         * doc/posix-functions/iswctype_l.texi: Renamed from
54379         doc/glibc-functions/iswctype_l.texi.
54380         * doc/posix-functions/iswdigit_l.texi: Renamed from
54381         doc/glibc-functions/iswdigit_l.texi.
54382         * doc/posix-functions/iswgraph_l.texi: Renamed from
54383         doc/glibc-functions/iswgraph_l.texi.
54384         * doc/posix-functions/iswlower_l.texi: Renamed from
54385         doc/glibc-functions/iswlower_l.texi.
54386         * doc/posix-functions/iswprint_l.texi: Renamed from
54387         doc/glibc-functions/iswprint_l.texi.
54388         * doc/posix-functions/iswpunct_l.texi: Renamed from
54389         doc/glibc-functions/iswpunct_l.texi.
54390         * doc/posix-functions/iswspace_l.texi: Renamed from
54391         doc/glibc-functions/iswspace_l.texi.
54392         * doc/posix-functions/iswupper_l.texi: Renamed from
54393         doc/glibc-functions/iswupper_l.texi.
54394         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54395         doc/glibc-functions/iswxdigit_l.texi.
54396         * doc/posix-functions/isxdigit_l.texi: Renamed from
54397         doc/glibc-functions/isxdigit_l.texi.
54398         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54399         doc/glibc-functions/mbsnrtowcs.texi.
54400         * doc/posix-functions/mkdtemp.texi: Renamed from
54401         doc/glibc-functions/mkdtemp.texi.
54402         * doc/posix-functions/newlocale.texi: Renamed from
54403         doc/glibc-functions/newlocale.texi.
54404         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54405         doc/glibc-functions/nl_langinfo_l.texi.
54406         * doc/posix-functions/open_memstream.texi: Renamed from
54407         doc/glibc-functions/open_memstream.texi.
54408         * doc/posix-functions/opterr.texi: Renamed from
54409         doc/glibc-functions/opterr.texi.
54410         * doc/posix-functions/optind.texi: Renamed from
54411         doc/glibc-functions/optind.texi.
54412         * doc/posix-functions/optopt.texi: Renamed from
54413         doc/glibc-functions/optopt.texi.
54414         * doc/posix-functions/psignal.texi: Renamed from
54415         doc/glibc-functions/psignal.texi.
54416         * doc/posix-functions/scandir.texi: Renamed from
54417         doc/glibc-functions/scandir.texi.
54418         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54419         doc/glibc-functions/sched_get_priority_min.texi.
54420         * doc/posix-functions/signgam.texi: Renamed from
54421         doc/glibc-functions/signgam.texi.
54422         * doc/posix-functions/stpcpy.texi: Renamed from
54423         doc/glibc-functions/stpcpy.texi.
54424         * doc/posix-functions/stpncpy.texi: Renamed from
54425         doc/glibc-functions/stpncpy.texi.
54426         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54427         doc/glibc-functions/strcasecmp_l.texi.
54428         * doc/posix-functions/strcoll_l.texi: Renamed from
54429         doc/glibc-functions/strcoll_l.texi.
54430         * doc/posix-functions/strfmon_l.texi: Renamed from
54431         doc/glibc-functions/strfmon_l.texi.
54432         * doc/posix-functions/strftime_l.texi: Renamed from
54433         doc/glibc-functions/strftime_l.texi.
54434         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54435         doc/glibc-functions/strncasecmp_l.texi.
54436         * doc/posix-functions/strndup.texi: Renamed from
54437         doc/glibc-functions/strndup.texi.
54438         * doc/posix-functions/strnlen.texi: Renamed from
54439         doc/glibc-functions/strnlen.texi.
54440         * doc/posix-functions/strsignal.texi: Renamed from
54441         doc/glibc-functions/strsignal.texi.
54442         * doc/posix-functions/strxfrm_l.texi: Renamed from
54443         doc/glibc-functions/strxfrm_l.texi.
54444         * doc/posix-functions/timer_gettime.texi: Renamed from
54445         doc/glibc-functions/timer_gettime.texi.
54446         * doc/posix-functions/tolower_l.texi: Renamed from
54447         doc/glibc-functions/tolower_l.texi.
54448         * doc/posix-functions/toupper_l.texi: Renamed from
54449         doc/glibc-functions/toupper_l.texi.
54450         * doc/posix-functions/towctrans_l.texi: Renamed from
54451         doc/glibc-functions/towctrans_l.texi.
54452         * doc/posix-functions/towlower_l.texi: Renamed from
54453         doc/glibc-functions/towlower_l.texi.
54454         * doc/posix-functions/towupper_l.texi: Renamed from
54455         doc/glibc-functions/towupper_l.texi.
54456         * doc/posix-functions/uselocale.texi: Renamed from
54457         doc/glibc-functions/uselocale.texi.
54458         * doc/posix-functions/vdprintf.texi: Renamed from
54459         doc/glibc-functions/vdprintf.texi.
54460         * doc/posix-functions/wcpcpy.texi:
54461         Renamed from doc/glibc-functions/wcpcpy.texi.
54462         * doc/posix-functions/wcpncpy.texi: Renamed from
54463         doc/glibc-functions/wcpncpy.texi.
54464         * doc/posix-functions/wcscasecmp.texi: Renamed from
54465         doc/glibc-functions/wcscasecmp.texi.
54466         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54467         doc/glibc-functions/wcscasecmp_l.texi.
54468         * doc/posix-functions/wcscoll_l.texi: Renamed from
54469         doc/glibc-functions/wcscoll_l.texi.
54470         * doc/posix-functions/wcsdup.texi: Renamed from
54471         doc/glibc-functions/wcsdup.texi.
54472         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54473         doc/glibc-functions/wcsncasecmp.texi.
54474         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54475         doc/glibc-functions/wcsncasecmp_l.texi.
54476         * doc/posix-functions/wcsnlen.texi: Renamed from
54477         doc/glibc-functions/wcsnlen.texi.
54478         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54479         doc/glibc-functions/wcsnrtombs.texi.
54480         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54481         doc/glibc-functions/wcsxfrm_l.texi.
54482         * doc/posix-functions/wctrans_l.texi: Renamed from
54483         doc/glibc-functions/wctrans_l.texi.
54484         * doc/posix-functions/wctype_l.texi: Renamed from
54485         doc/glibc-functions/wctype_l.texi.
54486         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54487         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54488         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54489         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54490         these subsections.
54491         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54492         Remove sections.
54493
54494 2008-12-14  Bruno Haible  <bruno@clisp.org>
54495
54496         Update doc for POSIX:2008.
54497         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54498
54499 2008-12-14  Bruno Haible  <bruno@clisp.org>
54500
54501         Update doc for POSIX:2008.
54502         * doc/pastposix-functions/bcmp.texi: Renamed from
54503         doc/posix-functions/bcmp.texi.
54504         * doc/pastposix-functions/bcopy.texi: Renamed from
54505         doc/posix-functions/bcopy.texi.
54506         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54507         doc/posix-functions/bsd_signal.texi.
54508         * doc/pastposix-functions/bzero.texi: Renamed from
54509         doc/posix-functions/bzero.texi.
54510         * doc/pastposix-functions/ecvt.texi: Renamed from
54511         doc/posix-functions/ecvt.texi.
54512         * doc/pastposix-functions/fcvt.texi: Renamed from
54513         doc/posix-functions/fcvt.texi.
54514         * doc/pastposix-functions/ftime.texi: Renamed from
54515         doc/posix-functions/ftime.texi.
54516         * doc/pastposix-functions/gcvt.texi: Renamed from
54517         doc/posix-functions/gcvt.texi.
54518         * doc/pastposix-functions/getcontext.texi: Renamed from
54519         doc/posix-functions/getcontext.texi.
54520         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54521         doc/posix-functions/gethostbyaddr.texi.
54522         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54523         doc/posix-functions/gethostbyname.texi.
54524         * doc/pastposix-functions/getwd.texi: Renamed from
54525         doc/posix-functions/getwd.texi.
54526         * doc/pastposix-functions/h_errno.texi: Renamed from
54527         doc/posix-functions/h_errno.texi.
54528         * doc/pastposix-functions/index.texi: Renamed from
54529         doc/posix-functions/index.texi.
54530         * doc/pastposix-functions/makecontext.texi: Renamed from
54531         doc/posix-functions/makecontext.texi.
54532         * doc/pastposix-functions/mktemp.texi: Renamed from
54533         doc/posix-functions/mktemp.texi.
54534         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54535         doc/posix-functions/pthread_attr_getstackaddr.texi.
54536         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54537         doc/posix-functions/pthread_attr_setstackaddr.texi.
54538         * doc/pastposix-functions/rindex.texi: Renamed from
54539         doc/posix-functions/rindex.texi.
54540         * doc/pastposix-functions/scalb.texi: Renamed from
54541         doc/posix-functions/scalb.texi.
54542         * doc/pastposix-functions/setcontext.texi: Renamed from
54543         doc/posix-functions/setcontext.texi.
54544         * doc/pastposix-functions/swapcontext.texi: Renamed from
54545         doc/posix-functions/swapcontext.texi.
54546         * doc/pastposix-functions/ualarm.texi: Renamed from
54547         doc/posix-functions/ualarm.texi.
54548         * doc/pastposix-functions/usleep.texi: Renamed from
54549         doc/posix-functions/usleep.texi.
54550         * doc/pastposix-functions/vfork.texi: Renamed from
54551         doc/posix-functions/vfork.texi.
54552         * doc/pastposix-functions/wcswcs.texi: Renamed from
54553         doc/posix-functions/wcswcs.texi.
54554         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54555         (Function Substitutes): Update.
54556
54557 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54558
54559         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54560         m4/strerror.m4.
54561
54562 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54563             Bruno Haible  <bruno@clisp.org>
54564
54565         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54566
54567 2008-12-13  Bruno Haible  <bruno@clisp.org>
54568
54569         * modules/strtoull (Depends-on): Remove unistd.
54570
54571 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54572
54573         * modules/strtoull (Depends-on): Add stdlib.
54574
54575 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54576
54577         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54578
54579 2008-12-10  Jim Meyering  <meyering@redhat.com>
54580
54581         gl_ASSERT: don't say assertions are disabled when they're not
54582         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54583         "checking whether to enable assertions... no", when they are in
54584         fact enabled.  This is solely a bug in the output of configure.
54585         In spite of saying "no", NDEBUG was not defined in that case.
54586         Also, as noted by Eric Blake, leave assertions enabled upon
54587         --enable-assert=INVALID.
54588
54589 2008-12-10  Bruno Haible  <bruno@clisp.org>
54590
54591         Change MODULES.html to refer to POSIX:2008 where possible.
54592         * MODULES.html.sh (POSIX2008_URL): New variable.
54593         (posix_headers): Remove sys/timeb, ucontext.
54594         (posix2001_headers): New variable.
54595         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54596         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54597         index, makecontext, mktemp, pthread_attr_getstackaddr,
54598         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54599         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54600         (posix2001_functions): New variable.
54601         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54602         otherwise.
54603
54604 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54605
54606         add missing include to parse-duration.c
54607         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54608         * modules/parse-duration (Depends-on): Add xalloc.
54609
54610         fix sed script reading maint.mk
54611         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54612         (syntax-check-rules): Use it.
54613
54614 2008-12-09  Bruno Haible  <bruno@clisp.org>
54615
54616         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54617         MacOS X 10.4/PowerPC.
54618         Reported by Simon Josefsson.
54619
54620 2008-12-08  Jim Meyering  <meyering@redhat.com>
54621
54622         work around mingw's lack of some S_IF definitions
54623         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54624         Reported by Simon Josefsson.
54625
54626 2008-12-08  Bruno Haible  <bruno@clisp.org>
54627
54628         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54629         applied to variables. Needed on MacOS X 10.4/PowerPC.
54630         Reported by Simon Josefsson.
54631
54632 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54633         and Eric Blake  <ebb9@byu.net>
54634
54635         assert: honor --enable-assert
54636         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54637         order to honor --enable-assert, rather than treating it as a
54638         synonym for --disable-assert.
54639
54640 2008-12-08  Jim Meyering  <meyering@redhat.com>
54641
54642         * lib/posixtm.c: Remove now-useless declaration of mktime.
54643
54644         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54645
54646 2008-12-07  Bruno Haible  <bruno@clisp.org>
54647
54648         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54649         test_once): Mark functions as static.
54650         * tests/test-tls.c (test_tls): Likewise.
54651
54652 2008-12-07  Bruno Haible  <bruno@clisp.org>
54653
54654         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54655         iconv_register_autodetect.
54656
54657 2008-12-07  Jim Meyering  <meyering@redhat.com>
54658
54659         posixtm.c: avoid a warning
54660         * lib/posixtm.c (posixtime): Don't initialize tm0.
54661         It's no longer needed to placate gcc4's -Wuninitialized,
54662         and the attempt to placate would elicit a new warning.
54663
54664         unicodeio.c: mark unused parameters
54665         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54666         (fallback_failure_callback): Likewise.
54667
54668 2008-12-07  Bruno Haible  <bruno@clisp.org>
54669
54670         * gnulib-tool (func_create_testdir): When building the tests
54671         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54672         Reported by Simon Josefsson.
54673
54674 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54675
54676         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54677
54678 2008-12-06  Bruno Haible  <bruno@clisp.org>
54679
54680         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54681         Suggested by Eric Blake.
54682
54683 2008-12-06  Bruno Haible  <bruno@clisp.org>
54684
54685         Fix a c-stack test failure on MacOS X.
54686         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54687         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54688         handler for SIGBUS as well.
54689         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54690         install a signal handler for SIGBUS as well.
54691         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54692
54693 2008-12-06  Bruno Haible  <bruno@clisp.org>
54694
54695         Advocacy documentation.
54696         * doc/gnulib-intro.texi (Benefits): New section.
54697         * doc/gnulib.texi: Update.
54698
54699 2008-12-06  Bruno Haible  <bruno@clisp.org>
54700
54701         Document the 'manywarnings' module.
54702         * doc/manywarnings.texi: New file.
54703         * doc/gnulib.texi: Include it.
54704
54705 2008-12-05  Eric Blake  <ebb9@byu.net>
54706
54707         tests: silence some gcc warnings
54708         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54709         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54710         type mismatches.
54711
54712 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54713             Bruno Haible  <bruno@clisp.org>
54714
54715         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54716
54717 2008-11-29  Jim Meyering  <meyering@redhat.com>
54718
54719         unicodeio.c: mark unused parameters
54720         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54721         (fallback_failure_callback): Likewise.
54722
54723         fts: fix a thinko
54724         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54725         (set_stat_type): Return S_IF*-valued "type" directly.
54726         Prompted by James Youngman's spotting a related bug.
54727         Confirmed by further testing through find.
54728
54729         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54730         * lib/fts.c (D_TYPE): Define.
54731         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54732         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54733         (s_ifmt_shift_bits): New function.
54734         (set_stat_type): New function.
54735         (fts_build): When not calling fts_stat, call set_stat_type
54736         to propagate dirent.d_type info to fts_read caller.
54737         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54738         fts_statp->st_mode type information may be valid.
54739
54740 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54741
54742         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54743         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54744         <sds@gnu.org>.
54745
54746 2008-11-20  Bruno Haible  <bruno@clisp.org>
54747
54748         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54749         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54750         INCLUDE_NEXT.
54751         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54752         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54753         * modules/math (Makefile.am): Substitute
54754         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54755         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54756
54757 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54758             Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/stdint.in.h: Define all type macros so that their expansion is
54761         a single typedef'ed token. Fixes a compilation failure in Boost which
54762         does "using ::int8_t;".
54763
54764 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54765
54766         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54767         gl_MANYWARN_ALL_GCC.
54768         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54769         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54770         * modules/manywarnings: New file.
54771         * MODULES.html.sh: Mention manywarnings module.
54772
54773 2008-11-18  Bruno Haible  <bruno@clisp.org>
54774
54775         * doc/gnulib-tool.texi (Unit tests): New section.
54776
54777 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54778
54779         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54780         paths like 'lib/po/foo.po'.
54781
54782 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54783
54784         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54785         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54786
54787 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54788
54789         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54790         parameter works.
54791
54792 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54793
54794         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54795
54796 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54797
54798         * modules/parse-duration-tests: New file.
54799         * tests/test-parse-duration.sh: New file.
54800         * tests/test-parse-duration.c: New file.
54801
54802         New module 'parse-duration'.
54803         * lib/parse-duration.h: New file.
54804         * lib/parse-duration.c: New file.
54805         * modules/parse-duration: New file.
54806
54807 2008-11-17  Bruno Haible  <bruno@clisp.org>
54808
54809         * tests/test-select-out.sh: Comment out the first pipe test.
54810         Reported by Simon Josefsson.
54811
54812 2008-11-17  Bruno Haible  <bruno@clisp.org>
54813
54814         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54815         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54816         gl_HOSTENT.
54817
54818 2008-11-17  Bruno Haible  <bruno@clisp.org>
54819
54820         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54821         -lnetwork and -lnet. Needed for Haiku and BeOS.
54822
54823 2008-11-16  Bruno Haible  <bruno@clisp.org>
54824
54825         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54826
54827 2008-11-16  Bruno Haible  <bruno@clisp.org>
54828
54829         Avoid test failure on Haiku.
54830         * tests/test-fsync.c: Include <errno.h>.
54831         (main): Don't require that fsync (0) fails.
54832
54833 2008-11-15  Bruno Haible  <bruno@clisp.org>
54834
54835         New module 'hostent'.
54836         * modules/hostent: New file.
54837         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54838
54839 2008-11-15  Bruno Haible  <bruno@clisp.org>
54840
54841         New module 'servent'.
54842         * modules/servent: New file.
54843         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54844
54845 2008-11-15  Bruno Haible  <bruno@clisp.org>
54846
54847         Avoid generating same test program with two different rules.
54848         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54849         test-frexp to test-frexp-nolibm.
54850         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54851         test-frexpl to test-frexpl-nolibm.
54852
54853 2008-11-15  Bruno Haible  <bruno@clisp.org>
54854
54855         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54856         $(FREXPL_LIBM).
54857
54858 2008-11-15  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/netdb.in.h: Activate the definitions also when the system's
54861         <netdb.h> has 'struct addrinfo'.
54862         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54863         EAI_OVERFLOW or AI_NUMERICSERV.
54864         * doc/posix-headers/netdb.texi: Document the problem.
54865
54866 2008-11-15  Bruno Haible  <bruno@clisp.org>
54867
54868         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54869
54870         Make the 'sched' module work on platforms where <sched.h> exists but
54871         is incomplete (such as Haiku).
54872         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54873         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54874         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54875         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54876         HAVE_STRUCT_SCHED_PARAM.
54877         * modules/sched (Depends-on): Add include_next.
54878         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54879         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54880         * doc/posix-headers/sched.texi: Document the issue.
54881
54882 2008-11-13  Jim Meyering  <meyering@redhat.com>
54883
54884         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54885         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54886         test would fail due to the difference in the Report bugs to ...
54887         line.  The expected address is empty, "<>", while the actual
54888         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54889
54890 2008-11-12  Bruno Haible  <bruno@clisp.org>
54891
54892         lstat: don't compile lstat.c on systems lacking lstat
54893         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54894         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54895         Reported by Daniel P. Berrange via Jim Meyering.
54896
54897 2008-11-12  Jim Meyering  <meyering@redhat.com>
54898
54899         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54900
54901 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54902
54903         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54904         instead.
54905
54906 2008-11-12  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/unicodeio.c: Include unistr.h.
54909         (utf8_wctomb): Remove function.
54910         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54911
54912 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54913
54914         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54915         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54916         <bruno@clisp.org>.
54917         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54918
54919 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54920
54921         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54922         * doc/gnulib.texi: Add section for warnings.
54923
54924 2008-11-11  Bruno Haible  <bruno@clisp.org>
54925
54926         * lib/sockets.h: Add a comment.
54927
54928 2008-11-11  Karl Berry  <karl@gnu.org>
54929
54930         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54931
54932 2008-11-11  Eric Blake  <ebb9@byu.net>
54933
54934         fdl.texi: avoid git symlinks
54935         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54936
54937 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54938
54939         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54940
54941 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54942
54943         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54944         (gl_WARN_ADD): Substitute $2 if literal.
54945
54946 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54947
54948         * m4/warning.m4: Remove.
54949
54950 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54951
54952         * m4/warnings.m4: Almost complete rewrite. :-)
54953
54954 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54955
54956         * modules/warnings: New module.
54957         * m4/warnings.m4: New file.
54958         * MODULES.html.sh: Mention warnings module.
54959         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54960         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54961
54962 2008-11-10  Eric Blake  <ebb9@byu.net>
54963
54964         fdl.texi: make a symlink to the latest version
54965         * doc/standards.texi: Revert today's earlier change.
54966         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54967         * doc/fdl.texi: ...and replace this with a symlink to the newer
54968         fdl-1.3.texi.
54969
54970 2008-11-10  Bruno Haible  <bruno@clisp.org>
54971
54972         * tests/test-select-fd.c (main): Accept the result file name as fourth
54973         argument.
54974         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54975         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54976
54977 2008-11-10  Bruno Haible  <bruno@clisp.org>
54978
54979         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54980         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54981         as autoconf-substituted macros.
54982         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54983         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54984         gl_NETDB_H_DEFAULTS. Set these variables.
54985         * modules/netdb (Makefile.am): Substitute these variables.
54986
54987 2008-11-10  Eric Blake  <ebb9@byu.net>
54988
54989         standards.texi: include correct file for FDL 1.3
54990         * doc/standards.texi (GNU Free Documentation License): Change
54991         include file to pull in FDL 1.3, not 1.2.
54992
54993         fdl.texi: revert accidental change to license
54994         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54995
54996 2008-11-10  Bruno Haible  <bruno@clisp.org>
54997
54998         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54999         cross-compiling guesses also when the native compile gives no result.
55000
55001 2008-11-10  Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/spawni.c (__spawni): Force variable into the stack.
55004
55005 2008-11-10  Bruno Haible  <bruno@clisp.org>
55006
55007         Add support for Haiku.
55008         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55009         glibc and BeOS, but also on Haiku.
55010         * lib/fpurge.c (fpurge): Likewise.
55011         * lib/freadable.c (freadable): Likewise.
55012         * lib/freadahead.c (freadahead): Likewise.
55013         * lib/freading.c (freading): Likewise.
55014         * lib/freadptr.c (freadptr): Likewise.
55015         * lib/freadseek.c (freadptrinc): Likewise.
55016         * lib/fseeko.c (rpl_fseeko): Likewise.
55017         * lib/fseterr.c (fseterr): Likewise.
55018         * lib/fwritable.c (fwritable): Likewise.
55019         * lib/fwriting.c (fwriting): Likewise.
55020         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55021
55022 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55023
55024         * lib/config.charset: Treat Haiku like BeOS.
55025
55026 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55027
55028         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55029         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55030
55031 2008-11-08  Bruno Haible  <bruno@clisp.org>
55032
55033         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55034         AC_CACHE_CHECK.
55035
55036 2008-11-08  Bruno Haible  <bruno@clisp.org>
55037
55038         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55039
55040 2008-11-08  Bruno Haible  <bruno@clisp.org>
55041
55042         * tests/test-select-fd.c: New file.
55043         * tests/test-select-in.sh: New file.
55044         * tests/test-select-out.sh: New file.
55045         * tests/test-select-stdin.c: New file.
55046         * modules/select-tests (Files): Add the new files.
55047         (Depends-on): Add gettimeofday.
55048         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55049         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55050         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55051
55052 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55053             Bruno Haible  <bruno@clisp.org>
55054
55055         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55056
55057 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55058
55059         * build-aux/pmccabe2html: Added support for C++ source files.
55060
55061 2008-11-05  Ben Pfaff  <blp@gnu.org>
55062
55063         Fix lib/close.c build on Windows.
55064         * modules/close (Files): Add lib/w32sock.h.
55065
55066 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55067
55068         Accept Bison's NEWS format.
55069         * build-aux/announce-gen (print_news_deltas): Tweak
55070         $re_prefix.
55071
55072 2008-11-04  Bruno Haible  <bruno@clisp.org>
55073
55074         * modules/random_r (Maintainer): Add glibc.
55075
55076 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55077
55078         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55079         by karl@freefriends.org (Karl Berry).
55080         * doc/alloca.texi: Likewise.
55081         * doc/c-ctype.texi: Likewise.
55082         * doc/c-strcase.texi: Likewise.
55083         * doc/c-strcaseeq.texi: Likewise.
55084         * doc/c-strcasestr.texi: Likewise.
55085         * doc/c-strstr.texi: Likewise.
55086         * doc/c-strtod.texi: Likewise.
55087         * doc/c-strtold.texi: Likewise.
55088         * doc/ctime.texi: Likewise.
55089         * doc/error.texi: Likewise.
55090         * doc/fdl.texi: Likewise.
55091         * doc/gcd.texi: Likewise.
55092         * doc/getdate.texi: Likewise.
55093         * doc/gnulib-intro.texi: Likewise.
55094         * doc/gnulib-tool.texi: Likewise.
55095         * doc/gnulib.texi: Likewise.
55096         * doc/inet_ntoa.texi: Likewise.
55097         * doc/maintain.texi: Likewise.
55098         * doc/make-stds.texi: Likewise.
55099         * doc/quote.texi: Likewise.
55100         * doc/regexprops-generic.texi: Likewise.
55101         * doc/standards.texi: Likewise.
55102         * doc/verify.texi: Likewise.
55103         * doc/visibility.texi: Likewise.
55104         * doc/gnulib.texi (GNU Free Documentation License): Include
55105         fdl-1.3.texi instead of fdl.texi.
55106
55107 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55108
55109         * doc/fdl-1.3.texi: New file, from
55110         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55111         * modules/fdl-1.3: Add.
55112         * MODULES.html.sh: Add fdl-1.3.
55113
55114 2008-11-03  Bruno Haible  <bruno@clisp.org>
55115
55116         Make determination of absolute name of header file work with AIX xlc.
55117         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55118         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55119         preprocessing.
55120         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55121         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55122
55123 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55124
55125         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55126         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55127         <ludo@gnu.org>.
55128
55129 2008-11-02  Bruno Haible  <bruno@clisp.org>
55130
55131         Mark 'strpbrk' obsolete.
55132         * modules/strpbrk (Status, Notice): New sections.
55133         * modules/strtok_r (Depends-on): Add strpbrk.
55134
55135 2008-11-02  Bruno Haible  <bruno@clisp.org>
55136
55137         Mark 'strdup' obsolete.
55138         * modules/strdup (Status, Notice): New sections.
55139         * modules/findprog (Depends-on): Add strdup.
55140         * modules/getaddrinfo (Depends-on): Likewise.
55141         * modules/localename (Depends-on): Likewise.
55142         * modules/relocatable-lib (Depends-on): Likewise.
55143         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55144         * modules/relocatable-prog (Depends-on): Likewise.
55145         * modules/trim (Depends-on): Likewise.
55146         * modules/unictype/gen-ctype (Depends-on): Likewise.
55147         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55148
55149 2008-11-02  Bruno Haible  <bruno@clisp.org>
55150
55151         Mark 'strcspn' obsolete.
55152         * modules/strcspn (Status, Notice): New sections.
55153
55154 2008-11-02  Bruno Haible  <bruno@clisp.org>
55155
55156         Mark 'rmdir' obsolete.
55157         * modules/rmdir (Status, Notice): New sections.
55158         * modules/clean-temp (Depends-on): Add rmdir.
55159         * modules/openat (Depends-on): Likewise.
55160
55161 2008-11-02  Bruno Haible  <bruno@clisp.org>
55162
55163         Mark 'raise' obsolete.
55164         * modules/raise (Status, Notice): New sections.
55165         (Include): Specify <signal.h>.
55166         * modules/stdio (Depends-on): Add raise.
55167         * modules/write (Depends-on): Likewise.
55168
55169 2008-11-02  Bruno Haible  <bruno@clisp.org>
55170
55171         Mark 'memset' obsolete.
55172         * modules/memset (Status, Notice): New sections.
55173
55174 2008-11-02  Bruno Haible  <bruno@clisp.org>
55175
55176         Mark 'memmove' obsolete.
55177         * modules/memmove (Status, Notice): New sections.
55178         * modules/argp (Depends-on): Add memmove.
55179         * modules/argz (Depends-on): Likewise.
55180         * modules/canonicalize (Depends-on): Likewise.
55181         * modules/canonicalize-lgpl (Depends-on): Likewise.
55182         * modules/fts (Depends-on): Likewise.
55183         * modules/getcwd (Depends-on): Likewise.
55184         * modules/human (Depends-on): Likewise.
55185         * modules/regex (Depends-on): Likewise.
55186         * modules/striconveh (Depends-on): Likewise.
55187         * modules/trim (Depends-on): Likewise.
55188         * modules/unistr/u8-move (Depends-on): Likewise.
55189         * modules/unistr/u16-move (Depends-on): Likewise.
55190         * modules/unistr/u32-move (Depends-on): Likewise.
55191
55192 2008-11-02  Bruno Haible  <bruno@clisp.org>
55193
55194         Mark 'memcpy' obsolete.
55195         * modules/memcpy (Status, Notice): New sections.
55196
55197 2008-11-02  Bruno Haible  <bruno@clisp.org>
55198
55199         Mark 'memcmp' obsolete.
55200         * modules/memcmp (Status, Notice): New sections.
55201         * modules/argmatch (Depends-on): Add memchr.
55202         * modules/backupfile (Depends-on): Likewise.
55203         * modules/c-strcasestr (Depends-on): Likewise.
55204         * modules/crypto/des (Depends-on): Likewise.
55205         * modules/csharpcomp (Depends-on): Likewise.
55206         * modules/fnmatch (Depends-on): Likewise.
55207         * modules/git-merge-changelog (Depends-on): Likewise.
55208         * modules/isnand (Depends-on): Likewise.
55209         * modules/isnand-nolibm (Depends-on): Likewise.
55210         * modules/isnanf (Depends-on): Likewise.
55211         * modules/isnanf-nolibm (Depends-on): Likewise.
55212         * modules/isnanl (Depends-on): Likewise.
55213         * modules/isnanl-nolibm (Depends-on): Likewise.
55214         * modules/mbchar (Depends-on): Likewise.
55215         * modules/memcoll (Depends-on): Likewise.
55216         * modules/quotearg (Depends-on): Likewise.
55217         * modules/regex (Depends-on): Likewise.
55218         * modules/relocatable-prog (Depends-on): Likewise.
55219         * modules/same (Depends-on): Likewise.
55220         * modules/signbit (Depends-on): Likewise.
55221         * modules/strcasestr-simple (Depends-on): Likewise.
55222         * modules/unictype/gen-ctype (Depends-on): Likewise.
55223         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55224         * modules/uniname/uniname (Depends-on): Likewise.
55225         * modules/unistr/u8-cmp (Depends-on): Likewise.
55226
55227 2008-11-02  Bruno Haible  <bruno@clisp.org>
55228
55229         Mark 'memchr' obsolete.
55230         * modules/memchr (Status, Notice): New sections.
55231         * modules/argp (Depends-on): Add memchr.
55232         * modules/base64 (Depends-on): Likewise.
55233         * modules/c-strcasestr (Depends-on): Likewise.
55234         * modules/chdir-long (Depends-on): Likewise.
55235         * modules/fnmatch (Depends-on): Likewise.
55236         * modules/getsubopt (Depends-on): Likewise.
55237         * modules/git-merge-changelog (Depends-on): Likewise.
55238         * modules/glob (Depends-on): Likewise.
55239         * modules/strcasestr-simple (Depends-on): Likewise.
55240         * modules/strnlen (Depends-on): Likewise.
55241
55242 2008-11-02  Bruno Haible  <bruno@clisp.org>
55243
55244         Mark 'atexit' obsolete.
55245         * modules/atexit (Status, Notice): New sections.
55246         * modules/chdir-long (Depends-on): Add atexit.
55247         * modules/wait-process (Depends-on): Likewise.
55248
55249 2008-11-02  Bruno Haible  <bruno@clisp.org>
55250
55251         * gnulib-tool: New option --with-obsolete.
55252         (func_usage): Document it.
55253         (func_modules_transitive_closure): Drop obsolete dependencies if
55254         incobsolete is not true.
55255         (func_import): Read and save the incobsolete variable to the cache.
55256
55257 2008-11-02  Bruno Haible  <bruno@clisp.org>
55258
55259         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55260         * gnulib-tool: New option --extract-status.
55261         (func_usage): Document it.
55262         (sed_extract_prog): Recognize it.
55263         (func_get_status): New function.
55264
55265 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55266
55267         * modules/sockets (License): Change from LGPL to LGPLv2+.
55268
55269 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55270
55271         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55272
55273 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55274
55275         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55276         Mention times and sys_times.
55277         * modules/sys_times, modules/sys_times-tests: New modules.
55278         * modules/times, modules/times-tests: Likewise
55279         * m4/sys_times_h.m4: New file.
55280         * lib/sys_times.in.h: Likewise
55281         * lib/times.c: Likewise.
55282         * tests/test-sys_times.c: Likewise.
55283         * tests/test-times.c: Likewise.
55284         * doc/posix-headers/sys_times.texi: Update.
55285         * doc/posix-functions/times.texi: Update.
55286
55287 2008-10-28  Jim Meyering  <meyering@redhat.com>
55288
55289         * modules/tempname (Depends-on): Add lstat.
55290
55291         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55292
55293 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55294
55295         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55296         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55297         using idiom used elsewhere in gnulib.
55298
55299 2008-10-27  Jim Meyering  <meyering@redhat.com>
55300
55301         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55302
55303 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55304
55305         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55306         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55307         programs.
55308         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55309
55310 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55311
55312         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55313
55314 2008-10-27  Bruno Haible  <bruno@clisp.org>
55315
55316         * tests/test-lstat.c: Include <stdio.h>.
55317
55318 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55319
55320         * modules/lstat-tests: New module.
55321         * tests/test-lstat.c: New file.
55322
55323 2008-10-26  Jim Meyering  <meyering@redhat.com>
55324
55325         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55326
55327 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55328             Bruno Haible  <bruno@clisp.org>
55329
55330         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55331         * modules/configmake (Include): Add a note that the include must come
55332         after all system headers.
55333         * lib/javaversion.c: Include configmake.h after all other includes.
55334
55335 2008-10-26  Bruno Haible  <bruno@clisp.org>
55336
55337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55338         HAVE_STRUCT_RANDOM_DATA to 1.
55339         (gl_STDLIB_H): Simplify.
55340
55341 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55342
55343         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55344         substitute HAVE_STRUCT_RANDOM_DATA.
55345         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55346         random_data.
55347         * modules/stdlib (Makefile.am): Substitute
55348         HAVE_STRUCT_RANDOM_DATA.
55349
55350 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55351
55352         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55353         * doc/gnulib-intro.texi (Copyright): Likewise.
55354
55355 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55356
55357         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55358         findings.
55359
55360 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55361             Bruno Haible  <bruno@clisp.org>
55362
55363         * lib/unistd.in.h: Include <winsock2.h>.
55364         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55365         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55366         Provide dummy declarations.
55367         (gethostname): Override.
55368         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55369         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55370         gl_PREREQ_SYS_H_WINSOCK2.
55371         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55372         * doc/posix-functions/gethostname.texi: More details.
55373
55374 2008-10-25  Bruno Haible  <bruno@clisp.org>
55375
55376         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55377         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55378         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55379
55380         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55381         here ...
55382         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55383         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55384         gl_UNISTD_H_DEFAULTS.
55385
55386 2008-10-25  Eric Blake  <ebb9@byu.net>
55387
55388         signbit: avoid spurious compiler failure
55389         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55390         declarations inside function.
55391
55392 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55393             Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55396         * modules/random_r (Depends-on): Add stdint.
55397
55398 2008-10-24  Bruno Haible  <bruno@clisp.org>
55399
55400         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55401         Eggert.
55402         * modules/strerror (License): Likewise.
55403
55404 2008-10-24  Jim Meyering  <meyering@redhat.com>
55405
55406         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55407         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55408
55409 2008-10-24  Eric Blake  <ebb9@byu.net>
55410
55411         getgroups: fix compilation when getgroups is available
55412         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55413         but with <config.h> override of getgroups disabled.
55414
55415 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55416
55417         * doc/gnulib.texi (Header files): Add note about C++ problems.
55418         Explained by Bruno Haible <bruno@clisp.org>.
55419
55420 2008-10-23  Bruno Haible  <bruno@clisp.org>
55421
55422         Define a dummy SA_NODEFER macro on Interix.
55423         * lib/signal.in.h (SA_NODEFER): Define fallback.
55424         Reported by Aleksey Cheusov <cheusov@tut.by> via
55425         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55426
55427 2008-10-23  Bruno Haible  <bruno@clisp.org>
55428
55429         * modules/freadahead (License): Change to LGPLv2+.
55430         Suggested by Simon Josefsson.
55431
55432 2008-10-23  Jim Meyering  <meyering@redhat.com>
55433
55434         random_r: new module
55435         * modules/random_r: New file.
55436         * m4/random_r.m4: New file.
55437         * lib/random_r.c: New file, from glibc.
55438         * modules/random_r-tests: New file.
55439         * tests/test-random_r.c: New file.
55440         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55441          Declare.
55442         (RAND_MAX): Define.
55443         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55444         * modules/stdlib: Substitute them, too.
55445         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55446         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55447         * doc/glibc-functions/random_r.texi: Likewise.
55448         * doc/glibc-functions/setstate_r.texi: Likewise.
55449         * doc/glibc-functions/srandom_r.texi: Likewise.
55450         * config/srclist.txt: Mention it.
55451
55452 2008-10-23  David Lutterkort  <lutter@redhat.com>
55453
55454         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55455         link requirement
55456
55457 2008-10-23  Jim Meyering  <meyering@redhat.com>
55458
55459         selinux-h: mark parameters of stub functions as intentionally unused
55460         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55461         * lib/se-context.in.h: Likewise.
55462
55463 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55464
55465         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55466
55467 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55468
55469         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55470
55471 2008-10-22  Eric Blake  <ebb9@byu.net>
55472
55473         glthread/thread: avoid compiler warning
55474         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55475         Add unreachable abort to silence compiler.
55476
55477 2008-10-22  Eric Blake  <ebb9@byu.net>
55478
55479         netdb: also supply struct addrinfo for cygwin 1.5.x
55480         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55481         older cygwin.
55482         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55483         cygwin.
55484         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55485
55486 2008-10-22  Bruno Haible  <bruno@clisp.org>
55487
55488         * users.txt: Update entry about pspp.
55489
55490 2008-10-21  Bruno Haible  <bruno@clisp.org>
55491
55492         Simplification.
55493         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55494         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55495
55496         Simplification.
55497         * lib/ioctl.c (ioctl): Don't undefine.
55498         * lib/socket.c (socket): Don't undefine.
55499
55500         Remove unused module indicator macros.
55501         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55502         GNULIB_$1 as a C macro.
55503
55504         * doc/posix-functions/close.texi: Undo last change.
55505         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55506         Windows platforms.
55507
55508 2008-10-21  Bruno Haible  <bruno@clisp.org>
55509
55510         Add gethostname() declaration to <unistd.h>.
55511         * lib/unistd.in.h (gethostname): New declaration.
55512         * lib/gethostname.c: Include <unistd.h>.
55513         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55514         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55516         and HAVE_GETHOSTNAME.
55517         * modules/gethostname (Depends-on): Add unistd.
55518         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55519         (Include): Specify <unistd.h>.
55520         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55521         HAVE_GETHOSTNAME.
55522         * tests/test-gethostname.c: Include <unistd.h> first.
55523
55524 2008-10-21  Bruno Haible  <bruno@clisp.org>
55525
55526         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55527         * modules/select-tests (Depends-on): Likewise.
55528         Reported by Simon Josefsson.
55529
55530 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55531
55532         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55533         * lib/accept.c: New file, based on winsock.c.
55534         * lib/bind.c: New file, based on winsock.c.
55535         * lib/connect.c: New file, based on winsock.c.
55536         * lib/getpeername.c: New file, based on winsock.c.
55537         * lib/getsockname.c: New file, based on winsock.c.
55538         * lib/getsockopt.c: New file, based on winsock.c.
55539         * lib/ioctl.c: New file, based on winsock.c.
55540         * lib/listen.c: New file, based on winsock.c.
55541         * lib/recv.c: New file, based on winsock.c.
55542         * lib/recvfrom.c: New file, based on winsock.c.
55543         * lib/send.c: New file, based on winsock.c.
55544         * lib/sendto.c: New file, based on winsock.c.
55545         * lib/setsockopt.c: New file, based on winsock.c.
55546         * lib/shutdown.c: New file, based on winsock.c.
55547         * lib/socket.c: New file, based on winsock.c.
55548         * lib/w32sock.h: New file, based on winsock.c.
55549         * lib/winsock.c: Remove file.
55550         * modules/accept: Likewise.
55551         * modules/bind: Likewise.
55552         * modules/connect: Likewise.
55553         * modules/getpeername: Likewise.
55554         * modules/getsockname: Likewise.
55555         * modules/getsockopt: Likewise.
55556         * modules/ioctl: Likewise.
55557         * modules/listen: Likewise.
55558         * modules/recv: Likewise.
55559         * modules/recvfrom: Likewise.
55560         * modules/send: Likewise.
55561         * modules/sendto: Likewise.
55562         * modules/setsockopt: Likewise.
55563         * modules/shutdown: Likewise.
55564         * modules/socket: Use socket.c instead of winsock.c.
55565         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55566         * doc/posix-functions/accept.texi: Doc fix.
55567         * doc/posix-functions/bind.texi: Doc fix.
55568         * doc/posix-functions/close.texi: Doc fix.
55569         * doc/posix-functions/connect.texi: Doc fix.
55570         * doc/posix-functions/getpeername.texi: Doc fix.
55571         * doc/posix-functions/getsockname.texi: Doc fix.
55572         * doc/posix-functions/getsockopt.texi: Doc fix.
55573         * doc/posix-functions/ioctl.texi: Doc fix.
55574         * doc/posix-functions/listen.texi: Doc fix.
55575         * doc/posix-functions/recv.texi: Doc fix.
55576         * doc/posix-functions/recvfrom.texi: Doc fix.
55577         * doc/posix-functions/send.texi: Doc fix.
55578         * doc/posix-functions/sendto.texi: Doc fix.
55579         * doc/posix-functions/setsockopt.texi: Doc fix.
55580         * doc/posix-functions/shutdown.texi: Doc fix.
55581         * doc/posix-functions/socket.texi: Doc fix.
55582
55583 2008-10-20  Bruno Haible  <bruno@clisp.org>
55584
55585         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55586         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55587         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55588         as an alias for SIGABRT.
55589         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55590         (sigaction): Map it to SIGABRT.
55591         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55592
55593 2008-10-20  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/fts.c: Don't include lstat.h.
55596         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55597
55598         Move the lstat() declaration to <sys/stat.h>.
55599         * lib/lstat.h: Remove file.
55600         * lib/sys_stat.in.h: Add special invocation convention.
55601         (lstat): New declaration.
55602         * lib/lstat.c (orig_lstat): New function.
55603         (rpl_lstat): Use orig_lstat instead of lstat.
55604         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55605         AC_C_INLINE. Set REPLACE_LSTAT.
55606         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55607         and REPLACE_LSTAT.
55608         * modules/lstat (Files): Remove lib/lstat.h.
55609         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55610         (Include): Specify <sys/stat.h> instead of lstat.h.
55611         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55612         REPLACE_LSTAT.
55613         * NEWS: Mention the change.
55614
55615 2008-10-20  Bruno Haible  <bruno@clisp.org>
55616
55617         * modules/posix_spawn-tests: New file.
55618         * tests/test-posix_spawn3.c: New file.
55619
55620 2008-10-20  Bruno Haible  <bruno@clisp.org>
55621
55622         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55623         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55624         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55625         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55626         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55627
55628 2008-10-20  Bruno Haible  <bruno@clisp.org>
55629
55630         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55631         of posix_spawn on AIX 5.3.
55632
55633 2008-10-20  Bruno Haible  <bruno@clisp.org>
55634
55635         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55636
55637 2008-10-20  Bruno Haible  <bruno@clisp.org>
55638
55639         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55640         of AC_LANG_PROGRAM.
55641
55642 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55643
55644         * lib/netdb.in.h: Don't define GNU specific constants until they
55645         are supported or needed.  Reported by Bruno Haible
55646         <bruno@clisp.org>.
55647
55648 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55649
55650         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55651
55652 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55653
55654         * lib/getaddrinfo.h: Remove file.
55655         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55656         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55657         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55658         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55659         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55660         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55661         * tests/test-getaddrinfo.c: Likewise.
55662         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55663         * NEWS: Mention change.
55664
55665 2008-10-19  Bruno Haible  <bruno@clisp.org>
55666
55667         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55668
55669 2008-10-19  Bruno Haible  <bruno@clisp.org>
55670
55671         * lib/wait-process.c: Include simply <sys/wait.h>.
55672         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55673         WIFSTOPPED): Remove fallback definitions.
55674         * modules/wait-process (Depends-on): Add sys_wait.
55675
55676         New module 'sys_wait'.
55677         * modules/sys_wait: New file.
55678         * lib/sys_wait.in.h: New file, partially copied from
55679         lib/wait-process.c.
55680         * m4/sys_wait_h.m4: New file.
55681         * doc/posix-headers/sys_wait.texi: Mention the new module.
55682
55683 2008-10-19  Bruno Haible  <bruno@clisp.org>
55684
55685         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55686
55687 2008-10-19  Bruno Haible  <bruno@clisp.org>
55688
55689         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55690         * lib/wait-process.c (WAIT_T): Remove type.
55691         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55692         (wait_subprocess): Update.
55693
55694 2008-10-19  Bruno Haible  <bruno@clisp.org>
55695
55696         New module 'atoll'.
55697         * modules/atoll: New file.
55698         * lib/stdlib.in.h (atoll): New declaration.
55699         * lib/atoll.c: New file, from glibc with modifications.
55700         * m4/atoll.m4: New file.
55701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55702         HAVE_ATOLL.
55703         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55704         * doc/posix-functions/atoll.texi: Mention the new module.
55705
55706 2008-10-19  Bruno Haible  <bruno@clisp.org>
55707
55708         Add strtoull() declaration to <stdlib.h>.
55709         * lib/stdlib.in.h (strtoull): New declaration.
55710         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55711         Set HAVE_STRTOULL.
55712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55713         HAVE_STRTOULL.
55714         * modules/strtoull (Depends-on): Add stdlib.
55715         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55716         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55717         HAVE_STRTOULL.
55718
55719 2008-10-19  Bruno Haible  <bruno@clisp.org>
55720
55721         Add strtoll() declaration to <stdlib.h>.
55722         * lib/stdlib.in.h (strtoll): New declaration.
55723         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55724         Set HAVE_STRTOLL.
55725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55726         HAVE_STRTOLL.
55727         * modules/strtoll (Depends-on): Add stdlib.
55728         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55729         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55730
55731 2008-10-19  Bruno Haible  <bruno@clisp.org>
55732
55733         * modules/bcopy (Depends-on): Add strings.
55734         (Include): Specify <strings.h>.
55735
55736 2008-10-19  Bruno Haible  <bruno@clisp.org>
55737
55738         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55739
55740 2008-10-19  Bruno Haible  <bruno@clisp.org>
55741
55742         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55743         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55744         mingw.
55745
55746 2008-10-19  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/atanl.c: Don't include isnanl.h.
55749         * lib/cosl.c: Likewise.
55750         * lib/ldexpl.c: Likewise.
55751         * lib/logl.c: Likewise.
55752         * lib/sinl.c: Likewise.
55753         * lib/sqrtl.c: Likewise.
55754         * lib/tanl.c: Likewise.
55755
55756         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55757         * lib/isnanf.h: Remove file.
55758         * lib/isnand.h: Remove file.
55759         * lib/isnanl.h: Remove file.
55760         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55761         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55762         macros.
55763         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55764         HAVE_ISNANF, don't define it as a C macro.
55765         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55766         HAVE_ISNAND, don't define it as a C macro.
55767         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55768         HAVE_ISNANL, don't define it as a C macro.
55769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55770         HAVE_ISNAN[FDL].
55771         * modules/isnanf (Files): Remove lib/isnanf.h.
55772         (Depends-on): Add math.
55773         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55774         (Include): Specify <math.h> instead of isnanf.h.
55775         * modules/isnand (Files): Remove lib/isnand.h.
55776         (Depends-on): Add math.
55777         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55778         (Include): Specify <math.h> instead of isnand.h.
55779         * modules/isnanl (Files): Remove lib/isnanl.h.
55780         (Depends-on): Add math.
55781         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55782         (Include): Specify <math.h> instead of isnanl.h.
55783         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55784         HAVE_ISNAN[FDL].
55785         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55786         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55787         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55788         * NEWS: Mention the change.
55789
55790 2008-10-18  Bruno Haible  <bruno@clisp.org>
55791
55792         Add getusershell(), setusershell(), endusershell() declarations to
55793         <unistd.h>.
55794         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55795         declarations.
55796         * lib/getusershell.c: Include unistd.h.
55797         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55798         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55799         HAVE_GETUSERSHELL.
55800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55801         and HAVE_GETUSERSHELL.
55802         * modules/getusershell (Depends-on): Add unistd, extensions.
55803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55804         (Include): Specify <unistd.h>.
55805         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55806         HAVE_GETUSERSHELL.
55807
55808 2008-10-18  Bruno Haible  <bruno@clisp.org>
55809
55810         Add a getloadavg() declaration to <stdlib.h>.
55811         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55812         getloadavg declaration.
55813         (getloadavg): New declaration.
55814         * lib/getloadavg.c: Include <stdlib.h> first.
55815         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55816         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55817         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55819         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55820         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55822         (Include): Specify <stdlib.h>.
55823         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55824         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55825
55826 2008-10-18  Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/dirchownmod.c: Don't include lchmod.h.
55829
55830         Move the lchmod() declaration to <sys/stat.h>.
55831         * lib/lchmod.h: Remove file.
55832         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55833         (lchmod): New declaration, moved here from lib/lchown.h.
55834         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55835         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55836         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55837         and HAVE_LCHMOD.
55838         * modules/lchmod (Files): Remove lib/lchmod.h.
55839         (Depends-on): Add sys_stat, extensions.
55840         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55841         (Include): Specify <sys/stat.h> instead of lchmod.h.
55842         * modules/sys_stat (Depends-on): Add link-warning.
55843         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55844         definition of GL_LINK_WARNING.
55845         * NEWS: Mention the change.
55846
55847 2008-10-18  Bruno Haible  <bruno@clisp.org>
55848
55849         * lib/fchdir.c: Don't include dirfd.h.
55850         * lib/fts.c: Likewise.
55851         * lib/getcwd.c: Likewise.
55852         * lib/glob.c: Likewise.
55853
55854         Move the dirfd() declaration to <dirent.h>.
55855         * lib/dirfd.h: Remove file.
55856         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55857         (dirfd): New declaration.
55858         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55859         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55860         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55861         HAVE_DECL_DIRFD.
55862         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55863         HAVE_DECL_DIRFD.
55864         * modules/dirfd (Files): Remove lib/dirfd.h.
55865         (Depends-on): Add dirent, extensions.
55866         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55867         (Include): Specify <dirent.h> instead of dirfd.h.
55868         * modules/dirent (Depends-on): Add link-warning.
55869         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55870         definition of GL_LINK_WARNING.
55871         * NEWS: Mention the change.
55872
55873 2008-10-18  Bruno Haible  <bruno@clisp.org>
55874
55875         Move the euidaccess() declaration to <unistd.h>.
55876         * lib/euidaccess.h: Remove file.
55877         * lib/unistd.in.h (euidaccess): New declaration.
55878         * lib/euidaccess.c: Don't include euidaccess.h.
55879         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55880         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55882         and HAVE_EUIDACCESS.
55883         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55884         (Depends-on): Add unistd.
55885         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55886         (Include): Specify <unistd.h> instead of euidaccess.h.
55887         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55888         HAVE_EUIDACCESS.
55889         * NEWS: Mention the change.
55890
55891 2008-10-18  Bruno Haible  <bruno@clisp.org>
55892
55893         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55894
55895         Move the getdomainname() declaration to <unistd.h>.
55896         * lib/getdomainname.h: Remove file.
55897         * lib/unistd.in.h (getdomainname): New declaration.
55898         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55899         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55900         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55901         HAVE_GETDOMAINNAME.
55902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55903         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55904         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55905         (Depends-on): Add unistd, extensions.
55906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55907         (Includes): Specify <unistd.h> instead of getdomainname.h.
55908         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55909         HAVE_GETDOMAINNAME.
55910         * NEWS: Mention the change.
55911
55912 2008-10-18  Bruno Haible  <bruno@clisp.org>
55913
55914         * modules/dirent: New file.
55915         * m4/dirent_h.m4: New file.
55916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55917         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55918         * modules/fchdir (Files): Remove lib/dirent.in.h.
55919         (Depends-on): Add dirent.
55920         (Makefile.am): Move rules to modules/dirent.
55921         * doc/posix-headers/dirent.texi: Mention the new module.
55922
55923 2008-10-18  Bruno Haible  <bruno@clisp.org>
55924
55925         Avoid -Wunused-parameter warnings in public gnulib header files.
55926         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55927         macro.
55928         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55929
55930 2008-10-18  Bruno Haible  <bruno@clisp.org>
55931
55932         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55933         * doc/glibc-functions/error.texi: Mention the module 'error'.
55934         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55935         * doc/glibc-functions/getdomainname.texi: Mention the module
55936         'getdomainname'.
55937         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55938         * doc/glibc-functions/getpagesize.texi: Mention the module
55939         'getpagesize'.
55940         * doc/glibc-functions/getusershell.texi: Mention the module
55941         'getusershell'.
55942         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55943         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55944         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55945         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55946         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55947         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55948         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55949         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55950         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55951         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55952         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55953         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55954         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55955         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55956
55957 2008-10-17  Bruno Haible  <bruno@clisp.org>
55958
55959         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55960         HP-UX and IRIX, use -0.0L.
55961         * tests/test-ceill.c (minus_zero): Likewise.
55962         * tests/test-floorl.c (minus_zero): Likewise.
55963         * tests/test-frexpl.c (minus_zero): Likewise.
55964         * tests/test-isnan.c (minus_zerol): Likewise.
55965         * tests/test-isnanl.h (minus_zero): Likewise.
55966         * tests/test-ldexpl.c (minus_zero): Likewise.
55967         * tests/test-roundl.c (minus_zero): Likewise.
55968         * tests/test-signbit.c (minus_zerol): Likewise.
55969         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55970         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55971         * tests/test-truncl.c (minus_zero): Likewise.
55972         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55973         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55974         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55975         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55976
55977 2008-10-17  Bruno Haible  <bruno@clisp.org>
55978
55979         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55980         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55981         that it gets activated only for gcc >= 3.0.
55982         * lib/dirent.in.h: Likewise.
55983         * lib/errno.in.h: Likewise.
55984         * lib/fcntl.in.h: Likewise.
55985         * lib/float.in.h: Likewise.
55986         * lib/iconv.in.h: Likewise.
55987         * lib/inttypes.in.h: Likewise.
55988         * lib/locale.in.h: Likewise.
55989         * lib/math.in.h: Likewise.
55990         * lib/netdb.in.h: Likewise.
55991         * lib/netinet_in.in.h: Likewise.
55992         * lib/search.in.h: Likewise.
55993         * lib/signal.in.h: Likewise.
55994         * lib/spawn.in.h: Likewise.
55995         * lib/stdarg.in.h: Likewise.
55996         * lib/stdint.in.h: Likewise.
55997         * lib/stdio.in.h: Likewise.
55998         * lib/stdlib.in.h: Likewise.
55999         * lib/string.in.h: Likewise.
56000         * lib/strings.in.h: Likewise.
56001         * lib/sys_file.in.h: Likewise.
56002         * lib/sys_ioctl.in.h: Likewise.
56003         * lib/sys_select.in.h: Likewise.
56004         * lib/sys_socket.in.h: Likewise.
56005         * lib/sys_stat.in.h: Likewise.
56006         * lib/sys_time.in.h: Likewise.
56007         * lib/sysexits.in.h: Likewise.
56008         * lib/time.in.h: Likewise.
56009         * lib/unistd.in.h: Likewise.
56010         * lib/wchar.in.h: Likewise.
56011         * lib/wctype.in.h: Likewise.
56012         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56013
56014 2008-10-17  Jim Meyering  <meyering@redhat.com>
56015
56016         ignore-value: don't depend on inline module
56017         * modules/ignore-value (Depends-on): Remove 'inline'.
56018         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56019         Suggestion from Bruno Haible.
56020
56021 2008-10-17  Bruno Haible  <bruno@clisp.org>
56022
56023         New implementation of condition variables for Win32.
56024         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56025         (gl_linked_waitqueue_t): New type.
56026         (gl_cond_t): Use it.
56027         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56028         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56029         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56030         (glthread_cond_init_func, glthread_cond_wait_func,
56031         glthread_cond_timedwait_func, glthread_cond_signal_func,
56032         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56033         Reimplemented on the basis of gl_linked_waitqueue_t.
56034         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56035         gl_waitqueue_t.
56036         (gl_rwlock_t): Update.
56037         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56038
56039 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56040
56041         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56042         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56043
56044 2008-10-17  Jim Meyering  <meyering@redhat.com>
56045
56046         ignore-value: new module
56047         * modules/ignore-value: New file.
56048         * lib/ignore-value.h: New file.
56049         * MODULES.html.sh (Compiler warning management): New section,
56050         just for this module.  More to come.
56051
56052 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56053
56054         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56055         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56056         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56057
56058 2008-10-16  Jim Meyering  <meyering@redhat.com>
56059
56060         openat-die.c: avoid 'no previous prototype' warning
56061         * lib/openat-die.c: Include "openat.h".
56062         Reported by Reuben Thomas <rrt@sc3d.org>.
56063
56064 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56065
56066         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56067         * lib/netdb.in.h: Fix typo.
56068         Reported by Bruno Haible  <bruno@clisp.org>
56069
56070         * lib/netdb.in.h: Include sys/socket.h for platforms without
56071         netdb.h, to get structures like hostent on MinGW.
56072         * modules/netdb (Depends-on): Add sys_socket.
56073
56074 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56075
56076         * modules/netdb, modules/netdb-tests: New file.
56077         * m4/netdb_h.m4: New file.
56078         * lib/netdb.in.h: Add, currently just an empty file pending
56079         definitions.
56080         * tests/test-netdb.c: New file.
56081         * doc/posix-headers/netdb.texi: Mention that we replace it if
56082         needed.
56083         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56084         netdb.
56085
56086 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56087
56088         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56089         with code.
56090
56091 2008-10-13  Bruno Haible  <bruno@clisp.org>
56092
56093         * lib/glthread/cond.c (glthread_cond_wait_func,
56094         glthread_cond_timedwait_func): Add a comment.
56095
56096 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56097
56098         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56099         * tests/test-select.c: Likewise,
56100
56101 2008-10-13  Bruno Haible  <bruno@clisp.org>
56102
56103         * lib/glthread/cond.c (glthread_cond_wait_func,
56104         glthread_cond_timedwait_func): Fix variable name.
56105         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56106
56107 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56108
56109         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56110         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56111         struct sockaddr.sa_len.
56112         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56113
56114 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56115
56116         * build-aux/pmccabe2html: Add css and css_url parameters.
56117
56118 2008-10-12  Bruno Haible  <bruno@clisp.org>
56119
56120         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56121         calling aclx_get.
56122         Reported by Rainer Tammer <tammer@tammer.net>.
56123
56124 2008-10-12  Bruno Haible  <bruno@clisp.org>
56125
56126         Use msvcrt aware primitives for creation/termination of Win32 threads.
56127         * lib/glthread/thread.c: Include <process.h>.
56128         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56129         (wrapper_func): Update signature.
56130         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56131
56132 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56133             Bruno Haible  <bruno@clisp.org>
56134
56135         Provide a Win32 implementation of the 'cond' module.
56136         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56137         * lib/glthread/cond.c (glthread_cond_init_func,
56138         glthread_cond_wait_func, glthread_cond_timedwait_func,
56139         glthread_cond_signal_func, glthread_cond_broadcast_func,
56140         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56141         * modules/cond (Dependencies): Add gettimeofday.
56142
56143 2008-10-11  Bruno Haible  <bruno@clisp.org>
56144
56145         Make sleep work on older versions of mingw.
56146         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56147         only whether it exists.
56148         * doc/posix-functions/sleep.texi: Mention the problem with older
56149         versions of mingw.
56150
56151 2008-10-11  Bruno Haible  <bruno@clisp.org>
56152
56153         New module 'shutdown'.
56154         * modules/shutdown: New file.
56155         * lib/sys_socket.in.h (shutdown): New declaration.
56156         * lib/winsock.c (shutdown): New function.
56157         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56158         GNULIB_SHUTDOWN.
56159         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56160         * doc/posix-functions/shutdown.texi: Document the new module.
56161
56162 2008-10-11  Jim Meyering  <meyering@redhat.com>
56163
56164         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56165
56166 2008-10-11  Bruno Haible  <bruno@clisp.org>
56167
56168         New module 'fclose'.
56169         * modules/fclose: New file.
56170         * lib/stdio.in.h (fclose): New declaration.
56171         * lib/fclose.c: New file.
56172         * m4/fclose.m4: New file.
56173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56174         REPLACE_FCLOSE.
56175         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56176         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56177         REPLACE_FCLOSE.
56178         * modules/close (Depends-on): fclose.
56179         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56180
56181 2008-10-11  Bruno Haible  <bruno@clisp.org>
56182
56183         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56184         set errno and don't call _close.
56185
56186 2008-10-10  Bruno Haible  <bruno@clisp.org>
56187
56188         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56189         ACL, not afterwards. Fixes test failure on Cygwin.
56190
56191 2008-10-09  Ben Pfaff  <blp@gnu.org>
56192
56193         * build-aux/announce-gen: Fix gnulib version related part of usage
56194         message.  Die with a useful error message if no tarballs are
56195         found.
56196
56197 2008-10-10  Jim Meyering  <meyering@redhat.com>
56198
56199         bootstrap: use git's --depth=N option only if it's supported
56200         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56201         recognize the --depth option.  Reported by Pádraig Brady.
56202
56203 2008-10-09  Bruno Haible  <bruno@clisp.org>
56204
56205         New module 'ioctl'.
56206         * modules/ioctl: New file.
56207         * lib/sys_socket.in.h (ioctl): Remove declaration.
56208         * lib/winsock.c: Include <sys/ioctl.h>.
56209         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56210         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56211         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56212         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56213         * doc/posix-functions/ioctl.texi: Mention the new module.
56214
56215 2008-10-09  Bruno Haible  <bruno@clisp.org>
56216
56217         New module 'sys_ioctl'.
56218         * lib/sys_ioctl.in.h: New file.
56219         * m4/sys_ioctl_h.m4: New file.
56220         * modules/sys_ioctl: New file.
56221         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56222
56223 2008-10-09  Bruno Haible  <bruno@clisp.org>
56224
56225         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56226         * lib/winsock.c: Include <stdarg.h>.
56227         (rpl_ioctl): Change to second argument 'int' and then varargs.
56228
56229 2008-10-09  Bruno Haible  <bruno@clisp.org>
56230
56231         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56232         when the sys_socket module is present and the system has <winsock2.h>.
56233
56234 2008-10-09  Bruno Haible  <bruno@clisp.org>
56235
56236         * doc/posix-functions/close.texi: Mention module 'close' instead of
56237         module 'sys_socket'.
56238
56239 2008-10-09  Bruno Haible  <bruno@clisp.org>
56240
56241         * doc/glibc-headers/sys_ioctl.texi: New file.
56242         * doc/gnulib.texi: Include it.
56243
56244 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56245             Bruno Haible  <bruno@clisp.org>
56246
56247         Combine the two replacements of 'close'.
56248         * lib/sys_socket.in.h (close): Define to a reminder to include
56249         <unistd.h>.
56250         (_gl_close_fd_maybe_socket): New declaration.
56251         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56252         * lib/winsock.c (close): Remove undefinition.
56253         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56254         needed for the gnulib module 'close'.
56255         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56256         define to an error symbol or to a warning, if suitable.
56257         * lib/close.c: Include <sys/socket.h>.
56258         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56259         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56260         UNISTD_H_HAVE_WINSOCK2_H.
56261         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56263         UNISTD_H_HAVE_WINSOCK2_H.
56264         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56265         (configure.ac): Set a module indicator.
56266         (Makefile.am): Substitute GNULIB_CLOSE.
56267         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56268         * modules/poll-tests (Depends-on): Add close.
56269         * modules/select-tests (Depends-on): Likewise.
56270
56271 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56272             Bruno Haible  <bruno@clisp.org>
56273
56274         New module 'close'.
56275         * modules/close: New file.
56276         * lib/unistd.in.h (close): Move declaration out of the
56277         FCHDIR_REPLACEMENT scope.
56278         (_gl_unregister_fd): New declaration.
56279         * lib/close.c: New file.
56280         * lib/fchdir.c (rpl_close): Remove function.
56281         * m4/close.m4: New file.
56282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56283         close.
56284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56285         REPLACE_CLOSE.
56286         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56287         REPLACE_CLOSE.
56288         * modules/fchdir (Depends-on): Add close.
56289
56290 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56291             Bruno Haible  <bruno@clisp.org>
56292
56293         * lib/fcntl.in.h (open): Simplify conditionals.
56294         (_gl_register_fd): New declaration.
56295         * lib/fchdir.c (rpl_open): Remove function.
56296         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56297         also.
56298         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56300         open.
56301
56302 2008-10-09  Jim Meyering  <meyering@redhat.com>
56303
56304         GNUmakefile: use the more name-space-friendly "_version"
56305         * top/GNUmakefile (_dummy): Update.
56306         (_version): Rename from "version".
56307
56308 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56309             Bruno Haible  <bruno@clisp.org>
56310
56311         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56312         rpl_close.
56313         (_gl_register_fd): New function, extracted from rpl_open.
56314         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56315         (rpl_open, rpl_opendir): Use _gl_register_fd.
56316
56317 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56318
56319         Fix organization of 'open' replacement.
56320         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56321         (gl_FUNC_OPEN): Use it.
56322         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56323
56324 2008-10-08  Bruno Haible  <bruno@clisp.org>
56325
56326         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56327
56328 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56329
56330         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56331         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56332         listen).
56333
56334 2008-10-08  Eric Blake  <ebb9@byu.net>
56335
56336         GNUmakefile: add 'make version' target
56337         * top/GNUmakefile (_curr-ver): Split version update rules...
56338         (version): ...into a target.
56339
56340 2008-10-07  Bruno Haible  <bruno@clisp.org>
56341
56342         Use a more portable replacement expression for -0.0L.
56343         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56344         instead of -0.0L. Fix m4 quotation.
56345
56346         * tests/test-signbit.c: Include <float.h>.
56347         (minus_zero): New variable.
56348         (test_signbitl): Use minus_zero instead of -zero.
56349         * modules/signbit-tests (Depends-on): Add float.
56350
56351         * tests/test-ceill.c: Include <float.h>.
56352         (zero): Remove variable.
56353         (minus_zero): New variable.
56354         (main): Use minus_zero instead of -zero.
56355         * modules/ceill-tests (Depends-on): Add float.
56356
56357         * tests/test-floorl.c: Include <float.h>.
56358         (zero): Remove variable.
56359         (minus_zero): New variable.
56360         (main): Use minus_zero instead of -zero.
56361         * modules/floorl-tests (Depends-on): Add float.
56362
56363         * tests/test-roundl.c: Include <float.h>.
56364         (zero): Remove variable.
56365         (minus_zero): New variable.
56366         (main): Use minus_zero instead of -zero.
56367         * modules/roundl-tests (Depends-on): Add float.
56368
56369         * tests/test-truncl.c: Include <float.h>.
56370         (zero): Remove variable.
56371         (minus_zero): New variable.
56372         (main): Use minus_zero instead of -zero.
56373         * modules/truncl-tests (Depends-on): Add float.
56374
56375         * tests/test-frexpl.c (zero): Remove variable.
56376         (minus_zero): New variable.
56377         (main): Use minus_zero instead of -zero.
56378         * modules/frexpl-tests (Depends-on): Add float.
56379
56380         * tests/test-isnan.c (zerol): Remove variable.
56381         (minus_zerol): New variable.
56382         (test_long_double): Use minus_zerol instead of -zerol.
56383         * modules/isnan-tests (Depends-on): Add float.
56384
56385         * tests/test-isnanl.h (zero): Remove variable.
56386         (minus_zero): New variable.
56387         (main): Use minus_zero instead of -zero.
56388         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56389         * modules/isnanl-tests (Depends-on): Add float.
56390
56391         * tests/test-ldexpl.c (zero): Remove variable.
56392         (minus_zero): New variable.
56393         (main): Use minus_zero instead of -zero.
56394         * modules/ldexpl-tests (Depends-on): Add float.
56395
56396         * tests/test-snprintf-posix.h (zerol): Remove variable.
56397         (minus_zerol): New variable.
56398         (test_function): Use minus_zerol instead of -zerol.
56399         * modules/snprintf-posix-tests (Depends-on): Add float.
56400         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56401
56402         * tests/test-sprintf-posix.h (zerol): Remove variable.
56403         (minus_zerol): New variable.
56404         (test_function): Use minus_zerol instead of -zerol.
56405         * modules/sprintf-posix-tests (Depends-on): Add float.
56406         * modules/vsprintf-posix-tests (Depends-on): Add float.
56407
56408         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56409         (minus_zerol): New variable.
56410         (test_function): Use minus_zerol instead of -zerol.
56411         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56412
56413         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56414         (minus_zerol): New variable.
56415         (test_function): Use minus_zerol instead of -zerol.
56416         * modules/vasprintf-posix-tests (Depends-on): Add float.
56417
56418 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56419
56420         * MODULES.html.sh (Support for building documentation): Mention
56421         pmccabe2html.  Sort entries.
56422
56423         Add pmccabe2html module, from gnupdf.
56424         * build-aux/pmccabe.css: New file.
56425         * build-aux/pmccabe2html: New file.
56426         * m4/pmccabe2html.m4: New file.
56427         * modules/pmccabe2html: New file.
56428
56429 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56430
56431         flock: new module
56432         * MODULES.html.sh: Add to list of modules.
56433         * lib/flock.c: flock implementation for Windows and Unix systems
56434         which have fcntl.
56435         * doc/glibc-functions/flock.texi: Update documentation.
56436         * lib/sys_file.in.h: <sys/file.h> header file.
56437         * m4/flock.m4: M4 macros.
56438         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56439         * modules/flock: flock module.
56440         * modules/flock-tests: flock tests module.
56441         * modules/sys_file: sys/file.h module.
56442         * tests/test-flock.c: test suite for flock.
56443
56444 2008-10-06  Jim Meyering  <meyering@redhat.com>
56445
56446         bootstrap: check for LT_INIT more portably still ;-)
56447         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56448         Spotted by Bruno Haible.
56449
56450 2008-10-06  Eric Blake  <ebb9@byu.net>
56451
56452         test-signbit: avoid tripping Irix cc bug on -0.0L
56453         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56454         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56455         entire testsuite consistent and avoids an Irix 6.2 bug.
56456
56457 2008-10-05  Bruno Haible  <bruno@clisp.org>
56458             Jim Meyering  <jim@meyering.net>
56459
56460         Add an option for ignoring EPIPE during close_stdout.
56461         * lib/closeout.h: Include <stdbool.h>.
56462         (close_stdout_set_ignore_EPIPE): New declaration.
56463         * lib/closeout.c: Include <stdbool.h>.
56464         (ignore_EPIPE): New variable.
56465         (close_stdout_set_ignore_EPIPE): New function.
56466         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56467         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56468         failure.
56469         * modules/closeout (Depends-on): Add stdbool.
56470
56471 2008-10-05  Bruno Haible  <bruno@clisp.org>
56472
56473         * modules/accept: New file.
56474         * modules/bind: New file.
56475         * modules/connect: New file.
56476         * modules/getpeername: New file.
56477         * modules/getsockname: New file.
56478         * modules/getsockopt: New file.
56479         * modules/listen: New file.
56480         * modules/recv: New file.
56481         * modules/recvfrom: New file.
56482         * modules/send: New file.
56483         * modules/sendto: New file.
56484         * modules/setsockopt: New file.
56485         * modules/socket: New file.
56486         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56487         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56488         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56489         the particular module is requested. Add a link warning when the
56490         particular module is not requested.
56491         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56492         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56493         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56494         the particular module is requested.
56495         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56496         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56497         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56498         * modules/sys_socket (Depends-on): Add link-warning.
56499         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56500         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56501         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56502         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56503         GL_LINK_WARNING.
56504         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56505         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56506         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56507         * doc/posix-functions/getpeername.texi: Mention the new module
56508         'getpeername'.
56509         * doc/posix-functions/getsockname.texi: Mention the new module
56510         'getsockname'.
56511         * doc/posix-functions/getsockopt.texi: Mention the new module
56512         'getsockopt'.
56513         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56514         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56515         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56516         * doc/posix-functions/send.texi: Mention the new module 'send'.
56517         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56518         * doc/posix-functions/setsockopt.texi: Mention the new module
56519         'setsockopt'.
56520         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56521         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56522         listen, connect, accept.
56523         * modules/select-tests (Depends-on): Likewise.
56524
56525 2008-10-05  Bruno Haible  <bruno@clisp.org>
56526
56527         * lib/winsock.c (strerror): Remove unused #undef.
56528         (rpl_close): Remove unused local variable.
56529
56530         * modules/sys_socket (Depends-on); Add errno.
56531
56532 2008-10-05  Bruno Haible  <bruno@clisp.org>
56533
56534         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56535         (select): Add a link warning when the 'select' module is not used.
56536         * modules/sys_select (Depends-on): Add link-warning.
56537         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56538         Suggested by Paolo Bonzini.
56539
56540 2008-10-05  Jim Meyering  <meyering@redhat.com>
56541
56542         bootstrap: check for LT_INIT more portably
56543         * build-aux/bootstrap: Avoid using grep -E, since it's not
56544         portable enough.  Suggestion from Bruno Haible.
56545
56546 2008-10-05  Bruno Haible  <bruno@clisp.org>
56547
56548         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56549         as being fixed by gnulib.
56550
56551 2008-10-05  Bruno Haible  <bruno@clisp.org>
56552
56553         * modules/select-tests: New file, mostly copied from
56554         modules/sys_select-tests.
56555         * tests/test-select.c: New file, mostly copied from
56556         tests/test-sys_select.c.
56557         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56558         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56559         (Makefile.am): Remove test_sys_select_LDADD.
56560
56561         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56562         to an undefined symbol, for an error message.
56563         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56564         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56565         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56566         winsock-select.c here.
56567         * modules/sys_select (Files): Remove lib/winsock-select.c.
56568         (Depends-on): Remove alloca.
56569         (Makefile.am): Substitute GNULIB_SELECT.
56570         * modules/select: New file.
56571         * doc/posix-functions/select.texi: Update.
56572
56573 2008-10-05  Bruno Haible  <bruno@clisp.org>
56574
56575         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56576         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56577         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56578         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56579         getdtablesize.
56580         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56581         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56582
56583 2008-10-05  Bruno Haible  <bruno@clisp.org>
56584
56585         * modules/getdtablesize-tests: New file.
56586         * tests/test-getdtablesize.c: New file.
56587
56588         New module 'getdtablesize'.
56589         * lib/unistd.in.h (getdtablesize): New declaration.
56590         * lib/getdtablesize.c: New file.
56591         * m4/getdtablesize.m4: New file.
56592         * modules/getdtablesize: New file.
56593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56594         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56595         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56596         HAVE_GETDTABLESIZE.
56597         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56598
56599 2008-10-05  Bruno Haible  <bruno@clisp.org>
56600
56601         * modules/sched (Makefile.am): Fix typo.
56602         Reported by Simon Josefsson.
56603
56604 2008-10-05  Jim Meyering  <meyering@redhat.com>
56605
56606         bootstrap: check for LT_INIT, too
56607         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56608         are deprecated.  Suggestion from Ralf Wildenhues.
56609
56610 2008-10-05  Bruno Haible  <bruno@clisp.org>
56611
56612         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56613         overriding them by ours.
56614         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56615
56616 2008-10-05  Jim Meyering  <meyering@redhat.com>
56617
56618         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56619         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56620         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56621
56622 2008-10-04  Bruno Haible  <bruno@clisp.org>
56623
56624         * modules/dup2 (License): Change to LGPLv2+.
56625         * modules/sleep (License): Likewise.
56626         * modules/perror (License): Likewise.
56627         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56628         Blake.
56629         * modules/signal (License): Likewise.
56630         * modules/sigprocmask (License): Likewise.
56631         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56632         Meyering.
56633
56634 2008-10-04  Bruno Haible  <bruno@clisp.org>
56635
56636         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56637         Reported by Rainer Tammer <tammer@tammer.net>.
56638
56639 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56640             Bruno Haible  <bruno@clisp.org>
56641
56642         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56643         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56644         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56645
56646 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56647
56648         filevercmp: new module
56649         * lib/filevercmp.h: New function filevercmp comparing version strings.
56650         * lib/filevercmp.c: Implementation of filevercmp function.
56651         * modules/filevercmp: Module metadata.
56652         * tests/test-filevercmp.c: Unit test for new module.
56653         * modules/filevercmp-tests: Unit test metadata.
56654         * MODULES.html.sh: Add filevercmp module.
56655
56656 2008-10-03  Bruno Haible  <bruno@clisp.org>
56657
56658         * lib/c-ctype.h: Add comment.
56659         Reported by Jim Meyering.
56660
56661 2008-10-02  Bruno Haible  <bruno@clisp.org>
56662
56663         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56664
56665 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56666
56667         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56668         name of bootstrap.conf accordingly.
56669
56670 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56671
56672         * build-aux/bootstrap: Install git-merge-changelog configuration
56673         items into .gitconfig if needed.
56674
56675 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56676
56677         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56678         git repository, and initialize/update it accordingly.
56679
56680 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56681
56682         * modules/fsync-tests: New file.
56683         * tests/test-fsync.c: New file.
56684
56685         New module 'fsync'.
56686         * lib/fsync.c: New file.
56687         * m4/fsync.m4: New file.
56688         * modules/fsync: New file.
56689         * lib/unistd.in.h (fsync): New declaration.
56690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56691         GNULIB_FSYNC and HAVE_FSYNC.
56692         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56693         * MODULES.html.sh (posix_functions): Add fsync.
56694         * doc/posix-functions/fsync.texi: Mention the new module.
56695
56696 2008-10-02  Jim Meyering  <meyering@redhat.com>
56697
56698         fts.c: sync with similar code from coreutils' remove.c
56699         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56700         Guard also with "#if defined __linux__", since for now at least,
56701         this code is Linux-kernel-specific.
56702
56703 2008-10-02  Jim Meyering  <meyering@redhat.com>
56704
56705         fts: bug fixes
56706         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56707         Include <sys/vfs.h>, not <sys/statfs.h>.
56708
56709         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56710         Include <sys/vfs.h>, not <sys/statfs.h>.
56711
56712 2008-10-01  Bruno Haible  <bruno@clisp.org>
56713
56714         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56715         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56716         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56717         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56718         * doc/posix-functions/posix_spawnp.texi: Likewise.
56719         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56720         whether posix_spawn actually works.
56721         * m4/pipe.m4 (gl_PIPE): Likewise.
56722         * modules/execute (Files): Add m4/posix_spawn.m4.
56723         * modules/pipe (Files): Add m4/posix_spawn.m4.
56724         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56725
56726 2008-10-01  Jim Meyering  <meyering@redhat.com>
56727
56728         remove trailing spaces
56729         * NEWS: Likewise.
56730         * lib/poll.c (poll): Likewise.
56731         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56732         * lib/winsock.c (rpl_close): Likewise.
56733         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56734         * modules/yield: Likewise.
56735         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56736         * tests/test-sys_select.c (connect_to_socket): Likewise.
56737
56738         fts.c: adjust a new interface to be more generally useful
56739         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56740         (fts_build): Adjust caller.
56741
56742 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56743
56744         * modules/cond-tests: New file.
56745         * tests/test-cond.c: New file.
56746
56747 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56748             Bruno Haible  <bruno@clisp.org>
56749
56750         * modules/cond (Dependencies): Add errno, time.
56751         * lib/glthread/cond.h: Include <time.h>.
56752         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56753         across platforms.
56754
56755 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56756             Bruno Haible  <bruno@clisp.org>
56757
56758         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56759
56760 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56761             Bruno Haible  <bruno@clisp.org>
56762
56763         * modules/tls-tests (Depends-on): Add thread, yield.
56764         (configure.ac): Remove all checks.
56765         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56766         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56767         gl_thread_self): Remove definitions. Include glthread/thread.h and
56768         glthread/yield.h instead.
56769         (test_tls): Pass an additional NULL argument to gl_thread_join.
56770
56771 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56772             Bruno Haible  <bruno@clisp.org>
56773
56774         * modules/lock-tests (Depends-on): Add thread, yield.
56775         (configure.ac): Remove all checks.
56776         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56777         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56778         gl_thread_self): Remove definitions. Include glthread/thread.h and
56779         glthread/yield.h instead.
56780         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56781         additional NULL argument to gl_thread_join.
56782
56783 2008-09-30  Bruno Haible  <bruno@clisp.org>
56784
56785         Fix the Win32 implementation of the 'thread' module.
56786         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56787         pointer type.
56788         (gl_thread_self): Invoke gl_thread_self_func.
56789         (gl_thread_self_func): New declaration.
56790         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56791         (do_init_self_key, init_self_key): New functions.
56792         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56793         Remove some fields.
56794         (running_threads, running_lock): Remove variables.
56795         (get_current_thread_handle): New function.
56796         (gl_thread_self_func, wrapper_func, glthread_create_func,
56797         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56798         simplified.
56799
56800 2008-09-30  Bruno Haible  <bruno@clisp.org>
56801
56802         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56803         files.
56804
56805 2008-09-30  Jim Meyering  <meyering@redhat.com>
56806
56807         fts.m4: correct the test for statfs.f_type
56808         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56809         when checking for statfs.f_type.
56810
56811 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56812
56813         tests: avoid some compiler warnings
56814         * tests/test-memchr.c (main): Pass NULL indirectly.
56815         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56816
56817 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
56818
56819         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56820         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56821         exactly specified dayshifts.
56822         (dayshift): New rule.
56823         (rel): Add dayshift.
56824         (relative_time_table) [tomorrow, yesterday, today, now]:
56825         Use tDAY_SHIFT in place of tDAY_UNIT.
56826         * tests/test-getdate.c: Add tests for now-disallowed countable
56827         dayshifts, e.g., "4 yesterday ago".
56828
56829 2008-09-29  Bruno Haible  <bruno@clisp.org>
56830
56831         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56832         * tests/test-posix_spawn1.in.sh: Renamed from
56833         tests/test-posix_spawn.in.sh.
56834         * tests/test-posix_spawn2.c: New file.
56835         * tests/test-posix_spawn2.in.sh: New file.
56836         * modules/posix_spawnp-tests (Files): Update.
56837         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56838
56839 2008-09-29  Bruno Haible  <bruno@clisp.org>
56840
56841         Propagate effects of putenv/setenv/unsetenv to child processes.
56842         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56843         * lib/pipe.c (create_pipe): Likewise.
56844
56845 2008-09-29  Bruno Haible  <bruno@clisp.org>
56846
56847         Enable use of shell scripts as executables in mingw.
56848         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56849         run the program as a shell script.
56850         * lib/pipe.c (create_pipe): Likewise.
56851         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56852         resulting array.
56853
56854 2008-09-29  Eric Blake  <ebb9@byu.net>
56855
56856         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56857
56858 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56859
56860         * doc/posix-functions/accept.texi: Update mingw problems.
56861         * doc/posix-functions/bind.texi: Update mingw problems.
56862         * doc/posix-functions/close.texi: Update mingw problems.
56863         * doc/posix-functions/connect.texi: Update mingw problems.
56864         * doc/posix-functions/getpeername.texi: Update mingw problems.
56865         * doc/posix-functions/getsockname.texi: Update mingw problems.
56866         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56867         * doc/posix-functions/ioctl.texi: Update mingw problems.
56868         * doc/posix-functions/listen.texi: Update mingw problems.
56869         * doc/posix-functions/recv.texi: Update mingw problems.
56870         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56871         * doc/posix-functions/select.texi: Update mingw problems.
56872         * doc/posix-functions/send.texi: Update mingw problems.
56873         * doc/posix-functions/sendto.texi: Update mingw problems.
56874         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56875         * doc/posix-functions/socket.texi: Update mingw problems.
56876
56877 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56878             Bruno Haible  <bruno@clisp.org>
56879
56880         * lib/sys_select.in.h: Include sys/time.h.
56881         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56882         * modules/sys_select: Depend on sys_time.
56883         * tests/test-sys_select.c: Test that sys/select.h defines struct
56884         timeval fully.
56885
56886 2008-09-29  Bruno Haible  <bruno@clisp.org>
56887
56888         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56889         * lib/sys_select.in.h: Likewise.
56890
56891 2008-09-29  Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56894
56895 2008-09-29  Bruno Haible  <bruno@clisp.org>
56896
56897         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56898         Set LIBSOCKET instead of augmenting LIBS.
56899         * modules/sockets (Link): New section.
56900         * modules/sockets-tests (test_sockets_LDADD): New variable.
56901         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56902         * modules/poll-tests (test_poll_LDADD): New variable.
56903         * NEWS: Document the change.
56904
56905 2008-09-29  Bruno Haible  <bruno@clisp.org>
56906
56907         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56908         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56909         ARPA_INET_H directly.
56910         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56911
56912 2008-09-28  Bruno Haible  <bruno@clisp.org>
56913
56914         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56915         from gl_HEADER_SYS_SOCKET.
56916         (gl_HEADER_SYS_SOCKET): Invoke it.
56917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56918
56919 2008-09-28  Bruno Haible  <bruno@clisp.org>
56920
56921         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56922         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56923         Needed on OSF/1 4.0.
56924
56925 2008-09-28  Bruno Haible  <bruno@clisp.org>
56926
56927         Override open more carefully.
56928         * lib/open.c (orig_open): New function.
56929         (rpl_open): Use orig_open instead of open.
56930         * lib/fcntl.in.h: Add special invocation convention.
56931         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56932         (gl_FUNC_OPEN): Invoke it.
56933
56934         Override freopen more carefully.
56935         * lib/freopen.c (orig_freopen): New function.
56936         (rpl_freopen): Use orig_freopen instead of freopen.
56937         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56938         (gl_FUNC_FREOPEN): Invoke it.
56939
56940         Override fopen more carefully.
56941         * lib/fopen.c (orig_fopen): New function.
56942         (rpl_fopen): Use orig_fopen instead of fopen.
56943         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56944         (gl_FUNC_FOPEN): Invoke it.
56945         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56946
56947 2008-09-28  Bruno Haible  <bruno@clisp.org>
56948
56949         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56950         SIGPIPE.
56951
56952 2008-09-28  Bruno Haible  <bruno@clisp.org>
56953
56954         * tests/test-sigaction.c (handler, main): Disable the check whether
56955         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56956         glibc systems with LinuxThreads.
56957
56958 2008-09-28  Bruno Haible  <bruno@clisp.org>
56959
56960         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56961
56962         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56963         with AIX xlc.
56964         * lib/fcntl.in.h (open): Likewise.
56965         Reported by Rainer Tammer <tammer@tammer.net>.
56966
56967 2008-09-28  Bruno Haible  <bruno@clisp.org>
56968
56969         * modules/posix_spawnp-tests: New file.
56970         * tests/test-posix_spawn.c: New file.
56971         * tests/test-posix_spawn.in.sh: New file.
56972
56973         New module 'posix_spawnp'.
56974         * modules/posix_spawnp: New file.
56975         * lib/spawnp.c: New file, from GNU libc with modifications.
56976         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56977
56978         New module 'posix_spawn'.
56979         * modules/posix_spawn: New file.
56980         * lib/spawn.c: New file, from GNU libc with modifications.
56981         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56982
56983         New module 'posix_spawnattr_destroy'.
56984         * modules/posix_spawnattr_destroy: New file.
56985         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56986         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56987         module.
56988
56989         New module 'posix_spawnattr_setsigmask'.
56990         * modules/posix_spawnattr_setsigmask: New file.
56991         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56992         modifications.
56993         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56994         new module.
56995
56996         New module 'posix_spawnattr_getsigmask'.
56997         * modules/posix_spawnattr_getsigmask: New file.
56998         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56999         modifications.
57000         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57001         new module.
57002
57003         New module 'posix_spawnattr_setsigdefault'.
57004         * modules/posix_spawnattr_setsigdefault: New file.
57005         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57006         modifications.
57007         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57008         new module.
57009
57010         New module 'posix_spawnattr_getsigdefault'.
57011         * modules/posix_spawnattr_getsigdefault: New file.
57012         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57013         modifications.
57014         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57015         new module.
57016
57017         New module 'posix_spawnattr_setschedpolicy'.
57018         * modules/posix_spawnattr_setschedpolicy: New file.
57019         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57020         modifications.
57021         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57022         new module.
57023
57024         New module 'posix_spawnattr_getschedpolicy'.
57025         * modules/posix_spawnattr_getschedpolicy: New file.
57026         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57027         modifications.
57028         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57029         new module.
57030
57031         New module 'posix_spawnattr_setschedparam'.
57032         * modules/posix_spawnattr_setschedparam: New file.
57033         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57034         modifications.
57035         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57036         new module.
57037
57038         New module 'posix_spawnattr_getschedparam'.
57039         * modules/posix_spawnattr_getschedparam: New file.
57040         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57041         modifications.
57042         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57043         new module.
57044
57045         New module 'posix_spawnattr_setpgroup'.
57046         * modules/posix_spawnattr_setpgroup: New file.
57047         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57048         modifications.
57049         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57050         module.
57051
57052         New module 'posix_spawnattr_getpgroup'.
57053         * modules/posix_spawnattr_getpgroup: New file.
57054         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57055         modifications.
57056         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57057         module.
57058
57059         New module 'posix_spawnattr_setflags'.
57060         * modules/posix_spawnattr_setflags: New file.
57061         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57062         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57063         module.
57064
57065         New module 'posix_spawnattr_getflags'.
57066         * modules/posix_spawnattr_getflags: New file.
57067         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57068         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57069         module.
57070
57071         New module 'posix_spawnattr_init'.
57072         * modules/posix_spawnattr_init: New file.
57073         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57074         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57075         module.
57076
57077         New module 'posix_spawn_file_actions_destroy'.
57078         * modules/posix_spawn_file_actions_destroy: New file.
57079         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57080         modifications.
57081         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57082         the new module.
57083
57084         New module 'posix_spawn_file_actions_addopen'.
57085         * modules/posix_spawn_file_actions_addopen: New file.
57086         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57087         modifications.
57088         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57089         the new module.
57090
57091         New module 'posix_spawn_file_actions_adddup2'.
57092         * modules/posix_spawn_file_actions_adddup2: New file.
57093         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57094         modifications.
57095         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57096         the new module.
57097
57098         New module 'posix_spawn_file_actions_addclose'.
57099         * modules/posix_spawn_file_actions_addclose: New file.
57100         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57101         modifications.
57102         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57103         the new module.
57104
57105         New module 'posix_spawn_file_actions_init'.
57106         * modules/posix_spawn_file_actions_init: New file.
57107         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57108         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57109         new module.
57110
57111         New module 'posix_spawn-internal'.
57112         * modules/posix_spawn-internal: New file.
57113         * lib/spawn_int.h: New file, from GNU libc with modifications.
57114         * lib/spawni.c: New file, from GNU libc with modifications.
57115         * m4/posix_spawn.m4: New file.
57116
57117         New module 'spawn'.
57118         * modules/spawn: New file.
57119         * lib/spawn.in.h: New file, from GNU libc with modifications.
57120         * m4/spawn_h.m4: New file.
57121         * doc/posix-headers/spawn.texi: Mention the new module.
57122
57123 2008-09-28  Bruno Haible  <bruno@clisp.org>
57124
57125         * modules/sched-tests: New file.
57126         * tests/test-sched.c: New file.
57127
57128         New module 'sched'.
57129         * modules/sched: New file.
57130         * lib/sched.in.h: New file.
57131         * m4/sched_h.m4: New file.
57132         * doc/posix-headers/sched.texi: Mention the new module.
57133
57134 2008-09-27  Eric Blake  <ebb9@byu.net>
57135
57136         Fix previous patch, and tweak references to $0.
57137         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57138         (func_version, func_gnulib_dir): Don't call this program
57139         gnulib-tool.
57140         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57141         with using $0 in function.
57142         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57143         (func_fatal_error): Reuse the name the user invoked us with.
57144
57145 2008-09-27  Bruno Haible  <bruno@clisp.org>
57146
57147         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57148         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57149         (gl_ICONV_H): Not here.
57150         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57151         instead of assigning ICONV_H directly.
57152
57153         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57155         WCHAR_H directly.
57156
57157 2008-09-27  Bruno Haible  <bruno@clisp.org>
57158
57159         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57160         * modules/arpa_inet (Depends-on): Add link-warning.
57161         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57162         * modules/unistd (Makefile.am): Likewise.
57163
57164 2008-09-26  Bruno Haible  <bruno@clisp.org>
57165
57166         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57167         variables.
57168         (func_version): Essentially copied from gnulib-tool.
57169         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57170         func_readlink): Copied from gnulib-tool.
57171
57172 2008-09-26  Bruno Haible  <bruno@clisp.org>
57173
57174         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57175         invoking git-version-gen.
57176
57177 2008-09-26  Bruno Haible  <bruno@clisp.org>
57178
57179         * posix-modules: Update to directory names changed on 2008-01-19.
57180         Remove commas in output before splitting into words. No more need to
57181         avoid 'ftruncate' since 2007-02-19.
57182
57183 2008-09-26  Bruno Haible  <bruno@clisp.org>
57184
57185         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57186
57187 2008-09-26  Bruno Haible  <bruno@clisp.org>
57188
57189         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57190         * modules/fwriteerror (Depends-on): Add errno.
57191
57192 2008-09-26  Bruno Haible  <bruno@clisp.org>
57193
57194         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57195         * tests/test-vc-list-files-cvs.sh: Likewise.
57196
57197 2008-09-26  Bruno Haible  <bruno@clisp.org>
57198
57199         * doc/posix-headers/sys_resource.texi: Reorder items.
57200
57201 2008-09-26  Jim Meyering  <meyering@redhat.com>
57202
57203         fts: tweak inode comparison function
57204         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57205         inode numbers, as documented.
57206
57207         fts: sort dirent entries on inode number before traversing
57208         This avoids a quadratic, seek-related performance penalty when
57209         operating on a directory containing many entries (measurable at 10k;
57210         3.5 hours at 2 million entries with a cold cache) on certain types
57211         of file systems, including ext3 and ext4, but not tmpfs.
57212         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57213         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57214         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57215         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57216         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57217         (fts_build): Set the stat.st_ino member from D_INO.
57218         If it is likely to be useful, sort dirent entries on inode number.
57219
57220         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57221         and the struct statfs.f_type member.
57222         * modules/fts (Depends-on): Add d-ino.
57223
57224 2008-09-26  Bruno Haible  <bruno@clisp.org>
57225
57226         * modules/sigpipe-die (Depends-on): Add sigpipe.
57227
57228         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57229         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57230         and GNULIB_STDIO_H_SIGPIPE are set.
57231         * lib/stdio-write.c: New file.
57232         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57233         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57234         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57235         REPLACE_STDIO_WRITE_FUNCS.
57236         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57237         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57238         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57239         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57240         * modules/stdio (Files): Add lib/stdio-write.c.
57241         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57242         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57243         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57244         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57245         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57246         REPLACE_FPRINTF_POSIX.
57247         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57248         REPLACE_PRINTF_POSIX.
57249         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57250         REPLACE_VFPRINTF_POSIX.
57251         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57252         REPLACE_VPRINTF_POSIX.
57253         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57254         SIGPIPE issue.
57255         * doc/posix-functions/fputc.texi: Likewise.
57256         * doc/posix-functions/fputs.texi: Likewise.
57257         * doc/posix-functions/fwrite.texi: Likewise.
57258         * doc/posix-functions/printf.texi: Likewise.
57259         * doc/posix-functions/putc.texi: Likewise.
57260         * doc/posix-functions/putchar.texi: Likewise.
57261         * doc/posix-functions/puts.texi: Likewise.
57262         * doc/posix-functions/vfprintf.texi: Likewise.
57263         * doc/posix-functions/vprintf.texi: Likewise.
57264
57265         * modules/safe-write (Depends-on): Add write.
57266
57267         * modules/sigpipe-tests: New file.
57268         * tests/test-sigpipe.c: New file.
57269         * tests/test-sigpipe.sh: New file.
57270
57271         * modules/write: New file.
57272         * lib/unistd.in.h: Include <sys/types.h>.
57273         (write): New declaration.
57274         * lib/write.c: New file.
57275         * m4/write.m4: New file.
57276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57277         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57278         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57279         GNULIB_WRITE, REPLACE_WRITE.
57280         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57281         and the SIGPIPE issue.
57282
57283         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57284         (raise): New declaration.
57285         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57286         (ext_signal): New function.
57287         (rpl_raise): New function.
57288         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57289         GNULIB_SIGNAL_H_SIGPIPE.
57290         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57291         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57292
57293         * modules/sigpipe: New file.
57294         * m4/sigpipe.m4: New file.
57295
57296 2008-09-25  Derek Price  <derek@ximbiot.com>
57297             Bruno Haible  <bruno@clisp.org>
57298
57299         * gnulib-tool (func_import): Report all license incompatibilities, not
57300         just the first one.
57301
57302 2008-09-25  Bruno Haible  <bruno@clisp.org>
57303
57304         * gnulib-tool (func_import): When computing the edits, consider not
57305         only the Makefile.ams that exist but also those that will be generated.
57306
57307 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57308
57309         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57310         fixes gnulib-tool --test warning about duplicate dependency.
57311
57312 2008-09-25  Bruno Haible  <bruno@clisp.org>
57313
57314         * gnulib-tool: Don't ask the user to perform edits in the generated
57315         Makefile.ams.
57316         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57317         apply to the Makefile.am being generated.
57318         (func_emit_tests_Makefile_am): Execute edits that apply to the
57319         Makefile.am being generated.
57320         (func_import): Setup list of Makefile.am edits before emitting the
57321         Makefile.ams, not at the end.
57322         (func_create_testdir): Update.
57323         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57324
57325 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57326
57327         * gnulib-tool (func_import): Store the --tests-base option in the
57328         comment in gnulib-cache.m4.
57329
57330 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57331
57332         * NEWS: Document increased portability that sys_select now provides.
57333
57334         * lib/sys_select.in.h: Install select wrapper.
57335         * lib/sys_socket.in.h: Use more descriptive name when there is no
57336         select wrapper.
57337         * lib/winsock-select.c: New.
57338         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57339         Require gl_HEADER_SYS_SOCKET.
57340         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57341         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57342         * tests/test-sys_select.c: Add functional tests.
57343
57344 2008-09-24  Eric Blake  <ebb9@byu.net>
57345
57346         open, fopen: close fd leak in last patch
57347         * lib/open.c (rpl_open): Close fd before returning error.
57348         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57349         * doc/posix-functions/open.texi (open): Document that Irix also
57350         has the bug.
57351         * doc/posix-functions/fopen.texi (fopen): Likewise.
57352         Reported by Paolo Bonzini.
57353
57354 2008-09-24  Bruno Haible  <bruno@clisp.org>
57355
57356         Ensure that a filename ending in a slash cannot be used to access a
57357         non-directory.
57358         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57359         to check whether it's really a directory.
57360         * lib/fopen.c: Include fcntl.h, unistd.h.
57361         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57362         and fdopen().
57363         * modules/fopen (Depends-on): Add unistd.
57364         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57365         * tests/test-fopen.c (main): Likewise.
57366         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57367         * doc/posix-functions/fopen.texi: Likewise.
57368         Reported by Eric Blake.
57369
57370 2008-09-23  Eric Blake  <ebb9@byu.net>
57371
57372         c-stack: avoid compiler optimizations when provoking overflow
57373         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57374         recursion harder to optimize, to ensure a stack overflow occurs.
57375         * tests/test-c-stack.c (recurse): Likewise.
57376         Borrowed from libsigsegv.
57377
57378         c-stack: work around Irix sigaltstack bug
57379         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57380         whether sigaltstack uses wrong end of stack_t (copied in part from
57381         libsigsegv).
57382         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57383         Irix bug, without requiring an over-allocation.
57384         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57385         bug.
57386
57387         fopen: document mingw bug on directories
57388         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57389         not allowing a stream visiting a directory, even though reading
57390         from such a stream is not portable.
57391
57392 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57393
57394         * lib/poll.c: Rewrite.
57395         * modules/poll: Depend on alloca.
57396
57397 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57398
57399         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57400         instead define prototypes for a full set of wrappers.  Ensure
57401         that Cygwin does not use the compatibility code, which is only
57402         for MinGW.
57403         * lib/winsock.c: New.
57404         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57405         * modules/sys_socket: Add lib/winsock.c.
57406
57407         * modules/poll-tests: Add errno and perror.
57408         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57409
57410 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57411
57412         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57413
57414 2008-09-23  Bruno Haible  <bruno@clisp.org>
57415
57416         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57417         * doc/glibc-functions/*: Likewise.
57418
57419 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57420
57421         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57422         success.
57423
57424 2008-09-22  Eric Blake  <ebb9@byu.net>
57425             Bruno Haible  <bruno@clisp.org>
57426
57427         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57428         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57429         supply %A but mishandle pseudo-NaN.
57430         Reported by Simon Josefsson.
57431
57432 2008-09-21  Bruno Haible  <bruno@clisp.org>
57433
57434         * tests/test-lock.c (main): Tweak skip message.
57435         * tests/test-tls.c (main): Likewise.
57436
57437 2008-09-21  Bruno Haible  <bruno@clisp.org>
57438
57439         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57440         whether 'struct sigaction' has sa_sigaction here...
57441         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57442         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57443
57444 2008-09-21  Bruno Haible  <bruno@clisp.org>
57445
57446         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57447         section.
57448         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57449         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57450         the new section.
57451         (Support for obsolete systems lacking POSIX:2001): New section.
57452         (String handling <string.h>): Move strdup to the new section.
57453         Suggested by Simon Josefsson and Paolo Bonzini.
57454
57455 2008-09-21  Bruno Haible  <bruno@clisp.org>
57456
57457         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57458         exponents in %e and %g results on 'long double'. Needed for mingw's
57459         improved *printf functions.
57460         * tests/test-vasprintf-posix.c (test_function): Likewise.
57461         * tests/test-snprintf-posix.h (test_function): Likewise.
57462         * tests/test-sprintf-posix.h (test_function): Likewise.
57463         Reported by Eric Blake.
57464
57465 2008-09-21  Bruno Haible  <bruno@clisp.org>
57466
57467         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57468         * tests/test-sprintf-posix.h (test_function): Likewise.
57469
57470 2008-09-21  Bruno Haible  <bruno@clisp.org>
57471
57472         * modules/getpass (Depends-on): Add strdup-posix.
57473
57474         New module 'strdup-posix'.
57475         * modules/strdup-posix: New file.
57476         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57477         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57479         REPLACE_STRDUP.
57480         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57481         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57482         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57483         strdup-posix.
57484
57485         * modules/strdup (Depends-on): Remove malloc-posix.
57486
57487 2008-09-20  Bruno Haible  <bruno@clisp.org>
57488
57489         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57490         Wildenhues.
57491
57492 2008-09-20  Bruno Haible  <bruno@clisp.org>
57493
57494         Ensure that wint_t gets defined on IRIX 5.3.
57495         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57496         * lib/wctype.in.h (wint_t): Likewise.
57497         (__wctype_wint_t): Remove type.
57498         (isw*): Use wint_t instead of __wctype_wint_t.
57499         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57500         * modules/wchar (Files): Add m4/wint_t.m4.
57501         (Makefile.am): Substitute HAVE_WINT_T.
57502         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57503         * tests/test-wctype.c: Check that wint_t is defined.
57504         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57505         * doc/posix-headers/wctype.texi: Likewise.
57506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57507
57508 2008-09-18  Bruno Haible  <bruno@clisp.org>
57509
57510         * gnulib-tool (func_exit): Update comment.
57511
57512 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57513
57514         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57515         assumes strdup exists and does not depend on strdup to return
57516         ENOMEM on out of memory conditions.
57517
57518 2008-09-18  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57521         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57522         digits for the exponent.
57523
57524 2008-09-18  Jim Meyering  <meyering@redhat.com>
57525             Bruno Haible  <bruno@clisp.org>
57526
57527         * lib/vasnprintf.c (decimal_point_char): Define also if
57528         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57529
57530 2008-09-16  Bruno Haible  <bruno@clisp.org>
57531         and Eric Blake  <ebb9@byu.net>
57532
57533         vasnprintf: support Irix 5.3
57534         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57535         that mishandle long double infinity.
57536         Reported by Tom G. Christensen.
57537
57538 2008-09-16  Bruno Haible  <bruno@clisp.org>
57539
57540         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57541         Solaris 9.
57542         * doc/glibc-functions/alphasort.texi: Likewise.
57543         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57544
57545 2008-09-16  Jim Meyering  <meyering@redhat.com>
57546
57547         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57548         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57549         a umask modification leak out of a subshell.  Otherwise, the
57550         opensolaris /bin/sh would be accepted and thus cause unwarranted
57551         failures in the coreutils test suite.
57552
57553 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57554
57555         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57556         to succeed.
57557
57558 2008-09-16  Jim Meyering  <meyering@redhat.com>
57559
57560         avoid spurious test failure when library is built without ACL support
57561         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57562         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57563         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57564         * tests/test-copy-acl.sh: Likewise.
57565
57566 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57567
57568         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57569         based on character occurrence counts.
57570
57571 2008-09-15  Eric Blake  <ebb9@byu.net>
57572
57573         tests: avoid some compiler warnings
57574         * tests/test-memchr.c (main): Pass NULL indirectly.
57575         * tests/test-closein.c (main): Avoid unused variable.
57576
57577 2008-09-15  Bruno Haible  <bruno@clisp.org>
57578
57579         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57580         are missing on OpenBSD 4.0 individually.
57581         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57582
57583 2008-09-15  Bruno Haible  <bruno@clisp.org>
57584
57585         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57586         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57587         * doc/posix-functions/perror.texi: Likewise.
57588         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57589         is missing.
57590         Reported by Eric Blake.
57591
57592         * lib/errno.in.h: Use replacement values >= 2000.
57593         Reported by Eric Blake.
57594
57595 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57596
57597         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57598         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57599         limit.
57600         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57601         compareseq was aborted.
57602
57603 2008-09-14  Bruno Haible  <bruno@clisp.org>
57604
57605         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57606         yvec_edit_count.
57607         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57608         (fstrcmp_bounded): Simplify result computation accordingly.
57609
57610 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57611
57612         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57613         (fstrcmp): Define in terms of fstrcmp_bounded.
57614         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57615         lower_bound argument.
57616         Return quickly if the result is certainly < lower_bound.
57617         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57618
57619 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57620
57621         * lib/diffseq.h (EARLY_ABORT): New macro.
57622         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57623         evaluates to true.
57624
57625 2008-09-14  Bruno Haible  <bruno@clisp.org>
57626
57627         * modules/perror-tests: New file.
57628         * tests/test-perror.sh: New file.
57629         * tests/test-perror.c: New file.
57630
57631         New module 'perror'.
57632         * lib/stdio.in.h (perror): New declaration.
57633         * lib/perror.c: New file.
57634         * m4/perror.m4: New file.
57635         * modules/perror: New file.
57636         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57637         * doc/posix-functions/perror.texi: Mention the perror module.
57638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57639         REPLACE_PERROR.
57640         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57641         REPLACE_PERROR.
57642
57643 2008-09-14  Bruno Haible  <bruno@clisp.org>
57644
57645         * modules/stdio (Makefile.am): Reorder to match the order in
57646         lib/stdio.in.h.
57647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57648
57649 2008-09-13  Bruno Haible  <bruno@clisp.org>
57650
57651         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57652
57653 2008-09-13  Bruno Haible  <bruno@clisp.org>
57654
57655         Extend strerror to cover the added errno values.
57656         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57657         (rpl_strerror): Provide error messages for the added errno values and
57658         for the WSA* values.
57659         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57660         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57661         strerror.
57662         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57663         * modules/strerror (Depends-on): Add errno.
57664         * doc/posix-functions/strerror.texi: Document the change.
57665         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57666         and EOVERFLOW.
57667
57668 2008-09-13  Bruno Haible  <bruno@clisp.org>
57669
57670         * modules/EOVERFLOW: Remove file.
57671         * m4/eoverflow.m4: Remove file.
57672         * modules/EOVERFLOW-tests: Remove file.
57673         * tests/test-EOVERFLOW.c: Remove file.
57674         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57675         * modules/ftell (Depends-on): Likewise.
57676         * modules/getdelim (Depends-on): Likewise.
57677         * modules/getugroups (Depends-on): Likewise.
57678         * modules/poll (Depends-on): Likewise.
57679         * modules/snprintf (Depends-on): Likewise.
57680         * modules/sprintf-posix (Depends-on): Likewise.
57681         * modules/vasnprintf (Depends-on): Likewise.
57682         * modules/vasprintf (Depends-on): Likewise.
57683         * modules/vfprintf-posix (Depends-on): Likewise.
57684         * modules/vsnprintf (Depends-on): Likewise.
57685         * modules/vsprintf-posix (Depends-on): Likewise.
57686         * modules/xvasprintf (Depends-on): Likewise.
57687         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57688         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57689         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57690         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57691         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57692         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57693         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57694         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57695         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57696         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57697         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57698         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57699         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57700         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57701         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57702         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57703         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57704         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57705         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57706         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57707         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57708         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57709         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57710         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57711         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57712         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57713         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57714         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57715         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57716         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57717         * MODULES.html.sh: Remove EOVERFLOW.
57718         * NEWS: Mention the change.
57719
57720 2008-09-13  Bruno Haible  <bruno@clisp.org>
57721
57722         * modules/errno-tests: New file.
57723         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57724
57725         * lib/errno.in.h: New file.
57726         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57727         * modules/errno: New file.
57728         * doc/posix-headers/errno.texi: Update documentation.
57729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57730
57731 2008-09-13  Bruno Haible  <bruno@clisp.org>
57732
57733         * tests/test-poll.c: Use #if for native Windows, rather than testing
57734         __MSVCRT__.
57735
57736 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57737             Bruno Haible  <bruno@clisp.org>
57738
57739         * lib/glob.c: Don't include <pwd.h> on native Windows.
57740         (WINDOWS32): New macro.
57741         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57742
57743 2008-09-13  Bruno Haible  <bruno@clisp.org>
57744
57745         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57746         (ETIMEDOUT): Remove macro.
57747         (glthread_cond_timedwait_multithreaded): New declaration.
57748         (glthread_cond_timedwait): Use it.
57749         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57750         (glthread_cond_timedwait_multithreaded): New function.
57751
57752 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57753
57754         * modules/poll-tests: Do not check for io.h.
57755         * tests/test-poll.c: Check for __MSVCRT__ instead.
57756
57757 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57758
57759         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57760         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57761         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57762
57763 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57764
57765         * modules/poll-tests: New.
57766         * tests/test-poll.c: New.
57767
57768 2008-09-12  Eric Blake  <ebb9@byu.net>
57769
57770         frexp: test for NetBSD failure on -0.0
57771         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57772         not all, bugs from NetBSD 3.0 have been fixed.
57773         * doc/posix-functions/frexp.texi (frexp): Document bug.
57774         Reported by Thomas Klausner.
57775
57776         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57777         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57778         literal -0.0.
57779         Reported by Jonathan C. Patschke <jp@centtech.com>.
57780
57781 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57782
57783         * lib/glthread/cond.h: Use dummy implementation also if
57784         USE_WIN32_THREADS.
57785
57786 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57787
57788         * modules/fnmatch-posix (License): Change to LGPLv2+.
57789         * modules/fnmatch-gnu (License): Likewise.
57790
57791 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57792
57793         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57794
57795 2008-09-11  Jim Meyering  <meyering@redhat.com>
57796
57797         * users.txt: Add gtk-vnc.
57798
57799 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57800
57801         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57802         rotate amounts.
57803
57804         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57805         required for 16-bit and 8-bit rotates.
57806         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57807         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57808         UINT8_MAX instead of hard-coded constants.
57809         Suggested by Paul Eggert.
57810
57811 2008-09-07  Bruno Haible  <bruno@clisp.org>
57812
57813         * tests/test-striconveh.c (main): Check behaviour when converting from
57814         UTF-7.
57815
57816         Make striconveh work better with stateful encodings.
57817         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57818         that iconv does not increment the inptr when returning -1/EINVAL.
57819
57820 2008-09-07  Bruno Haible  <bruno@clisp.org>
57821
57822         * build-aux/config.rpath: Update according to libtool-2.2.6.
57823         * build-aux/config.libpath: Likewise.
57824
57825 2008-09-06  Bruno Haible  <bruno@clisp.org>
57826
57827         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57828         * lib/freadptr.c (freadptr): Likewise.
57829         * lib/freadseek.c (freadptrinc): Likewise.
57830         Reported by Simon Josefsson.
57831
57832 2008-09-06  Bruno Haible  <bruno@clisp.org>
57833
57834         * modules/freadptr (License): Change to LGPLv2+.
57835         * modules/freadseek (License): Likewise.
57836         Suggested by Eric Blake.
57837
57838         * modules/memchr2 (License): Change to LGPLv2+.
57839         Approved by Eric Blake.
57840
57841 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57842             Bruno Haible  <bruno@clisp.org>
57843
57844         Make gnulib-tool work with native 'sed' on AIX.
57845         * gnulib-tool (sed_noop): New variable.
57846         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57847         func_add_or_update, func_create_testdir): Use it to initialize sed
57848         script variables.
57849         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57850
57851 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57852             Bruno Haible  <bruno@clisp.org>
57853
57854         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57855         also works after #include directives.
57856
57857 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
57858
57859         getdate.y: reject an out-of-range timezone value
57860         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57861         the range [-24...+24].  When specified with only one or two digits,
57862         * tests/test-getdate.c: Tests for the fix.
57863         * doc/getdate.texi: Document this change.
57864
57865 2008-09-03  Bruno Haible  <bruno@clisp.org>
57866
57867         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57868
57869 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57870
57871         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57872         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57873         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57874         Blake <ebb9@byu.net>.
57875
57876         * tests/test-bitrotate.c: Add more test vectors.
57877
57878 2008-09-02  Eric Blake  <ebb9@byu.net>
57879
57880         vasnprintf-posix: handle large precision via %.*d
57881         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57882         when handling it ourselves.
57883         * tests/test-vasnprintf-posix.c (test_function): Add test.
57884         * tests/test-snprintf-posix.h (test_function): Likewise.
57885         * tests/test-sprintf-posix.h (test_function): Likewise.
57886         * tests/test-vasprintf-posix.c (test_function): Likewise.
57887         Reported by Alain Guibert.
57888
57889 2008-09-01  Eric Blake  <ebb9@byu.net>
57890
57891         c-stack: make configure-time check more robust
57892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57893         successful sigaction call.
57894         Reported by Tom G. Christensen.
57895
57896 2008-09-01  Bruno Haible  <bruno@clisp.org>
57897
57898         New module 'findprog-lgpl'.
57899         * modules/findprog-lgpl: New file.
57900         * lib/findprog-lgpl.c: New file.
57901         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57902         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57903         to decide whether to use strdup or xstrdup, concatenated_filename or
57904         xconcatenated_filename.
57905
57906 2008-09-01  Bruno Haible  <bruno@clisp.org>
57907
57908         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57909         'xconcat-filename' (GPL).
57910         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57911         (License): Change to LGPLv2+.
57912         * modules/xconcat-filename: New file.
57913         * lib/concat-filename.h (concatenated_filename): Change specification.
57914         (xconcatenated_filename): New declaration.
57915         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57916         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57917         memory situations.
57918         * lib/xconcat-filename.c: New file.
57919         * NEWS: Mention the change.
57920         * lib/findprog.c: Include concat-filename.h, not filename.h.
57921         (find_in_path): Use xconcatenated_filename instead of
57922         concatenated_filename.
57923         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57924         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57925         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57926         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57927         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57928         instead of concatenated_filename.
57929         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57930         (execute_java_class): Use xconcatenated_filename instead of
57931         concatenated_filename.
57932         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57933         * modules/javacomp (Depends-on): Likewise.
57934         * modules/javaexec (Depends-on): Likewise.
57935
57936 2008-09-01  Bruno Haible  <bruno@clisp.org>
57937
57938         Split module 'filename' into 'filename' and 'concat-filename'.
57939         * modules/filename: Keep only lib/filename.h.
57940         (License): Change to LGPLv2+.
57941         * modules/concat-filename: New file, extracted from modules/filename.
57942         * lib/filename.h (concatenated_filename): Remove declaration.
57943         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57944         * lib/concat-filename.c: Include concat-filename.h.
57945         * NEWS: Mention the change.
57946
57947 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57948
57949         * lib/bitrotate.h (rotl8, rotr8): Add.
57950
57951         * modules/bitrotate (configure.ac): Need
57952         AC_REQUIRE([AC_C_INLINE]).
57953         (Description): Mention stdint.h.  Reported by Bruno Haible
57954         <bruno@clisp.org>.
57955
57956         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57957         Paolo Bonzini <bonzini@gnu.org>.
57958
57959 2008-08-31  Bruno Haible  <bruno@clisp.org>
57960
57961         Assume Solaris specific bi-arch conventions on Solaris systems.
57962         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57963         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57964         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57965         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57966         like acl_libdirstem.
57967         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57968         acl_libdirstem.
57969         * NEWS: Mention the change.
57970         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57971
57972 2008-08-31  Jim Meyering  <meyering@redhat.com>
57973
57974         * lib/strftime.h: Add comments describing the two added arguments.
57975
57976         remove duplicate #include directives
57977         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57978         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57979
57980 2008-08-31  Bruno Haible  <bruno@clisp.org>
57981
57982         New module 'sigpipe-die'.
57983         * modules/sigpipe-die: New file.
57984         * lib/sigpipe-die.h: New file.
57985         * lib/sigpipe-die.c: New file.
57986         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57987
57988 2008-08-31  Bruno Haible  <bruno@clisp.org>
57989
57990         Don't override previously installed signal handlers.
57991         * lib/fatal-signal.c (saved_sigactions): New variable.
57992         (uninstall_handlers): Reset the signal to the saved handler, not
57993         to SIG_DFL (except when ignored).
57994         (install_handlers): Save the previous handlers.
57995
57996 2008-08-30  Bruno Haible  <bruno@clisp.org>
57997
57998         * gnulib-tool (func_reset_sigpipe): New function.
57999         (func_get_automake_snippet, func_modules_transitive_closure,
58000         func_import): Invoke it before a join command that reads from stdin,
58001         to avoid "echo: write error: Broken pipe" error messages on stderr.
58002         Reported by Sam Steingold <sds@gnu.org>.
58003
58004 2008-08-30  Bruno Haible  <bruno@clisp.org>
58005
58006         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58007         Code copied from m4/open.m4.
58008         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58009         access and the filename ends in a slash. Code copied from lib/open.c.
58010         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58011         * tests/test-fopen.c (main): Check against bug with trailing slash.
58012
58013 2008-08-29  Bruno Haible  <bruno@clisp.org>
58014
58015         Avoid some "gcc -pedantic" warnings.
58016         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58017         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58018         * lib/dirent.in.h: Likewise.
58019         * lib/fcntl.in.h: Likewise.
58020         * lib/float.in.h: Likewise.
58021         * lib/iconv.in.h: Likewise.
58022         * lib/inttypes.in.h: Likewise.
58023         * lib/locale.in.h: Likewise.
58024         * lib/math.in.h: Likewise.
58025         * lib/netinet_in.in.h: Likewise.
58026         * lib/search.in.h: Likewise.
58027         * lib/signal.in.h: Likewise.
58028         * lib/stdarg.in.h: Likewise.
58029         * lib/stdint.in.h: Likewise.
58030         * lib/stdio.in.h: Likewise.
58031         * lib/stdlib.in.h: Likewise.
58032         * lib/string.in.h: Likewise.
58033         * lib/strings.in.h: Likewise.
58034         * lib/sys_select.in.h: Likewise.
58035         * lib/sys_socket.in.h: Likewise.
58036         * lib/sys_stat.in.h: Likewise.
58037         * lib/sys_time.in.h: Likewise.
58038         * lib/sysexits.in.h: Likewise.
58039         * lib/time.in.h: Likewise.
58040         * lib/unistd.in.h: Likewise.
58041         * lib/wchar.in.h: Likewise.
58042         * lib/wctype.in.h: Likewise.
58043         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58044         * modules/fchdir (Makefile.am): Likewise.
58045         * modules/fcntl (Makefile.am): Likewise.
58046         * modules/float (Makefile.am): Likewise.
58047         * modules/iconv_open (Makefile.am): Likewise.
58048         * modules/inttypes (Makefile.am): Likewise.
58049         * modules/locale (Makefile.am): Likewise.
58050         * modules/math (Makefile.am): Likewise.
58051         * modules/netinet_in (Makefile.am): Likewise.
58052         * modules/search (Makefile.am): Likewise.
58053         * modules/signal (Makefile.am): Likewise.
58054         * modules/stdarg (Makefile.am): Likewise.
58055         * modules/stdint (Makefile.am): Likewise.
58056         * modules/stdio (Makefile.am): Likewise.
58057         * modules/stdlib (Makefile.am): Likewise.
58058         * modules/string (Makefile.am): Likewise.
58059         * modules/strings (Makefile.am): Likewise.
58060         * modules/sys_select (Makefile.am): Likewise.
58061         * modules/sys_socket (Makefile.am): Likewise.
58062         * modules/sys_stat (Makefile.am): Likewise.
58063         * modules/sys_time (Makefile.am): Likewise.
58064         * modules/sysexits (Makefile.am): Likewise.
58065         * modules/time (Makefile.am): Likewise.
58066         * modules/unistd (Makefile.am): Likewise.
58067         * modules/wchar (Makefile.am): Likewise.
58068         * modules/wctype (Makefile.am): Likewise.
58069         Reported by Reuben Thomas <rrt@sc3d.org>.
58070
58071 2008-08-29  Bruno Haible  <bruno@clisp.org>
58072
58073         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58074         any more.
58075
58076 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58077
58078         * MODULES.html.sh (Misc): Add bitrotate.
58079
58080         * modules/bitrotate: New file.
58081
58082         * lib/bitrotate.h: New file.
58083
58084         * modules/bitrotate-tests: New file.
58085
58086         * tests/test-bitrotate.c: New file.
58087
58088         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58089         on the bitrotate module.
58090
58091         * lib/arctwo.c: Use new bitrotate module.
58092
58093 2008-08-29  Jim Meyering  <meyering@redhat.com>
58094
58095         bootstrap: merge changes from coreutils
58096         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58097         of copied files.  Remove a kludge, now that this is fixed.
58098         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58099         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58100         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58101
58102 2008-08-29  Bruno Haible  <bruno@clisp.org>
58103
58104         * MODULES.html.sh: Remove --cvs-urls option.
58105
58106 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58107
58108         maint.mk: adjust to file name change
58109         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58110
58111 2008-08-28  Jim Meyering  <meyering@redhat.com>
58112
58113         * modules/getndelim2 (License): Relicense to LGPLv2+.
58114         Approved by Richard Stallman for the version of 1995, and by
58115         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58116
58117 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58118
58119         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58120         dummy if one is not available.  Do not touch them if
58121         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58122         (getc_maybe_unlocked): New.
58123         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58124
58125 2008-08-26  Eric Blake  <ebb9@byu.net>
58126
58127         doc/INSTALL: resync from autoconf
58128         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58129         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58130         moving...
58131         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58132         * INSTALL: Regenerate.
58133         * INSTALL.ISO: New file.
58134         * INSTALL.UTF-8: Likewise.
58135
58136 2008-08-26  Jim Meyering  <meyering@redhat.com>
58137
58138         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58139         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58140         these definitions conditional, so that they may be overridden, too.
58141
58142 2008-08-26  Bruno Haible  <bruno@clisp.org>
58143
58144         Generate INSTALL file variants with prettier quotes.
58145         * doc/Makefile (INSTALL_PRELUDE): New macro.
58146         (INSTALL): Use it.
58147         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58148
58149 2008-08-26  Bruno Haible  <bruno@clisp.org>
58150
58151         Run makeinfo in an English locale.
58152         * doc/Makefile (MAKEINFO): New variable.
58153
58154 2008-08-26  Bruno Haible  <bruno@clisp.org>
58155
58156         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58157         Suggested by Eric Blake.
58158
58159 2008-08-25  Bruno Haible  <bruno@clisp.org>
58160
58161         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58162
58163 2008-08-25  Eric Blake  <ebb9@byu.net>
58164
58165         c-stack: test that stack overflow can be caught
58166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58167         that platform allows handling stack overflow; at least OS/2 EMX
58168         has sigaltstack, but crashes before transferring control to
58169         handler on stack overflow.
58170         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58171         check for HAVE_STACK_OVERFLOW_HANDLING.
58172         Reported by Elbert Pol.
58173
58174 2008-08-25  Bruno Haible  <bruno@clisp.org>
58175
58176         * doc/posix-functions/strftime.texi: Fix description of strftime
58177         module.
58178
58179 2008-08-24  Bruno Haible  <bruno@clisp.org>
58180
58181         * tests/uniwidth/test-uc_width2.c: New file.
58182         * tests/uniwidth/test-uc_width2.sh: New file.
58183         * modules/uniwidth/width-tests (Files): Add the new files.
58184         (TESTS): Add uniwidth/test-uc_width2.sh.
58185         (TESTS_ENVIRONMENT): New variable.
58186         (check_PROGRAMS): Add test-uc_width2.
58187         (test_uc_width2_SOURCES): New variable.
58188
58189         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58190         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58191         not 0x00AB.
58192         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58193
58194 2008-08-22  Eric Blake  <ebb9@byu.net>
58195
58196         test-lock, test-tls: mention why a test is skipped
58197         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58198         skipped.
58199         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58200
58201         count-one-bits: relax license
58202         * modules/count-one-bits (License): Relicense to LGPLv2+.
58203         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58204
58205 2008-08-22  Andreas Schwab  <schwab@suse.de>
58206
58207         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58208         Remove spurious space in assignment.
58209
58210 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58211
58212         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58213         Paul Eggert <eggert@CS.UCLA.EDU>.
58214
58215 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58216
58217         * modules/gettext: Add m4/threadlib.m4.
58218
58219 2008-08-19  Eric Blake  <ebb9@byu.net>
58220
58221         test-c-stack: fix compilation failure on FreeBSD 5.0
58222         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58223         headers before <sys/resource.h>.
58224         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58225         the bug.
58226         Reported by Nelson H. F. Beebe.
58227
58228         strverscmp: migrate from "strverscmp.h" to <string.h>
58229         * modules/string (Makefile.am): Add new hooks.
58230         * modules/strverscmp (Files): Remove strverscmp.h.
58231         (Depends-on): Add string.
58232         (configure.ac): Add indicator.
58233         (Include): Mention new header.
58234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58235         defaults.
58236         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58237         results.
58238         * lib/strverscmp.h: Delete.
58239         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58240         * tests/test-strverscmp.c (includes): Adjust client.
58241         * lib/check-version.c (includes): Likewise.
58242         * NEWS: Document the change.
58243
58244         strverscmp: add unit test
58245         * modules/strverscmp-tests: New file.
58246         * tests/test-strverscmp.c: Likewise.
58247
58248 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58249
58250         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58251         regarding Windows crypto stuff, from Mono.
58252
58253 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58254
58255         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58256         if present, for intel RND.  Return error on failures.
58257
58258 2008-08-18  Ben Pfaff  <blp@gnu.org>
58259
58260         gitlog-to-changelog: give better diagnostic for failed pipe-open
58261         * build-aux/gitlog-to-changelog: Improve error message: suggest
58262         that the version of Git may be too old.
58263
58264 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58265
58266         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58267         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58268
58269 2008-08-18  Bruno Haible  <bruno@clisp.org>
58270
58271         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58272         pthread_in_use().
58273
58274 2008-08-18  Bruno Haible  <bruno@clisp.org>
58275
58276         * lib/glthread/threadlib.c: Include <pthread.h>.
58277
58278 2008-08-18  Bruno Haible  <bruno@clisp.org>
58279
58280         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58281         glthread_recursive_lock_* macros.
58282         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58283         Fix syntax error.
58284
58285 2008-08-18  Bruno Haible  <bruno@clisp.org>
58286
58287         * lib/glthread/thread.c: Avoid forcing a context switch right after
58288         thread creation.
58289
58290 2008-08-17  Bruno Haible  <bruno@clisp.org>
58291
58292         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58293         * lib/glthread/thread.h: Provide Win32 specific implementation.
58294         * modules/thread (Files): Add lib/glthread/thread.c.
58295         (Depends-on): Add lock.
58296         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58297
58298 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58299
58300         New module 'yield'.
58301         * modules/yield: New file.
58302         * lib/glthread/yield.h: New file.
58303         * m4/yield.m4: New file.
58304         * MODULES.html.sh (Multithreading): Add yield.
58305
58306 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58307
58308         New module 'thread'.
58309         * modules/thread: New file.
58310         * lib/glthread/thread.h: New file.
58311         * m4/thread.m4: New file.
58312         * MODULES.html.sh (Multithreading): Add thread.
58313
58314 2008-08-17  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/glthread/lock.h: Include <stdlib.h> always.
58317         * lib/glthread/tls.h: Likewise.
58318         * lib/glthread/cond.h: Likewise.
58319
58320 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58321
58322         New module 'cond'.
58323         * modules/cond: New file.
58324         * lib/glthread/cond.h: New file.
58325         * lib/glthread/cond.c: New file.
58326         * m4/cond.m4: New file.
58327         * MODULES.html.sh (Multithreading): Add cond.
58328
58329 2008-08-16  Eric Blake  <ebb9@byu.net>
58330
58331         c-stack: fix regression on Irix 5.3 from 2008-06-21
58332         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58333         sa_sigaction...
58334         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58335         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58336         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58337         * modules/signal (Makefile.am): Use the value.
58338         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58339         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58340         * doc/posix-headers/signal.texi (signal.h): Document this
58341         portability issue.
58342         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58343         Reported by Tom G. Christensen.
58344
58345 2008-08-17  Bruno Haible  <bruno@clisp.org>
58346
58347         New module 'threadlib'.
58348         * modules/threadlib: New file.
58349         * lib/glthread/threadlib.c: New file, extracted from
58350         lib/glthread/lock.c.
58351         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58352         functions.
58353         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58354         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58355         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58356         macros.
58357         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58358         (gl_DISABLE_THREADS): Remove macro.
58359         * modules/lock (Files): Remove build-aux/config.rpath.
58360         (Depends-on): Remove havelib. Add threadlib.
58361         (configure.ac-early): Remove section.
58362         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58363         * modules/tls (Depends-on): Remove lock. Add threadlib.
58364         (Link): New section, copied from threadlib.
58365         * MODULES.html.sh (Multithreading): Add threadlib.
58366
58367 2008-08-14  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58370         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58371         glthread_rwlock_unlock, glthread_rwlock_destroy,
58372         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58373         glthread_recursive_lock_destroy): Define as macros always.
58374         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58375         glthread_lock_lock.
58376         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58377         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58378         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58379         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58380         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58381         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58382         (glthread_recursive_lock_lock_func): Renamed from
58383         glthread_recursive_lock_lock.
58384         (glthread_recursive_lock_unlock_func): Renamed from
58385         glthread_recursive_lock_unlock.
58386         (glthread_recursive_lock_destroy_func): Renamed from
58387         glthread_recursive_lock_destroy.
58388
58389 2008-08-14  Bruno Haible  <bruno@clisp.org>
58390
58391         * lib/glthread/lock.h: Renamed from lib/lock.h.
58392         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58393         * lib/glthread/tls.h: Renamed from lib/tls.h.
58394         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58395         * lib/fstrcmp.c: Update includes.
58396         * lib/strsignal.c: Update includes.
58397         * modules/lock (Files, Makefile.am): Update.
58398         (Include): Change to "glthread/lock.h".
58399         * modules/tls (Files, Makefile.am): Update.
58400         (Include): Change to "glthread/tls.h".
58401         * tests/test-lock.c: Update includes.
58402         * tests/test-tls.c: Update includes.
58403         * NEWS: Mention the renamed header files.
58404
58405 2008-08-11  Jim Meyering  <meyering@redhat.com>
58406
58407         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58408
58409 2008-08-11  Eric Blake  <ebb9@byu.net>
58410
58411         test-c-stack: avoid C99-ism
58412         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58413         before statement.
58414         Reported by Alain Guibert.
58415
58416 2008-08-10  Jim Meyering  <meyering@redhat.com>
58417
58418         ensure that return value of uinttostr et al are not ignored
58419         * lib/inttostr.h (__GNUC_PREREQ): Define.
58420         (__attribute_warn_unused_result__): Define.
58421         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58422
58423 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58424
58425         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58426         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58427
58428 2008-08-07  Jim Meyering  <meyering@redhat.com>
58429
58430         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58431
58432         * modules/mkstemp (License): Relicense under LGPLv2+.
58433         * modules/tempname (License): Likewise.
58434
58435 2008-08-06  Bruno Haible  <bruno@clisp.org>
58436
58437         * lib/poll.c (poll): Further micro-optimization.
58438
58439 2008-08-06  Jim Meyering  <meyering@redhat.com>
58440
58441         inet_pton.c: use locale-independent tolower
58442         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58443         (inet_pton6): Use c_tolower rather than tolower.
58444         * modules/inet_pton (Depends-on): Add c-ctype.
58445
58446 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58447
58448         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58449         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58450
58451 2008-08-06  Jim Meyering  <meyering@redhat.com>
58452
58453         * modules/inet_pton (License): Relicense under LGPLv2+.
58454
58455 2008-08-03  Bruno Haible  <bruno@clisp.org>
58456
58457         Additional non-aborting API for lock and tls.
58458         * lib/lock.h: Include <errno.h>.
58459         (glthread_lock_init): New macro/function.
58460         (gl_lock_init): Define as wrapper around glthread_lock_init.
58461         (glthread_lock_lock): New macro/function.
58462         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58463         (glthread_lock_unlock): New macro/function.
58464         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58465         (glthread_lock_destroy): New macro/function.
58466         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58467         (glthread_rwlock_init): New macro/function.
58468         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58469         (glthread_rwlock_rdlock): New macro/function.
58470         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58471         (glthread_rwlock_wrlock): New macro/function.
58472         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58473         (glthread_rwlock_unlock): New macro/function.
58474         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58475         (glthread_rwlock_destroy): New macro/function.
58476         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58477         (glthread_recursive_lock_init): New macro/function.
58478         (gl_recursive_lock_init): Define as wrapper around
58479         glthread_recursive_lock_init.
58480         (glthread_recursive_lock_lock): New macro/function.
58481         (gl_recursive_lock_lock): Define as wrapper around
58482         glthread_recursive_lock_lock.
58483         (glthread_recursive_lock_unlock): New macro/function.
58484         (gl_recursive_lock_unlock): Define as wrapper around
58485         glthread_recursive_lock_unlock.
58486         (glthread_recursive_lock_destroy): New macro/function.
58487         (gl_recursive_lock_destroy): Define as wrapper around
58488         glthread_recursive_lock_destroy.
58489         (glthread_once): New macro/function.
58490         (gl_once): Define as wrapper around glthread_once.
58491         Update function declarations.
58492         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58493         glthread_rwlock_init. Return error code.
58494         (glthread_rwlock_rdlock_multithreaded): Renamed from
58495         glthread_rwlock_rdlock. Return error code.
58496         (glthread_rwlock_wrlock_multithreaded): Renamed from
58497         glthread_rwlock_wrlock. Return error code.
58498         (glthread_rwlock_unlock_multithreaded): Renamed from
58499         glthread_rwlock_unlock. Return error code.
58500         (glthread_rwlock_destroy_multithreaded): Renamed from
58501         glthread_rwlock_destroy. Return error code.
58502         (glthread_recursive_lock_init_multithreaded): Renamed from
58503         glthread_recursive_lock_init. Return error code.
58504         (glthread_recursive_lock_lock_multithreaded): Renamed from
58505         glthread_recursive_lock_lock. Return error code.
58506         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58507         glthread_recursive_lock_unlock. Return error code.
58508         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58509         glthread_recursive_lock_destroy. Return error code.
58510         (glthread_once_call): Make static.
58511         (glthread_once_multithreaded): Renamed from glthread_once.
58512         * lib/tls.h: Include <errno.h>.
58513         (glthread_tls_key_init): New macro/function.
58514         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58515         (glthread_tls_set): New macro/function.
58516         (gl_tls_set): Define as wrapper around glthread_tls_set.
58517         (glthread_tls_key_destroy): New macro/function.
58518         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58519         Update function declarations.
58520         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58521         glthread_tls_get.
58522         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58523
58524 2008-08-04  Eric Blake  <ebb9@byu.net>
58525
58526         gnumakefile: use space, not TAB, outside of targets
58527         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58528
58529 2008-08-02  Jim Meyering  <meyering@redhat.com>
58530
58531         getdate.y: avoid locale-dependent date parsing failure
58532         In Turkish locales, getdate would fail to recognize keywords
58533         containing a lowercase "i".  The solution is not to rely on
58534         locale-sensitive case-conversion.
58535         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58536         (lookup_word): Use c_toupper in place of toupper.
58537         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58538         Reported by Vefa Bicakci <bicave@superonline.com> in
58539         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58540         * modules/getdate (Depends-on): Add c-ctype.
58541
58542 2008-08-02  Bruno Haible  <bruno@clisp.org>
58543
58544         * gnulib-tool (func_import): When updating or creating a .gitignore
58545         file, prepend each added line with a slash, and ignore leading slashes
58546         from the existing lines.
58547         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58548
58549 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58550
58551         Portability fix for GNU make 3.79.1.
58552         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58553         versions do not understand.
58554
58555 2008-08-01  Bruno Haible  <bruno@clisp.org>
58556
58557         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58558         * tests/test-isnanf.h (zero): New variable.
58559         (main): Avoid literal -0.0f.
58560         * tests/test-isnand.h (zero): New variable.
58561         (main): Avoid literal -0.0.
58562         * tests/test-isnanl.h (zero): New variable.
58563         (main): Avoid literal -0.0L.
58564         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58565         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58566         -0.0, -0.0L.
58567         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58568         (test_signbitd): Avoid literal -0.0.
58569         (test_signbitl): Avoid literal -0.0L.
58570         * tests/test-ceilf1.c (zero): New variable.
58571         (main): Avoid literal -0.0f.
58572         * tests/test-ceill.c (zero): New variable.
58573         (main): Avoid literal -0.0L.
58574         * tests/test-floorf1.c (zero): New variable.
58575         (main): Avoid literal -0.0f.
58576         * tests/test-floorl.c (zero): New variable.
58577         (main): Avoid literal -0.0L.
58578         * tests/test-roundf1.c (zero): New variable.
58579         (main): Avoid literal -0.0f.
58580         * tests/test-round1.c (zero): New variable.
58581         (main): Avoid literal -0.0.
58582         * tests/test-roundl.c (zero): New variable.
58583         (main): Avoid literal -0.0L.
58584         * tests/test-truncf1.c (zero): New variable.
58585         (main): Avoid literal -0.0f.
58586         * tests/test-trunc1.c (zero): New variable.
58587         (main): Avoid literal -0.0.
58588         * tests/test-truncl.c (zero): New variable.
58589         (main): Avoid literal -0.0L.
58590         * tests/test-frexp.c (zero): New variable.
58591         (main): Avoid literal -0.0.
58592         * tests/test-frexpl.c (zero): New variable.
58593         (main): Avoid literal -0.0L.
58594         * tests/test-ldexpl.c (zero): New variable.
58595         (main): Avoid literal -0.0L.
58596         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58597         (zerod, zerol): New variables.
58598         (test_function): Avoid literals -0.0, -0.0L.
58599         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58600         (zerod, zerol): New variables.
58601         (test_function): Avoid literals -0.0, -0.0L.
58602         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58603         (zerod, zerol): New variables.
58604         (test_function): Avoid literals -0.0, -0.0L.
58605         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58606         (zerod, zerol): New variables.
58607         (test_function): Avoid literals -0.0, -0.0L.
58608         * tests/test-strtod.c (zero): New variable.
58609         (main): Avoid literal -0.0.
58610         Reported by Jonathan C. Patschke <jp@centtech.com>.
58611
58612 2008-07-31  Jim Meyering  <meyering@redhat.com>
58613
58614         sha256.h: correct definition of SHA224_DIGEST_SIZE
58615         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58616         Reported by Paulie Pena IV <paulie4@gmail.com>.
58617         Define as 224 / 8, rather than as a literal.
58618         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58619         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58620         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58621
58622 2008-07-31  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58625         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58626         Reported by Jonathan Patschke <jp@centtech.com>.
58627
58628 2008-07-31  Bruno Haible  <bruno@clisp.org>
58629
58630         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58631         Reported by Paolo Bonzini <bonzini@gnu.org>.
58632
58633 2008-07-30  Eric Blake  <ebb9@byu.net>
58634
58635         test-strtod: allow compilation without -lm
58636         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58637         Reported by Dennis Clarke <blastwave@gmail.com>.
58638
58639 2008-07-28  Jim Meyering  <meyering@redhat.com>
58640
58641         bootstrap: work also when there are no .po files in po/
58642         * build-aux/bootstrap (update_po_files): Complete the change
58643         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58644
58645 2008-07-27  Jim Meyering  <meyering@redhat.com>
58646
58647         * users.txt: Add zile.
58648
58649 2008-07-26  Ben Pfaff  <blp@gnu.org>
58650
58651         Add missing dependencies on new m4/exponent[fdl].m4 files.
58652         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58653         * modules/isnand-nolibm: Add m4/exponentd.m4.
58654         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58655         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58656         m4/isnan[fdl].m4, because the macros actually used moved.
58657         Reported by Jim Meyering.
58658
58659 2008-07-14  Ben Pfaff  <blp@gnu.org>
58660
58661         Add isinf module.
58662         * lib/isinf.c: New file.
58663         * lib/math.in.h: Define isinf macro if we have decided to replace
58664         it.
58665         * m4/isinf.m4: New file.
58666         * m4/math_h.m4: Initialize and substitute variables for isinf
58667         module.
58668         * modules/isinf: New file.
58669         * modules/isinf-tests: New file.
58670         * modules/math: Add substitutions for new module.
58671         * tests/test-isinf.c: New file.
58672         * doc/posix-functions/isinf.texi: Mention new module.
58673         * MODULES.html.sh: Mention new module.
58674
58675 2008-07-14  Ben Pfaff  <blp@gnu.org>
58676
58677         Factor out some macros for use by additional modules.
58678         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58679         exponentf.m4.
58680         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58681         exponentd.m4.
58682         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58683         file exponentl.m4.
58684         * m4/exponentf.m4: New file.
58685         * m4/exponentd.m4: New file.
58686         * m4/exponentl.m4: New file.
58687         * modules/isnanf: Use new file m4/exponentf.m4.
58688         * modules/isnand: Use new file m4/exponentd.m4.
58689         * modules/isnanl: Use new file m4/exponentl.m4.
58690
58691 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58692
58693         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58694         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58695         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58696         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58697
58698         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58699         readlink on platforms without PATH_MAX.
58700
58701 2008-07-21  Eric Blake  <ebb9@byu.net>
58702
58703         Warn, not fail, on stale version.
58704         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58705
58706         Don't allow installation with stale devel version number.
58707         * top/GNUmakefile (_is-install-target): New macro.
58708         (_curr-ver): Forbid installation with stale version number.
58709
58710 2008-07-20  Bruno Haible  <bruno@clisp.org>
58711
58712         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58713         TESTS_ENVIRONMENT.
58714         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58715
58716 2008-07-20  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/c-stack.h (c_stack_action): Add documentation.
58719         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58720
58721 2008-07-20  Bruno Haible  <bruno@clisp.org>
58722
58723         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58724         * modules/readlink (License): Likewise.
58725
58726 2008-07-17  Eric Blake  <ebb9@byu.net>
58727
58728         * modules/c-stack (Link): Fix typo.
58729
58730         Make c-stack use libsigsegv, when available.
58731         * modules/c-stack (Depends-on): Add libsigsegv.
58732         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58733         needed.
58734         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58735         (segv_handler, overflow_handler, c_stack_action)
58736         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58737         implementation when libsigsegv is available, but only when using
58738         the library is necessary.
58739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58740         comment, explaining why XSI check fails on Linux.
58741         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58742         * tests/test-c-stack2.sh: Tweak skip message.
58743         * NEWS: Document new link-time requirements.
58744
58745 2008-07-16  Eric Blake  <ebb9@byu.net>
58746
58747         c-stack: Expose false positives when not using libsigsegv.
58748         * modules/c-stack-tests (Files): Expand test.
58749         * tests/test-c-stack.c (main): Add means to conditionally trigger
58750         non-overflow SIGSEGV.
58751         * tests/test-c-stack2.sh: New file.
58752
58753 2008-07-14  Bruno Haible  <bruno@clisp.org>
58754
58755         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58756         Reported by Eric Blake.
58757
58758 2008-07-14  Sam Steingold  <sds@gnu.org>
58759             Bruno Haible  <bruno@clisp.org>
58760
58761         New module libsigsegv.
58762         * modules/libsigsegv: New file.
58763         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58764         modifications.
58765         * MODULES.html.sh (Signal handling): New section.
58766
58767 2008-07-14  Bruno Haible  <bruno@clisp.org>
58768
58769         * modules/unictype/ctype-* (Description): Add the word "function".
58770         Improves the resulting doc in MODULES.html.
58771
58772 2008-07-12  Ben Pfaff  <blp@gnu.org>
58773
58774         Add longlong module.
58775         * modules/longlong: New file.
58776
58777 2008-07-12  Bruno Haible  <bruno@clisp.org>
58778
58779         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58780         to empty.
58781
58782 2008-07-10  Ben Pfaff  <blp@gnu.org>
58783
58784         Add isnan module.
58785         * doc/posix-functions/isnan.texi: Mention new module.
58786         * lib/math.in.h: Define isnan macro if we have decided to replace
58787         it.
58788         * m4/isnan.m4: New file.
58789         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58790         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58791         also.
58792         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58793         redundancy.
58794         * m4/math_h.m4: Initialize and substitute variables for isnan
58795         module.
58796         * modules/isnan: New file.
58797         * modules/isnan-tests: New file.
58798         * modules/math: Add substitutions for new module.
58799         * tests/test-isnan.c: New file.
58800         * MODULES.html.sh: Mention new module.
58801
58802 2008-07-10  Ben Pfaff  <blp@gnu.org>
58803
58804         Add isnanf module.
58805         * lib/isnanf.m4: New file.
58806         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58807         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58808         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58809         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58810         * modules/isnanf: New file.
58811         * modules/isnanf-tests: New file.
58812         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58813         files.
58814         * tests/test-isnanf-nolibm.c: factored most of its contents into
58815         new file tests/test-isnanf.h.
58816         * tests/test-isnanf.h: New file.
58817         * tests/test-isnanf.c: New file.
58818         * MODULES.html.sh: Mention new module.
58819         * doc/glibc-functions/isnanf.texi: Mention new module.
58820
58821 2008-07-10  Ben Pfaff  <blp@gnu.org>
58822
58823         Add isnand module.
58824         * lib/isnand.h: New file.
58825         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58826         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58827         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58828         functionality also.
58829         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58830         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58831         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58832         * modules/isnand: New file.
58833         * modules/isnand-tests: New file.
58834         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58835         files.
58836         * tests/test-isnand-nolibm.c: factored most of its contents into
58837         new file tests/test-isnand.h.
58838         * tests/test-isnand.h: New file.
58839         * tests/test-isnand.c: New file.
58840         * MODULES.html.sh: Mention new module.
58841
58842 2008-07-10  Ben Pfaff  <blp@gnu.org>
58843
58844         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58845         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58846         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58847         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58848         * modules/isnanf-nolibm: Update references to renamed files.
58849         * modules/isnand-nolibm: Likewise.
58850         * modules/isnanf-nolibm-tests: Likewise.
58851         * modules/isnand-nolibm-tests: Likewise.
58852         * lib/frexp.c: Likewise.
58853         * lib/isfinite.c: Likewise.
58854         * lib/signbitd.c: Likewise.
58855         * lib/signbitf.c: Likewise.
58856         * lib/vasnprintf.c: Likewise.
58857         * tests/test-ceilf1.c: Likewise.
58858         * tests/test-ceilf2.c: Likewise.
58859         * tests/test-floorf1.c: Likewise.
58860         * tests/test-floorf2.c: Likewise.
58861         * tests/test-frexp.c: Likewise.
58862         * tests/test-round1.c: Likewise.
58863         * tests/test-round2.c: Likewise.
58864         * tests/test-roundf1.c: Likewise.
58865         * tests/test-strtod.c: Likewise.
58866         * tests/test-trunc1.c: Likewise.
58867         * tests/test-trunc2.c: Likewise.
58868         * tests/test-truncf1.c: Likewise.
58869         * tests/test-truncf2.c: Likewise.
58870         * NEWS: Mention the renamed header files.
58871
58872 2008-07-11  Jim Meyering  <meyering@redhat.com>
58873
58874         vc-list-files: make the last-resort awk code more portable
58875         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58876         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58877         does not support it.
58878
58879 2008-07-10  Eric Blake  <ebb9@byu.net>
58880
58881         Work with tar's bootstrap.
58882         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58883         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58884         an m4 comment.
58885
58886 2008-07-09  Jim Meyering  <meyering@redhat.com>
58887
58888         posix-shell.m4: fix typo that made this test malfunction
58889         * m4/posix-shell.m4: Remove capitalization in variable name.
58890
58891 2008-07-08  Bruno Haible  <bruno@clisp.org>
58892
58893         * m4/onceonly.m4: Update comments.
58894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58895
58896 2008-07-04  Jim Meyering  <meyering@redhat.com>
58897
58898         * users.txt: Add vc-dwim.
58899         (bison, coreutils): Use the gitweb URL.
58900
58901 2008-07-03  Jim Meyering  <meyering@redhat.com>
58902
58903         * users.txt: Add libffcall.  From Sam Steingold.
58904
58905 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
58906
58907         getdate.y: do not ignore TZ with relative day, month or year offset
58908         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58909         relative-date-handling, since otherwise, the latter would clobber the
58910         sole output (an updated Start value) of the tz-handling block.
58911         * tests/test-getdate.c: Tests for the fix
58912
58913 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58914
58915         Recognize 'foo_LIBRARIES += libgnu.a'.
58916         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58917         makefile snippet has already specified an installation location,
58918         also using '+='.
58919
58920 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
58921
58922         getdate.y: factor out common actions
58923         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58924         Use them in place of open-coded actions.
58925
58926 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58927
58928         Add self-test for getdate module.
58929         * modules/getdate-tests: New file.
58930         * tests/test-getdate.c: New file.
58931
58932 2008-06-29  Bruno Haible  <bruno@clisp.org>
58933
58934         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58935         .gitignore.
58936         Reported by Sylvain Beucler <beuc@beuc.net>.
58937
58938 2008-06-29  Bruno Haible  <bruno@clisp.org>
58939
58940         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58941         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58942
58943 2008-06-29  Bruno Haible  <bruno@clisp.org>
58944
58945         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58946         EXTRA_DIST.
58947         Reported by Sylvain Beucler <beuc@beuc.net>.
58948
58949 2008-06-26  Jim Meyering  <meyering@redhat.com>
58950
58951         make several modules depend on the "open" module
58952         This provides slightly increased consistency when opening-for-write
58953         the name of a non-directory spelled with a trailing slash.
58954         * modules/chdir-safer: Likewise.
58955         * modules/chown: Likewise.
58956         * modules/clean-temp: Likewise.
58957         * modules/copy-file: Likewise.
58958         * modules/fchdir: Likewise.
58959         * modules/fcntl-safer: Likewise.
58960         * modules/pipe: Likewise.
58961         * modules/utime: Likewise.
58962         Prompted by Eric Blake and Bruno Haible.
58963
58964 2008-06-24  Andreas Schwab  <schwab@suse.de>
58965
58966         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58967         literals can be used as initializers for global variables.
58968
58969 2008-06-23  Eric Blake  <ebb9@byu.net>
58970
58971         Make gnulib-cache.m4 easier to diff.
58972         * gnulib-tool (func_import): Allow newlines when reading cached
58973         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58974
58975 2008-06-23  Bruno Haible  <bruno@clisp.org>
58976
58977         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58978         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58979         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58980         m4/signalblocking.m4.
58981         (gl_PREREQ_SIGACTION): Don't invoke it.
58982         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58983         gl_PREREQ_SIG_HANDLER_H.
58984         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58985         Don't check for sigaction here.
58986
58987 2008-06-23  Bruno Haible  <bruno@clisp.org>
58988
58989         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58990         (install_handlers): Don't set the SA_RESETHAND flag.
58991
58992 2008-06-23  Bruno Haible  <bruno@clisp.org>
58993
58994         * m4/sigaction.m4: Comment fixes.
58995         * lib/signal.in.h: Likewise.
58996
58997 2008-06-23  Eric Blake  <ebb9@byu.net>
58998
58999         Fix typo.
59000         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59001
59002         Avoid SA_ namespace.
59003         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59004         Reported by Ralf Wildenhues.
59005
59006         Avoid test failure due to SA_RESTORER.
59007         * tests/test-sigaction.c (SA_MASK): New macro.
59008         (main): Avoid failing due to extension flags being set.
59009         Reported by Jim Meyering.
59010
59011         Revert use of sig-handler.h in sigprocmask.c.
59012         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59013         it requires the existence of struct sigaction.
59014         * lib/sigprocmask.c (handler_t): Restore typedef.
59015         (rpl_signal, old_handlers): Use local type.
59016
59017 2008-06-22  Bruno Haible  <bruno@clisp.org>
59018
59019         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59020         conditionally.
59021         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59022
59023 2008-06-22  Bruno Haible  <bruno@clisp.org>
59024
59025         * doc/posix-functions/siginterrupt.texi: Move note.
59026
59027         * lib/signal.in.h (SA_RESTART): New macro.
59028         * lib/sigaction.c: Update comment.
59029
59030         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59031
59032         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59033         (gl_PREREQ_SIGPROCMASK): Invoke it.
59034         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59035
59036         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59037
59038         * lib/sigprocmask.c: Update a comment.
59039
59040 2008-06-21  Eric Blake  <ebb9@byu.net>
59041
59042         Use sigaction module rather than signal().
59043         * modules/c-stack (Depends-on): Add sigaction.
59044         * modules/fatal-signal (Depends-on): Likewise.
59045         * modules/nanosleep (Depends-on): Likewise.
59046         * modules/sigprocmask (Files): Add sig-handler.h.
59047         * modules/sigaction (Files): Likewise.
59048         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59049         Eggert.
59050         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59051         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59052         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59053         (init_fatal_signals): Likewise.
59054         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59055         (siginterrupt): Delete fallback.
59056         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59057         instead.
59058         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59059         siginterrupt.
59060
59061         New module sigaction, for mingw.
59062         * modules/sigaction: New module...
59063         * modules/sigaction-tests: ...and its test.
59064         * m4/sigaction.m4: New file.
59065         * lib/sigaction.c: Likewise.
59066         * tests/test-sigaction.c: Likewise.
59067         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59068         * modules/signal (Makefile.am): Likewise.
59069         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59070         needed.
59071         * doc/posix-headers/signal.texi (signal.h): Mention provided
59072         types.
59073         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59074         that sigaction is preferable.
59075         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59076         module.
59077         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59078         sigaction.
59079
59080         Improve robustness of sigprocmask by overriding signal.
59081         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59082         is in use.
59083         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59084         (SIGKILL, SIGSTOP): Provide fallbacks.
59085         (rpl_signal): Implement.
59086         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59087         signal can be called inside handlers.
59088
59089         Fix nanosleep module on mingw.
59090         * modules/nanosleep (Depends-on): Add sys_select.
59091         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59092
59093         Fix licensing of sigprocmask.
59094         * modules/raise (License): Relicense as LGPL.
59095
59096 2008-06-21  Bruno Haible  <bruno@clisp.org>
59097
59098         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59099         result if it contains question marks.
59100         Reported by Michael Geng <linux@michaelgeng.de>.
59101
59102 2008-06-19  Bruno Haible  <bruno@clisp.org>
59103
59104         Fix CVS-ism.
59105         * doc/gnulib.texi: Include updated-stamp.texi.
59106         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59107         (updated-stamp.texi): New rule.
59108         (gnulib.info): Depend on it.
59109         * doc/.gitignore: Add updated-stamp.texi.
59110         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59111
59112 2008-06-19  Bruno Haible  <bruno@clisp.org>
59113
59114         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59115         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59116
59117 2008-06-19  Eric Blake  <ebb9@byu.net>
59118
59119         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59120         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59121         Reported by Stepan Kasal.
59122
59123 2008-06-18  Bruno Haible  <bruno@clisp.org>
59124
59125         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59126         Reported by Eric Blake.
59127
59128 2008-06-18  Eric Blake  <ebb9@byu.net>
59129
59130         Work around cygwin 1.5.25 strsignal bug.
59131         * tests/test-strsignal.c: Allow for const char *.
59132         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59133
59134 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59135
59136         * users.txt: Update URL to article and add author/date
59137         information.
59138
59139 2008-06-17  Bruno Haible  <bruno@clisp.org>
59140
59141         New macro gl_DISABLE_THREADS.
59142         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59143         if the user did not pass --enable-threads or --disable-threads option.
59144         (gl_DISABLE_THREADS): New macro.
59145         Reported by Eric Blake <ebb9@byu.net>.
59146
59147 2008-06-17  Bruno Haible  <bruno@clisp.org>
59148
59149         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59150         when the macro ignores it.
59151         Based on a patch by Eric Blake <ebb9@byu.net>.
59152
59153 2008-06-17  Bruno Haible  <bruno@clisp.org>
59154
59155         * modules/tls (License): Change to LGPLv2+.
59156         Reported by Eric Blake.
59157
59158 2008-06-17  Eric Blake  <ebb9@byu.net>
59159
59160         Simplify c-stack prerequisites.
59161         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59162         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59163         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59164         check.
59165         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59166         <sys/resource.h>.
59167
59168         Move c-stack test into testsuite.
59169         * modules/c-stack-tests: New file.
59170         * lib/c-stack.c [DEBUG]: Move test program...
59171         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59172         fail test if sigaltstack is lacking.
59173         * tests/test-c-stack.sh: New driver file.
59174
59175 2008-06-16  Eric Blake  <ebb9@byu.net>
59176
59177         Use raise module consistently.
59178         * modules/fatal-signal (Depends-on): Add raise.
59179         * modules/sigprocmask (Depends-on): Likewise.
59180         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59181         * lib/sigprocmask.c (sigprocmask): Likewise.
59182         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59183         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59184
59185         Fix compliance bug in sigpending.
59186         * lib/sigprocmask.c (sigpending): Return pending array via
59187         parameter, not return value.
59188
59189 2008-06-14  Eric Blake  <ebb9@byu.net>
59190
59191         Improve obstack-printf test code.
59192         * tests/test-obstack-printf.c (test_function): Fix comment, and
59193         simplify usage of obstack_* in macros.  Add a test for coverage.
59194         Reported by Bruno Haible.
59195
59196 2008-06-14  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59199         array size as a constant, not as a const variable.
59200         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59201         AC_USE_SYSTEM_EXTENSIONS.
59202         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59203         Test whether the obstack_printf function actually exists.
59204         * modules/obstack-printf (Depends-on): Add extensions.
59205         (Include): Remove obstack.h.
59206         * modules/obstack-printf-posix (Depends-on): Add extensions.
59207         (Include): Remove obstack.h.
59208
59209 2008-06-13  Eric Blake  <ebb9@byu.net>
59210
59211         Add obstack-printf and obstack-printf-posix modules.
59212         * modules/obstack-printf: New file.
59213         * modules/obstack-printf-posix: Likewise.
59214         * MODULES.html.sh (Misc): Mention them.
59215         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59216         Likewise.
59217         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59218         Likewise.
59219         * modules/stdio (Makefile.am): Accomodate new modules.
59220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59221         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59222         Declare.
59223         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59224         functions.
59225         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59226         (gl_REPLACE_OBSTACK_PRINTF): New macros
59227         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59228         * tests/test-obstack-printf.c: New file.
59229         * modules/obstack-printf-tests: Likewise.
59230         * modules/obstack-printf-posix-tests: Likewise.
59231
59232 2008-06-11  Bruno Haible  <bruno@clisp.org>
59233
59234         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59235         * lib/open.c: Include errno.h.
59236         (open): Fail when attempting to write to a file that has a trailing
59237         slash.
59238         * tests/test-open.c (main): Test against trailing slash bug.
59239         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59240
59241 2008-06-10  Bruno Haible  <bruno@clisp.org>
59242
59243         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59244         for $? to work inside the trap command, with various /bin/sh-s.
59245         * tests/test-vc-list-files-cvs.sh: Likewise.
59246
59247 2008-06-10  Bruno Haible  <bruno@clisp.org>
59248
59249         * lib/acl-internal.h: Don't include gettext.h here.
59250         * lib/set-mode-acl.c: Include gettext.h here.
59251         * lib/copy-acl.c: Likewise.
59252
59253 2008-06-10  Bruno Haible  <bruno@clisp.org>
59254
59255         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59256         * lib/wait-process.c (wait_subprocess): Likewise.
59257         * lib/execute.h (execute): Add termsigp argument.
59258         * lib/execute.c (execute): Likewise.
59259         * lib/csharpcomp.c (compile_csharp_using_pnet,
59260         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59261         * lib/csharpexec.c (execute_csharp_using_pnet,
59262         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59263         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59264         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59265         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59266         is_jikes_present): Update.
59267         * lib/javaexec.c (execute_java_class): Update.
59268         * lib/javaversion.c (execute_and_read_line): Update.
59269         * NEWS: Document the changes.
59270         Reported by Eric Blake.
59271
59272 2008-06-10  Eric Blake  <ebb9@byu.net>
59273
59274         Add missing include.
59275         * tests/test-strstr.c (includes): Add <signal.h>.
59276         * tests/test-strcasestr.c (includes): Likewise.
59277         * tests/test-memmem.c (includes): Likewise.
59278
59279 2008-06-10  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/wait-process.c (wait_subprocess): Add an assertion.
59282
59283 2008-06-10  Bruno Haible  <bruno@clisp.org>
59284
59285         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59286
59287 2008-06-10  Bruno Haible  <bruno@clisp.org>
59288
59289         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59290         using alarm().
59291         * tests/test-strcasestr.c (main): Likewise.
59292         * tests/test-strstr.c (main): Likewise.
59293
59294 2008-06-09  Bruno Haible  <bruno@clisp.org>
59295
59296         Work around the Solaris 10 ACE ACLs ABI change.
59297         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59298         declare if ACL_NO_TRIVIAL is present.
59299         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59300         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59301         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59302         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59303         define if ACL_NO_TRIVIAL is present.
59304         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59305         and use the current ABI.
59306         (file_has_acl): Use same #if condition as elsewhere.
59307         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59308         in use, and use the current ABI.
59309         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59310         Reported by Jim Meyering.
59311
59312 2008-06-09  Eric Blake  <ebb9@byu.net>
59313
59314         Work around environments that (stupidly) ignore SIGALRM.
59315         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59316         before using alarm().
59317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59319         Reported by Ian Beckwith <ianb@erislabs.net>.
59320
59321         Produce autobuild blurb earlier in log.
59322         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59323
59324 2008-06-09  Jim Meyering  <meyering@redhat.com>
59325         and Ondřej Vašík  <ovasik@redhat.com>
59326
59327         utimens.c: correct kernel bug work-around
59328         Ondřej Vašík found that the invalid return value of 280 indicates
59329         failure, not success, and the kernel bug we're trying to work
59330         around affects not just the utimensat call, but also the fallback
59331         futimens call.
59332         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59333         not success.
59334         [HAVE_FUTIMENS]: Use the same work-around, here.
59335
59336 2008-06-09  Jim Meyering  <meyering@redhat.com>
59337
59338         add more guards around definition of ACE_-related code
59339         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59340         ALLOW and ACE_OWNER are also defined.
59341
59342 2008-06-08  Bruno Haible  <bruno@clisp.org>
59343
59344         * lib/acl-internal.h: Add me as co-author.
59345         * lib/file-has-acl.c: Likewise.
59346         * lib/set-mode-acl.c: Likewise.
59347         * lib/copy-acl.c: Likewise.
59348
59349 2008-06-08  Bruno Haible  <bruno@clisp.org>
59350
59351         Add support for AIX ACLs.
59352         * lib/acl-internal.h (acl_nontrivial): New declaration.
59353         * lib/file-has-acl.c (acl_nontrivial): New function.
59354         (file_has_acl): Add implementation using AIX 4 ACL API.
59355         * lib/set-mode-acl.c (qset_acl): Likewise.
59356         * lib/copy-acl.c (qcopy_acl): Likewise.
59357
59358 2008-06-08  Bruno Haible  <bruno@clisp.org>
59359
59360         Add support for HP-UX ACLs.
59361         * lib/acl-internal.h (acl_nontrivial): New declaration.
59362         * lib/file-has-acl.c (acl_nontrivial): New function.
59363         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59364         * lib/set-mode-acl.c (qset_acl): Likewise.
59365         * lib/copy-acl.c (qcopy_acl): Likewise.
59366
59367 2008-06-08  Bruno Haible  <bruno@clisp.org>
59368
59369         Add support for Cygwin ACLs.
59370         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59371         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59372         the chmod_or_fchmod call.
59373         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59374
59375 2008-06-08  Bruno Haible  <bruno@clisp.org>
59376
59377         Fix bug with setuid modes in Solaris 10+ code.
59378         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59379         succeeded, when the mode contains some special bits.
59380
59381 2008-06-08  Bruno Haible  <bruno@clisp.org>
59382
59383         Add support for Solaris 7..10 ACLs.
59384         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59385         declarations.
59386         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59387         functions.
59388         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59389         * lib/set-mode-acl.c (qset_acl): Likewise.
59390         * lib/copy-acl.c (qcopy_acl): Likewise.
59391
59392 2008-06-08  Bruno Haible  <bruno@clisp.org>
59393
59394         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59395         declaration.
59396         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59397         (acl_access_nontrivial): Remove MacOS X case.
59398         (file_has_acl): Use acl_extended_nontrivial.
59399         * lib/copy-acl.c (qcopy_acl): Likewise.
59400
59401 2008-06-08  Bruno Haible  <bruno@clisp.org>
59402
59403         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59404
59405 2008-06-08  Jim Meyering  <meyering@redhat.com>
59406
59407         * modules/acl (Maintainer): Add Bruno Haible.
59408
59409 2008-06-07  Bruno Haible  <bruno@clisp.org>
59410
59411         Improve support for Tru64 ACLs.
59412         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59413         ACL on OSF/1.
59414
59415 2008-06-07  Bruno Haible  <bruno@clisp.org>
59416
59417         Add support for MacOS X ACLs.
59418         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59419         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59420         * lib/set-mode-acl.c (qset_acl): Likewise.
59421         * lib/copy-acl.c (qcopy_acl): Likewise.
59422
59423 2008-06-07  Bruno Haible  <bruno@clisp.org>
59424
59425         Fix memory leak introduced on 2008-05-22.
59426         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59427         use.
59428
59429 2008-06-07  Bruno Haible  <bruno@clisp.org>
59430
59431         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59432         to construct an empty ACL.
59433
59434 2008-06-07  Bruno Haible  <bruno@clisp.org>
59435
59436         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59437         precisely.
59438         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59439
59440 2008-06-07  Bruno Haible  <bruno@clisp.org>
59441
59442         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59443         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59444
59445 2008-06-07  Bruno Haible  <bruno@clisp.org>
59446
59447         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59448         regardless of POSIX.
59449         * doc/posix-functions/_longjmp.texi: Likewise.
59450         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59451         SystemV platform in this case.
59452
59453 2008-06-06  Eric Blake  <ebb9@byu.net>
59454
59455         Document abort() bugs.
59456         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59457
59458         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59459         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59460         sigsetjmp.
59461         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59462         siglongjmp, but only as a macro.
59463         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59464         is obsolete.
59465         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59466
59467         Tweak documentation to cover cygwin argz bugs.
59468         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59469         argz bug fix; no code change needed since no cygwin releases
59470         occurred between the last fix and the bug being tested.
59471         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59472         module and recently fixed cygwin bugs.
59473         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59474         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59475         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59476         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59477         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59478         Likewise.
59479         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59480         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59481         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59482         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59483         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59484         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59485         Likewise.
59486
59487         Avoid gcc warning on cygwin.
59488         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59489         !ACL_NO_TRIVIAL]: Avoid unused variable.
59490
59491 2008-06-05  Eric Blake  <ebb9@byu.net>
59492
59493         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59494         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59495         git-version-gen fails to come up with a version.
59496         Reported by Simon Josefsson.
59497
59498 2008-06-05  Jim Meyering  <meyering@redhat.com>
59499             Paul Eggert  <eggert@cs.ucla.edu>
59500
59501         utimens.c: work around a probable Linux kernel bug
59502         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59503         appears to be a kernel bug that causes utimensat to return 280
59504         instead of 0, indicating success.
59505
59506 2008-06-04  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59509         2008-06-01 commit.
59510
59511 2008-06-04  Bruno Haible  <bruno@clisp.org>
59512
59513         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59514         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59515         (file_has_acl): Use it. Save errno afterwards.
59516         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59517
59518 2008-06-03  Bruno Haible  <bruno@clisp.org>
59519
59520         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59521         draft code. Simplify #ifs.
59522         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59523         Put Solaris code after POSIX-draft code. Fix comments regarding
59524         Solaris 10, HP-UX. Mention Cygwin.
59525         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59526
59527 2008-06-03  Eric Blake  <ebb9@byu.net>
59528
59529         Provide fallback for older kernels.
59530         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59531         Provide runtime fallback if kernel lacks support.
59532         Reported by Mike Frysinger.
59533
59534 2008-06-02  Bruno Haible  <bruno@clisp.org>
59535
59536         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59537         it exists.
59538
59539 2008-06-02  Bruno Haible  <bruno@clisp.org>
59540
59541         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59542         * lib/copy-acl.c (qcopy_acl): Update comment.
59543
59544 2008-06-02  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59547         like ACL APIs.
59548
59549 2008-06-02  Bruno Haible  <bruno@clisp.org>
59550
59551         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59552         * tests/test-set-mode-acl.sh: Likewise.
59553         * tests/test-copy-acl.sh: Likewise.
59554         * tests/test-copy-file.sh: Likewise.
59555
59556 2008-06-02  Bruno Haible  <bruno@clisp.org>
59557
59558         * tests/test-file-has-acl.sh: Remove unused code.
59559
59560 2008-06-01  Bruno Haible  <bruno@clisp.org>
59561
59562         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59563         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59564         messages.
59565         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59566
59567 2008-06-01  Bruno Haible  <bruno@clisp.org>
59568
59569         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59570         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59571         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59572         APIs.
59573         * modules/acl-tests (configure.ac): Remove tests now contained in
59574         m4/acl.m4.
59575
59576 2008-06-02  Jim Meyering  <meyering@redhat.com>
59577
59578         announce-gen: use a better key-server host name
59579         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59580         it may be more consistently reliable.  Suggested by Werner Koch
59581         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59582
59583 2008-06-01  Bruno Haible  <bruno@clisp.org>
59584
59585         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59586         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59587
59588 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59589
59590         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59591
59592 2008-06-01  Bruno Haible  <bruno@clisp.org>
59593
59594         New ACL tests.
59595         * tests/test-file-has-acl.sh: New file.
59596         * tests/test-file-has-acl.c: New file.
59597         * tests/test-set-mode-acl.sh: New file.
59598         * tests/test-set-mode-acl.c: New file.
59599         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59600         * tests/test-copy-acl.c: New file.
59601         * modules/acl-tests: New file, based on modules/copy-file-tests.
59602         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59603         (Depends-on): Add acl-tests.
59604         (configure.ac): Remove checks.
59605         (Makefile.am): Don't create test-sameacls program here any more.
59606
59607 2008-06-01  Bruno Haible  <bruno@clisp.org>
59608
59609         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59610         * tests/test-sameacls.c: Include progname.h.
59611         (main): Invoke set_program_name. Portability fixes for MacOS X,
59612         Solaris, HP-UX.
59613
59614 2008-06-01  Bruno Haible  <bruno@clisp.org>
59615
59616         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59617         function.
59618         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59619
59620 2008-06-01  Bruno Haible  <bruno@clisp.org>
59621
59622         * modules/rpmatch (Depends-on): Add strdup.
59623
59624 2008-06-01  Bruno Haible  <bruno@clisp.org>
59625
59626         * lib/pipe.c: Include unistd-safer.h.
59627         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59628         * modules/pipe (Depends-on): Add unistd-safer.
59629
59630 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59631
59632         * modules/autobuild (configure.ac): Call AB_INIT.
59633
59634 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59635
59636         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59637         Suggested by Bruno Haible <bruno@clisp.org>.
59638
59639 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59640
59641         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59642         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59643         <bruno@clisp.org>.
59644
59645 2008-05-29  Eric Blake  <ebb9@byu.net>
59646
59647         Prefer new POSIX 200x interfaces over futimesat.
59648         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59649         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59650         when available.
59651         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59652
59653 2008-05-28  Bruno Haible  <bruno@clisp.org>
59654
59655         * modules/stpcpy (License): Change to LGPLv2+.
59656         Requested by David Lutterkort <dlutter@redhat.com>.
59657
59658 2008-05-27  Bruno Haible  <bruno@clisp.org>
59659
59660         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59661         current mingw.
59662         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59663
59664 2008-05-27  Bruno Haible  <bruno@clisp.org>
59665
59666         * modules/iconv_open (Link): New section, from module 'iconv'.
59667         * modules/striconv (Link): Likewise.
59668         * modules/striconveh (Link): Likewise.
59669         * modules/xstriconv (Link): Likewise.
59670         * modules/unicodeio (Link): Likewise.
59671         * modules/propername (Link): Likewise.
59672         Reported by Jim Meyering.
59673
59674 2008-05-26  Jim Meyering  <meyering@redhat.com>
59675
59676         sha256: do not artificially restrict buffer length to be < 2^32
59677         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59678         uint32_t to size_t.
59679         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59680         to match.
59681
59682         avoid unaligned access errors, e.g., on sparc
59683         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59684         direct access through a possibly-unaligned uint64* pointer.
59685         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59686         direct access through a possibly-unaligned uint32* pointer.
59687         Prompted by this patch from Tom "spot" Callaway:
59688         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59689
59690         sha512.c: fix typo in comment
59691         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59692
59693 2008-05-25  Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59696         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59697         (Makefile.am): Update lib_SOURCES.
59698
59699 2008-05-25  Bruno Haible  <bruno@clisp.org>
59700
59701         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59702
59703 2008-05-25  Jim Meyering  <meyering@redhat.com>
59704
59705         useless-if-before-free: freed expr may have white-space differences
59706         * build-aux/useless-if-before-free: Recognize cases in which the
59707         freed expression differs from the tested one in embedded white
59708         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59709         $1 was used, so we can't make any regexp shy.  Improved tests now
59710         detect this.
59711
59712         useless-if-before-free: accept white space in the expression.
59713         * build-aux/useless-if-before-free: For now, any white space
59714         in the expression must be identical in the free argument.
59715
59716         useless-if-before-free: efficiency tweak
59717         * build-aux/useless-if-before-free: Make the expression-matching
59718         regexp "shy".
59719         Make the *outer* regexp shy, not the expr-matching one.
59720
59721         update code-in-comment to accept cast of free arg
59722         * build-aux/useless-if-before-free: Update regexp.
59723
59724 2008-05-25  Bruno Haible  <bruno@clisp.org>
59725
59726         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59727         * modules/copy-file-tests (Files, Makefile.am): Update.
59728         * tests/test-copy-file.c (func_test_copy): Update.
59729
59730 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59731
59732         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59733
59734 2008-05-23  Bruno Haible  <bruno@clisp.org>
59735
59736         Improve support for ACLs on OSF/1.
59737         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59738         Remove fallback for unknown flavors of ACLs.
59739
59740 2008-05-22  Bruno Haible  <bruno@clisp.org>
59741
59742         Add support for ACLs on OSF/1.
59743         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59744         replacements.
59745         (acl_free_text): New macro fallback.
59746         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59747         acl_free.
59748         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59749         acl_free_text function. Require AC_C_INLINE.
59750
59751 2008-05-22  Bruno Haible  <bruno@clisp.org>
59752
59753         Make copy_acl work on MacOS X 10.5.
59754         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59755         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59756         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59757         If MODE_INSIDE_ACL, don't assume that every system has the same text
59758         representation for ACLs as FreeBSD.
59759         * lib/copy-acl.c (copy_acl): Add support for platforms with
59760         !MODE_INSIDE_ACL.
59761         * lib/file-has-acl.c (file_has_acl): Likewise.
59762         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59763         FreeBSD, MacOS X, or IRIX, respectively.
59764
59765 2008-05-22  Bruno Haible  <bruno@clisp.org>
59766
59767         * lib/acl.h: Don't include <sys/acl.h>.
59768         (GETACLCNT): Move fallback to lib/acl-internal.h.
59769         * lib/acl-internal.h: Include <sys/acl.h> here.
59770         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59771
59772 2008-05-22  Bruno Haible  <bruno@clisp.org>
59773
59774         Split off copy_acl function to separate file.
59775         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59776         * lib/acl.c (copy_acl): Moved function to separate file.
59777         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59778         * modules/acl (Files): Add lib/copy-acl.c.
59779         (Makefiles.am): Augment lib_SOURCES.
59780
59781 2008-05-22  Bruno Haible  <bruno@clisp.org>
59782
59783         * modules/copy-file-tests: New file.
59784         * tests/test-copy-file.sh: New file.
59785         * tests/test-copy-file.c: New file.
59786         * tests/test-copy-file-sameacls.c: New file.
59787
59788 2008-05-22  Eric Blake  <ebb9@byu.net>
59789
59790         Avoid gcc warning.
59791         * tests/test-memcmp.c (main): Pass NULL indirectly.
59792
59793 2008-05-21  Bruno Haible  <bruno@clisp.org>
59794
59795         Add reference doc about ACLs.
59796         * doc/acl-resources.txt: New file.
59797         * doc/acl-cygwin.txt: New file.
59798
59799 2008-05-21  Bruno Haible  <bruno@clisp.org>
59800
59801         Avoid one more warning from gcc.
59802         * lib/vasnprintf.c (IF_LINT): Update comments.
59803         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59804
59805 2008-05-21  Jim Meyering  <meyering@redhat.com>
59806
59807         avoid a warning from gcc
59808         * lib/vasnprintf.c (IF_LINT): Define.
59809         (scale10_round_decimal_long_double):
59810         Use it to avoid a "may be used uninitialized" warning.
59811         (scale10_round_decimal_double): Likewise.
59812
59813 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59814
59815         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59816         declared.
59817
59818 2008-05-20  Bruno Haible  <bruno@clisp.org>
59819
59820         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59821         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59822
59823 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59824
59825         * modules/memcmp-tests: New file.
59826         * tests/test-memcmp.c: New file.
59827
59828 2008-05-19  Bruno Haible  <bruno@clisp.org>
59829
59830         * modules/propername (Notice, configure.ac): Put quoted "..." into
59831         --keyword option.
59832         * lib/propername.h: Update comments accordingly.
59833         Reported by Eric Blake.
59834
59835 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59836
59837         * modules/getpass-gnu (Depends-on): Add fseeko.
59838
59839 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59840
59841         * modules/base64-tests: New file.
59842
59843 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59844
59845         * lib/base64.c (base64_decode_ctx): If a decode context structure
59846         was passed in use it to ignore newlines.  If a context structure
59847         was _not_ passed in, continue to treat newlines as garbage (this
59848         is the historical behavior).  Formerly base64_decode.
59849         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59850         takes a decode context structure.
59851         * lib/base64.h (base64_decode): Macro for four-argument calls.
59852         (base64_decode_alloc): Likewise.
59853         * lib/base64.c (base64_decode_ctx): If a decode context structure
59854         was passed in use it to ignore newlines.  If a context structure
59855         was _not_ passed in, continue to treat newlines as garbage (this
59856         is the historical behavior).  Formerly base64_decode.
59857         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59858         takes a decode context structure.
59859         * lib/base64.h (base64_decode): Macro for four-argument calls.
59860         (base64_decode_alloc): Likewise.
59861
59862 2008-05-19  Jim Meyering  <meyering@redhat.com>
59863
59864         avoid a warning from gcc
59865         * lib/trim.c (IF_LINT): Define.
59866         (trim2): Use it to avoid a "may be used uninitialized" warning.
59867
59868         Fix doc typo.
59869         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59870
59871 2008-05-19  Bruno Haible  <bruno@clisp.org>
59872
59873         * doc/glibc-functions/getpass.texi: Document limits of other
59874         implementations.
59875
59876 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59877             Bruno Haible <bruno@clisp.org>
59878
59879         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59880
59881 2008-05-18  Bruno Haible  <bruno@clisp.org>
59882
59883         * modules/propername: New file, from GNU gettext.
59884         * lib/propername.h: New file, from GNU gettext.
59885         * lib/propername.c: New file, from GNU gettext.
59886         * MODULES.html.sh (Internationalization functions): Add propername.
59887
59888 2008-05-16  Jim Meyering  <meyering@redhat.com>
59889             Bruno Haible  <bruno@clisp.org>
59890
59891         Avoid some warnings from "gcc -Wshadow".
59892         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59893
59894 2008-05-15  Eric Blake  <ebb9@byu.net>
59895
59896         Extend previous patch to cygwin 1.7.0.
59897         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59898         fast implementation in cygwin >= 1.7.0.
59899         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59901
59902 2008-05-15  Bruno Haible  <bruno@clisp.org>
59903
59904         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59905         implementation in glibc >= 2.9.
59906         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59908
59909 2008-05-15  Bruno Haible  <bruno@clisp.org>
59910
59911         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59912         (Unicode string functions): Add unilbrk/*.
59913         Reported by Karl Berry.
59914
59915 2008-05-15  Eric Blake  <ebb9@byu.net>
59916
59917         Fix violation of <stdbool.h> replacement in regex.
59918         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59919         * lib/regexec.c (re_search_internal): Likewise.
59920         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59921
59922 2008-05-15  Jim Meyering  <meyering@redhat.com>
59923
59924         avoid distracting test output when git or cvs is not found
59925         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59926         * tests/test-vc-list-files-git.sh: Likewise.
59927
59928 2008-05-15  Eric Blake  <ebb9@byu.net>
59929
59930         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59931         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59932         glibc version.
59933         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59934         * doc/posix-functions/strstr.texi (strstr): Likewise.
59935         * lib/str-two-way.h (MAX): Sychronize with glibc.
59936
59937 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59938
59939         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59940         opr.ctx_type.
59941         (calc_first): Initialize constraint field.
59942         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59943         Fix grammar.
59944         (duplicate_node): Merge constraint field for all node types.
59945         (calc_eclosure_iter): Look at constraint field for all node types.
59946         * lib/regex_internal.c (create_cd_newstate): Don't look at
59947         opr.ctx_type.
59948
59949 2008-05-14  Bruno Haible  <bruno@clisp.org>
59950
59951         Help GCC to do better code generation.
59952         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59953         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59954         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59955         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59956         Declare with attribute 'malloc' if supported.
59957
59958 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59959
59960         use "echo STR|wc -c" rather than unportable "expr length STR"
59961         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59962         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59963
59964 2008-05-14  Jim Meyering  <meyering@redhat.com>
59965
59966         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59967         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59968         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59969         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59970         via Collin Lasse.
59971
59972 2008-05-14  Eric Blake  <ebb9@byu.net>
59973
59974         Avoid quadratic growth in gl_LIBSOURCES.
59975         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59976         Suggested by Bruno Haible.
59977
59978         Test xmemdup0.
59979         * modules/xmemdup0-tests: New file.
59980         * tests/test-xmemdup0.c: Likewise.
59981
59982 2008-05-13  Eric Blake  <ebb9@byu.net>
59983
59984         Split xmemdup0 into its own module.
59985         * modules/xmemdup0: New file.
59986         * lib/xmemdup0.h: Likewise.
59987         * lib/xmemdup0.c: Likewise.
59988         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59989         * lib/xalloc.h (xmemdup0): Remove.
59990         * lib/xmalloc.c (xmemdup0): Likewise.
59991
59992 2008-05-13  Eric Blake  <ebb9@byu.net>
59993             Bruno Haible  <bruno@clisp.org>
59994
59995         Reduce number of forks required during autoconf.
59996         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59997         and gl_LIBSOURCES_DIR.
59998         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59999         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60000         m4_syscmd per file.
60001         <m4_foreach_w>: Move...
60002         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60003
60004 2008-05-13  Eric Blake  <ebb9@byu.net>
60005
60006         * gnulib-tool: Fix various comment typos.
60007
60008 2008-05-12  Bruno Haible  <bruno@clisp.org>
60009
60010         Tailor the linebreaking algorithm.
60011         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60012
60013 2008-05-12  Bruno Haible  <bruno@clisp.org>
60014
60015         Update to Unicode 5.0.0.
60016         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60017         LBP_JV, LBP_JT. Redistribute values.
60018         (unilbrk_table): Change size.
60019         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60020         Unicode TR#14 rev. 22.
60021         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60022         LBP_JV, LBP_JT. Redistribute values.
60023         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60024         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60025         Update.
60026         * lib/unilbrk/lbrkprop1.h: Regenerated.
60027         * lib/unilbrk/lbrkprop2.h: Regenerated.
60028         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60029         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60030         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60031         Likewise.
60032         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60033         Likewise.
60034         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60035         result.
60036         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60037         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60038         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60039         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60040         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60041         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60042
60043 2008-05-11  Bruno Haible  <bruno@clisp.org>
60044
60045         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60046
60047 2008-05-11  Bruno Haible  <bruno@clisp.org>
60048
60049         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60050         * modules/unilbrk/gen-lbrk: New file.
60051
60052 2008-05-11  Bruno Haible  <bruno@clisp.org>
60053
60054         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60055         * m4/sha512.m4 (gl_SHA512): Likewise.
60056
60057 2008-05-11  Jim Meyering  <meyering@redhat.com>
60058
60059         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60060         * modules/crypto/sha256: New file.
60061         * modules/crypto/sha512: Likewise.
60062         * lib/sha256.c: Likewise.
60063         * lib/sha256.h: Likewise.
60064         * lib/sha512.c: Likewise.
60065         * lib/sha512.h: Likewise.
60066         * lib/u64.h: Likewise.
60067         * m4/sha256.m4: Likewise.
60068         * m4/sha512.m4: Likewise.
60069         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60070
60071 2008-05-10  Bruno Haible  <bruno@clisp.org>
60072
60073         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60074         (Input/Output <stdio.h>): Add xprintf.
60075         (Signal handling <signal.h>): Add strsignal.
60076         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60077         (Core language properties): Add func.
60078         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60079         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60080         strings.
60081         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60082         (Input/output): New section.
60083         (File system functions): Add openat-die, stat-macros.
60084         (Networking functions): Add sockets.
60085         (Unicode string functions): Add unictype/*.
60086         (Support for building libraries and executables): Add gperf.
60087         (Support for building documentation): Add agpl-3.0.
60088         (Misc): Add nocrash.
60089
60090 2008-05-10  Bruno Haible  <bruno@clisp.org>
60091
60092         * modules/unictype/gen-ctype: New file.
60093
60094 2008-05-10  Jim Meyering  <meyering@redhat.com>
60095
60096         Make chdir-safer.c more efficient on a system with no symlinks.
60097         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60098         also if ELOOP is zero.  Suggested by Bruno Haible.
60099
60100         Make chdir-safer.c slightly safer.
60101         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60102         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60103
60104         Avoid compile failure on systems without ELOOP (like mingw).
60105         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60106         Reported by Bruno Haible.
60107
60108 2008-05-10  Bruno Haible  <bruno@clisp.org>
60109
60110         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60111         (is_utf8_encoding): Use a case-insensitive comparison.
60112         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60113         streq.
60114
60115 2008-05-10  Bruno Haible  <bruno@clisp.org>
60116
60117         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60118         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60119         * lib/unilbrk/ulc-common.h (iconv_string_length,
60120         iconv_string_keeping_offsets): Remove declarations.
60121         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60122         Don't include <iconv.h>, streq.h, xsize.h.
60123         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60124         conversion.
60125         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60126         <iconv.h>, streq.h, xsize.h.
60127         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60128         conversion.
60129         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60130         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60131         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60132         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60133
60134 2008-05-10  Bruno Haible  <bruno@clisp.org>
60135
60136         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60137         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60138
60139         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60140         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60141
60142         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60143         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60144
60145         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60146         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60147
60148         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60149         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60150
60151         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60152         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60153
60154         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60155         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60156
60157         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60158         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60159
60160 2008-05-10  Bruno Haible  <bruno@clisp.org>
60161
60162         Split up 'linebreak' module.
60163         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60164         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60165         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60166         modifications.
60167         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60168         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60169         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60170         lib/linebreak.c.
60171         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60172         lib/linebreak.c.
60173         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60174         lib/linebreak.c.
60175         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60176         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60177         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60178         lib/linebreak.c.
60179         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60180         lib/linebreak.c.
60181         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60182         lib/linebreak.c.
60183         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60184         lib/linebreak.c.
60185         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60186         lib/linebreak.c.
60187         * modules/unilbrk/base: New file.
60188         * modules/unilbrk/tables: New file.
60189         * modules/unilbrk/u8-possible-linebreaks: New file.
60190         * modules/unilbrk/u16-possible-linebreaks: New file.
60191         * modules/unilbrk/u32-possible-linebreaks: New file.
60192         * modules/unilbrk/ulc-common: New file.
60193         * modules/unilbrk/ulc-possible-linebreaks: New file.
60194         * modules/unilbrk/u8-width-linebreaks: New file.
60195         * modules/unilbrk/u16-width-linebreaks: New file.
60196         * modules/unilbrk/u32-width-linebreaks: New file.
60197         * modules/unilbrk/ulc-width-linebreaks: New file.
60198         * lib/linebreak.h: Remove file.
60199         * lib/linebreak.c: Remove file.
60200         * m4/linebreak.m4: Remove file.
60201         * modules/linebreak: Remove file.
60202         * NEWS: Mention the changes.
60203
60204 2008-05-09  Eric Blake  <ebb9@byu.net>
60205
60206         Add xmemdup0.
60207         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60208         implementation.
60209         * lib/xmalloc.c (xmemdup0): New C implementation.
60210
60211 2008-05-08  Bruno Haible  <bruno@clisp.org>
60212
60213         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60214
60215 2008-05-07  Eric Blake  <ebb9@byu.net>
60216
60217         Support cross-compilation of <wctype.h>.
60218         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60219         AC_CACHE_CHECK.
60220
60221 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60222
60223         * build-aux/vc-list-files: Add support for bzr.
60224
60225 2008-05-03  Jim Meyering  <meyering@redhat.com>
60226
60227         avoid failed assertion with tight malloc
60228         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60229
60230 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60231
60232         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60233         are needed from arpa/inet.h.
60234         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60235         Reported by Bruno Haible.
60236
60237 2008-05-02  Jim Meyering  <meyering@redhat.com>
60238
60239         avoid compilation error on FreeBSD 6
60240         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60241
60242 2008-05-01  Jim Meyering  <meyering@redhat.com>
60243
60244         useless-if-before-free: correct --help's exit status description
60245         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60246         for one or more matches, etc.  Reported by Bruno Haible.
60247
60248         vc-list-files: make the stand-alone gnulib test work
60249         * modules/vc-list-files-tests (configure.ac):
60250         Define and AC_SUBST abs_aux_dir.
60251         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60252         $(abs_top_srcdir) to each script and having each of them
60253         duplicate the work of setting PATH, set PATH here, using
60254         the new variable, abs_aux_dir instead.
60255         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60256         * tests/test-vc-list-files-git.sh: Likewise.
60257         Reported by Bruno Haible.
60258
60259 2008-05-01  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60262         reallocation. Rename 'done' to 'found_delimiter'.
60263
60264 2008-05-01  Jim Meyering  <meyering@redhat.com>
60265
60266         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60267         * build-aux/vc-list-files: Use `...`, not $(...).
60268
60269 2008-04-30  Jim Meyering  <meyering@redhat.com>
60270
60271         add tests for vc-list-files
60272         * modules/vc-list-files-tests: New module.
60273         * tests/test-vc-list-files-cvs.sh: New file.
60274         * tests/test-vc-list-files-git.sh: New file.
60275
60276         avoid a warning from gcc
60277         * lib/getndelim2.c (IF_LINT): Define.
60278         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60279
60280         vc-list-files: work properly with build-aux/cvsu, too
60281         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60282         to all cvs-based clauses.
60283
60284         vc-list-files: work properly in the CVS+awk case, too
60285         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60286
60287         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60288         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60289         take more than one file argument, so .  Add quotes, just in case $dir
60290         ever contains a shell meta-character.  Prompted by Soren Hansen in
60291         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60292
60293 2008-04-29  Eric Blake  <ebb9@byu.net>
60294
60295         Optimize getndelim2 to use block operations when possible.
60296         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60297         freadseek, and memchr2.
60298         * lib/getndelim2.c (getndelim2): Use them for block reads.
60299
60300 2008-04-29  Bruno Haible  <bruno@clisp.org>
60301
60302         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60303         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60304         * modules/inet_ntop (Depends-on): Add extensions.
60305         * modules/inet_pton (Depends-on): Likewise.
60306         Reported by Simon Josefsson.
60307
60308 2008-04-29  Jim Meyering  <meyering@redhat.com>
60309
60310         When the is more than one match in a block, match all of them.
60311         * build-aux/useless-if-before-free: Iterate through each block
60312         until there are no more matches.
60313
60314         Fix broken useless-if-before-free script.
60315         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60316         the expression to match cast of argument to free-like function.
60317
60318 2008-04-29  Eric Blake  <ebb9@byu.net>
60319
60320         Use new header.
60321         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60322
60323 2008-04-29  Jim Meyering  <meyering@redhat.com>
60324
60325         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60326         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60327         by gnulib to exist and to declare e.g., inet_ntop.
60328         Don't include "inet_ntop.h", now removed.
60329
60330         * m4/arpa_inet_h.m4: Remove trailing blanks.
60331
60332 2008-04-29  Eric Blake  <ebb9@byu.net>
60333
60334         Silence valgrind on safe reads beyond potential array bounds.
60335         * lib/rawmemchr.valgrind: New file.
60336         * lib/strchrnul.valgrind: Likewise.
60337         * modules/rawmemchr (Files): Distribute new file.
60338         * modules/strchrnul (Files): Likewise.
60339         Suggested by Bruno Haible.
60340
60341 2008-04-29  Bruno Haible  <bruno@clisp.org>
60342
60343         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60344         (inet_ntop, inet_pton): Change portability warning's wording.
60345         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60346         Invoke gl_CHECK_NEXT_HEADERS.
60347         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60348         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60349         set ARPA_INET_H.
60350         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60351         * modules/arpa_inet (Description): No longer only for systems that
60352         lack it.
60353         (Depends-on): Add include_next.
60354         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60355         HAVE_ARPA_INET_H.
60356
60357 2008-04-29  Jim Meyering  <meyering@redhat.com>
60358
60359         * modules/mkdir (License): Re-license as LGPLv2+.
60360
60361 2008-04-29  Bruno Haible  <bruno@clisp.org>
60362
60363         * modules/rawmemchr (Maintainer): Set to Eric.
60364         * modules/strchrnul (Maintainer): Likewise.
60365
60366 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60367
60368         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60369         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60370
60371         * modules/arpa_inet (arpa/inet.h): Use them.
60372
60373 2008-04-28  Eric Blake  <ebb9@byu.net>
60374
60375         Test getndelim2.
60376         * modules/getndelim2-tests: New file.
60377         * tests/test-getndelim2.c: Likewise.
60378         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60379         stream.
60380         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60381
60382         * MODULES.html.sh: Document new module.
60383
60384 2008-04-20  Bruno Haible  <bruno@clisp.org>
60385
60386         * lib/c-stack.c (die): Use raise.
60387         * modules/c-stack (Depends-on): Add raise.
60388
60389 2008-04-28  Bruno Haible  <bruno@clisp.org>
60390
60391         Expect rpmatch to be declared.
60392         * lib/yesno.c (rpmatch): Remove declaration.
60393
60394         Declare rpmatch.
60395         * lib/stdlib.in.h (rpmatch): New declaration.
60396         * lib/rpmatch.c: Include <stdlib.h> first.
60397         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60398         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60400         HAVE_RPMATCH.
60401         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60402         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60403         (Include): Set to <stdlib.h>.
60404         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60405         HAVE_RPMATCH.
60406         * NEWS: Document the change.
60407
60408 2008-04-28  Bruno Haible  <bruno@clisp.org>
60409
60410         Change rpmatch to use nl_langinfo when appropriate.
60411         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60412         (N_): New macro.
60413         (localized_pattern): New function/macro.
60414         (try): Remove match, nomatch arguments. Copy the pattern into safe
60415         memory before caching it.
60416         (rpmatch): Use localized_pattern. Add translator comments.
60417         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60418         Suggested by Eric Blake.
60419         * modules/rpmatch (Depends-on): Add stdbool.
60420
60421 2008-04-28  Eric Blake  <ebb9@byu.net>
60422
60423         Add rawmemchr module, matching glibc.
60424         * modules/string (Makefile.am): New indicator.
60425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60426         * lib/string.in.h (rawmemchr): Declare when appropriate.
60427         * modules/rawmemchr: New file.
60428         * m4/rawmemchr.m4: Likewise.
60429         * lib/rawmemchr.c: Likewise.
60430         * modules/rawmemchr-tests: Likewise.
60431         * tests/test-rawmemchr.c: Likewise.
60432         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60433         module.
60434         * modules/strchrnul (Depends-on): Add rawmemchr.
60435         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60436
60437         Whitespace cleanup.
60438         * tests/test-strchrnul.c: Reindent.
60439         * lib/strchrnul.c: Likewise.
60440
60441         Optimize and test strchrnul.
60442         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60443         * modules/strchrnul-tests: New file.
60444         * tests/test-strchrnul.c: Likewise.
60445
60446         Remove intprops dependency.
60447         * modules/memchr (Depends-on): Remove intprops.
60448         * modules/memrchr (Depends-on): Likewise.
60449         * modules/memchr2 (Depends-on): Likewise.
60450         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60451         * lib/memrchr.c (__memrchr): Likewise.
60452         * lib/memrchr2.c (memchr2): Likewise.
60453         Reported by Simon Josefsson.
60454
60455 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60456
60457         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60458         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60459
60460 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60461
60462         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60463
60464         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60465
60466         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60467
60468         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60469         declarations.
60470         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60471
60472         * m4/inet_pton.m4: Don't check for header files.
60473
60474         * m4/inet_ntop.m4: Don't check for header files.
60475
60476 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60477
60478         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60479         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60480         trigger for cygwin).
60481         Reported by Bruno Haible  <bruno@clisp.org>.
60482
60483 2008-04-28  Bruno Haible  <bruno@clisp.org>
60484
60485         * doc/posix-functions/strdup.texi: Mention mingw problem.
60486
60487 2008-04-27  Bruno Haible  <bruno@clisp.org>
60488
60489         * modules/stat-time-tests (Depends-on): Add sleep.
60490         * tests/test-stat-time.c (force_unlink): New function.
60491         (cleanup): Use it.
60492         (test_mtime): Remove the ctime related tests.
60493         (test_ctime): New function, containing the ctime related tests.
60494         (main): Call test_ctime, except on native Windows platforms.
60495
60496 2008-04-27  Bruno Haible  <bruno@clisp.org>
60497
60498         * lib/rpmatch.c (rpmatch): Add some comments.
60499         Reported by James Youngman <jay@gnu.org>.
60500
60501 2008-04-27  Bruno Haible  <bruno@clisp.org>
60502
60503         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60504         quiet NaNs.
60505
60506 2008-04-27  Bruno Haible  <bruno@clisp.org>
60507
60508         Make test-yesno.sh work on mingw.
60509         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60510         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60511         (main): Set stdin to binary mode.
60512         * modules/yesno-tests (Depends-on): Add binary-io.
60513
60514 2008-04-27  Bruno Haible  <bruno@clisp.org>
60515
60516         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60517         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60518         argument that lie outside the IEEE 854 domain.
60519         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60520         (gl_ISFINITE): Use it.
60521         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60522
60523 2008-04-27  Bruno Haible  <bruno@clisp.org>
60524
60525         Allow local renaming in config.h.
60526         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60527
60528 2008-04-27  Bruno Haible  <bruno@clisp.org>
60529
60530         * lib/memchr.c (__memchr): Change type of 'i'.
60531         * lib/memchr2.c (memchr2): Likewise.
60532
60533 2008-04-26  Eric Blake  <ebb9@byu.net>
60534         and Bruno Haible  <bruno@clisp.org>
60535
60536         Optimize and test memrchr.
60537         * modules/memrchr (Depends-on): Add intprops.
60538         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60539         * modules/memrchr-tests: New file.
60540         * tests/test-memrchr.c: New file.
60541
60542 2008-04-26  Bruno Haible  <bruno@clisp.org>
60543
60544         Add tentative support for DragonFly BSD.
60545         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60546         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60547         fp.
60548         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60549         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60550         * lib/fpurge.c (fpurge): Likewise.
60551         * lib/freadable.c (freaadable): Likewise.
60552         * lib/freadahead.c (freadahead): Likewise.
60553         * lib/freading.c (freading): Likewise.
60554         * lib/freadptr.c (freadptr): Likewise.
60555         * lib/freadseek.c (freadptrinc): Likewise.
60556         * lib/fseeko.c (fseeko): Likewise.
60557         * lib/fseterr.c (fseterr): Likewise.
60558         * lib/fwritable.c (fwritable): Likewise.
60559         * lib/fwriting.c (fwriting): Likewise.
60560
60561 2008-04-26  Bruno Haible  <bruno@clisp.org>
60562
60563         * lib/stdio-impl.h: New file.
60564         * lib/fbufmode.c: Include stdio-impl.h.
60565         (fbufmode): Use fp_, remove redundant #defines.
60566         * lib/fflush.c: Include stdio-impl.h.
60567         (clear_ungetc_buffer): Remove redundant #defines.
60568         * lib/fpurge.c: Include stdio-impl.h.
60569         (fpurge): Remove redundant #defines.
60570         * lib/freadable.c: Include stdio-impl.h.
60571         (freadable): Remove redundant #defines.
60572         * lib/freadahead.c: Include stdio-impl.h.
60573         (freadahead): Remove redundant #defines.
60574         * lib/freading.c: Include stdio-impl.h.
60575         (freading): Remove redundant #defines.
60576         * lib/freadptr.c: Include stdio-impl.h.
60577         (freadptr): Remove redundant #defines.
60578         * lib/freadseek.c: Include stdio-impl.h.
60579         (freadptrinc): Remove redundant #defines.
60580         * lib/fseeko.c: Include stdio-impl.h.
60581         (rpl_fseeko): Remove redundant #defines.
60582         * lib/fseterr.c: Include stdio-impl.h.
60583         (fseterr): Remove redundant #defines.
60584         * lib/fwritable.c: Include stdio-impl.h.
60585         (fwritable: Remove redundant #defines.
60586         * lib/fwriting.c: Include stdio-impl.h.
60587         (fwriting): Remove redundant #defines.
60588         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60589         * modules/fflush (Files): Likewise.
60590         * modules/fpurge (Files): Likewise.
60591         * modules/freadable (Files): Likewise.
60592         * modules/freadahead (Files): Likewise.
60593         * modules/freading (Files): Likewise.
60594         * modules/freadptr (Files): Likewise.
60595         * modules/freadseek (Files): Likewise.
60596         * modules/fseeko (Files): Likewise.
60597         * modules/fseterr (Files): Likewise.
60598         * modules/fwritable (Files): Likewise.
60599         * modules/fwriting (Files): Likewise.
60600
60601 2008-04-26  Bruno Haible  <bruno@clisp.org>
60602
60603         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60604         restore_seek_optimization, update_fpos_cache): New functions, extracted
60605         from rpl_fflush.
60606         (rpl_fflush): Use them.
60607         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60608         (gl_REPLACE_FFLUSH): Use it.
60609
60610 2008-04-26  Bruno Haible  <bruno@clisp.org>
60611
60612         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60613         on Solaris.
60614         * tests/test-xstrtoimax.sh: Likewise.
60615         * tests/test-xstrtoumax.sh: Likewise.
60616         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60617
60618 2008-04-26  Bruno Haible  <bruno@clisp.org>
60619
60620         * modules/memchr-tests: New file.
60621         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60622
60623 2008-04-26  Eric Blake  <ebb9@byu.net>
60624             Bruno Haible  <bruno@clisp.org>
60625
60626         * lib/memchr.c: Include intprops.h.
60627         (__memchr): Optimize parallel detection of matching bytes. Rename local
60628         variables. Add explanatory comments.
60629
60630 2008-04-26  Bruno Haible  <bruno@clisp.org>
60631
60632         Fix module 'memchr', broken since 2000-10-28.
60633         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60634
60635 2008-04-26  Bruno Haible  <bruno@clisp.org>
60636
60637         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60638         comments.
60639
60640 2008-04-25  Eric Blake  <ebb9@byu.net>
60641
60642         Use native fstatat on cygwin 1.7.0.
60643         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60644         first.
60645
60646 2008-04-23  Eric Blake  <ebb9@byu.net>
60647
60648         Improve memchr2 performance.
60649         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60650         NUL bytes.
60651         * modules/memchr2 (Depends-on): Use intprops.h.
60652
60653 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60654
60655         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60656         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60657         <blp@cs.stanford.edu>.
60658
60659 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60660
60661         * lib/arpa_inet.in.h: New file.
60662
60663         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60664         (Makefile.am): Sed in substitute header file.
60665
60666         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60667         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60668
60669         * modules/inet_ntop (configure.ac): Use
60670         gl_ARPA_INET_MODULE_INDICATOR.
60671
60672         * modules/inet_pton (configure.ac): Use
60673         gl_ARPA_INET_MODULE_INDICATOR.
60674
60675 2008-04-22  Jim Meyering  <meyering@redhat.com>
60676
60677         * modules/verify (License): Re-license as LGPLv2+.
60678
60679 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60680
60681         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60682         parameter to void* as per POSIX standard (MinGW uses char*).
60683
60684 2008-04-21  Bruno Haible  <bruno@clisp.org>
60685
60686         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60687         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60688         Define to replacements if REPLACE_ISWCNTRL is 1.
60689         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60690         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60691         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60692         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60693         what it fixes.
60694         * doc/posix-functions/iswalpha.texi: Likewise.
60695         * doc/posix-functions/iswblank.texi: Likewise.
60696         * doc/posix-functions/iswcntrl.texi: Likewise.
60697         * doc/posix-functions/iswdigit.texi: Likewise.
60698         * doc/posix-functions/iswgraph.texi: Likewise.
60699         * doc/posix-functions/iswlower.texi: Likewise.
60700         * doc/posix-functions/iswprint.texi: Likewise.
60701         * doc/posix-functions/iswpunct.texi: Likewise.
60702         * doc/posix-functions/iswspace.texi: Likewise.
60703         * doc/posix-functions/iswupper.texi: Likewise.
60704         * doc/posix-functions/iswxdigit.texi: Likewise.
60705         Reported by Alain Guibert.
60706
60707 2008-04-21  Bruno Haible  <bruno@clisp.org>
60708
60709         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60710         Patch by Alain Guibert.
60711
60712 2008-04-21  Bruno Haible  <bruno@clisp.org>
60713
60714         Fix test failures on mingw.
60715         * tests/test-xstrtol.c (print_no_progname): New function.
60716         (main): Install it in error_print_progname hook.
60717         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60718         * tests/test-xstrtoimax.sh: Likewise.
60719         * tests/test-xstrtoumax.sh: Likewise.
60720
60721 2008-04-21  Bruno Haible  <bruno@clisp.org>
60722
60723         Fix test failure on mingw.
60724         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60725
60726 2008-04-21  Bruno Haible  <bruno@clisp.org>
60727
60728         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60729         Actually assign a value.
60730
60731 2008-04-20  Bruno Haible  <bruno@clisp.org>
60732
60733         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60734         take 2.
60735         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60736         'canonicalize-lgpl' module is also used.
60737         * lib/canonicalize-lgpl.c: Undo last change.
60738         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60739
60740 2008-04-20  Bruno Haible  <bruno@clisp.org>
60741
60742         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60743         config.h. Provide _mkdir based fallback for mingw.
60744         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60745         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60746         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60747         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60748         rather than defining mkdir in config.h.
60749         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60750         (gl_SYS_STAT_H_DEFAULTS): New macro.
60751         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60752         HAVE_IO_H any more.
60753         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60754         HAVE_DECL_MKDIR and HAVE_IO_H.
60755
60756 2008-04-20  Bruno Haible  <bruno@clisp.org>
60757
60758         * lib/isapipe.c: Port to native Windows platforms.
60759
60760 2008-04-20  Bruno Haible  <bruno@clisp.org>
60761
60762         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60763
60764 2008-04-21  Eric Blake  <ebb9@byu.net>
60765
60766         Work around preprocessors that don't handle UINTMAX_MAX.
60767         * lib/memchr2.c (memchr2): Avoid embedded #if.
60768         Reported by Alain Guibert, fix suggested by Bruno Haible.
60769
60770 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60771
60772         * doc/posix-functions/strftime.texi (strftime): Explain better
60773         Windows incompatibility.  Suggested by Micah Cowan
60774         <micah@cowan.name>.
60775
60776 2008-04-20  Bruno Haible  <bruno@clisp.org>
60777
60778         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60779         unistr/u8-mblen.
60780
60781 2008-04-20  Bruno Haible  <bruno@clisp.org>
60782
60783         Fix test failure on platforms with non-GNU iconv.
60784         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60785         (U_TO_U8): Use it, rather than u16_to_u8.
60786         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60787         units at the end of the input string.
60788         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60789
60790 2008-04-20  Bruno Haible  <bruno@clisp.org>
60791
60792         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60793         when the resulting length is 0.
60794         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60795
60796 2008-04-20  Bruno Haible  <bruno@clisp.org>
60797
60798         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60799         works.
60800         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60801
60802 2008-04-20  Bruno Haible  <bruno@clisp.org>
60803
60804         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60805         * modules/tsearch-tests (configure.ac): Test for initstate function.
60806
60807 2008-04-20  Bruno Haible  <bruno@clisp.org>
60808
60809         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60810         for nlink_t if missing.
60811         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60812
60813 2008-04-19  Bruno Haible  <bruno@clisp.org>
60814
60815         Work around snprintf bug on Linux libc5.
60816         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60818         gl_SNPRINTF_SIZE1.
60819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60820         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60821         that test failed.
60822         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60823         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60824         * modules/snprintf (Files): Add m4/printf.m4.
60825         * modules/vsnprintf (Files): Likewise.
60826         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60827         * doc/posix-functions/vsnprintf.texi: Likewise.
60828
60829 2008-04-19  Bruno Haible  <bruno@clisp.org>
60830
60831         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60832         from 0.0058 to less than 10^-7.
60833
60834 2008-04-19  Bruno Haible  <bruno@clisp.org>
60835
60836         Fix rounding when a precision is given.
60837         * lib/vasnprintf.c (is_borderline): New function.
60838         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60839         9...9x.
60840         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60841         %e, %g.
60842         * tests/test-vasprintf-posix.c (test_function): Likewise.
60843         * tests/test-snprintf-posix.h (test_function): Likewise.
60844         * tests/test-sprintf-posix.h (test_function): Likewise.
60845         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60846         * tests/test-printf-posix.h (test_function): Likewise.
60847         * tests/test-printf-posix.output: Update.
60848         Reported by John Darrington <john@darrington.wattle.id.au> via
60849         Ben Pfaff <blp@cs.stanford.edu>.
60850
60851 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60852
60853         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60854         Suggested by Bruno Haible <bruno@clisp.org>.
60855
60856 2008-04-17  Bruno Haible  <bruno@clisp.org>
60857
60858         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60859         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60860         implementation.
60861         Patch by Bruce Merry <bmerry@gmail.com>.
60862
60863 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60864
60865         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60866         doesn't work under Windows.
60867
60868 2008-04-16  Bruno Haible  <bruno@clisp.org>
60869
60870         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60871         New macros.
60872         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60873         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60874         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60875         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60876         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60877         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60878         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60879         macros.
60880         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60881         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60882         Northern Sotho, Uighur.
60883
60884 2008-04-16  Bruno Haible  <bruno@clisp.org>
60885
60886         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60887         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60888         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60889         Reported by Daniel Bergström <daniel@octocode.com>.
60890
60891 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60892             Bruno Haible  <bruno@clisp.org>
60893
60894         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60895         function.
60896         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60897         New functions, mostly extracted from gl_locale_name_default.
60898         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60899
60900 2008-04-16  Eric Blake  <ebb9@byu.net>
60901
60902         Adjust strtod detection to catch glibc 2.7 bug.
60903         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60904         Reported by John Gatewood Ham.
60905
60906 2008-04-16  Bruno Haible  <bruno@clisp.org>
60907
60908         Add tentative support for Linux libc5.
60909         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60910         * lib/fpurge.c (fpurge): Likewise.
60911         * lib/freadable.c (freadable): Likewise.
60912         * lib/freadahead.c (freadahead): Likewise.
60913         * lib/freading.c (freading): Likewise.
60914         * lib/freadptr.c (freadptr): Likewise.
60915         * lib/freadseek.c (freadptrinc): Likewise.
60916         * lib/fseeko.c (rpl_fseeko): Likewise.
60917         * lib/fseterr.c (fseterr): Likewise.
60918         * lib/fwritable.c (fwritable): Likewise.
60919         * lib/fwriting.c (fwriting): Likewise.
60920         Reported by Alain Guibert <alguibert+bts@free.fr>.
60921
60922 2008-04-15  Bruno Haible  <bruno@clisp.org>
60923
60924         * modules/mathl (configure.ac): Define module indicator.
60925
60926 2008-04-15  Bruno Haible  <bruno@clisp.org>
60927
60928         * lib/logl.c (logl): Remove unused variables.
60929
60930 2008-04-15  Bruno Haible  <bruno@clisp.org>
60931
60932         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60933         fails.
60934
60935 2008-04-15  Bruno Haible  <bruno@clisp.org>
60936
60937         * lib/trim.c (trim2): Fix argument of isspace() macro.
60938
60939 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60940
60941         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60942         to 0.
60943         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60944
60945 2008-04-14  Bruno Haible  <bruno@clisp.org>
60946
60947         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60948         AC_LANG_PROGRAM argument.
60949         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60950         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60952         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60953         * m4/math_h.m4 (gl_MATH_H): Likewise.
60954         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60955         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60956         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60957         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60958         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60959         * m4/regex.m4 (gl_REGEX): Likewise.
60960         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60961         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60962         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60963         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60964         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60965         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60966         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60968
60969 2008-04-14  Jim Meyering  <meyering@redhat.com>
60970
60971         test-strtod: fix typos: s/abs/fabs/
60972         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60973
60974 2008-04-13  Bruno Haible  <bruno@clisp.org>
60975
60976         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60977         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60978         module is also used and while not building the reloc-wrapper.
60979
60980 2008-04-13  Bruno Haible  <bruno@clisp.org>
60981
60982         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60983
60984 2008-04-13  Bruno Haible  <bruno@clisp.org>
60985
60986         Fix AIX compilation failure introduced on 2008-04-02.
60987         * tests/test-frexp.c (exp): Undefine before redefining.
60988         * tests/test-frexpl.c (exp): Likewise.
60989
60990 2008-04-13  Bruno Haible  <bruno@clisp.org>
60991
60992         Work around a HP-UX stdio bug.
60993         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60994         * tests/test-ftello.c (main): Likewise.
60995         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60996         * doc/posix-functions/ftello.texi: Likewise.
60997
60998 2008-04-13  Bruno Haible  <bruno@clisp.org>
60999
61000         Make test-signbit pass on HP-UX/hppa.
61001         * tests/test-signbit.c (minus_zerol): New variable.
61002         (test_signbitl): Use it.
61003
61004 2008-04-13  Bruno Haible  <bruno@clisp.org>
61005
61006         Make truncl work on OSF/1 4.0.
61007         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61008         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61009         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61011         HAVE_DECL_TRUNCL.
61012         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61013         HAVE_DECL_TRUNCL.
61014         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61015
61016 2008-04-13  Bruno Haible  <bruno@clisp.org>
61017
61018         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61019
61020 2008-04-13  Bruno Haible  <bruno@clisp.org>
61021
61022         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61023         expression, so as to avoid HP-UX 11 cc compiler bug.
61024
61025 2008-04-13  Bruno Haible  <bruno@clisp.org>
61026
61027         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61028
61029 2008-04-13  Bruno Haible  <bruno@clisp.org>
61030
61031         * lib/git-merge-changelog.c: Remove empty declaration outside of
61032         functions.
61033
61034 2008-04-13  Bruno Haible  <bruno@clisp.org>
61035
61036         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61037
61038 2008-04-13  Bruno Haible  <bruno@clisp.org>
61039
61040         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61041         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61043         also if it exists but lacks definitions of the SHUT_* macros.
61044         * modules/sys_socket (Description): Update.
61045         Reported by Elbert Pol <e.pol@chello.nl>.
61046
61047 2008-04-13  Bruno Haible  <bruno@clisp.org>
61048
61049         * lib/localcharset.c (OS2): Don't redefine if already defined.
61050         Reported by Elbert Pol <e.pol@chello.nl>.
61051
61052 2008-04-13  Bruno Haible  <bruno@clisp.org>
61053
61054         * lib/binary-io.h [__EMX__]: Include <io.h>.
61055         Reported by Elbert Pol <e.pol@chello.nl>.
61056
61057 2008-04-12  Bruno Haible  <bruno@clisp.org>
61058
61059         * lib/fpucw.h: Enable the definitions also for x86_64.
61060         Needed for NetBSD/x86_64.
61061         Reported by Thomas Klausner <tk@giga.or.at>.
61062
61063 2008-04-12  Bruno Haible  <bruno@clisp.org>
61064
61065         * tests/test-strtod.c: Include isnand.h.
61066         (main): Use isnand instead of isnan.
61067         Reported by Jim Meyering.
61068
61069 2008-04-12  Bruno Haible  <bruno@clisp.org>
61070
61071         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61072         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61073
61074 2008-04-12  Jim Meyering  <meyering@redhat.com>
61075
61076         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61077
61078 2008-04-12  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61081         Reported by Elbert Pol <e.pol@chello.nl>.
61082
61083 2008-04-12  Eric Blake  <ebb9@byu.net>
61084
61085         Work around Solaris 10 math.h bug.
61086         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61087         (gl_MATH_H_DEFAULTS): Set up default.
61088         * modules/math (Makefile.am): Replace new indicators.
61089         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61090         * tests/test-math.c (main): Test this.
61091         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61092         * doc/posix-headers/math.texi (math.h): Mention bug.
61093         Reported by Nelson H. F. Beebe and Jim Meyering.
61094
61095 2008-04-11  Bruno Haible  <bruno@clisp.org>
61096
61097         Adapt to future versions of Apple GCC.
61098         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61099         Reported by Peter O'Gorman <peter@pogma.com>.
61100
61101 2008-04-11  Bruno Haible  <bruno@clisp.org>
61102
61103         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61104
61105 2008-04-11  Bruno Haible  <bruno@clisp.org>
61106
61107         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61108
61109         * modules/getaddrinfo-tests (Makefile.am): Define
61110         test_getaddrinfo_LDADD.
61111
61112 2008-04-11  Bruno Haible  <bruno@clisp.org>
61113
61114         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61115         (init): Fix syntax error.
61116         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61117         is declared.
61118
61119 2008-04-11  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61122         * modules/glob (Depends-on): Add stdbool.
61123
61124 2008-04-11  Bruno Haible  <bruno@clisp.org>
61125
61126         * lib/trim.c: Include <string.h>.
61127
61128 2008-04-11  Eric Blake  <ebb9@byu.net>
61129
61130         Avoid compile failure on OS/2.
61131         * lib/regex_internal.h (internal_function): Disable optimization
61132         on OS/2 (__EMX__), where it caused compiler error.
61133         Reported by Elbert Pol.
61134
61135 2008-04-11  Bruno Haible  <bruno@clisp.org>
61136
61137         Flush the standard error stream before aborting. Needed on mingw.
61138         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61139         * tests/test-array_list.c (ASSERT): Likewise.
61140         * tests/test-array_oset.c (ASSERT): Likewise.
61141         * tests/test-avltree_list.c (ASSERT): Likewise.
61142         * tests/test-avltree_oset.c (ASSERT): Likewise.
61143         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61144         * tests/test-binary-io.c (ASSERT): Likewise.
61145         * tests/test-byteswap.c (ASSERT): Likewise.
61146         * tests/test-c-ctype.c (ASSERT): Likewise.
61147         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61148         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61149         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61150         * tests/test-c-strstr.c (ASSERT): Likewise.
61151         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61152         * tests/test-canonicalize.c (ASSERT): Likewise.
61153         * tests/test-carray_list.c (ASSERT): Likewise.
61154         * tests/test-ceilf1.c (ASSERT): Likewise.
61155         * tests/test-ceilf2.c (ASSERT): Likewise.
61156         * tests/test-ceill.c (ASSERT): Likewise.
61157         * tests/test-count-one-bits.c (ASSERT): Likewise.
61158         * tests/test-fbufmode.c (ASSERT): Likewise.
61159         * tests/test-fflush2.c (ASSERT): Likewise.
61160         * tests/test-floorf1.c (ASSERT): Likewise.
61161         * tests/test-floorf2.c (ASSERT): Likewise.
61162         * tests/test-floorl.c (ASSERT): Likewise.
61163         * tests/test-fopen.c (ASSERT): Likewise.
61164         * tests/test-fpending.c (ASSERT): Likewise.
61165         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61166         * tests/test-fpurge.c (ASSERT): Likewise.
61167         * tests/test-freadable.c (ASSERT): Likewise.
61168         * tests/test-freadahead.c (ASSERT): Likewise.
61169         * tests/test-freading.c (ASSERT): Likewise.
61170         * tests/test-freadptr.c (ASSERT): Likewise.
61171         * tests/test-freadptr2.c (ASSERT): Likewise.
61172         * tests/test-freadseek.c (ASSERT): Likewise.
61173         * tests/test-freopen.c (ASSERT): Likewise.
61174         * tests/test-frexp.c (ASSERT): Likewise.
61175         * tests/test-frexpl.c (ASSERT): Likewise.
61176         * tests/test-fseek.c (ASSERT): Likewise.
61177         * tests/test-fseeko.c (ASSERT): Likewise.
61178         * tests/test-fstrcmp.c (ASSERT): Likewise.
61179         * tests/test-ftell.c (ASSERT): Likewise.
61180         * tests/test-ftello.c (ASSERT): Likewise.
61181         * tests/test-func.c (ASSERT): Likewise.
61182         * tests/test-fwritable.c (ASSERT): Likewise.
61183         * tests/test-fwriting.c (ASSERT): Likewise.
61184         * tests/test-getdelim.c (ASSERT): Likewise.
61185         * tests/test-getline.c (ASSERT): Likewise.
61186         * tests/test-i-ring.c (ASSERT): Likewise.
61187         * tests/test-iconv-utf.c (ASSERT): Likewise.
61188         * tests/test-iconv.c (ASSERT): Likewise.
61189         * tests/test-isfinite.c (ASSERT): Likewise.
61190         * tests/test-isnand.c (ASSERT): Likewise.
61191         * tests/test-isnanf.c (ASSERT): Likewise.
61192         * tests/test-isnanl.h (ASSERT): Likewise.
61193         * tests/test-ldexpl.c (ASSERT): Likewise.
61194         * tests/test-linked_list.c (ASSERT): Likewise.
61195         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61196         * tests/test-localename.c (ASSERT): Likewise.
61197         * tests/test-lseek.c (ASSERT): Likewise.
61198         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61199         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61200         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61201         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61202         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61203         * tests/test-mbschr.c (ASSERT): Likewise.
61204         * tests/test-mbscspn.c (ASSERT): Likewise.
61205         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61206         * tests/test-mbspbrk.c (ASSERT): Likewise.
61207         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61208         * tests/test-mbsrchr.c (ASSERT): Likewise.
61209         * tests/test-mbsspn.c (ASSERT): Likewise.
61210         * tests/test-mbsstr1.c (ASSERT): Likewise.
61211         * tests/test-mbsstr2.c (ASSERT): Likewise.
61212         * tests/test-mbsstr3.c (ASSERT): Likewise.
61213         * tests/test-memchr2.c (ASSERT): Likewise.
61214         * tests/test-memmem.c (ASSERT): Likewise.
61215         * tests/test-open.c (ASSERT): Likewise.
61216         * tests/test-printf-frexp.c (ASSERT): Likewise.
61217         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61218         * tests/test-printf-posix.c (ASSERT): Likewise.
61219         * tests/test-quotearg.c (ASSERT): Likewise.
61220         * tests/test-rbtree_list.c (ASSERT): Likewise.
61221         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61222         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61223         * tests/test-round1.c (ASSERT): Likewise.
61224         * tests/test-roundf1.c (ASSERT): Likewise.
61225         * tests/test-roundl.c (ASSERT): Likewise.
61226         * tests/test-signbit.c (ASSERT): Likewise.
61227         * tests/test-sleep.c (ASSERT): Likewise.
61228         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61229         * tests/test-snprintf.c (ASSERT): Likewise.
61230         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61231         * tests/test-stat-time.c (ASSERT): Likewise.
61232         * tests/test-strcasestr.c (ASSERT): Likewise.
61233         * tests/test-strerror.c (ASSERT): Likewise.
61234         * tests/test-striconv.c (ASSERT): Likewise.
61235         * tests/test-striconveh.c (ASSERT): Likewise.
61236         * tests/test-striconveha.c (ASSERT): Likewise.
61237         * tests/test-strsignal.c (ASSERT): Likewise.
61238         * tests/test-strstr.c (ASSERT): Likewise.
61239         * tests/test-strtod.c (ASSERT): Likewise.
61240         * tests/test-trunc1.c (ASSERT): Likewise.
61241         * tests/test-trunc2.c (ASSERT): Likewise.
61242         * tests/test-truncf1.c (ASSERT): Likewise.
61243         * tests/test-truncf2.c (ASSERT): Likewise.
61244         * tests/test-truncl.c (ASSERT): Likewise.
61245         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61246         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61247         * tests/test-vasnprintf.c (ASSERT): Likewise.
61248         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61249         * tests/test-vasprintf.c (ASSERT): Likewise.
61250         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61251         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61252         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61253         * tests/test-vsnprintf.c (ASSERT): Likewise.
61254         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61255         * tests/test-wcwidth.c (ASSERT): Likewise.
61256         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61257         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61258         * tests/test-xvasprintf.c (ASSERT): Likewise.
61259         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61260         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61261         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61262         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61263         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61264         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61265         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61266         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61267         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61268         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61269         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61270         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61271         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61272         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61273         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61274         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61275         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61276         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61277         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61278         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61279         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61280         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61281         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61282         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61283         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61284         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61285         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61286         * tests/unictype/test-combining.c (ASSERT): Likewise.
61287         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61288         * tests/unictype/test-digit.c (ASSERT): Likewise.
61289         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61290         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61291         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61292         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61293         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61294         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61295         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61296         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61297         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61298         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61299         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61300         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61301         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61302         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61303         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61304         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61305         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61306         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61307         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61308         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61309         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61310         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61311         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61312         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61313         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61314         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61315         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61316         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61317         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61318         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61319         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61320         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61321         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61322         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61323         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61324         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61325         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61326         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61327         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61328         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61329         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61330         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61331         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61332         Reported by Eric Blake.
61333
61334 2008-04-11  Bruno Haible  <bruno@clisp.org>
61335
61336         * lib/wchar.in.h: Tweak comment.
61337
61338 2008-04-11  Bruno Haible  <bruno@clisp.org>
61339
61340         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61341         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61342         gl_COMMON.
61343         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61344
61345 2008-04-11  Bruno Haible  <bruno@clisp.org>
61346
61347         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61348
61349 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61350
61351         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61352         of attempting to use non-existing /dev/*random.  Based on patch
61353         from Adam Strzelecki <ono@java.pl> in
61354         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61355
61356 2008-04-08  Bruno Haible  <bruno@clisp.org>
61357
61358         Add tentative support for emx+gcc.
61359         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61360         * lib/fpurge.c (fpurge): Likewise.
61361         * lib/freadable.c (freadable): Likewise.
61362         * lib/freadahead.c (freadahead): Likewise.
61363         * lib/freading.c (freading): Likewise.
61364         * lib/freadptr.c (freadptr): Likewise.
61365         * lib/freadseek.c (freadptrinc): Likewise.
61366         * lib/fseeko.c (rpl_fseeko): Likewise.
61367         * lib/fseterr.c (fseterr): Likewise.
61368         * lib/fwritable.c (fwritable): Likewise.
61369         * lib/fwriting.c (fwriting): Likewise.
61370         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61371
61372 2008-04-09  Eric Blake  <ebb9@byu.net>
61373
61374         Avoid some autoconf warnings.
61375         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61376         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61377         * m4/afs.m4 (gl_AFS): Likewise.
61378         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61379         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61380         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61381         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61382         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61383         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61384         (AC_CHECK_DECLS_ONCE): Likewise.
61385         Rename file...
61386         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61387         gnulib-tool requires autoconf 2.59 or better.
61388         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61389
61390 2008-04-08  Eric Blake  <ebb9@byu.net>
61391
61392         Use 'git describe --match' if present (added in git 1.5.5).
61393         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61394         if possible.
61395
61396 2008-04-08  Bruno Haible  <bruno@clisp.org>
61397
61398         Add tentative support for OpenServer.
61399         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61400         _ptr, _cnt.
61401         * lib/fpurge.c (fpurge): Likewise.
61402         * lib/freadable.c (freadable): Likewise.
61403         * lib/freadahead.c (freadahead): Likewise.
61404         * lib/freading.c (freading): Likewise.
61405         * lib/freadptr.c (freadptr): Likewise.
61406         * lib/freadseek.c (freadptrinc): Likewise.
61407         * lib/fseeko.c (rpl_fseeko): Likewise.
61408         * lib/fseterr.c (fseterr): Likewise.
61409         * lib/fwritable.c (fwritable): Likewise.
61410         * lib/fwriting.c (fwriting): Likewise.
61411         Reported by Roger Cornelius <rac@tenzing.org> and
61412         Brian K. White <brian@aljex.com>.
61413
61414 2008-04-06  Jim Meyering  <meyering@redhat.com>
61415
61416         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61417
61418 2008-04-06  Bruno Haible  <bruno@clisp.org>
61419
61420         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61421         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61422         * tests/test-printf-posix.sh: Likewise.
61423         * tests/test-vfprintf-posix.sh: Likewise.
61424         * tests/test-vprintf-posix.sh: Likewise.
61425         * tests/test-xprintf-posix.sh: Likewise.
61426
61427 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61428
61429         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61430         hide error from 'ls', needed on OS/2.
61431         Report by Elbert Pol <elbert.pol@gmail.com>.
61432
61433 2008-04-04  Eric Blake  <ebb9@byu.net>
61434
61435         Make test-fseeko.c failures meaningful.
61436         * tests/test-fseeko.c: Print line number on failure.
61437         * tests/test-fseek.c: Likewise.
61438         Reported by Nelson H. F. Beebe.
61439
61440         Improve strtod bug detection check.
61441         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61442         required for Solaris 10.
61443         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61444
61445 2008-04-04  Bruno Haible  <bruno@clisp.org>
61446
61447         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61448         by m4/setenv.m4.
61449
61450 2008-04-03  Eric Blake  <ebb9@byu.net>
61451
61452         Ensure sane .version contents.
61453         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61454         version string.
61455         * build-aux/git-version-gen: Improve documentation.
61456
61457         Make GNU make output nicer.
61458         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61459         MAKECMDGOALS to enforce message for all command line targets.  Set
61460         srcdir for use in maint.mk.
61461
61462         Another maintainer tweak.
61463         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61464         a target that regenerates version.
61465
61466 2008-04-03  Jim Meyering  <meyering@redhat.com>
61467
61468         vc-list-files: don't cause coreutils "make po-check" failure
61469         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61470
61471 2008-04-03  Eric Blake  <ebb9@byu.net>
61472
61473         Allow VPATH usage of vc-list-files.
61474         * build-aux/vc-list-files (scriptversion): Add timestamp.
61475         (options): Add --help, --version, -C.
61476         (CVS): Support installed cvsu.
61477
61478 2008-04-02  Bruno Haible  <bruno@clisp.org>
61479
61480         Avoid some "statement with no effect" warnings from gcc.
61481         * tests/test-wctype.c (main): Explicitly ignore unused values.
61482         Reported by Jim Meyering.
61483
61484 2008-04-02  Jim Meyering  <meyering@redhat.com>
61485
61486         Avoid some warnings from "gcc -Wshadow".
61487         * tests/test-frexp.c (exp): Define to a different identifier.
61488         * tests/test-frexpl.c (exp): Likewise.
61489
61490 2008-04-03  Jim Meyering  <meyering@redhat.com>
61491
61492         bootstrap: remove dangling *.[ch] symlinks from lib
61493         * build-aux/bootstrap [dangling symlink removal]: Move find's
61494         -depth option to precede all others, to avoid a warning.
61495         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61496
61497 2008-04-02  Bruno Haible  <bruno@clisp.org>
61498
61499         Avoid some warnings from "gcc -Wshadow".
61500         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61501         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61502         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61503         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61504         Reported by Jim Meyering.
61505
61506 2008-04-01  Bruno Haible  <bruno@clisp.org>
61507
61508         Fix test to work on IRIX 6.5 with cc.
61509         * tests/test-math.c (numeric_equal): New function.
61510         (main): Use it.
61511
61512 2008-04-01  Bruno Haible  <bruno@clisp.org>
61513
61514         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61515
61516 2008-04-01  Bruno Haible  <bruno@clisp.org>
61517
61518         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61519         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61520         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61521         (Depends-on): Remove math.
61522
61523         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61524         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61525         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61526         (Depends-on): Remove math.
61527
61528         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61529         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61530         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61531         (Depends-on): Remove math.
61532         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61533         (Depends-on): Remove math.
61534
61535         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61536         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61537         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61538         (Depends-on): Remove math.
61539         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61540         (Depends-on): Remove math.
61541
61542         * tests/test-round1.c: Include nan.h.
61543         (main): Use NaNd instead of NAN.
61544         * modules/round-tests (Files): Add tests/nan.h.
61545
61546         * tests/test-trunc1.c: Include nan.h.
61547         (main): Use NaNd instead of NAN.
61548         * modules/trunc-tests (Files): Add tests/nan.h.
61549
61550         * tests/test-roundf1.c: Include nan.h.
61551         (main): Use NaNf instead of NAN.
61552         * modules/roundf-tests (Files): Add tests/nan.h.
61553
61554         * tests/test-truncf1.c: Include nan.h.
61555         (main): Use NaNf instead of NAN.
61556         * modules/truncf-tests (Files): Add tests/nan.h.
61557
61558         * tests/test-ceilf1.c: Include nan.h.
61559         (main): Use NaNf instead of NAN.
61560         * modules/ceilf-tests (Files): Add tests/nan.h.
61561
61562         * tests/test-floorf1.c: Include nan.h.
61563         (main): Use NaNf instead of NAN.
61564         * modules/floorf-tests (Files): Add tests/nan.h.
61565
61566         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61567         (main): Use NaNf instead of NAN.
61568         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61569
61570         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61571         (main): Use NaNd instead of NAN.
61572         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61573
61574         * tests/test-frexp.c: Include nan.h.
61575         (main): Use NaNd instead of NAN.
61576         * modules/frexp-tests (Files): Add tests/nan.h.
61577
61578         * lib/isnan.c: Don't include <math.h>.
61579         (FUNC): Don't use NAN macro.
61580         * modules/isnand-nolibm (Depends-on): Remove math.
61581         * modules/isnanf-nolibm (Depends-on): Remove math.
61582         * modules/isnanl (Depends-on): Remove math.
61583         * modules/isnanl-nolibm (Depends-on): Remove math.
61584
61585         * tests/nan.h: New file.
61586
61587 2008-04-01  Eric Blake  <ebb9@byu.net>
61588
61589         Fix typos.
61590         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61591         values to be the right type.
61592
61593         For now, cater to gnulib strtod inaccuracies.
61594         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61595         fractional results.  While not as nice from a QoI perspective, it
61596         is a quicker patch than correctly implementing decimal to binary
61597         rounding.
61598
61599 2008-03-31  Eric Blake  <ebb9@byu.net>
61600
61601         Guarantee a definition of NAN.
61602         * lib/math.in.h (NAN): Define if missing.
61603         * tests/test-math.c (main): Test it.
61604         * doc/posix-headers/math.texi (math.h): Document this.
61605         * lib/isnan.c (rpl_isnand): Use it.
61606         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61607         * tests/test-floorf1.c (NaN): Likewise.
61608         * tests/test-frexp.c (NaN): Likewise.
61609         * tests/test-isnand.c (NaN): Likewise.
61610         * tests/test-isnanf.c (NaN): Likewise.
61611         * tests/test-round1.c (NaN): Likewise.
61612         * tests/test-roundf1.c (NaN): Likewise.
61613         * tests/test-snprintf-posix.h (NaN): Likewise.
61614         * tests/test-sprintf-posix.h (NaN): Likewise.
61615         * tests/test-trunc1.c (NaN): Likewise.
61616         * tests/test-truncf1.c (NaN): Likewise.
61617         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61618         * tests/test-vasprintf-posix.c (NaN): Likewise.
61619         * modules/isnand-nolibm (Depends-on): Add math.
61620         * modules/isnanf-nolibm (Depends-on): Likewise.
61621         * modules/isnanl (Depends-on): Likewise.
61622         * modules/isnanl-nolibm (Depends-on): Likewise.
61623         * modules/snprintf-posix-tests (Depends-on): Likewise.
61624         * modules/sprintf-posix-tests (Depends-on): Likewise.
61625         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61626         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61627         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61628         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61629
61630 2008-03-31  Bruno Haible  <bruno@clisp.org>
61631
61632         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61633         * doc/posix-functions/strtod.texi: Likewise.
61634
61635 2008-03-31  Bruno Haible  <bruno@clisp.org>
61636
61637         * tests/test-strtod.c (main): Don't use C99 syntax.
61638
61639 2008-03-31  Bruno Haible  <bruno@clisp.org>
61640
61641         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61642         Reported by Eric Blake.
61643
61644 2008-03-31  Jim Meyering  <meyering@redhat.com>
61645
61646         Don't compare actual signbit return values.
61647         * tests/test-strtod.c (main): Rather, compare only their
61648         zero/non-zero nature.
61649
61650 2008-03-31  Eric Blake  <ebb9@byu.net>
61651
61652         More strtod documentation.
61653         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61654         failures as distinct bugs.
61655
61656 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61657
61658         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61659         Problem reported by Erik Benada in
61660         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61661
61662 2008-03-30  Bruno Haible  <bruno@clisp.org>
61663
61664         * tests/test-strtod.c: Add comments about which assertion fails on which
61665         platform.
61666         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61667
61668 2008-03-30  Eric Blake  <ebb9@byu.net>
61669
61670         Test signbit behavior on zeros.
61671         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61672         (test_signbitd, test_signbitl): Likewise.
61673
61674         More strtod touchups.
61675         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61676         sign of negative underflow, for now.  Use .5, not .1.
61677         * doc/posix-functions/strtod.texi (strtod): Mention these
61678         limitations.
61679         Reported by Jim Meyering.
61680
61681 2008-03-30  Bruno Haible  <bruno@clisp.org>
61682
61683         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61684         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61685
61686 2008-03-30  Bruno Haible  <bruno@clisp.org>
61687
61688         Avoid failure when attempting to return empty iconv results on some
61689         platforms.
61690         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61691         allocation, don't report ENOMEM when the resulting string is empty.
61692
61693 2008-03-30  Bruno Haible  <bruno@clisp.org>
61694
61695         Fix buffer overrun.
61696         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61697         Don't consider the width for tmp_length. Check count against tmp_length
61698         before doing the padding. Ensure enough allocation during padding.
61699
61700 2008-03-30  Eric Blake  <ebb9@byu.net>
61701
61702         strtod touchups.
61703         * lib/strtod.c (strtod): Avoid compiler warnings.
61704         Reported by Jim Meyering.
61705
61706 2008-03-30  Bruno Haible  <bruno@clisp.org>
61707
61708         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61709         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61710         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61711         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61712         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61713         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61714         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61715         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61716
61717         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61718         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61719         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61720         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61721         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61722         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61723         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61724         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61725
61726         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61727         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61728         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61729         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61730         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61731         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61732         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61733         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61734
61735         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61736         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61737
61738         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61739         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61740
61741         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61742         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61743
61744         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61745         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61746         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61747
61748         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61749         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61750         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61751
61752         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61753         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61754         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61755
61756         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61757         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61758         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61759
61760         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61761         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61763         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61764         (Depends-on): Add EOVERFLOW.
61765         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61766         (Depends-on): Add EOVERFLOW.
61767         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61768         (Depends-on): Add EOVERFLOW.
61769         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61770         (Depends-on): Add EOVERFLOW.
61771         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61772         (Depends-on): Add EOVERFLOW.
61773         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61774         (Depends-on): Add EOVERFLOW.
61775         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61776         (Depends-on): Add EOVERFLOW.
61777         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61778         (Depends-on): Add EOVERFLOW.
61779
61780         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61781         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61782         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61783
61784         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61785         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61786         * modules/snprintf (Depends-on): Add EOVERFLOW.
61787
61788         * lib/poll.c (EOVERFLOW): Remove fallback.
61789         * modules/poll (Depends-on): Add EOVERFLOW.
61790
61791         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61792         * modules/getugroups (Depends-on): Add EOVERFLOW.
61793
61794         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61795         * modules/getdelim (Depends-on): Add EOVERFLOW.
61796
61797         * lib/ftell.c (EOVERFLOW): Remove fallback.
61798         * modules/ftell (Depends-on): Add EOVERFLOW.
61799
61800         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61801         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61802         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61803
61804         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61805
61806         * modules/EOVERFLOW-tests: New file.
61807         * tests/test-EOVERFLOW.c: New file.
61808
61809         * modules/EOVERFLOW: New file.
61810         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61811
61812 2008-03-30  Bruno Haible  <bruno@clisp.org>
61813
61814         Fix bug introduced on 2007-06-10.
61815         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61816         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61817
61818 2008-03-30  Bruno Haible  <bruno@clisp.org>
61819
61820         Improve freadseek's efficiency after ungetc.
61821         * lib/freadseek.c: Include freadahead.h.
61822         (freadptrinc): New function, extracted from freadseek.
61823         (freadseek): Use it in a loop. Use freadahead to determine the number
61824         of loop iterations.
61825         * modules/freadseek (Depends-on): Add freadahead.
61826         (configure.ac): Require AC_C_INLINE.
61827
61828 2008-03-30  Bruno Haible  <bruno@clisp.org>
61829
61830         * lib/freadseek.c (freadseek): Don't ignore the return value of
61831         freadptr.
61832
61833 2008-03-29  Eric Blake  <ebb9@byu.net>
61834
61835         Add hex float support.
61836         * modules/strtod (Depends-on): Add c-ctype.
61837         (Link): Mention POW_LIB.
61838         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61839         whitespace between 'e' and exponent.
61840         * tests/test-strtod.c (main): Enable hex float tests.
61841         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61842         now provides.
61843
61844         Document various strtod bugs, with some fixes.
61845         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61846         "-0x", "inf", "nan", and hex constants.
61847         * doc/posix-functions/atof.texi (atof): Likewise.
61848         * modules/stdlib (Makefile.am): Support strtod.
61849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61850         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61851         detect additional strtod bugs.
61852         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61853         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61854         bool where appropriate.  Parse 'inf' and 'nan'.
61855         * tests/test-strtod.c: New file.
61856         * modules/strtod (Depends-on): Add stdbool, stdlib.
61857         (configure.ac): Turn on module indicator.
61858         * modules/strtod-tests: New module.
61859
61860 2008-03-29  Eric Blake  <ebb9@byu.net>
61861
61862         Fix ftell on mingw.
61863         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61864         * modules/ftell-tests (Depends-on): Add binary-io.
61865         * modules/ftello-tests (Depends-on): Likewise.
61866         * tests/test-ftell.c (main): Enhance test to cover behavior after
61867         ungetc.  Enforce binary mode.
61868         * tests/test-ftello.c (main): Likewise.
61869
61870         Pass test-freadseek on cygwin.
61871         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61872         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61873         ungetc buffer.
61874
61875         * tests/test-fflush2.c (main): Fix typo.
61876
61877 2008-03-29  Bruno Haible  <bruno@clisp.org>
61878
61879         * tests/test-fflush2.c (main): Temporarily disable the contents of
61880         this test.
61881         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61882         Reported by Eric Blake.
61883
61884 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61885
61886         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61887         (GC_SHA224_DIGEST_SIZE): Add.
61888
61889         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61890         (gc_hash_digest_length): Likewise.
61891         (gc_hash_buffer): Likewise.
61892
61893 2008-03-25  Bruno Haible  <bruno@clisp.org>
61894
61895         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61896         detail which gettext release to use.
61897         Reported by Simon Josefsson.
61898
61899 2008-03-26  Jim Meyering  <meyering@redhat.com>
61900
61901         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61902         * modules/gnumakefile (clean-GNUmakefile): Also, use
61903         test ... && ... || : syntax rather than if-then ... fi.
61904
61905         gnumakefile: Don't double-quote-expand $(VPATH) value.
61906         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61907
61908 2008-03-24  Eric Blake  <ebb9@byu.net>
61909
61910         Alter GNUmakefile to install into top directory.
61911         * modules/maintainer-makefile: Split, and add dependency...
61912         * modules/gnumakefile: to this new module.
61913         * build-aux/GNUmakefile: Move...
61914         * top/GNUmakefile: ...here.
61915         * build-aux/maint.mk: Move...
61916         * top/maint.mk: ...here.
61917         * MODULES.html.sh (Support for maintaining...): Document new
61918         module.
61919
61920 2008-03-23  Bruno Haible  <bruno@clisp.org>
61921
61922         * gnulib-tool: New options --vc-files, --no-vc-files.
61923         (func_usage): Document them.
61924         (vc_files): New variable.
61925         (func_import): Consider vc_files.
61926         (func_create_testdir): Set vc_files to empty.
61927         Suggested by Jim Meyering and Karl Berry.
61928
61929 2008-03-23  Bruno Haible  <bruno@clisp.org>
61930
61931         Fix regex compilation error on HP-UX 11.
61932         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61933         * modules/regex (Files): Add m4/mbstate_t.m4.
61934         Reported by Ton Voon <ton.voon@altinity.com>.
61935
61936 2008-03-23  Bruno Haible  <bruno@clisp.org>
61937
61938         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61939
61940 2008-03-23  Eric Blake  <ebb9@byu.net>
61941             Bruno Haible  <bruno@clisp.org>
61942
61943         Install files from top/ in the destination directory.
61944         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61945         augmentation also for the files from top/.
61946         (func_import, func_create_testdir): Rewrite file names:
61947         top/filename -> filename.
61948
61949 2008-03-23  Bruno Haible  <bruno@clisp.org>
61950
61951         Tweak "gnulib --version" output.
61952         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61953
61954 2008-03-23  Bruno Haible  <bruno@clisp.org>
61955
61956         Tweak "gnulib --version" output.
61957         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61958         rather than contents of ChangeLog, when possible.
61959
61960 2008-03-21  Eric Blake  <ebb9@byu.net>
61961
61962         More --version tweaks.
61963         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61964         date of last ChangeLog entry.
61965
61966 2008-03-21  Jim Meyering  <meyering@redhat.com>
61967
61968         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61969
61970 2008-03-20  Eric Blake  <ebb9@byu.net>
61971
61972         VPATH fix.
61973         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61974
61975 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61976
61977         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61978         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61979
61980 2008-03-20  Eric Blake  <ebb9@byu.net>
61981
61982         Sync GNUmakefile with coreutils.
61983         * build-aux/GNUmakefile (have-Makefile): Rename...
61984         (_have-Makefile): ...to this, for namespace consideration.
61985         (GNUmakefile.cfg): Include, if present.
61986         (_autoreconf): Define a default.
61987         (_is-dist-target): New rule for rebuilds to pick up intra-release
61988         version.
61989         (maint-cfg.mk): Rename...
61990         (cfg.mk): ...to this.
61991
61992 2008-03-18  Jim Meyering  <meyering@redhat.com>
61993
61994         New script and module: mktempd
61995         * MODULES.html.sh (maint+release support): Add mktempd.
61996         * build-aux/mktempd: New file.
61997         * modules/mktempd: New file.
61998
61999 2008-03-15  Jim Meyering  <meyering@redhat.com>
62000
62001         Undo last change.
62002         * lib/sha1.c, lib/md5.c: 63 != ~63.
62003         Reported by Andreas Schwab.
62004
62005         sha1.c, md5.c: Hoist a redundant expression.
62006         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62007         "ctx->buflen" only once, before calling *_process_block.
62008         * lib/md5.c (md5_process_bytes): Likewise.
62009
62010 2008-03-14  Eric Blake  <ebb9@byu.net>
62011
62012         Bump copyright year in files generated by gnulib-tool.
62013         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62014         gnulib-tool, rather than hard-coding it.
62015
62016         Fix 'gnulib-tool --version' output to work with git.
62017         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62018         (startup): ...here.
62019         (func_version): Use it to invoke git-version-gen, rather than
62020         relying on CVS keyword expansion.  Modernize wording.
62021         (cvsdatestamp, last_checkin_date, version): Kill unused
62022         variables.
62023
62024 2008-03-12  Jim Meyering  <meyering@redhat.com>
62025
62026         Recognize optional cast of the argument to free.
62027         * build-aux/useless-if-before-free: Update regexps.
62028
62029         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62030
62031 2008-03-11  Bruno Haible  <bruno@clisp.org>
62032
62033         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62034         by a single package.
62035         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62036         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62037         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62038         Reported by Sam Steingold <sds@gnu.org>.
62039
62040 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62041
62042         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62043         repositories.
62044
62045 2008-03-11  Bruno Haible  <bruno@clisp.org>
62046
62047         Avoid conflicts between local macro definitions.
62048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62049         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62050
62051 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62052             Bruno Haible  <bruno@clisp.org>
62053
62054         Make va_copy work with some version of xlc on AIX 5.1.
62055         * lib/stdarg.in.h: New file.
62056         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62057         On AIX, use a <stdarg.h> file substitute.
62058         * modules/stdarg (Files): Add lib/stdarg.in.h.
62059         (Depends-on): Add include_next.
62060         (Makefile.am): Build a stdarg.h substitute if requested.
62061         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62062
62063 2008-03-10  Bruno Haible  <bruno@clisp.org>
62064
62065         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62066         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62067         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62068
62069 2008-03-10  Bruno Haible  <bruno@clisp.org>
62070
62071         * modules/stdlib (Depends-on): Add include_next, remove
62072         absolute-header.
62073
62074 2008-03-09  Bruno Haible  <bruno@clisp.org>
62075
62076         * lib/freadahead.h (freadahead): Document more precisely.
62077         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62078         the sum of both buffer sizes.
62079         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62080         * NEWS: Document the change.
62081
62082 2008-03-09  Bruno Haible  <bruno@clisp.org>
62083
62084         Extend freadptr to return also the buffer size.
62085         * lib/freadptr.h (freadptr): Add sizep argument.
62086         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62087         (freadptr): Add sizep argument. Determine buffer size like freadahead
62088         does.
62089         * tests/test-freadptr.c: Don't include freadahead.h.
62090         (main): Adapt for new calling convention of freadptr.
62091         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62092         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62093         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62094         tests/test-freadptr2.sh.
62095         (Depends): Remove freadahead.
62096         (TESTS): Add test-freadptr2.sh.
62097         (check_PROGRAMS): Add test-freadptr2.
62098
62099 2008-03-09  Bruno Haible  <bruno@clisp.org>
62100
62101         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62102         Report and solution by Simon Josefsson.
62103
62104 2008-03-06  Bruno Haible  <bruno@clisp.org>
62105
62106         Make fflush after ungetc work on BSD platforms.
62107         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62108         * tests/test-fflush2.c: New file.
62109         * tests/test-fflush2.sh: New file.
62110         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62111         tests/test-fflush2.c.
62112         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62113         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62114
62115 2008-03-06  Eric Blake  <ebb9@byu.net>
62116
62117         Likewise for ftello.
62118         * modules/ftello (Dependencies): Add extensions.
62119         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62120
62121 2008-03-06  Bruno Haible  <bruno@clisp.org>
62122
62123         * modules/fseeko (Dependencies): Add extensions.
62124         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62125         Needed on glibc systems.
62126
62127 2008-03-06  Bruno Haible  <bruno@clisp.org>
62128
62129         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62130         email address.
62131         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62132
62133 2008-03-06  Bruno Haible  <bruno@clisp.org>
62134
62135         * users.txt: Add libgnupdf.
62136
62137 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62138
62139         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62140         (Header File Substitutes, Function Substitutes,
62141         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62142         (Build robot for gnulib): Fix typo.
62143
62144 2008-03-06  Bruno Haible  <bruno@clisp.org>
62145
62146         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62147         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62148
62149 2008-03-06  Bruno Haible  <bruno@clisp.org>
62150
62151         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62152         * doc/gnulib.texi: Include it.
62153
62154 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62155
62156         * modules/func (License): Change license to unlimited; there was
62157         no LGPL parts in the module anyway.
62158
62159 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62160
62161         * modules/__func__: Renamed to modules/func.
62162         * modules/__func__-tests: Renamed to modules/func-tests.
62163         * tests/test-__func__.c: Renamed to tests/test-func.c.
62164         * m4/__func__.m4: Renamed to m4/func.m4.
62165         * doc/gnulib.texi (__func__): Section renamed to func.
62166         Suggested by Eric Blake <ebb9@byu.net>.
62167
62168 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62169
62170         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62171         about __func__.  Make example self-contained.  Suggested by Eric
62172         Blake <ebb9@byu.net>.
62173
62174         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62175         Suggested by Eric Blake <ebb9@byu.net>.
62176
62177 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62178
62179         * modules/__func__: New file.
62180         * modules/__func__-tests: New file.
62181         * tests/test-__func__.c: New file.
62182         * m4/__func__.m4: New file.
62183         * doc/gnulib.texi (__func__): Document __func__ module.
62184
62185 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62186
62187         * modules/byteswap (License): Re-license as LGPLv2+.
62188
62189 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62190
62191         * doc/Makefile: Add pdf target.
62192
62193 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62194
62195         * modules/inline (License): Use 'unlimited', since there are only
62196         *.m4 files in this module.
62197
62198 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62199             Bruno Haible  <bruno@clisp.org>
62200
62201         Add support for HP C 7.1 on OpenVMS 8.3.
62202         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62203
62204 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62205
62206         Update VMS specifics.
62207         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62208
62209 2008-03-02  Jim Meyering  <meyering@redhat.com>
62210
62211         Remove the last dependency on the "free" module.
62212         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62213         Reported by Bob Proulx.
62214
62215         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62216
62217         Remove useless "if" tests before free.  Deprecate "free" module.
62218         * doc/posix-functions/free.texi: Mention that this
62219         module is no longer useful.
62220         * modules/free (Notice): Say this module is obsolete.
62221         * modules/readutmp (Depends-on): Remove free.
62222         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62223         * lib/putenv.c (putenv): Likewise.
62224         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62225         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62226         * tests/test-c-strcasestr.c (main): Likewise.
62227         * tests/test-c-strstr.c (main): Likewise.
62228         * tests/test-mbscasestr1.c (main): Likewise.
62229         * tests/test-mbscasestr2.c (main): Likewise.
62230         * tests/test-mbsstr1.c (main): Likewise.
62231         * tests/test-mbsstr2.c (main): Likewise.
62232         * tests/test-memmem.c (main): Likewise.
62233         * tests/test-strcasestr.c (main): Likewise.
62234         * tests/test-striconv.c (main): Likewise.
62235         * tests/test-striconveh.c (main): Likewise.
62236         * tests/test-striconveha.c (main): Likewise.
62237         * tests/test-strstr.c (main): Likewise.
62238
62239         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62240
62241         bootstrap: sync from coreutils again
62242         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62243
62244 2008-03-01  Jim Meyering  <meyering@redhat.com>
62245
62246         bootstrap: sync from coreutils
62247         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62248         also when the target doesn't exist.
62249
62250 2008-03-01  Eric Blake  <ebb9@byu.net>
62251
62252         Fix bugs in last patch.
62253         * lib/memchr2.c (memchr2): Fix typo.
62254         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62255         extension.
62256         Reported by Bruce Korb.
62257
62258         New module 'memchr2'.
62259         * modules/memchr2: New file.
62260         * modules/memchr2-tests: Likewise.
62261         * lib/memchr2.h: Likewise.
62262         * lib/memchr2.c: Likewise, based on memchr.c.
62263         * tests/test-memchr2.c: New test.
62264         * MODULES.html.sh (String handling): Add memchr2.
62265
62266 2008-02-29  Bruno Haible  <bruno@clisp.org>
62267
62268         * modules/freadseek-tests: New file.
62269         * tests/test-freadseek.sh: New file.
62270         * tests/test-freadseek.c: New file.
62271
62272         New module 'freadseek'.
62273         * modules/freadseek: New file.
62274         * lib/freadseek.h: New file.
62275         * lib/freadseek.c: New file.
62276         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62277
62278 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62279
62280         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62281         wydawca.
62282
62283         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62284         program_invocation_name and program_invocation_short_name are
62285         present.
62286
62287 2008-02-28  Bruno Haible  <bruno@clisp.org>
62288
62289         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62290         * tests/test-freadptr.sh: Also test non-seekable stdin.
62291
62292 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62293
62294         * build-aux/bootstrap (source_base, m4_base)
62295         (doc_base, tests_base): New variables.
62296         (gnulib_tool_options): Do not hardcode base directories, use
62297         the above variables instead.
62298
62299 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62300
62301         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62302
62303 2008-02-28  Bruno Haible  <bruno@clisp.org>
62304
62305         * modules/freadptr-tests: New file.
62306         * tests/test-freadptr.sh: New file.
62307         * tests/test-freadptr.c: New file.
62308
62309         New module 'freadptr'.
62310         * modules/freadptr: New file.
62311         * lib/freadptr.h: New file.
62312         * lib/freadptr.c: New file.
62313         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62314
62315 2008-02-26  Karl Berry  <karl@freefriends.org>
62316
62317         Sync from Libtool:
62318         * libltdl/argz.c (argz_add, argz_count): New functions.
62319         * libltdl/argz.in.h: Declare them.
62320         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62321
62322 2008-02-22  Bruno Haible  <bruno@clisp.org>
62323
62324         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62325         is a pointer type.  Needed for HP-UX 10.
62326         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62327         * doc/posix-functions/gmtime_r.texi: Likewise.
62328         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62329
62330 2008-02-24  Bruno Haible  <bruno@clisp.org>
62331
62332         * modules/environ-tests: New file.
62333         * tests/test-environ.c: New file.
62334
62335         New module 'environ'.
62336         * modules/environ: New file.
62337         * lib/unistd.in.h (environ): New declaration.
62338         * m4/environ.m4: New file.
62339         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62340         after use.
62341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62342         HAVE_DECL_ENVIRON.
62343         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62344         HAVE_DECL_ENVIRON.
62345         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62346         wrong claim that 'environ' is missing on some systems.
62347         * modules/execute (Depends-on): Add environ.
62348         * lib/execute.c (environ): Remove fallback declaration.
62349         * modules/pipe (Depends-on): Add environ.
62350         * lib/pipe.c (environ): Remove fallback declaration.
62351         * modules/setenv (Depends-on): Add environ.
62352         * lib/setenv.c (environ): Remove fallback declaration.
62353         * modules/unsetenv (Depends-on): Add environ.
62354         * lib/unsetenv.c (environ): Remove fallback declaration.
62355         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62356         m4/environ.m4.
62357         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62358         (gl_PREREQ_UNSETENV): Likewise.
62359
62360 2008-02-24  Bruno Haible  <bruno@clisp.org>
62361
62362         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62363
62364 2008-02-20  Bob Proulx  <bob@proulx.com>
62365
62366         Enable use of older two part flavor 'git describe'.
62367         * build-aux/git-version-gen: If using the older two part flavor of
62368         git version then recreate the third part now present in the
62369         newer three part flavor of git describe.
62370
62371 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62372
62373         * lib/fts.c (fts_build): Typo correction to comment.
62374
62375 2008-02-17  Bruno Haible  <bruno@clisp.org>
62376
62377         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62378         generating no-op conflicts.
62379
62380 2008-02-17  Bruno Haible  <bruno@clisp.org>
62381
62382         Speed up by 10%.
62383         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62384         result_entries, rather than an index-based loop.
62385
62386 2008-02-17  Bruno Haible  <bruno@clisp.org>
62387
62388         Speed up by 25%.
62389         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62390         'hashcode_cached'.
62391         (entry_create): New function.
62392         (entry_hashcode): Use the cached hashcode if possible.
62393         (read_changelog_file, try_split_merged_entry): Use entry_create.
62394
62395 2008-02-17  Bruno Haible  <bruno@clisp.org>
62396
62397         Speed up from O(n^2) to O(n) for long ChangeLog files.
62398         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62399         (read_changelog_file): Change implementation of entries_reversed list
62400         to rbtreehash.
62401         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62402
62403 2008-02-17  Bruno Haible  <bruno@clisp.org>
62404
62405         New option --split-merged-entry.
62406         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62407         (find_paragraph_end, try_split_merged_entry): New functions.
62408         (long_options): Add option --split-merged-entry.
62409         (usage): Document option --split-merged-entry.
62410         (main): Implement option --split-merged-entry.
62411         Reported by Eric Blake.
62412
62413 2008-02-17  Bruno Haible  <bruno@clisp.org>
62414
62415         * lib/git-merge-changelog.c: Include c-strstr.h.
62416         (main): Support the "git pull --rebase" situation.
62417         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62418         Reported by Eric Blake.
62419
62420 2008-02-16  Eric Blake  <ebb9@byu.net>
62421
62422         Avoid doubling \ in common case of "c-maybe" quoting style.
62423         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62424         eliding outer quotes.
62425         * lib/quotearg.h: Document this.
62426         * tests/test-quotearg.c (result_strings, inputs, results_g)
62427         (flag_results, locale_results): Test it by adding a new string to
62428         each test group.
62429         (compare_strings): Test new string.
62430
62431 2008-02-13  Eric Blake  <ebb9@byu.net>
62432
62433         Avoid trigraph quoting in default output.
62434         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62435         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62436         unless explicitly requested.
62437         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62438
62439 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62440
62441         Don't rely on signed integer overflowing to negative value.
62442         * lib/getugroups.c (getugroups): Include <limits.h>.
62443         Instead, compare against INT_MAX, and increment only if the test passes.
62444
62445 2008-02-13  Jim Meyering  <meyering@redhat.com>
62446         and Eric Blake  <ebb9@byu.net>
62447
62448         Avoid shadowing warning and compile errors on Linux.
62449         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62450         forwarding macros on Linux.
62451         (dcgettext): Define a stub, for Linux.
62452         (results_g, main): Avoid warnings.
62453
62454 2008-02-12  Eric Blake  <ebb9@byu.net>
62455
62456         Silence warning in last patch.
62457         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62458
62459         Quotearg part 4: add tests, fix c-maybe colon quoting.
62460         * lib/quotearg.h: Improve documentation.
62461         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62462         escapes when adding outer quotes.  When quoting trigraphs, use
62463         valid C notation.  When quoting NUL, omit extra characters if next
62464         character is not digit.  Alter prototype.
62465         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62466         callers.
62467         * modules/quotearg-tests: New module.
62468         * tests/test-quotearg.c: New test.
62469
62470 2008-02-07  Eric Blake  <ebb9@byu.net>
62471
62472         Quotearg part 3: add flag to control outer quote elision.
62473         * lib/quotearg.h (c_maybe_quoting_style): New style.
62474         (enum quoting_flags): Better documentation of flags.
62475         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62476         c-maybe style.
62477         (quotearg_buffer_restyled): Handle new flag to elide outer
62478         quotes.
62479
62480         Quotearg part 2: add flag that can control NUL elision.
62481         * lib/quotearg.h (set_quoting_flags): New prototype.
62482         * lib/quotearg.c (struct quoting_options): Add flag field.
62483         (set_quoting_flags): New function.
62484         (quotearg_buffer_restyled): Add flags parameter.
62485         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62486         (quotearg_n_options): Set the flag, since length cannot be
62487         returned.
62488         (quoting_options_from_style): Default flags correctly.
62489
62490         Quotearg part 1: more wrappers, restore quotearg_char state.
62491         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62492         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62493         (quotearg_colon_mem): New wrappers.
62494         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62495         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62496         functions.
62497         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62498         (quotearg_colon_mem): New functions.
62499
62500 2008-02-11  Bruno Haible  <bruno@clisp.org>
62501
62502         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62503         library in the current directory: it does not work with parallel make.
62504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62505
62506 2008-02-11  Bruno Haible  <bruno@clisp.org>
62507
62508         * .gitattributes: New file.
62509
62510 2008-02-11  Jim Meyering  <meyering@redhat.com>
62511
62512         useless-if-before-free: Fix reversed exit values.
62513         * build-aux/useless-if-before-free: Use correct values
62514         for EXIT_MATCH and EXIT_NO_MATCH.
62515
62516         * build-aux/useless-if-before-free: Close stdout carefully.
62517
62518 2008-02-10  Bruno Haible  <bruno@clisp.org>
62519
62520         New module 'git-merge-changelog'.
62521         * modules/git-merge-changelog: New file.
62522         * lib/git-merge-changelog.c: New file.
62523
62524 2008-02-10  Jim Meyering  <meyering@redhat.com>
62525
62526         useless-if-before-free: New option: --list (-l).
62527
62528         useless-if-before-free: Don't exit immediately upon open failure.
62529         * build-aux/useless-if-before-free: Exit 2 for errors.
62530         Upon failure to open a file, don't exit immediately.
62531         Rather, just warn and continue with any remaining files.
62532
62533 2008-02-10  Bruno Haible  <bruno@clisp.org>
62534
62535         New abstract list operation 'node_set_value'.
62536         * lib/gl_list.h (gl_list_node_set_value): New function.
62537         (struct gl_list_implementation): New field node_set_value.
62538         * lib/gl_list.c (gl_list_node_set_value): New function.
62539         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62540         (gl_array_list_implementation): Update.
62541         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62542         (gl_carray_list_implementation): Update.
62543         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62544         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62545         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62546         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62547         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62548         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62549         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62550         Update.
62551         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62552         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62553         (gl_sublist_list_implementation): Update.
62554
62555 2008-02-10  Bruno Haible  <bruno@clisp.org>
62556
62557         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62558         Needed when ELEMENT is #defined to 'some_type *'.
62559
62560 2008-02-10  Jim Meyering  <meyering@redhat.com>
62561
62562         New script and module: useless-if-before-free
62563         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62564         * build-aux/useless-if-before-free: New file.
62565         * modules/useless-if-before-free: New file.
62566
62567         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62568
62569         xstrtol_error: Fix typo.
62570         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62571         s/exit_failure/exit_status/.
62572
62573 2008-02-09  Jim Meyering  <meyering@redhat.com>
62574
62575         New script and module: gitlog-to-changelog
62576         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62577         * modules/gitlog-to-changelog: New file.
62578         * build-aux/gitlog-to-changelog: New file.
62579
62580 2008-02-08  Jim Meyering  <meyering@redhat.com>
62581
62582         Avoid two "parameter unused" warnings.
62583         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62584         Mark "st" as used.
62585
62586         Use "git COMMAND", not "git-COMMAND".
62587         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62588         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62589         * build-aux/git-version-gen: Use "git status", not "git-status".
62590
62591 2008-02-07  Bruno Haible  <bruno@clisp.org>
62592
62593         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62594         Avoids a crash on Windows Vista.
62595         Reported by Adam Strzelecki <ono@java.pl> via
62596         Simon Josefsson <simon@josefsson.org>.
62597
62598 2008-02-06  Bruno Haible  <bruno@clisp.org>
62599
62600         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62601         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62602         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62604         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62605         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62606         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62607         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62608         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62609         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62610         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62611         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62612         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62613         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62614         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62615         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62616         left-adjust flag.
62617         * tests/test-snprintf-posix.h (test_function): Likewise.
62618         * tests/test-sprintf-posix.h (test_function): Likewise.
62619         * tests/test-vasprintf-posix.c (test_function): Likewise.
62620         * doc/posix-functions/fprintf.texi: Update.
62621         * doc/posix-functions/printf.texi: Update.
62622         * doc/posix-functions/snprintf.texi: Update.
62623         * doc/posix-functions/sprintf.texi: Update.
62624         * doc/posix-functions/vfprintf.texi: Update.
62625         * doc/posix-functions/vprintf.texi: Update.
62626         * doc/posix-functions/vsnprintf.texi: Update.
62627         * doc/posix-functions/vsprintf.texi: Update.
62628         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62629
62630 2008-02-06  Bruno Haible  <bruno@clisp.org>
62631
62632         Fix bug introduced on 2008-01-26.
62633         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62634
62635 2008-02-06  Bruno Haible  <bruno@clisp.org>
62636
62637         Fix bug introduced on 2007-06-10.
62638         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62639         !NEED_PRINTF_FLAG_ZERO.
62640
62641 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62642
62643         getloadavg: use libperfstat on AIX5
62644         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62645
62646 2008-02-03  Bruno Haible  <bruno@clisp.org>
62647
62648         * lib/diffseq.h: Add comments about required #includes.
62649         Reported by Michael Biggs <gnulib@doubleplum.net>.
62650
62651 2008-02-01  Bruno Haible  <bruno@clisp.org>
62652
62653         * users.txt: Add gnuit.
62654
62655 2008-01-31  Bruno Haible  <bruno@clisp.org>
62656
62657         * lib/md4.c (set_uint32): Mark as inline.
62658         * lib/md5.c (set_uint32): Likewise.
62659         * lib/sha1.c (set_uint32): Likewise.
62660         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62661         * m4/md5.m4 (gl_MD5): Likewise.
62662         * m4/sha1.m4 (gl_SHA1): Likewise.
62663
62664 2008-01-31  Jim Meyering  <meyering@redhat.com>
62665
62666         Use "sizeof VAR", rather than a literal "4".
62667         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62668         * lib/md4.c (md4_read_ctx): Likewise.
62669         * lib/sha1.c (sha1_read_ctx): Likewise.
62670
62671 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62672
62673         * tests/test-sha1.c: New file, based on test-md5.c.
62674
62675         * modules/crypto/sha1-tests: New file.
62676
62677 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62678
62679         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62680
62681 2008-01-31  Jim Meyering  <meyering@redhat.com>
62682
62683         Prefer "sizeof v" over the equivalent "4".
62684         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62685         * lib/md5.c (set_uint32): Likewise.
62686         * lib/sha1.c (set_uint32): Likewise.
62687
62688 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62689
62690         * lib/sha1.c (set_uint32): Mark function as static.
62691
62692 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62693
62694         md2: clarify comments to say that alignment is not required.
62695         * lib/md2.h: Remove warning about alignment in comment.
62696         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62697         never been required.
62698
62699 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62700
62701         md4: adapt alignment constraint fix from sha1.
62702         * lib/md4.c (set_uint32): New function, from sha1.c
62703         (md4_read_ctx): Use it.
62704         (md4_finish_ctx): Doc fix.
62705         * lib/md4.h: Doc fix.
62706
62707 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62708
62709         md5: adapt alignment constraint fix from sha1.
62710         * lib/md5.c (set_uint32): New function, from sha1.c
62711         (md5_read_ctx): Use it.
62712         (md5_finish_ctx): Doc fix.
62713         * lib/md5.h: Doc fix.
62714
62715 2008-01-30  Peter Palfrader  <weasel@debian.org>
62716
62717         sha1: remove the result buffer alignment constraint
62718         * lib/sha1.c (set_uint32): New function.
62719         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62720         constraint.
62721         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62722         * lib/sha1.h: Likewise.
62723
62724 2008-01-30  Andreas Schwab  <schwab@suse.de>
62725             Bruno Haible  <bruno@clisp.org>
62726
62727         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62728         correct definition of LDBL_MIN_EXP.
62729
62730 2008-01-30  Karl Berry  <karl@gnu.org>
62731
62732         * config/srclist-update: try to preserve x bit on updates.
62733         * config/srclistvars.sh: update for karl.
62734
62735 2008-01-29  Jim Meyering  <meyering@redhat.com>
62736
62737         vasnprintf.c: Avoid warning about unused label
62738         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62739         "overflow" label definition and associated code with the
62740         same cpp condition that guards the sole use of that label.
62741
62742 2008-01-26  Bruno Haible  <bruno@clisp.org>
62743
62744         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62745         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62746         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62747         * lib/isnanl-nolibm.h (isnanl): Likewise.
62748         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62749
62750 2008-01-26  Bruno Haible  <bruno@clisp.org>
62751
62752         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62753         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62754
62755 2008-01-26  Bruno Haible  <bruno@clisp.org>
62756
62757         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62758         GCC >= 4.0 built-in.
62759         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62760
62761 2008-01-26  Bruno Haible  <bruno@clisp.org>
62762
62763         Rename isnan, applicable to 'double' only, to isnand.
62764         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62765         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62766         (configure.ac): Update.
62767         (Include): Replace "isnan.h" with "isnand.h".
62768         * m4/isnand.m4: Renamed from m4/isnan.m4.
62769         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62770         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62771         instead of isnan.c.
62772         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62773         instead of HAVE_ISNAN_IN_LIBC.
62774         (isnand): Renamed from isnan.
62775         * lib/isnand.c: New file.
62776         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62777         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62778         (Makefile.am): Update.
62779         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62780         Include isnand.h instead of isnan.h.
62781         (main): Test isnand instead of isnan.
62782         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62783         isnan-nolibm.
62784         * modules/frexp (Depends-on): Likewise.
62785         * modules/frexp-tests (Depends-on): Likewise.
62786         * modules/frexp-nolibm (Depends-on): Likewise.
62787         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62788         * modules/isfinite (Depends-on): Likewise.
62789         * modules/round-tests (Depends-on): Likewise.
62790         * modules/signbit (Depends-on): Likewise.
62791         * modules/signbit-tests (Depends-on): Likewise.
62792         * modules/snprintf-posix (Depends-on): Likewise.
62793         * modules/sprintf-posix (Depends-on): Likewise.
62794         * modules/trunc-tests (Depends-on): Likewise.
62795         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62796         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62797         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62798         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62799         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62800         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62801         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62802         * modules/vasnprintf-posix (Depends-on): Likewise.
62803         * modules/vasprintf-posix (Depends-on): Likewise.
62804         * modules/vfprintf-posix (Depends-on): Likewise.
62805         * modules/vsnprintf-posix (Depends-on): Likewise.
62806         * modules/vsprintf-posix (Depends-on): Likewise.
62807         * lib/frexp.c: Include isnand.h instead of isnan.h.
62808         (ISNAN): Set to isnand instead of isnan.
62809         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62810         (gl_isfinited): Use isnand instead of isnan.
62811         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62812         (gl_signbitd): Use isnand instead of isnan.
62813         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62814         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62815         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62816         (main): Use isnand instead of isnan.
62817         * tests/test-round1.c: Include isnand.h.
62818         (main): Use isnand instead of isnan.
62819         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62820         (ISNAN): Set to isnand instead of isnan.
62821         * tests/test-trunc1.c: Include isnand.h.
62822         (main): Use isnand instead of isnan.
62823         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62824         (equal): Use isnand instead of isnan.
62825         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62826         isnand-nolibm.
62827         * NEWS: Mention the change.
62828
62829 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62830             Bruno Haible  <bruno@clisp.org>
62831
62832         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62833         the GCC builtins for signbits are present and set
62834         REPLACE_SIGNBIT_USING_GCC if so.
62835         * lib/math.in.h (signbit): Define using GCC builtins if
62836         REPLACE_SIGNBIT_USING_GCC is set.
62837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62838         REPLACE_SIGNBIT_USING_GCC.
62839         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62840
62841 2008-01-25  Jim Meyering  <meyering@redhat.com>
62842
62843         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62844         * lib/poll.c: Include <config.h>, not "config.h".
62845         * tests/test-getaddrinfo.c: Likewise.
62846
62847 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62848
62849         * modules/sockets-tests: New file.
62850
62851 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62852
62853         * modules/sockets: New module, can be used to call WSA_Startup and
62854         WSA_Cleanup when needed.
62855
62856         * lib/sockets.h, lib/sockets.c: New files.
62857
62858         * m4/sockets.m4: New file.
62859
62860         * tests/test-sockets.c: New file.
62861
62862 2008-01-19  Bruno Haible  <bruno@clisp.org>
62863
62864         * doc/posix-headers: Renamed from doc/headers.
62865         * doc/posix-functions: Renamed from doc/functions.
62866         * doc/gnulib.texi: Update.
62867
62868 2008-01-19  Bruno Haible  <bruno@clisp.org>
62869
62870         * doc/glibc-functions/strcasestr.texi: Include contents of
62871         doc/functions/strcasestr.texi, fixing the list of platforms.
62872         * doc/functions/strcasestr.texi: Remove file.
62873
62874 2008-01-19  Bruno Haible  <bruno@clisp.org>
62875
62876         * doc/glibc-functions/memmem.texi: Include contents of
62877         doc/functions/memmem.texi.
62878         * doc/functions/memmem.texi: Remove file.
62879
62880 2008-01-18  Bruno Haible  <bruno@clisp.org>
62881
62882         * doc/glibc-functions/*.texi: New files.
62883         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62884         to use the new files.
62885
62886 2008-01-17  Bruno Haible  <bruno@clisp.org>
62887
62888         * tests/test-gethostname.c (main): Fix printf statement.
62889
62890 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62891
62892         * modules/gethostname-tests: New file.
62893
62894         * tests/test-gethostname.c: New file.
62895
62896 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62897
62898         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62899         used by the UNAME case.  Reported by Bruno Haible
62900         <bruno@clisp.org>.
62901
62902 2008-01-17  Eric Blake  <ebb9@byu.net>
62903
62904         Convert c-strcasestr to be more efficient.
62905         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62906         (Depends-on): Add c-strcase, remove malloca, strnlen.
62907         * tests/test-c-strcasestr.c (main): Enhance test.
62908         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62909
62910 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62911
62912         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62913         Use it in creating po/Makevars.
62914
62915 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62916
62917         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62918         Applications that requires it should initialize libgcrypt
62919         manually.
62920
62921 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62922
62923         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62924
62925 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62926
62927         Fix problem with getdate on mingw32 reported by Simon Josefsson
62928         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62929         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62930         tzname", when deciding whether to declare tzname.
62931         * lib/strftime.c (tzname): Likewise.
62932
62933 2008-01-15  Bruno Haible  <bruno@clisp.org>
62934
62935         Work around a MacOS X 10.5 bug in frexpl().
62936         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62937         * doc/functions/frexpl.texi: Document the bug.
62938         Reported by Elias Pipping <pipping@gentoo.org>.
62939
62940 2008-01-14  Eric Blake  <ebb9@byu.net>
62941
62942         Touch up previous patch.
62943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62944         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62945
62946         Convert strcasestr module to use Two-Way algorithm.
62947         * modules/strcasestr-simple: New module, based on the old
62948         strcasestr, but with Two-Way rather than KMP.
62949         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62950         * lib/string.in.h (rpl_strcasestr): Declare.
62951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62952         performance.
62953         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62954         * modules/string (Makefile.am): Support strcasestr.
62955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62956         * modules/strcasestr-tests (Depends-on): Check for alarm.
62957         * tests/test-strcasestr.c: Augment test.
62958         * lib/str-two-way.h: Clean up stray macro.
62959         * NEWS: Document new module.
62960         * MODULES.html.sh (string handling): Likewise.
62961         * doc/functions/strcasestr.texi: New file.
62962         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62963         here, since it is not a POSIX function.
62964
62965 2008-01-14  Colin Watson  <cjwatson@debian.org>
62966             Bruno Haible  <bruno@clisp.org>
62967
62968         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62969         works fine; if not, set REPLACE_STRSIGNAL.
62970         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62972         REPLACE_STRSIGNAL.
62973         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62974         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62975         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62976
62977 2008-01-14  Bruno Haible  <bruno@clisp.org>
62978
62979         * modules/strsignal (Include): Change to <string.h>.
62980
62981 2008-01-14  Colin Watson  <cjwatson@debian.org>
62982
62983         * modules/argp (Notice): Add a notice recommending to change
62984         XGETTEXT_OPTIONS.
62985         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62986
62987 2008-01-13  Colin Watson  <cjwatson@debian.org>
62988
62989         * modules/strsignal-tests: New file.
62990         * tests/test-strsignal.c: New file.
62991
62992         * lib/strsignal.c: New file, from glibc with modifications.
62993         * lib/siglist.h: New file, from glibc with modifications.
62994         * lib/string.in.h (strsignal): New declaration.
62995         * m4/strsignal.m4: New file.
62996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62997         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62998         * modules/strsignal: New file.
62999         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63000         HAVE_DECL_STRSIGNAL.
63001
63002 2008-01-13  Bruno Haible  <bruno@clisp.org>
63003
63004         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63005         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63006         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63007         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63008
63009 2008-01-13  Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63012         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63013         * lib/argp.h (__attribute__): Likewise.
63014         * lib/c-stack.c (__attribute__): Likewise.
63015         * lib/error.h (__attribute__): Likewise.
63016         * lib/fts.c (__attribute__): Likewise.
63017         * lib/openat.h (__attribute__): Likewise.
63018         * lib/stdio.in.h (__attribute__): Likewise.
63019         * lib/string.in.h (__attribute__): Likewise.
63020         * lib/utimens.c (__attribute__): Likewise.
63021         * lib/vasnprintf.h (__attribute__): Likewise.
63022         * lib/xalloc.h (__attribute__): Likewise.
63023         * lib/xprintf.h (__attribute__): Likewise.
63024         * lib/xstrtol.h (__attribute__): Likewise.
63025         * lib/xvasprintf.h (__attribute__): Likewise.
63026
63027 2008-01-12  Bruno Haible  <bruno@clisp.org>
63028
63029         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63030         * doc/glibc-headers/a.out.texi: New file.
63031         * doc/glibc-headers/aliases.texi: New file.
63032         * doc/glibc-headers/alloca.texi: New file.
63033         * doc/glibc-headers/ar.texi: New file.
63034         * doc/glibc-headers/argp.texi: New file.
63035         * doc/glibc-headers/argz.texi: New file.
63036         * doc/glibc-headers/byteswap.texi: New file.
63037         * doc/glibc-headers/crypt.texi: New file.
63038         * doc/glibc-headers/endian.texi: New file.
63039         * doc/glibc-headers/envz.texi: New file.
63040         * doc/glibc-headers/err.texi: New file.
63041         * doc/glibc-headers/error.texi: New file.
63042         * doc/glibc-headers/execinfo.texi: New file.
63043         * doc/glibc-headers/fpu_control.texi: New file.
63044         * doc/glibc-headers/fstab.texi: New file.
63045         * doc/glibc-headers/fts.texi: New file.
63046         * doc/glibc-headers/getopt.texi: New file.
63047         * doc/glibc-headers/ieee754.texi: New file.
63048         * doc/glibc-headers/ifaddrs.texi: New file.
63049         * doc/glibc-headers/libintl.texi: New file.
63050         * doc/glibc-headers/mcheck.texi: New file.
63051         * doc/glibc-headers/mntent.texi: New file.
63052         * doc/glibc-headers/obstack.texi: New file.
63053         * doc/glibc-headers/paths.texi: New file.
63054         * doc/glibc-headers/printf.texi: New file.
63055         * doc/glibc-headers/pty.texi: New file.
63056         * doc/glibc-headers/resolv.texi: New file.
63057         * doc/glibc-headers/shadow.texi: New file.
63058         * doc/glibc-headers/sysexits.texi: New file.
63059         * doc/glibc-headers/ttyent.texi: New file.
63060
63061 2008-01-12  Jim Meyering  <meyering@redhat.com>
63062
63063         announce-gen: emit Gnulib's git-based version string.
63064         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63065         New option --gnulib-version=V, where V is expected to be
63066         the output of running git describe in the gnulib directory.
63067         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63068         not useful, and plan to stop publishing an xdelta file with each
63069         coreutils release.
63070
63071         * build-aux/announce-gen: Also check for lzma-compressed files.
63072
63073 2008-01-11  Bruno Haible  <bruno@clisp.org>
63074
63075         * tests/test-memmem.c (main): Increase maximum allowed time.
63076         * tests/test-strstr.c (main): Likewise.
63077
63078 2008-01-11  Bruno Haible  <bruno@clisp.org>
63079
63080         * doc/functions/memmem.texi: Add more precisions about platforms.
63081         * doc/functions/strstr.texi: Likewise.
63082
63083 2008-01-10  Eric Blake  <ebb9@byu.net>
63084
63085         * m4/strstr.m4: Delete cruft from copy-n-paste.
63086         Reported by Bruno Haible.
63087
63088 2008-01-10  Bruno Haible  <bruno@clisp.org>
63089
63090         Make c-strstr rely on strstr.
63091         * lib/c-strstr.c: Don't include str-kmp.h.
63092         (c_strstr): Define in terms of strstr.
63093         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63094         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63095
63096 2008-01-10  Bruno Haible  <bruno@clisp.org>
63097
63098         * doc/gnulib.texi (String Functions in C Locale): New section.
63099         * doc/c-ctype.texi: New file.
63100         * doc/c-strcase.texi: New file.
63101         * doc/c-strcaseeq.texi: New file.
63102         * doc/c-strcasestr.texi: New file.
63103         * doc/c-strstr.texi: New file.
63104         * doc/c-strtod.texi: New file.
63105         * doc/c-strtold.texi: New file.
63106
63107 2008-01-10  Eric Blake  <ebb9@byu.net>
63108
63109         * lib/relocatable.h: Fix a comment.
63110
63111 2008-01-10  Eric Blake  <ebb9@byu.net>
63112
63113         Share two-way algorithm.
63114         * lib/str-two-way.h: New file, merged from...
63115         * lib/memmem.c: ...here...
63116         * lib/strstr.c: ...and here.
63117         * modules/memmem (Files): Use it.
63118         * modules/strstr (Files): Likewise.
63119
63120         Avoid quadratic strstr implementations.
63121         * lib/strstr.c: New file.
63122         * m4/strstr.m4: Likewise.
63123         * modules/strstr: Likewise.
63124         * modules/strstr-tests: Likewise.
63125         * tests/test-strstr.c: Likewise.
63126         * lib/string.in.h (rpl_strstr): Declare.
63127         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63129         * modules/string (Makefile.am): Likewise.
63130         * MODULES.html.sh (string handling): Mention new module.
63131         * doc/functions/strstr.texi (strstr): Document the bug.
63132
63133 2008-01-10  Bruno Haible  <bruno@clisp.org>
63134
63135         * lib/relocatable.h (relocate): State whether result is freshly
63136         allocated or not.
63137         * lib/relocatable.c (relocate): Return a freshly allocated string
63138         instead of a pointer to a privately held string.
63139         Reported by Sylvain Beucler <beuc@gnu.org>.
63140
63141 2008-01-10  Colin Watson  <cjwatson@debian.org>
63142
63143         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63144         s/S_ISNLK/S_ISLNK/.
63145
63146 2008-01-09  Bruno Haible  <bruno@clisp.org>
63147
63148         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63149         and other files.
63150         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63151         if it's only a guess.
63152         * modules/memmem: Simplify by depending on memmem-simple.
63153
63154 2008-01-09  Bruno Haible  <bruno@clisp.org>
63155
63156         Work around OpenBSD 4.0 tdelete() bug.
63157         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63158         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63159         macros and don't redefine the enum values.
63160         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63161         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63162         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63163
63164 2008-01-09  Bruno Haible  <bruno@clisp.org>
63165
63166         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63167         (main): Don't perform the tests if setlocale did not install a UTF-8
63168         locale. Needed on OpenBSD 4.0.
63169         * modules/wcwidth-tests (Depends-on): Add localcharset.
63170
63171 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63174         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63175         * NEWS: announce this.
63176         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63177
63178 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63179         and Eric Blake  <ebb9@byu.net>
63180
63181         Add memmem-simple module.
63182         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63183         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63184         * modules/memmem-simple: New file.
63185         * modules/memmem (Description): Tweak.
63186         * MODULES.html.sh (string handling): Mention new module.
63187         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63188         addressed by memmem-simple.
63189         * NEWS: Document the difference.
63190
63191 2008-01-09  Eric Blake  <ebb9@byu.net>
63192
63193         Give gcc some memmem optimization hints.
63194         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63195         (strcasestr): Declare as pure.
63196         * modules/memmem (Maintainer): Claim my implementation.
63197
63198 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63199
63200         Support AIX 6.1 and higher.
63201         * build-aux/config.libpath: Likewise.
63202         * build-aux/config.rpath: Likewise.
63203
63204 2008-01-08  Jim Meyering  <meyering@redhat.com>
63205             Bruno Haible  <bruno@clisp.org>
63206
63207         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63208         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63209         Reported by Peter Fales in
63210         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63211
63212 2008-01-08  Bruno Haible  <bruno@clisp.org>
63213
63214         * modules/unictype/category-of (Depends-on): Add
63215         unictype/category-none.
63216         * modules/unictype/category-and-tests (Depends-on): Add
63217         unictype/category-{L,N,Lu,Nd}.
63218         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63219         * modules/unictype/category-or-tests (Depends-on): Add
63220         unictype/category-{L,N}.
63221         * modules/unictype/category-name-tests (Depends-on): Add
63222         unictype/category-{Z,Nl}.
63223         Reported by Simon Josefsson.
63224
63225 2008-01-08  Bruno Haible  <bruno@clisp.org>
63226
63227         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63228         convention better.
63229         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63230         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63231         Reported by Peter Miller <millerp@canb.auug.org.au>.
63232
63233 2008-01-08  Eric Blake  <ebb9@byu.net>
63234
63235         Rewrite memmem to guarantee linear complexity without malloc.
63236         * lib/memmem.c (memmem): Use Two-Way rather than
63237         Knuth-Morris-Pratt, to allow O(1) space usage.
63238         (critical_factorization, two_way_short_needle)
63239         (two_way_long_needle): New functions.
63240         (knuth_morris_pratt): Delete.
63241         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63242         Add stdint.
63243         * tests/test-memmem.c (main): Add tests for periodic needle and
63244         sublinear performance.
63245         * doc/functions/memmem.texi (memmem): Document other deficiencies
63246         in cygwin and older glibc.
63247
63248 2008-01-08  Bruno Haible  <bruno@clisp.org>
63249
63250         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63251         augmentation.
63252
63253 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63254
63255         Add a configure time option: --disable-acl.
63256         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63257         AC_ARG_ENABLE(acl).
63258
63259 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63260
63261         * tests/test-localename.c: Don't include obsolete "setenv.h".
63262
63263         * modules/localename-tests (Depends-on): Need unsetenv.
63264
63265 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63266
63267         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63268
63269 2008-01-06  Colin Watson  <cjwatson@debian.org>
63270
63271         * users.txt: Add man-db.
63272
63273 2008-01-07  Bruno Haible  <bruno@clisp.org>
63274
63275         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63276         previous section name.
63277
63278 2008-01-07  Bruno Haible  <bruno@clisp.org>
63279
63280         * lib/progname.c (set_program_name): Don't strip off a leading
63281         "lt-" prefix outside a .libs directory.
63282         Suggested by Paul Eggert.
63283
63284 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63285             Bruno Haible  <bruno@clisp.org>
63286
63287         Improve memory cleanup in 'relocatable' module.
63288         * lib/relocatable.h (compute_curr_prefix): Change return type to
63289         'char *'.
63290         * lib/relocatable.c (compute_curr_prefix): Change return type to
63291         'char *'. Free curr_installdir after use.
63292         (relocate): Free curr_prefix_better after use.
63293         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63294
63295 2008-01-01  Bruno Haible  <bruno@clisp.org>
63296
63297         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63298         failure on older glibc systems.
63299         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63300
63301 2008-01-05  Eric Blake  <ebb9@byu.net>
63302
63303         Avoid quadratic system memmem.
63304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63305         Reported by Ralf Wildenhues.
63306
63307         Fix memmem test for mingw.
63308         * modules/memmem-tests (configure.ac): Check for alarm.
63309         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63310         it.
63311         * doc/functions/memmem.texi: New file.
63312         * doc/gnulib.texi (Function Substitutes): Add memmem.
63313         Reported by Bruno Haible.
63314
63315 2008-01-04  Bruno Haible  <bruno@clisp.org>
63316
63317         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63318         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63319         gl_HEADER_STRING_H_DEFAULTS.
63320
63321 2008-01-04  Eric Blake  <ebb9@byu.net>
63322
63323         Shorten duration of memmem test.
63324         * tests/test-memmem.c (main): Use alarm to declare failure if test
63325         is taking too long.
63326         Reported by Ralf Wildenhues.
63327
63328 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63329
63330         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63331         string, needed by strerror.
63332
63333 2008-01-03  Colin Watson  <cjwatson@debian.org>
63334             Bruno Haible  <bruno@clisp.org>
63335
63336         * doc/gnulib-tool.texi (Localization): New section.
63337
63338 2008-01-02  Bruno Haible  <bruno@clisp.org>
63339
63340         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63341         variables to 'unsigned char *' type.
63342         Reported by Paul Eggert.
63343
63344 2008-01-02  Jim Meyering  <jim@meyering.net>
63345
63346         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63347
63348 2007-12-31  Jim Meyering  <jim@meyering.net>
63349
63350         Avoid use of private FTS type name.
63351         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63352
63353 2007-12-30  Karl Berry  <karl@gnu.org>
63354
63355         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63356         work around defect in Texinfo and/or the standalone Info browser.
63357
63358 2007-12-30  Bruno Haible  <bruno@clisp.org>
63359
63360         Unify 5 copies of the KMP code.
63361         * lib/str-kmp.h: New file.
63362         * lib/c-strcasestr.c: Include str-kmp.h.
63363         (knuth_morris_pratt): Remove function.
63364         (c_strcasestr): Update.
63365         * lib/c-strstr.c: Include str-kmp.h.
63366         (knuth_morris_pratt): Remove function.
63367         (c_strcasestr): Update.
63368         * lib/mbscasestr.c: Include str-kmp.h.
63369         (knuth_morris_pratt_unibyte): Remove function.
63370         * lib/mbsstr.c: Include str-kmp.h.
63371         (knuth_morris_pratt_unibyte): Remove function.
63372         * lib/strcasestr.c: Include str-kmp.h.
63373         (knuth_morris_pratt): Remove function.
63374         (strcasestr): Update.
63375         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63376         * modules/c-strstr (Files): Likewise.
63377         * modules/mbscasestr (Files): Likewise.
63378         * modules/mbsstr (Files): Likewise.
63379         * modules/strcasestr (Files): Likewise.
63380         Suggested by Paul Eggert.
63381
63382 2007-12-30  Bruno Haible  <bruno@clisp.org>
63383
63384         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63385         defined.
63386
63387 2007-12-30  Bruno Haible  <bruno@clisp.org>
63388
63389         * lib/xmalloca.h: Include xalloc.h.
63390         (xnmalloca): New macro.
63391
63392 2007-12-30  Bruno Haible  <bruno@clisp.org>
63393
63394         * lib/malloca.h (nmalloca): New macro.
63395         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63396         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63397         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63398         knuth_morris_pratt_multibyte): Likewise.
63399         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63400         knuth_morris_pratt_multibyte): Likewise.
63401         * lib/memmem.c (knuth_morris_pratt): Likewise.
63402         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63403
63404 2007-12-25  Bruno Haible  <bruno@clisp.org>
63405
63406         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63407         * lib/glob.c: Don't include openat.h.
63408         (link_exists2_p): Add back the code that deals with the
63409         !GLOB_ALTDIRFUNC case.
63410         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63411         let it do the filename concatenation.
63412         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63413         * modules/glob (Depends-on): Remove openat.
63414
63415 2007-12-31  Bruno Haible  <bruno@clisp.org>
63416
63417         * modules/dirfd (License): Change to LGPLv2+.
63418         Approved by Jim Meyering.
63419
63420 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63421
63422         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63423         when multiplying M by sizeof (size_t).
63424
63425 2007-12-10  Martin Lambers  <marlam@marlam.de>
63426
63427         Override getpagesize on mingw.
63428         * lib/getpagesize.c: New file.
63429         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63430         * modules/getpagesize (Files): Add lib/getpagesize.c.
63431         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63433         REPLACE_GETPAGESIZE.
63434         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63435
63436 2007-12-25  Bruno Haible  <bruno@clisp.org>
63437
63438         * modules/localcharset (Notice): New field.
63439         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63440         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63441
63442 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63443             Bruno Haible  <bruno@clisp.org>
63444
63445         Avoid using the syntax symbol() in formatted documentation.
63446         * MODULES.html.sh (func_module): When replacing symbol() with a
63447         hyperlink, remove the parentheses. Show an error if some remain.
63448         Recognize and render the '...' syntax.
63449         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63450         Rework. Add paragraph about GCC's inlining.
63451         * doc/alloca.texi: Likewise.
63452         * doc/error.texi: Remove parentheses from symbol reference.
63453         * doc/gnulib-intro.texi: Likewise.
63454         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63455         * modules/fnmatch (Description): Reword to say "the ... function".
63456         * modules/full-read (Description): Likewise.
63457         * modules/full-write (Description): Likewise.
63458         * modules/safe-read (Description): Likewise.
63459         * modules/safe-write (Description): Likewise.
63460         * modules/strchrnul (Description): Likewise.
63461         * modules/trim (Description): Likewise.
63462         * modules/error (Description): Remove parentheses from symbol
63463         references.
63464         * modules/verror (Description): Likewise.
63465         Reported by Karl Berry.
63466
63467 2007-12-25  Bruno Haible  <bruno@clisp.org>
63468
63469         Fixup after 2007-10-16 commit.
63470         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63471
63472 2007-12-24  Bruno Haible  <bruno@clisp.org>
63473
63474         Make --enable-relocatable work with DESTDIR.
63475         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63476         to compute installdir from destprog.
63477         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63478         also set the RELOC_DESTDIR variable.
63479         Reported by Левашев Иван <octagram@bluebottle.com>.
63480
63481 2007-12-24  Bruno Haible  <bruno@clisp.org>
63482
63483         Fix link error due to xalloc_die().
63484         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63485         of xreadlink.
63486         * lib/relocwrapper.c: Update comments.
63487         * build-aux/install-reloc: Remove xreadlink.c from file list.
63488         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63489         xreadlink.c.
63490         Reported by Левашев Иван <octagram@bluebottle.com>.
63491
63492 2007-12-24  Bruno Haible  <bruno@clisp.org>
63493
63494         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63495         * lib/setenv.h: Remove file.
63496         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63497         lib/setenv.h.
63498         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63499         (Depends-on): Add stdlib.
63500         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63501         gl_FUNC_UNSETENV.
63502         (Include): Replace setenv.h with <stdlib.h>.
63503         * modules/unsetenv: New file.
63504         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63505         * lib/unsetenv.c: Include <stdlib.h> first.
63506         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63507         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63508         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63509         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63510         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63511         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63513         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63514         * doc/functions/unsetenv.texi: Update.
63515         * modules/xsetenv (Depends-on): Add unsetenv.
63516         * modules/getdate (Depends-on): Likewise.
63517         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63518         * lib/xsetenv.c: Don't include setenv.h.
63519         * lib/getdate.y: Likewise.
63520         * lib/relocwrapper.c: Likewise.
63521         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63522         (Depends-on): Add stdlib.
63523         * NEWS: Mention the changes.
63524         Reported by Левашев Иван <octagram@bluebottle.com>.
63525
63526 2007-12-23  Bruno Haible  <bruno@clisp.org>
63527
63528         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63529         indentation.
63530
63531 2007-12-23  Bruno Haible  <bruno@clisp.org>
63532
63533         * lib/c-strcasestr.c: Add more comments.
63534         * lib/c-strstr.c: Likewise.
63535         * lib/mbscasestr.c: Likewise.
63536         * lib/mbsstr.c: Likewise.
63537         * lib/strcasestr.c: Likewise.
63538         * lib/memmem.c: Likewise.
63539
63540 2007-12-23  Bruno Haible  <bruno@clisp.org>
63541
63542         * tests/test-memmem.c: Include <string.h> first.
63543
63544 2007-12-22  Bruno Haible  <bruno@clisp.org>
63545
63546         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63547         the contents of $testsbase.
63548         Reported by Ralf Wildenhues.
63549
63550 2007-12-22  Bruno Haible  <bruno@clisp.org>
63551
63552         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63553         two variables local_ldadd_before, local_ldadd_last.
63554
63555 2007-12-20  Eric Blake  <ebb9@byu.net>
63556
63557         Work around circular library issue when cross-compiling.
63558         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63559         that progname.o does not need to pull in rpl_memcmp.
63560
63561 2007-12-19  Eric Blake  <ebb9@byu.net>
63562
63563         Fix memmem to avoid O(n^2) worst-case complexity.
63564         * lib/memmem.c (knuth_morris_pratt): New function.
63565         (memmem): Use it if first few naive iterations fail.
63566         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63567         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63568         * modules/memchr (License): Likewise.
63569         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63570         malloca.
63571         * tests/test-memmem.c: Rewrite, borrowing ideas from
63572         test-mbsstr1.c; the old version wouldn't even compile!
63573         * modules/memmem-tests: New file.
63574         * lib/string.in.h (rpl_memmem): Add declaration.
63575         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63577         REPLACE_MEMMEM.
63578
63579 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63580
63581         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63582         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63583         before any system include files, and undef after them all.  This
63584         should fix a problem on VMS reported by John E. Malmberg in
63585         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63586
63587 2007-12-17  Eric Blake  <ebb9@byu.net>
63588
63589         Revert addition of verify, for BSD/OS.
63590         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63591         can't handle large files, for the sake of obsolete platforms.
63592         * modules/fseeko (Depends-on): Remove verify.
63593         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63594         * doc/functions/ftello.texi (ftello): Likewise.
63595         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63596         Reported by Larry Jones.
63597
63598 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63599
63600         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63601         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63602
63603 2007-12-17  Jim Meyering  <meyering@redhat.com>
63604
63605         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63606         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63607         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63608         * modules/getcwd (Depends-on): Add openat.
63609         Reported by Petr Salinger.
63610
63611 2007-12-17  Bruno Haible  <bruno@clisp.org>
63612
63613         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63614         avoid a segmentation fault of the configure test on x86_64 systems.
63615
63616 2007-12-15  Jim Meyering  <meyering@redhat.com>
63617
63618         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63619
63620 2007-12-13  Eric Blake  <ebb9@byu.net>
63621
63622         Another fseek test.
63623         * tests/test-fseek.c (main): Also test ungetc handling.
63624         * tests/test-fseeko.c (main): Likewise.
63625         * modules/fseeko (Depends-on): Add verify.
63626         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63627         large.
63628         Reported by Larry Jones.
63629
63630         Fix fseeko on mingw.
63631         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63632         seek.
63633
63634         Beef up fseek tests.
63635         * tests/test-fseek.c (main): Also test eof handling.
63636         * tests/test-fseeko.c (main): Likewise.
63637         Reported by Larry Jones.
63638
63639 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63640
63641         Fix fseeko on BSD-based platforms.
63642         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63643         successful seek.
63644
63645 2007-12-12  Eric Blake  <ebb9@byu.net>
63646
63647         Allow circular dependency of separate libtests.a
63648         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63649         when use_libtests.
63650
63651 2007-12-11  Eric Blake  <ebb9@byu.net>
63652
63653         Fix bug with -0.0L in previous patch.
63654         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63655         * tests/test-isnan.c (main): Also test on zeroes.
63656         * tests/test-isnanf.c (main): Likewise.
63657         * tests/test-isnanl.h (main): Likewise.
63658
63659         Detect pseudo-denormals on x86 even when cross-compiling.
63660         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63661         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63662         invalid bit patterns that happen to satisfy ==.
63663
63664         Avoid link failures with separate libtests.a.
63665         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63666         last, to satisfy circular dependencies.
63667
63668 2007-12-11  Eric Blake  <ebb9@byu.net>
63669         and Bruno Haible  <bruno@clisp.org>
63670
63671         Fix OpenBSD 4.0 <float.h> handling of long double.
63672         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63673         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63674         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63675
63676 2007-12-11  Jim Meyering  <meyering@redhat.com>
63677
63678         * users.txt: Add libvirt.
63679
63680         Support versions of autoconf prior to 2.59c.
63681         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63682         if it is not already defined.
63683
63684 2007-12-09  Bruno Haible  <bruno@clisp.org>
63685
63686         Let 'gnulib-tool --import' collect sources needed for the tests in
63687         tests/ rather than in lib/.
63688         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63689         argument. If true, add rules to generate libtests.a, and put libtests.a
63690         into $(LDADD). Consider source files in subdirectories and set
63691         uses_subdirs.
63692         (func_emit_initmacro_start, func_emit_initmacro_end,
63693         func_emit_initmacro_done): Pass all arguments explicitly.
63694         (func_import): Determine two module lists main_modules,
63695         testsrelated_modules. Determine use_libtests. Determine two variables
63696         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63697         instead of just sed_transform_lib_file. Determine two variables
63698         main_files and testsrelated_files. Compute 'files' as the union of
63699         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63700         func_add_or_update. In the generated gnulib-comp.m4, collect the
63701         object files for tests/ in different variables than those for lib/.
63702         Substitute LIBTESTS_LIBDEPS.
63703         (func_create_testdir): Combine the uses_subdirs results from
63704         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63705
63706 2007-12-09  Bruno Haible  <bruno@clisp.org>
63707
63708         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63709         the build-aux directory.
63710
63711 2007-12-09  Bruno Haible  <bruno@clisp.org>
63712
63713         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63714         introduced on 2006-09-09.
63715
63716 2007-12-07  Jim Meyering  <meyering@redhat.com>
63717
63718         Let these macros work also with autoconf-2.59.
63719         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63720         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63721         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63722
63723 2007-12-06  Jim Meyering  <meyering@redhat.com>
63724
63725         Avoid a configure-time syntax error in gl_FUNC_ACL.
63726         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63727         function in each branch, before testing the cache variable.
63728
63729 2007-12-04  Eric Blake  <ebb9@byu.net>
63730
63731         Make scripts executable.
63732         * build-aux/config.guess: Add execute permissions.
63733         * build-aux/config.sub: Likewise.
63734         * build-aux/gendocs.sh: Likewise.
63735
63736         Fix frexp on mingw.
63737         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63738         cross-compiling.
63739         * doc/functions/frexp.texi (frexp): Document the bug.
63740
63741         Make cygwin fseeko check more reliable.
63742         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63743         version numbers, rather than unrelated feature check.
63744         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63745         * doc/functions/ftello.texi (ftello): Likewise.
63746         Reported by Bruno Haible.
63747
63748         * m4/strerror.m4: Bump version number.
63749
63750 2007-12-03  Bruno Haible  <bruno@clisp.org>
63751
63752         * doc/functions/mprotect.texi: Mention the mingw problem.
63753
63754 2007-12-03  Eric Blake  <ebb9@byu.net>
63755
63756         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63757         REPLACE_STRERROR is initialized before this macro.
63758
63759 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63760
63761         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63762         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63763         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63764         put -lsec in even for programs other than 'ls'.  This fixes a problem
63765         for gettext reported by Bruno Haible in
63766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63767         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63768         Add support for Solaris 10.  This isn't efficient, but should get the
63769         job done for now.
63770
63771 2007-12-03  James Youngman  <jay@gnu.org>
63772
63773         * doc/regexprops-generic.texi: change "an close-group" to "a
63774         close-group" and "illegal" to "not allowed".
63775
63776 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63777
63778         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63779         pr_byname.h. Needed for the rare case when the maintainer has done
63780         "make maintainer-clean" in the source directory and then attempts a
63781         build outside the source directory.
63782         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63783         scripts_byname.h.
63784
63785 2007-12-02  Martin Lambers <marlam@marlam.de>
63786             Bruno Haible  <bruno@clisp.org>
63787
63788         * lib/getpagesize.h: Remove file.
63789         * lib/unistd.in.h: Include declaration of getpagesize here.
63790         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63791         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63792         HAVE_SYS_PARAM_H.
63793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63794         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63795         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63796         (Depends-on): Add unistd.
63797         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63798         (Include): Use <unistd.h> instead of getpagesize.h.
63799         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63800         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63801         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63802         gl_GETPAGESIZE invocation, already handled by module dependency.
63803         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63804
63805 2007-12-02  Bruno Haible  <bruno@clisp.org>
63806
63807         * modules/strings-tests: New file.
63808         * tests/test-strings.c: New file.
63809
63810         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63811         * lib/strings.in.h: New file.
63812         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63813         * m4/strings_h.m4: New file.
63814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63815         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63816         * modules/strings: New file.
63817         * modules/string (Makefile.am): Update.
63818         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63819         Reported by Karl Berry.
63820
63821 2007-12-01  Eric Blake  <ebb9@byu.net>
63822
63823         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63824         accommodate fix in cygwin 1.5.25.
63825
63826 2007-12-01  Jim Meyering  <meyering@redhat.com>
63827
63828         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63829         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63830         that would inhibit utf8-optimization of a regexp containing line-
63831         or buffer-anchors, e.g., `^', `$'.
63832
63833 2007-11-30  Bruno Haible  <bruno@clisp.org>
63834
63835         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63836         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63837         glthread_recursive_lock_init.
63838         * lib/lock.c (glthread_recursive_lock_init)
63839         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63840         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63841
63842 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63843
63844         New function qset_acl, like set_acl but with syscall semantics.
63845         * lib/acl.h (qset_acl): New decl.
63846         * lib/acl.c (qset_acl): New function.
63847         (set_acl): Use new function.  Use more-consistent diagnostics.
63848
63849 2007-11-28  Jim Meyering  <meyering@redhat.com>
63850
63851         * modules/physmem (License): Change from GPL to LGPLv2+.
63852
63853 2007-11-26  Bruno Haible  <bruno@clisp.org>
63854
63855         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63856         'long double' type has excess precision.
63857         Reported by Jim Meyering in
63858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63859
63860 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63861
63862         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63863         Sync from <http://gnu.org/licenses>.
63864         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63865         with license text from same location.
63866         * doc/maintain.texi, doc/standards.texi:  Sync from
63867         <http://savannah.gnu.org/projects/gnustandards>.
63868
63869 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
63870         and Jim Meyering  <meyering@redhat.com>
63871
63872         Adjust getdate' grammar to accept a slightly more regular language.
63873         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63874         Before, the former was rejected.
63875         * lib/getdate.y (digits_to_date_time): New function, factored
63876         out of ...
63877         (number): ...here.  Just call digits_to_date_time.
63878         (hybrid): New non-terminal to handle an <unsigned number,
63879         signed relative offset> sequence consistently.
63880
63881 2007-11-18  Jim Meyering  <meyering@redhat.com>
63882
63883         Pull my changes from coreutils:
63884         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63885         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63886         use of $gnulib_tool_option_extras, so that it's separated from the
63887         preceding argument.
63888
63889         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63890         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63891         parent destination directories before copying a file into place.
63892
63893 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63894
63895         bootstrap: work also with 4-argument variant of AC_INIT
63896         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63897
63898 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63899
63900         Port test-getaddrinfo to Solaris.
63901         Problem reported by Bruno Haible in
63902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63903         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63904         explanation of setting 'hints'.
63905         Don't reject an implementation merely because it returns EAI_SERVICE.
63906         (EAI_SERVICE): Define to 0 if not defined.
63907
63908 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63909
63910         The license of gnu-make and posix-shell is now "GPLed build tool".
63911         * modules/gnu-make (License): Likewise.
63912         * modules/posix-shell (License): Likewise.
63913
63914         New module posix-shell, for determining a POSIX shell
63915         or perhaps something that is close enough to a POSIX shell.
63916         * m4/posix-shell.m4: New file.
63917         * modules/posix-shell: New file.
63918
63919         * MODULES.html.sh: Mention new module.
63920
63921         New module gnu-make, for determining whether we're using GNU Make.
63922         * m4/gnu-make.m4: New file.
63923         * modules/gnu-make: New file.
63924         * MODULES.html.sh: Mention new module.
63925
63926 2007-11-14  Jim Meyering  <meyering@redhat.com>
63927
63928         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63929         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63930         use this macro to create a function _definition_.
63931         Remove useless "#undef ARGMATCH_DIE".
63932
63933 2007-11-14  Bruno Haible  <bruno@clisp.org>
63934
63935         * lib/config.charset: Update for OpenBSD 4.1.
63936         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63937
63938 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63939
63940         Document 64-bit #if problems in stdint.texi.
63941         * doc/headers/stdint.texi (stdint.h): Mention problems with
63942         64-bit-#if, and how to work around them.
63943
63944         Don't insist on 'long long int' support in the preprocessor.  It
63945         breaks too many things.  For example, PRIdMAX still uses a 'long
63946         long int' format with the latest Sun compiler, even though
63947         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63948         preprocessor problem.  This causes the latest coreutils to dump
63949         core on Solaris 10 sparc with the Sun C compiler.
63950         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63951         the troublesome expressions at configure-time, not at #if-time.
63952         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63953         preprocessor.
63954         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63955         compile-time C checks, done at 'configure'-time.
63956         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63957         * modules/inttypes (Makefile): Substitute the new symbols that
63958         gl_INTTYPES_H now generates.
63959         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63960
63961 2007-11-12  Bruno Haible  <bruno@clisp.org>
63962
63963         Tests for Unicode character classification functions.
63964
63965         * modules/unictype/bidicategory-byname-tests: New file.
63966         * modules/unictype/bidicategory-name-tests: New file.
63967         * modules/unictype/bidicategory-of-tests: New file.
63968         * modules/unictype/bidicategory-test-tests: New file.
63969         * modules/unictype/block-list-tests: New file.
63970         * modules/unictype/block-of-tests: New file.
63971         * modules/unictype/block-test-tests: New file.
63972         * modules/unictype/category-C-tests: New file.
63973         * modules/unictype/category-Cc-tests: New file.
63974         * modules/unictype/category-Cf-tests: New file.
63975         * modules/unictype/category-Cn-tests: New file.
63976         * modules/unictype/category-Co-tests: New file.
63977         * modules/unictype/category-Cs-tests: New file.
63978         * modules/unictype/category-L-tests: New file.
63979         * modules/unictype/category-Ll-tests: New file.
63980         * modules/unictype/category-Lm-tests: New file.
63981         * modules/unictype/category-Lo-tests: New file.
63982         * modules/unictype/category-Lt-tests: New file.
63983         * modules/unictype/category-Lu-tests: New file.
63984         * modules/unictype/category-M-tests: New file.
63985         * modules/unictype/category-Mc-tests: New file.
63986         * modules/unictype/category-Me-tests: New file.
63987         * modules/unictype/category-Mn-tests: New file.
63988         * modules/unictype/category-N-tests: New file.
63989         * modules/unictype/category-Nd-tests: New file.
63990         * modules/unictype/category-Nl-tests: New file.
63991         * modules/unictype/category-No-tests: New file.
63992         * modules/unictype/category-P-tests: New file.
63993         * modules/unictype/category-Pc-tests: New file.
63994         * modules/unictype/category-Pd-tests: New file.
63995         * modules/unictype/category-Pe-tests: New file.
63996         * modules/unictype/category-Pf-tests: New file.
63997         * modules/unictype/category-Pi-tests: New file.
63998         * modules/unictype/category-Po-tests: New file.
63999         * modules/unictype/category-Ps-tests: New file.
64000         * modules/unictype/category-S-tests: New file.
64001         * modules/unictype/category-Sc-tests: New file.
64002         * modules/unictype/category-Sk-tests: New file.
64003         * modules/unictype/category-Sm-tests: New file.
64004         * modules/unictype/category-So-tests: New file.
64005         * modules/unictype/category-Z-tests: New file.
64006         * modules/unictype/category-Zl-tests: New file.
64007         * modules/unictype/category-Zp-tests: New file.
64008         * modules/unictype/category-Zs-tests: New file.
64009         * modules/unictype/category-and-not-tests: New file.
64010         * modules/unictype/category-and-tests: New file.
64011         * modules/unictype/category-byname-tests: New file.
64012         * modules/unictype/category-name-tests: New file.
64013         * modules/unictype/category-none-tests: New file.
64014         * modules/unictype/category-of-tests: New file.
64015         * modules/unictype/category-or-tests: New file.
64016         * modules/unictype/category-test-withtable-tests: New file.
64017         * modules/unictype/combining-class-tests: New file.
64018         * modules/unictype/ctype-alnum-tests: New file.
64019         * modules/unictype/ctype-alpha-tests: New file.
64020         * modules/unictype/ctype-blank-tests: New file.
64021         * modules/unictype/ctype-cntrl-tests: New file.
64022         * modules/unictype/ctype-digit-tests: New file.
64023         * modules/unictype/ctype-graph-tests: New file.
64024         * modules/unictype/ctype-lower-tests: New file.
64025         * modules/unictype/ctype-print-tests: New file.
64026         * modules/unictype/ctype-punct-tests: New file.
64027         * modules/unictype/ctype-space-tests: New file.
64028         * modules/unictype/ctype-upper-tests: New file.
64029         * modules/unictype/ctype-xdigit-tests: New file.
64030         * modules/unictype/decimal-digit-tests: New file.
64031         * modules/unictype/digit-tests: New file.
64032         * modules/unictype/mirror-tests: New file.
64033         * modules/unictype/numeric-tests: New file.
64034         * modules/unictype/property-alphabetic-tests: New file.
64035         * modules/unictype/property-ascii-hex-digit-tests: New file.
64036         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64037         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64038         * modules/unictype/property-bidi-block-separator-tests: New file.
64039         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64040         * modules/unictype/property-bidi-common-separator-tests: New file.
64041         * modules/unictype/property-bidi-control-tests: New file.
64042         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64043         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64044         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64045         * modules/unictype/property-bidi-european-digit-tests: New file.
64046         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64047         * modules/unictype/property-bidi-left-to-right-tests: New file.
64048         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64049         * modules/unictype/property-bidi-other-neutral-tests: New file.
64050         * modules/unictype/property-bidi-pdf-tests: New file.
64051         * modules/unictype/property-bidi-segment-separator-tests: New file.
64052         * modules/unictype/property-bidi-whitespace-tests: New file.
64053         * modules/unictype/property-byname-tests: New file.
64054         * modules/unictype/property-combining-tests: New file.
64055         * modules/unictype/property-composite-tests: New file.
64056         * modules/unictype/property-currency-symbol-tests: New file.
64057         * modules/unictype/property-dash-tests: New file.
64058         * modules/unictype/property-decimal-digit-tests: New file.
64059         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64060         * modules/unictype/property-deprecated-tests: New file.
64061         * modules/unictype/property-diacritic-tests: New file.
64062         * modules/unictype/property-extender-tests: New file.
64063         * modules/unictype/property-format-control-tests: New file.
64064         * modules/unictype/property-grapheme-base-tests: New file.
64065         * modules/unictype/property-grapheme-extend-tests: New file.
64066         * modules/unictype/property-grapheme-link-tests: New file.
64067         * modules/unictype/property-hex-digit-tests: New file.
64068         * modules/unictype/property-hyphen-tests: New file.
64069         * modules/unictype/property-id-continue-tests: New file.
64070         * modules/unictype/property-id-start-tests: New file.
64071         * modules/unictype/property-ideographic-tests: New file.
64072         * modules/unictype/property-ids-binary-operator-tests: New file.
64073         * modules/unictype/property-ids-trinary-operator-tests: New file.
64074         * modules/unictype/property-ignorable-control-tests: New file.
64075         * modules/unictype/property-iso-control-tests: New file.
64076         * modules/unictype/property-join-control-tests: New file.
64077         * modules/unictype/property-left-of-pair-tests: New file.
64078         * modules/unictype/property-line-separator-tests: New file.
64079         * modules/unictype/property-logical-order-exception-tests: New file.
64080         * modules/unictype/property-lowercase-tests: New file.
64081         * modules/unictype/property-math-tests: New file.
64082         * modules/unictype/property-non-break-tests: New file.
64083         * modules/unictype/property-not-a-character-tests: New file.
64084         * modules/unictype/property-numeric-tests: New file.
64085         * modules/unictype/property-other-alphabetic-tests: New file.
64086         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64087         * modules/unictype/property-other-grapheme-extend-tests: New file.
64088         * modules/unictype/property-other-id-continue-tests: New file.
64089         * modules/unictype/property-other-id-start-tests: New file.
64090         * modules/unictype/property-other-lowercase-tests: New file.
64091         * modules/unictype/property-other-math-tests: New file.
64092         * modules/unictype/property-other-uppercase-tests: New file.
64093         * modules/unictype/property-paired-punctuation-tests: New file.
64094         * modules/unictype/property-paragraph-separator-tests: New file.
64095         * modules/unictype/property-pattern-syntax-tests: New file.
64096         * modules/unictype/property-pattern-white-space-tests: New file.
64097         * modules/unictype/property-private-use-tests: New file.
64098         * modules/unictype/property-punctuation-tests: New file.
64099         * modules/unictype/property-quotation-mark-tests: New file.
64100         * modules/unictype/property-radical-tests: New file.
64101         * modules/unictype/property-sentence-terminal-tests: New file.
64102         * modules/unictype/property-soft-dotted-tests: New file.
64103         * modules/unictype/property-space-tests: New file.
64104         * modules/unictype/property-terminal-punctuation-tests: New file.
64105         * modules/unictype/property-test-tests: New file.
64106         * modules/unictype/property-titlecase-tests: New file.
64107         * modules/unictype/property-unassigned-code-value-tests: New file.
64108         * modules/unictype/property-unified-ideograph-tests: New file.
64109         * modules/unictype/property-uppercase-tests: New file.
64110         * modules/unictype/property-variation-selector-tests: New file.
64111         * modules/unictype/property-white-space-tests: New file.
64112         * modules/unictype/property-xid-continue-tests: New file.
64113         * modules/unictype/property-xid-start-tests: New file.
64114         * modules/unictype/property-zero-width-tests: New file.
64115         * modules/unictype/scripts-tests: New file.
64116         * modules/unictype/syntax-c-ident-tests: New file.
64117         * modules/unictype/syntax-c-whitespace-tests: New file.
64118         * modules/unictype/syntax-java-ident-tests: New file.
64119         * modules/unictype/syntax-java-whitespace-tests: New file.
64120         * tests/unictype/test-bidi_byname.c: New file.
64121         * tests/unictype/test-bidi_name.c: New file.
64122         * tests/unictype/test-bidi_of.c: New file.
64123         * tests/unictype/test-bidi_test.c: New file.
64124         * tests/unictype/test-block_list.c: New file.
64125         * tests/unictype/test-block_of.c: New file.
64126         * tests/unictype/test-block_test.c: New file.
64127         * tests/unictype/test-categ_and.c: New file.
64128         * tests/unictype/test-categ_and_not.c: New file.
64129         * tests/unictype/test-categ_byname.c: New file.
64130         * tests/unictype/test-categ_name.c: New file.
64131         * tests/unictype/test-categ_none.c: New file.
64132         * tests/unictype/test-categ_of.c: New file.
64133         * tests/unictype/test-categ_or.c: New file.
64134         * tests/unictype/test-categ_test_withtable.c: New file.
64135         * tests/unictype/test-combining.c: New file.
64136         * tests/unictype/test-decdigit.c: New file.
64137         * tests/unictype/test-digit.c: New file.
64138         * tests/unictype/test-mirror.c: New file.
64139         * tests/unictype/test-numeric.c: New file.
64140         * tests/unictype/test-pr_byname.c: New file.
64141         * tests/unictype/test-pr_test.c: New file.
64142         * tests/unictype/test-predicate-part1.h: New file.
64143         * tests/unictype/test-predicate-part2.h: New file.
64144         * tests/unictype/test-scripts.c: New file.
64145         * tests/unictype/test-sy_c_ident.c: New file.
64146         * tests/unictype/test-sy_java_ident.c: New file.
64147
64148         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64149         for Unicode 5.0.0.
64150         * tests/unictype/test-categ_Cc.c: Likewise.
64151         * tests/unictype/test-categ_Cf.c: Likewise.
64152         * tests/unictype/test-categ_Cn.c: Likewise.
64153         * tests/unictype/test-categ_Co.c: Likewise.
64154         * tests/unictype/test-categ_Cs.c: Likewise.
64155         * tests/unictype/test-categ_L.c: Likewise.
64156         * tests/unictype/test-categ_Ll.c: Likewise.
64157         * tests/unictype/test-categ_Lm.c: Likewise.
64158         * tests/unictype/test-categ_Lo.c: Likewise.
64159         * tests/unictype/test-categ_Lt.c: Likewise.
64160         * tests/unictype/test-categ_Lu.c: Likewise.
64161         * tests/unictype/test-categ_M.c: Likewise.
64162         * tests/unictype/test-categ_Mc.c: Likewise.
64163         * tests/unictype/test-categ_Me.c: Likewise.
64164         * tests/unictype/test-categ_Mn.c: Likewise.
64165         * tests/unictype/test-categ_N.c: Likewise.
64166         * tests/unictype/test-categ_Nd.c: Likewise.
64167         * tests/unictype/test-categ_Nl.c: Likewise.
64168         * tests/unictype/test-categ_No.c: Likewise.
64169         * tests/unictype/test-categ_P.c: Likewise.
64170         * tests/unictype/test-categ_Pc.c: Likewise.
64171         * tests/unictype/test-categ_Pd.c: Likewise.
64172         * tests/unictype/test-categ_Pe.c: Likewise.
64173         * tests/unictype/test-categ_Pf.c: Likewise.
64174         * tests/unictype/test-categ_Pi.c: Likewise.
64175         * tests/unictype/test-categ_Po.c: Likewise.
64176         * tests/unictype/test-categ_Ps.c: Likewise.
64177         * tests/unictype/test-categ_S.c: Likewise.
64178         * tests/unictype/test-categ_Sc.c: Likewise.
64179         * tests/unictype/test-categ_Sk.c: Likewise.
64180         * tests/unictype/test-categ_Sm.c: Likewise.
64181         * tests/unictype/test-categ_So.c: Likewise.
64182         * tests/unictype/test-categ_Z.c: Likewise.
64183         * tests/unictype/test-categ_Zl.c: Likewise.
64184         * tests/unictype/test-categ_Zp.c: Likewise.
64185         * tests/unictype/test-categ_Zs.c: Likewise.
64186         * tests/unictype/test-ctype_alnum.c: Likewise.
64187         * tests/unictype/test-ctype_alpha.c: Likewise.
64188         * tests/unictype/test-ctype_blank.c: Likewise.
64189         * tests/unictype/test-ctype_cntrl.c: Likewise.
64190         * tests/unictype/test-ctype_digit.c: Likewise.
64191         * tests/unictype/test-ctype_graph.c: Likewise.
64192         * tests/unictype/test-ctype_lower.c: Likewise.
64193         * tests/unictype/test-ctype_print.c: Likewise.
64194         * tests/unictype/test-ctype_punct.c: Likewise.
64195         * tests/unictype/test-ctype_space.c: Likewise.
64196         * tests/unictype/test-ctype_upper.c: Likewise.
64197         * tests/unictype/test-ctype_xdigit.c: Likewise.
64198         * tests/unictype/test-decdigit.h: Likewise.
64199         * tests/unictype/test-digit.h: Likewise.
64200         * tests/unictype/test-numeric.h: Likewise.
64201         * tests/unictype/test-pr_alphabetic.c: Likewise.
64202         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64203         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64204         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64205         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64206         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64207         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64208         * tests/unictype/test-pr_bidi_control.c: Likewise.
64209         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64210         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64211         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64212         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64213         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64214         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64215         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64216         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64217         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64218         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64219         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64220         * tests/unictype/test-pr_combining.c: Likewise.
64221         * tests/unictype/test-pr_composite.c: Likewise.
64222         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64223         * tests/unictype/test-pr_dash.c: Likewise.
64224         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64225         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64226         * tests/unictype/test-pr_deprecated.c: Likewise.
64227         * tests/unictype/test-pr_diacritic.c: Likewise.
64228         * tests/unictype/test-pr_extender.c: Likewise.
64229         * tests/unictype/test-pr_format_control.c: Likewise.
64230         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64231         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64232         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64233         * tests/unictype/test-pr_hex_digit.c: Likewise.
64234         * tests/unictype/test-pr_hyphen.c: Likewise.
64235         * tests/unictype/test-pr_id_continue.c: Likewise.
64236         * tests/unictype/test-pr_id_start.c: Likewise.
64237         * tests/unictype/test-pr_ideographic.c: Likewise.
64238         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64239         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64240         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64241         * tests/unictype/test-pr_iso_control.c: Likewise.
64242         * tests/unictype/test-pr_join_control.c: Likewise.
64243         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64244         * tests/unictype/test-pr_line_separator.c: Likewise.
64245         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64246         * tests/unictype/test-pr_lowercase.c: Likewise.
64247         * tests/unictype/test-pr_math.c: Likewise.
64248         * tests/unictype/test-pr_non_break.c: Likewise.
64249         * tests/unictype/test-pr_not_a_character.c: Likewise.
64250         * tests/unictype/test-pr_numeric.c: Likewise.
64251         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64252         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64253         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64254         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64255         * tests/unictype/test-pr_other_id_start.c: Likewise.
64256         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64257         * tests/unictype/test-pr_other_math.c: Likewise.
64258         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64259         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64260         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64261         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64262         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64263         * tests/unictype/test-pr_private_use.c: Likewise.
64264         * tests/unictype/test-pr_punctuation.c: Likewise.
64265         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64266         * tests/unictype/test-pr_radical.c: Likewise.
64267         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64268         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64269         * tests/unictype/test-pr_space.c: Likewise.
64270         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64271         * tests/unictype/test-pr_titlecase.c: Likewise.
64272         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64273         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64274         * tests/unictype/test-pr_uppercase.c: Likewise.
64275         * tests/unictype/test-pr_variation_selector.c: Likewise.
64276         * tests/unictype/test-pr_white_space.c: Likewise.
64277         * tests/unictype/test-pr_xid_continue.c: Likewise.
64278         * tests/unictype/test-pr_xid_start.c: Likewise.
64279         * tests/unictype/test-pr_zero_width.c: Likewise.
64280         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64281         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64282
64283 2007-11-12  Bruno Haible  <bruno@clisp.org>
64284
64285         Unicode character classification functions.
64286         * lib/unictype.h: New file.
64287         * modules/unictype/base: New file.
64288         * modules/unictype/category-L: New file.
64289         * modules/unictype/category-Lu: New file.
64290         * modules/unictype/category-Ll: New file.
64291         * modules/unictype/category-Lt: New file.
64292         * modules/unictype/category-Lm: New file.
64293         * modules/unictype/category-Lo: New file.
64294         * modules/unictype/category-M: New file.
64295         * modules/unictype/category-Mn: New file.
64296         * modules/unictype/category-Mc: New file.
64297         * modules/unictype/category-Me: New file.
64298         * modules/unictype/category-N: New file.
64299         * modules/unictype/category-Nd: New file.
64300         * modules/unictype/category-Nl: New file.
64301         * modules/unictype/category-No: New file.
64302         * modules/unictype/category-P: New file.
64303         * modules/unictype/category-Pc: New file.
64304         * modules/unictype/category-Pd: New file.
64305         * modules/unictype/category-Ps: New file.
64306         * modules/unictype/category-Pe: New file.
64307         * modules/unictype/category-Pi: New file.
64308         * modules/unictype/category-Pf: New file.
64309         * modules/unictype/category-Po: New file.
64310         * modules/unictype/category-S: New file.
64311         * modules/unictype/category-Sm: New file.
64312         * modules/unictype/category-Sc: New file.
64313         * modules/unictype/category-Sk: New file.
64314         * modules/unictype/category-So: New file.
64315         * modules/unictype/category-Z: New file.
64316         * modules/unictype/category-Zs: New file.
64317         * modules/unictype/category-Zl: New file.
64318         * modules/unictype/category-Zp: New file.
64319         * modules/unictype/category-C: New file.
64320         * modules/unictype/category-Cc: New file.
64321         * modules/unictype/category-Cf: New file.
64322         * modules/unictype/category-Cs: New file.
64323         * modules/unictype/category-Co: New file.
64324         * modules/unictype/category-Cn: New file.
64325         * modules/unictype/category-or: New file.
64326         * modules/unictype/category-of: New file.
64327         * modules/unictype/category-test: New file.
64328         * modules/unictype/category-test-withtable: New file.
64329         * modules/unictype/category-byname: New file.
64330         * modules/unictype/category-none: New file.
64331         * modules/unictype/category-and: New file.
64332         * modules/unictype/category-and-not: New file.
64333         * modules/unictype/category-name: New file.
64334         * modules/unictype/combining-class: New file.
64335         * modules/unictype/category-all: New file.
64336         * modules/unictype/bidicategory-all: New file.
64337         * modules/unictype/bidicategory-byname: New file.
64338         * modules/unictype/bidicategory-name: New file.
64339         * modules/unictype/bidicategory-of: New file.
64340         * modules/unictype/bidicategory-test: New file.
64341         * modules/unictype/decimal-digit: New file.
64342         * modules/unictype/digit: New file.
64343         * modules/unictype/numeric: New file.
64344         * modules/unictype/mirror: New file.
64345         * modules/unictype/property-white-space: New file.
64346         * modules/unictype/property-alphabetic: New file.
64347         * modules/unictype/property-other-alphabetic: New file.
64348         * modules/unictype/property-not-a-character: New file.
64349         * modules/unictype/property-default-ignorable-code-point: New file.
64350         * modules/unictype/property-other-default-ignorable-code-point: New
64351         file.
64352         * modules/unictype/property-deprecated: New file.
64353         * modules/unictype/property-logical-order-exception: New file.
64354         * modules/unictype/property-variation-selector: New file.
64355         * modules/unictype/property-private-use: New file.
64356         * modules/unictype/property-unassigned-code-value: New file.
64357         * modules/unictype/property-uppercase: New file.
64358         * modules/unictype/property-other-uppercase: New file.
64359         * modules/unictype/property-lowercase: New file.
64360         * modules/unictype/property-other-lowercase: New file.
64361         * modules/unictype/property-titlecase: New file.
64362         * modules/unictype/property-soft-dotted: New file.
64363         * modules/unictype/property-id-start: New file.
64364         * modules/unictype/property-other-id-start: New file.
64365         * modules/unictype/property-id-continue: New file.
64366         * modules/unictype/property-other-id-continue: New file.
64367         * modules/unictype/property-xid-start: New file.
64368         * modules/unictype/property-xid-continue: New file.
64369         * modules/unictype/property-pattern-white-space: New file.
64370         * modules/unictype/property-pattern-syntax: New file.
64371         * modules/unictype/property-join-control: New file.
64372         * modules/unictype/property-grapheme-base: New file.
64373         * modules/unictype/property-grapheme-extend: New file.
64374         * modules/unictype/property-other-grapheme-extend: New file.
64375         * modules/unictype/property-grapheme-link: New file.
64376         * modules/unictype/property-bidi-control: New file.
64377         * modules/unictype/property-bidi-left-to-right: New file.
64378         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64379         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64380         * modules/unictype/property-bidi-european-digit: New file.
64381         * modules/unictype/property-bidi-eur-num-separator: New file.
64382         * modules/unictype/property-bidi-eur-num-terminator: New file.
64383         * modules/unictype/property-bidi-arabic-digit: New file.
64384         * modules/unictype/property-bidi-common-separator: New file.
64385         * modules/unictype/property-bidi-block-separator: New file.
64386         * modules/unictype/property-bidi-segment-separator: New file.
64387         * modules/unictype/property-bidi-whitespace: New file.
64388         * modules/unictype/property-bidi-non-spacing-mark: New file.
64389         * modules/unictype/property-bidi-boundary-neutral: New file.
64390         * modules/unictype/property-bidi-pdf: New file.
64391         * modules/unictype/property-bidi-embedding-or-override: New file.
64392         * modules/unictype/property-bidi-other-neutral: New file.
64393         * modules/unictype/property-hex-digit: New file.
64394         * modules/unictype/property-ascii-hex-digit: New file.
64395         * modules/unictype/property-ideographic: New file.
64396         * modules/unictype/property-unified-ideograph: New file.
64397         * modules/unictype/property-radical: New file.
64398         * modules/unictype/property-ids-binary-operator: New file.
64399         * modules/unictype/property-ids-trinary-operator: New file.
64400         * modules/unictype/property-zero-width: New file.
64401         * modules/unictype/property-space: New file.
64402         * modules/unictype/property-non-break: New file.
64403         * modules/unictype/property-iso-control: New file.
64404         * modules/unictype/property-format-control: New file.
64405         * modules/unictype/property-dash: New file.
64406         * modules/unictype/property-hyphen: New file.
64407         * modules/unictype/property-punctuation: New file.
64408         * modules/unictype/property-line-separator: New file.
64409         * modules/unictype/property-paragraph-separator: New file.
64410         * modules/unictype/property-quotation-mark: New file.
64411         * modules/unictype/property-sentence-terminal: New file.
64412         * modules/unictype/property-terminal-punctuation: New file.
64413         * modules/unictype/property-currency-symbol: New file.
64414         * modules/unictype/property-math: New file.
64415         * modules/unictype/property-other-math: New file.
64416         * modules/unictype/property-paired-punctuation: New file.
64417         * modules/unictype/property-left-of-pair: New file.
64418         * modules/unictype/property-combining: New file.
64419         * modules/unictype/property-composite: New file.
64420         * modules/unictype/property-decimal-digit: New file.
64421         * modules/unictype/property-numeric: New file.
64422         * modules/unictype/property-diacritic: New file.
64423         * modules/unictype/property-extender: New file.
64424         * modules/unictype/property-ignorable-control: New file.
64425         * modules/unictype/property-test: New file.
64426         * modules/unictype/property-byname: New file.
64427         * modules/unictype/property-all: New file.
64428         * modules/unictype/scripts: New file.
64429         * modules/unictype/scripts-all: New file.
64430         * modules/unictype/block-of: New file.
64431         * modules/unictype/block-test: New file.
64432         * modules/unictype/block-list: New file.
64433         * modules/unictype/block-all: New file.
64434         * modules/unictype/syntax-c-whitespace: New file.
64435         * modules/unictype/syntax-java-whitespace: New file.
64436         * modules/unictype/syntax-c-ident: New file.
64437         * modules/unictype/syntax-java-ident: New file.
64438         * modules/unictype/ctype-alnum: New file.
64439         * modules/unictype/ctype-alpha: New file.
64440         * modules/unictype/ctype-cntrl: New file.
64441         * modules/unictype/ctype-digit: New file.
64442         * modules/unictype/ctype-graph: New file.
64443         * modules/unictype/ctype-lower: New file.
64444         * modules/unictype/ctype-print: New file.
64445         * modules/unictype/ctype-punct: New file.
64446         * modules/unictype/ctype-space: New file.
64447         * modules/unictype/ctype-upper: New file.
64448         * modules/unictype/ctype-xdigit: New file.
64449         * modules/unictype/ctype-blank: New file.
64450         * lib/unictype/bidi_byname.c: New file.
64451         * lib/unictype/bidi_name.c: New file.
64452         * lib/unictype/bidi_of.c: New file.
64453         * lib/unictype/bidi_test.c: New file.
64454         * lib/unictype/bitmap.h: New file.
64455         * lib/unictype/block_test.c: New file.
64456         * lib/unictype/blocks.c: New file.
64457         * lib/unictype/categ_C.c: New file.
64458         * lib/unictype/categ_Cc.c: New file.
64459         * lib/unictype/categ_Cf.c: New file.
64460         * lib/unictype/categ_Cn.c: New file.
64461         * lib/unictype/categ_Co.c: New file.
64462         * lib/unictype/categ_Cs.c: New file.
64463         * lib/unictype/categ_L.c: New file.
64464         * lib/unictype/categ_Ll.c: New file.
64465         * lib/unictype/categ_Lm.c: New file.
64466         * lib/unictype/categ_Lo.c: New file.
64467         * lib/unictype/categ_Lt.c: New file.
64468         * lib/unictype/categ_Lu.c: New file.
64469         * lib/unictype/categ_M.c: New file.
64470         * lib/unictype/categ_Mc.c: New file.
64471         * lib/unictype/categ_Me.c: New file.
64472         * lib/unictype/categ_Mn.c: New file.
64473         * lib/unictype/categ_N.c: New file.
64474         * lib/unictype/categ_Nd.c: New file.
64475         * lib/unictype/categ_Nl.c: New file.
64476         * lib/unictype/categ_No.c: New file.
64477         * lib/unictype/categ_P.c: New file.
64478         * lib/unictype/categ_Pc.c: New file.
64479         * lib/unictype/categ_Pd.c: New file.
64480         * lib/unictype/categ_Pe.c: New file.
64481         * lib/unictype/categ_Pf.c: New file.
64482         * lib/unictype/categ_Pi.c: New file.
64483         * lib/unictype/categ_Po.c: New file.
64484         * lib/unictype/categ_Ps.c: New file.
64485         * lib/unictype/categ_S.c: New file.
64486         * lib/unictype/categ_Sc.c: New file.
64487         * lib/unictype/categ_Sk.c: New file.
64488         * lib/unictype/categ_Sm.c: New file.
64489         * lib/unictype/categ_So.c: New file.
64490         * lib/unictype/categ_Z.c: New file.
64491         * lib/unictype/categ_Zl.c: New file.
64492         * lib/unictype/categ_Zp.c: New file.
64493         * lib/unictype/categ_Zs.c: New file.
64494         * lib/unictype/categ_and.c: New file.
64495         * lib/unictype/categ_and_not.c: New file.
64496         * lib/unictype/categ_byname.c: New file.
64497         * lib/unictype/categ_name.c: New file.
64498         * lib/unictype/categ_none.c: New file.
64499         * lib/unictype/categ_of.c: New file.
64500         * lib/unictype/categ_or.c: New file.
64501         * lib/unictype/categ_test.c: New file.
64502         * lib/unictype/combining.c: New file.
64503         * lib/unictype/ctype_alnum.c: New file.
64504         * lib/unictype/ctype_alpha.c: New file.
64505         * lib/unictype/ctype_blank.c: New file.
64506         * lib/unictype/ctype_cntrl.c: New file.
64507         * lib/unictype/ctype_digit.c: New file.
64508         * lib/unictype/ctype_graph.c: New file.
64509         * lib/unictype/ctype_lower.c: New file.
64510         * lib/unictype/ctype_print.c: New file.
64511         * lib/unictype/ctype_punct.c: New file.
64512         * lib/unictype/ctype_space.c: New file.
64513         * lib/unictype/ctype_upper.c: New file.
64514         * lib/unictype/ctype_xdigit.c: New file.
64515         * lib/unictype/decdigit.c: New file.
64516         * lib/unictype/digit.c: New file.
64517         * lib/unictype/identsyntaxmap.h: New file.
64518         * lib/unictype/mirror.c: New file.
64519         * lib/unictype/numeric.c: New file.
64520         * lib/unictype/pr_alphabetic.c: New file.
64521         * lib/unictype/pr_ascii_hex_digit.c: New file.
64522         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64523         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64524         * lib/unictype/pr_bidi_block_separator.c: New file.
64525         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64526         * lib/unictype/pr_bidi_common_separator.c: New file.
64527         * lib/unictype/pr_bidi_control.c: New file.
64528         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64529         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64530         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64531         * lib/unictype/pr_bidi_european_digit.c: New file.
64532         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64533         * lib/unictype/pr_bidi_left_to_right.c: New file.
64534         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64535         * lib/unictype/pr_bidi_other_neutral.c: New file.
64536         * lib/unictype/pr_bidi_pdf.c: New file.
64537         * lib/unictype/pr_bidi_segment_separator.c: New file.
64538         * lib/unictype/pr_bidi_whitespace.c: New file.
64539         * lib/unictype/pr_byname.c: New file.
64540         * lib/unictype/pr_byname.gperf: New file.
64541         * lib/unictype/pr_combining.c: New file.
64542         * lib/unictype/pr_composite.c: New file.
64543         * lib/unictype/pr_currency_symbol.c: New file.
64544         * lib/unictype/pr_dash.c: New file.
64545         * lib/unictype/pr_decimal_digit.c: New file.
64546         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64547         * lib/unictype/pr_deprecated.c: New file.
64548         * lib/unictype/pr_diacritic.c: New file.
64549         * lib/unictype/pr_extender.c: New file.
64550         * lib/unictype/pr_format_control.c: New file.
64551         * lib/unictype/pr_grapheme_base.c: New file.
64552         * lib/unictype/pr_grapheme_extend.c: New file.
64553         * lib/unictype/pr_grapheme_link.c: New file.
64554         * lib/unictype/pr_hex_digit.c: New file.
64555         * lib/unictype/pr_hyphen.c: New file.
64556         * lib/unictype/pr_id_continue.c: New file.
64557         * lib/unictype/pr_id_start.c: New file.
64558         * lib/unictype/pr_ideographic.c: New file.
64559         * lib/unictype/pr_ids_binary_operator.c: New file.
64560         * lib/unictype/pr_ids_trinary_operator.c: New file.
64561         * lib/unictype/pr_ignorable_control.c: New file.
64562         * lib/unictype/pr_iso_control.c: New file.
64563         * lib/unictype/pr_join_control.c: New file.
64564         * lib/unictype/pr_left_of_pair.c: New file.
64565         * lib/unictype/pr_line_separator.c: New file.
64566         * lib/unictype/pr_logical_order_exception.c: New file.
64567         * lib/unictype/pr_lowercase.c: New file.
64568         * lib/unictype/pr_math.c: New file.
64569         * lib/unictype/pr_non_break.c: New file.
64570         * lib/unictype/pr_not_a_character.c: New file.
64571         * lib/unictype/pr_numeric.c: New file.
64572         * lib/unictype/pr_other_alphabetic.c: New file.
64573         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64574         * lib/unictype/pr_other_grapheme_extend.c: New file.
64575         * lib/unictype/pr_other_id_continue.c: New file.
64576         * lib/unictype/pr_other_id_start.c: New file.
64577         * lib/unictype/pr_other_lowercase.c: New file.
64578         * lib/unictype/pr_other_math.c: New file.
64579         * lib/unictype/pr_other_uppercase.c: New file.
64580         * lib/unictype/pr_paired_punctuation.c: New file.
64581         * lib/unictype/pr_paragraph_separator.c: New file.
64582         * lib/unictype/pr_pattern_syntax.c: New file.
64583         * lib/unictype/pr_pattern_white_space.c: New file.
64584         * lib/unictype/pr_private_use.c: New file.
64585         * lib/unictype/pr_punctuation.c: New file.
64586         * lib/unictype/pr_quotation_mark.c: New file.
64587         * lib/unictype/pr_radical.c: New file.
64588         * lib/unictype/pr_sentence_terminal.c: New file.
64589         * lib/unictype/pr_soft_dotted.c: New file.
64590         * lib/unictype/pr_space.c: New file.
64591         * lib/unictype/pr_terminal_punctuation.c: New file.
64592         * lib/unictype/pr_test.c: New file.
64593         * lib/unictype/pr_titlecase.c: New file.
64594         * lib/unictype/pr_unassigned_code_value.c: New file.
64595         * lib/unictype/pr_unified_ideograph.c: New file.
64596         * lib/unictype/pr_uppercase.c: New file.
64597         * lib/unictype/pr_variation_selector.c: New file.
64598         * lib/unictype/pr_white_space.c: New file.
64599         * lib/unictype/pr_xid_continue.c: New file.
64600         * lib/unictype/pr_xid_start.c: New file.
64601         * lib/unictype/pr_zero_width.c: New file.
64602         * lib/unictype/scripts.c: New file.
64603         * lib/unictype/sy_c_ident.c: New file.
64604         * lib/unictype/sy_c_whitespace.c: New file.
64605         * lib/unictype/sy_java_ident.c: New file.
64606         * lib/unictype/sy_java_whitespace.c: New file.
64607
64608         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64609         Unicode 5.0.0.
64610         * lib/unictype/blocks.h: Likewise.
64611         * lib/unictype/categ_C.h: Likewise.
64612         * lib/unictype/categ_Cc.h: Likewise.
64613         * lib/unictype/categ_Cf.h: Likewise.
64614         * lib/unictype/categ_Cn.h: Likewise.
64615         * lib/unictype/categ_Co.h: Likewise.
64616         * lib/unictype/categ_Cs.h: Likewise.
64617         * lib/unictype/categ_L.h: Likewise.
64618         * lib/unictype/categ_Ll.h: Likewise.
64619         * lib/unictype/categ_Lm.h: Likewise.
64620         * lib/unictype/categ_Lo.h: Likewise.
64621         * lib/unictype/categ_Lt.h: Likewise.
64622         * lib/unictype/categ_Lu.h: Likewise.
64623         * lib/unictype/categ_M.h: Likewise.
64624         * lib/unictype/categ_Mc.h: Likewise.
64625         * lib/unictype/categ_Me.h: Likewise.
64626         * lib/unictype/categ_Mn.h: Likewise.
64627         * lib/unictype/categ_N.h: Likewise.
64628         * lib/unictype/categ_Nd.h: Likewise.
64629         * lib/unictype/categ_Nl.h: Likewise.
64630         * lib/unictype/categ_No.h: Likewise.
64631         * lib/unictype/categ_P.h: Likewise.
64632         * lib/unictype/categ_Pc.h: Likewise.
64633         * lib/unictype/categ_Pd.h: Likewise.
64634         * lib/unictype/categ_Pe.h: Likewise.
64635         * lib/unictype/categ_Pf.h: Likewise.
64636         * lib/unictype/categ_Pi.h: Likewise.
64637         * lib/unictype/categ_Po.h: Likewise.
64638         * lib/unictype/categ_Ps.h: Likewise.
64639         * lib/unictype/categ_S.h: Likewise.
64640         * lib/unictype/categ_Sc.h: Likewise.
64641         * lib/unictype/categ_Sk.h: Likewise.
64642         * lib/unictype/categ_Sm.h: Likewise.
64643         * lib/unictype/categ_So.h: Likewise.
64644         * lib/unictype/categ_Z.h: Likewise.
64645         * lib/unictype/categ_Zl.h: Likewise.
64646         * lib/unictype/categ_Zp.h: Likewise.
64647         * lib/unictype/categ_Zs.h: Likewise.
64648         * lib/unictype/categ_of.h: Likewise.
64649         * lib/unictype/combining.h: Likewise.
64650         * lib/unictype/ctype_alnum.h: Likewise.
64651         * lib/unictype/ctype_alpha.h: Likewise.
64652         * lib/unictype/ctype_blank.h: Likewise.
64653         * lib/unictype/ctype_cntrl.h: Likewise.
64654         * lib/unictype/ctype_digit.h: Likewise.
64655         * lib/unictype/ctype_graph.h: Likewise.
64656         * lib/unictype/ctype_lower.h: Likewise.
64657         * lib/unictype/ctype_print.h: Likewise.
64658         * lib/unictype/ctype_punct.h: Likewise.
64659         * lib/unictype/ctype_space.h: Likewise.
64660         * lib/unictype/ctype_upper.h: Likewise.
64661         * lib/unictype/ctype_xdigit.h: Likewise.
64662         * lib/unictype/decdigit.h: Likewise.
64663         * lib/unictype/digit.h: Likewise.
64664         * lib/unictype/mirror.h: Likewise.
64665         * lib/unictype/numeric.h: Likewise.
64666         * lib/unictype/pr_alphabetic.h: Likewise.
64667         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64668         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64669         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64670         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64671         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64672         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64673         * lib/unictype/pr_bidi_control.h: Likewise.
64674         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64675         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64676         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64677         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64678         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64679         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64680         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64681         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64682         * lib/unictype/pr_bidi_pdf.h: Likewise.
64683         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64684         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64685         * lib/unictype/pr_combining.h: Likewise.
64686         * lib/unictype/pr_composite.h: Likewise.
64687         * lib/unictype/pr_currency_symbol.h: Likewise.
64688         * lib/unictype/pr_dash.h: Likewise.
64689         * lib/unictype/pr_decimal_digit.h: Likewise.
64690         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64691         * lib/unictype/pr_deprecated.h: Likewise.
64692         * lib/unictype/pr_diacritic.h: Likewise.
64693         * lib/unictype/pr_extender.h: Likewise.
64694         * lib/unictype/pr_format_control.h: Likewise.
64695         * lib/unictype/pr_grapheme_base.h: Likewise.
64696         * lib/unictype/pr_grapheme_extend.h: Likewise.
64697         * lib/unictype/pr_grapheme_link.h: Likewise.
64698         * lib/unictype/pr_hex_digit.h: Likewise.
64699         * lib/unictype/pr_hyphen.h: Likewise.
64700         * lib/unictype/pr_id_continue.h: Likewise.
64701         * lib/unictype/pr_id_start.h: Likewise.
64702         * lib/unictype/pr_ideographic.h: Likewise.
64703         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64704         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64705         * lib/unictype/pr_ignorable_control.h: Likewise.
64706         * lib/unictype/pr_iso_control.h: Likewise.
64707         * lib/unictype/pr_join_control.h: Likewise.
64708         * lib/unictype/pr_left_of_pair.h: Likewise.
64709         * lib/unictype/pr_line_separator.h: Likewise.
64710         * lib/unictype/pr_logical_order_exception.h: Likewise.
64711         * lib/unictype/pr_lowercase.h: Likewise.
64712         * lib/unictype/pr_math.h: Likewise.
64713         * lib/unictype/pr_non_break.h: Likewise.
64714         * lib/unictype/pr_not_a_character.h: Likewise.
64715         * lib/unictype/pr_numeric.h: Likewise.
64716         * lib/unictype/pr_other_alphabetic.h: Likewise.
64717         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64718         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64719         * lib/unictype/pr_other_id_continue.h: Likewise.
64720         * lib/unictype/pr_other_id_start.h: Likewise.
64721         * lib/unictype/pr_other_lowercase.h: Likewise.
64722         * lib/unictype/pr_other_math.h: Likewise.
64723         * lib/unictype/pr_other_uppercase.h: Likewise.
64724         * lib/unictype/pr_paired_punctuation.h: Likewise.
64725         * lib/unictype/pr_paragraph_separator.h: Likewise.
64726         * lib/unictype/pr_pattern_syntax.h: Likewise.
64727         * lib/unictype/pr_pattern_white_space.h: Likewise.
64728         * lib/unictype/pr_private_use.h: Likewise.
64729         * lib/unictype/pr_punctuation.h: Likewise.
64730         * lib/unictype/pr_quotation_mark.h: Likewise.
64731         * lib/unictype/pr_radical.h: Likewise.
64732         * lib/unictype/pr_sentence_terminal.h: Likewise.
64733         * lib/unictype/pr_soft_dotted.h: Likewise.
64734         * lib/unictype/pr_space.h: Likewise.
64735         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64736         * lib/unictype/pr_titlecase.h: Likewise.
64737         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64738         * lib/unictype/pr_unified_ideograph.h: Likewise.
64739         * lib/unictype/pr_uppercase.h: Likewise.
64740         * lib/unictype/pr_variation_selector.h: Likewise.
64741         * lib/unictype/pr_white_space.h: Likewise.
64742         * lib/unictype/pr_xid_continue.h: Likewise.
64743         * lib/unictype/pr_xid_start.h: Likewise.
64744         * lib/unictype/pr_zero_width.h: Likewise.
64745         * lib/unictype/scripts.h: Likewise.
64746         * lib/unictype/scripts_byname.gperf: Likewise.
64747         * lib/unictype/sy_c_ident.h: Likewise.
64748         * lib/unictype/sy_c_whitespace.h: Likewise.
64749         * lib/unictype/sy_java_ident.h: Likewise.
64750         * lib/unictype/sy_java_whitespace.h: Likewise.
64751
64752         * lib/unictype/Makefile: New file.
64753         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64754         glibc.
64755         * lib/unictype/3level.h: New file, copied from glibc.
64756         * lib/unictype/3levelbit.h: New file.
64757
64758 2007-11-11  Bruno Haible  <bruno@clisp.org>
64759
64760         * modules/gperf: New file.
64761         * modules/iconv_open (Depends-on): Add it.
64762         (Makefile.am): Remove the GPERF definition.
64763
64764 2007-11-11  Bruno Haible  <bruno@clisp.org>
64765
64766         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64767         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64768
64769 2007-11-11  Bruno Haible  <bruno@clisp.org>
64770
64771         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64772         (usage): Remove function.
64773
64774 2007-11-11  Bruno Haible  <bruno@clisp.org>
64775
64776         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64777         gl_FUNC_CEILF_LIBS.
64778         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64779         gl_FUNC_CEIL_LIBS.
64780         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64781         gl_FUNC_CEILL_LIBS.
64782         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64783         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64784         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64785
64786 2007-11-11  Bruno Haible  <bruno@clisp.org>
64787
64788         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64789         roundf were declared but do not exist on functions.
64790         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64791         roundl were declared but do not exist on functions.
64792         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64793         HAVE_FLOORL_AND_CEILL, respectively.
64794         Needed for Sun C on Solaris 10.
64795
64796 2007-11-11  Bruno Haible  <bruno@clisp.org>
64797
64798         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64799         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64800         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64801         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64802         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64803         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64804         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64805         HAVE_DECL_ROUNDF.
64806         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64807         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64809         of HAVE_DECL_ROUND*.
64810         * modules/math (Makefile.am): Update.
64811
64812 2007-11-10  Bruno Haible  <bruno@clisp.org>
64813
64814         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64815         ptrdiff_t as m4/intl.m4.
64816
64817 2007-11-10  Jim Meyering  <meyering@redhat.com>
64818
64819         Avoid link failure for the argmatch test.
64820         * tests/test-argmatch.c (usage): Define function to avoid a link
64821         failure: argmatch_die requires a usage function.
64822
64823 2007-11-09  Bruno Haible  <bruno@clisp.org>
64824
64825         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64826         * doc/functions/vsnprintf.texi: Likewise.
64827         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64828         with a size argument < 2.
64829
64830 2007-11-09  Bruno Haible  <bruno@clisp.org>
64831
64832         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64833         buffer. Fixes an inefficiency introduced on 2007-11-03.
64834
64835 2007-11-09  Bruno Haible  <bruno@clisp.org>
64836
64837         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64838         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64839
64840 2007-11-08  Jim Meyering  <meyering@redhat.com>
64841
64842         Change cache variable name prefix "jm_" to "gl_" everywhere.
64843         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64844         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64845         * m4/uptime.m4: s/gl_/jm_/
64846
64847 2007-11-07  Bruno Haible  <bruno@clisp.org>
64848
64849         Update to GNU gettext 0.17.
64850         * m4/intl.m4: Update to GNU gettext 0.17.
64851         * m4/po.m4: Likewise.
64852         * modules/gettext (Files): Remove m4/ulonglong.m4.
64853         (configure.ac): Require gettext infrastructure from version 0.17.
64854
64855 2007-11-06  Bruno Haible  <bruno@clisp.org>
64856
64857         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64858         symbolic values are not defined in a public header.
64859         * lib/freadable.c (freadable) [QNX]: Likewise.
64860         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64861         * lib/freading.c (freading) [QNX]: Likewise.
64862         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64863         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64864         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64865         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64866         Reported by Alain Magloire.
64867
64868         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64869
64870 2007-11-05  Bruno Haible  <bruno@clisp.org>
64871
64872         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64873         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64874         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64875         Reported by Eric Blake.
64876
64877 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64878             Bruno Haible  <bruno@clisp.org>
64879
64880         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64881         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64882         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64883         (malloc): Undefine also before including <stdlib.h>.
64884         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64885         Needed on OSF/1 4.0.
64886
64887 2007-11-05  Jim Meyering  <meyering@redhat.com>
64888
64889         git-version-gen: sync from coreutils.
64890         * build-aux/git-version-gen: Add comments.
64891         Change the first '-' to '.' in the snapshot version string,
64892         e.g., 6.9-377-08144 -> 6.9.377-08144
64893         Remove first parameter.
64894         Don't declare a version "-dirty" merely because a time
64895         stamp has changed.
64896
64897 2007-11-04  Bruno Haible  <bruno@clisp.org>
64898
64899         * lib/lock.h: Protect all macro definitions containing an 'if'
64900         statement through a "do { ... } while (0)".
64901         * lib/tls.h: Likewise.
64902
64903 2007-11-04  Bruno Haible  <bruno@clisp.org>
64904
64905         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64906
64907 2007-11-04  Bruno Haible  <bruno@clisp.org>
64908
64909         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64910         * modules/fprintf-posix (Depends-on): Add nocrash.
64911         * modules/snprintf-posix (Depends-on): Likewise.
64912         * modules/sprintf-posix (Depends-on): Likewise.
64913         * modules/vasnprintf-posix (Depends-on): Likewise.
64914         * modules/vasprintf-posix (Depends-on): Likewise.
64915         * modules/vfprintf-posix (Depends-on): Likewise.
64916         * modules/vsnprintf-posix (Depends-on): Likewise.
64917         * modules/vsprintf-posix (Depends-on): Likewise.
64918         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64919         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64920         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64921         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64922         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64923         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64924         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64925
64926 2007-11-04  Bruno Haible  <bruno@clisp.org>
64927
64928         * modules/nocrash: New file.
64929         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64930         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64931
64932 2007-11-04  Bruno Haible  <bruno@clisp.org>
64933
64934         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64935         precision handling.
64936         * tests/test-vasprintf-posix.c (test_function): Likewise.
64937         * tests/test-snprintf-posix.h (test_function): Likewise.
64938         * tests/test-sprintf-posix.h (test_function): Likewise.
64939
64940         Fix *printf behaviour for large precisions on mingw and BeOS.
64941         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64942         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64944         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64945         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64946         gl_PRINTF_PRECISION and test its result. Invoke
64947         gl_PREREQ_VASNPRINTF_PRECISION.
64948         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64949         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64950         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64951         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64952         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64953         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64954         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64955         * doc/functions/fprintf.texi: Update.
64956         * doc/functions/printf.texi: Update.
64957         * doc/functions/snprintf.texi: Update.
64958         * doc/functions/sprintf.texi: Update.
64959         * doc/functions/vfprintf.texi: Update.
64960         * doc/functions/vprintf.texi: Update.
64961         * doc/functions/vsnprintf.texi: Update.
64962         * doc/functions/vsprintf.texi: Update.
64963
64964 2007-11-04  Bruno Haible  <bruno@clisp.org>
64965
64966         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64967
64968 2007-11-04  Bruno Haible  <bruno@clisp.org>
64969
64970         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64971         Reported by Sylvain Beucler <beuc@gnu.org>.
64972
64973 2007-11-03  Bruno Haible  <bruno@clisp.org>
64974
64975         * tests/test-fprintf-posix2.sh: New file.
64976         * tests/test-fprintf-posix2.c: New file.
64977         * modules/fprintf-posix-tests (Files): Add them.
64978         (TESTS): Add test-fprintf-posix2.sh.
64979         (configure.ac): Check for getrlimit and setrlimit.
64980         (check_PROGRAMS): Add test-fprintf-posix2.
64981
64982         * tests/test-printf-posix2.sh: New file.
64983         * tests/test-printf-posix2.c: New file.
64984         * modules/printf-posix-tests (Files): Add them.
64985         (TESTS): Add test-printf-posix2.sh.
64986         (configure.ac): Check for getrlimit and setrlimit.
64987         (check_PROGRAMS): Add test-printf-posix2.
64988
64989         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64990         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64991         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64992         (decode_double): New function, copied from decode_long_double.
64993         (scale10_round_decimal_decoded): New function, extracted from
64994         scale10_round_decimal_long_double.
64995         (scale10_round_decimal_long_double): Use it.
64996         (scale10_round_decimal_double): New function.
64997         (floorlog10): New function.
64998         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64999         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65000         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65001         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65002         gl_PRINTF_ENOMEM and test its result. Invoke
65003         gl_PREREQ_VASNPRINTF_ENOMEM.
65004         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65005         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65006         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65007         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65008         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65009         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65010         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65011         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65012         * modules/snprintf-posix (Depends-on): Likewise.
65013         * modules/sprintf-posix (Depends-on): Likewise.
65014         * modules/vasnprintf-posix (Depends-on): Likewise.
65015         * modules/vasprintf-posix (Depends-on): Likewise.
65016         * modules/vfprintf-posix (Depends-on): Likewise.
65017         * modules/vsnprintf-posix (Depends-on): Likewise.
65018         * modules/vsprintf-posix (Depends-on): Likewise.
65019         * doc/functions/fprintf.texi: Update.
65020         * doc/functions/printf.texi: Update.
65021         * doc/functions/snprintf.texi: Update.
65022         * doc/functions/sprintf.texi: Update.
65023         * doc/functions/vfprintf.texi: Update.
65024         * doc/functions/vprintf.texi: Update.
65025         * doc/functions/vsnprintf.texi: Update.
65026         * doc/functions/vsprintf.texi: Update.
65027
65028 2007-11-03  Bruno Haible  <bruno@clisp.org>
65029
65030         * modules/frexp-nolibm-tests: New file.
65031
65032         * modules/frexp-nolibm: New file.
65033         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65034
65035 2007-11-03  Bruno Haible  <bruno@clisp.org>
65036
65037         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65038         value is C99 compliant.
65039         Needed for OSF/1 5.1.
65040
65041 2007-11-03  Bruno Haible  <bruno@clisp.org>
65042
65043         Fix out-of-memory handling of vasnprintf.
65044         * lib/printf-parse.c: Include <errno.h>.
65045         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65046         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65047         is already set.
65048
65049 2007-11-02  Eric Blake  <ebb9@byu.net>
65050
65051         Fix tests on cygwin.
65052         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65053
65054 2007-11-01  Bruno Haible  <bruno@clisp.org>
65055
65056         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65057         warning.
65058         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65059         needed for POSIX compatibility.
65060
65061 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65062
65063         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65064         for compatibility with GNU.
65065
65066 2007-11-01  Bruno Haible  <bruno@clisp.org>
65067
65068         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65069         (putenv): Renamed from rpl_putenv. Change argument type from
65070         'const char *' to 'char *'.
65071         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65072         of defining putenv in config.h, just set REPLACE_PUTENV.
65073         * modules/putenv (Depends-on): Add stdlib.
65074         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65075         (Include): Use <stdlib.h>.
65076         * lib/stdlib.in.h (putenv): New declaration.
65077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65078         REPLACE_PUTENV.
65079         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65080         REPLACE_PUTENV.
65081         Needed for MacOS X 10.5.0.
65082         Reported by Peter O'Gorman <peter@pogma.com>.
65083
65084 2007-11-01  Jim Meyering  <meyering@redhat.com>
65085
65086         Treat an empty date string exactly like "0".
65087         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65088         if the remaining date string (to be parsed) is empty, use "0".
65089         Reported by Mischa Molhoek and discussed in this thread:
65090         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65091
65092 2007-10-31  Bruno Haible  <bruno@clisp.org>
65093
65094         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65095         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65096         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65097         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65098         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65099         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65100
65101 2007-10-31  Bruno Haible  <bruno@clisp.org>
65102
65103         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65104         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65105         (AC_TYPE_LONG_LONG_INT): Use it.
65106         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65107         it as well.
65108         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65109         to m4/longlong.m4.
65110         * modules/stdint (Files): Remove m4/ulonglong.m4.
65111         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65112         m4/ulonglong.m4.
65113         * modules/strtoumax (Files): Likewise.
65114
65115 2007-10-30  Bruno Haible  <bruno@clisp.org>
65116
65117         * modules/xvasprintf-posix: New file.
65118         Suggested by Eric Blake.
65119
65120 2007-10-30  Bruno Haible  <bruno@clisp.org>
65121
65122         * modules/xprintf-posix-tests: New file.
65123         * tests/test-xprintf-posix.sh: New file.
65124         * tests/test-xprintf-posix.c: New file.
65125         * tests/test-xfprintf-posix.c: New file.
65126
65127         * modules/xprintf-posix: New file.
65128
65129 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65130
65131         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65132         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65133         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65134
65135 2007-10-29  Bruno Haible  <bruno@clisp.org>
65136
65137         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65138         contain the special marker '_cv_'.
65139         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65140         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65141         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65142         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65143         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65144         Reported by Ralf Wildenhues.
65145
65146 2007-10-29  Bruno Haible  <bruno@clisp.org>
65147
65148         * gnulib-tool (func_import): When --lgpl is not specified, set
65149         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65150         GPLv3.
65151         Reported by Simon Josefsson.
65152
65153 2007-10-28  Bruno Haible  <bruno@clisp.org>
65154
65155         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65156         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65157         HAVE_DECL_ISFINITE.
65158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65159         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65160         HAVE_DECL_ISFINITE.
65161
65162 2007-10-28  Bruno Haible  <bruno@clisp.org>
65163
65164         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65165         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65166
65167 2007-10-28  Bruno Haible  <bruno@clisp.org>
65168
65169         Fix link errors with Sun C 5.0 on Solaris 10.
65170         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65171         function is declared but not present in the compiler's libm.
65172         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65173         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65174         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65175         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65176         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65177         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65178         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65180         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65181         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65182         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65183         HAVE_DECL_FLOORL.
65184
65185 2007-10-28  Bruno Haible  <bruno@clisp.org>
65186
65187         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65188         gl_FUNC_FLOORL. Cache the result.
65189         (gl_FUNC_FLOORL): Use it.
65190         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65191         gl_FUNC_CEILL. Cache the result.
65192         (gl_FUNC_CEILL): Use it.
65193
65194         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65195         gl_FUNC_FLOOR. Cache the result.
65196         (gl_FUNC_FLOOR): Use it.
65197         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65198         gl_FUNC_CEIL. Cache the result.
65199         (gl_FUNC_CEIL): Use it.
65200
65201         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65202         gl_FUNC_FLOORF. Cache the result.
65203         (gl_FUNC_FLOORF): Use it.
65204         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65205         gl_FUNC_CEILF. Cache the result.
65206         (gl_FUNC_CEILF): Use it.
65207
65208 2007-10-28  Bruno Haible  <bruno@clisp.org>
65209
65210         * gnulib-tool: Allow specifying the LGPL version number through
65211         --lgpl=2 or --lgpl=3.
65212         (func_usage): Document --lgpl with argument.
65213         Handle --lgpl=... arguments.
65214         (func_import): Recognize also gl_LGPL calls with an argument. When
65215         --lgpl=2 is used and the module's license is just LGPL, report an
65216         error. Set sed_transform_lib_file according to the lgpl variable. In
65217         the generated files, use --lgpl or gl_LGPL invocations with argument,
65218         if necessary.
65219         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65220         an LGPv2+ license.
65221         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65222         gl_LGPL macro.
65223
65224 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65225             Bruno Haible  <bruno@clisp.org>
65226
65227         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65228         (u16_uctomb_aux): Likewise.
65229         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65230         !HAVE_INLINE.
65231         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65232
65233 2007-10-28  Bruno Haible  <bruno@clisp.org>
65234
65235         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65236         Invoke AM_GETTEXT_OPTION if it exists.
65237         * modules/vasprintf: Likewise.
65238         * modules/verror: Likewise.
65239         * modules/xprintf: Likewise.
65240         * modules/xvasprintf: Likewise.
65241
65242 2007-10-27  Ben Pfaff  <blp@gnu.org>
65243
65244         * lib/math.in.h: Define isfinite macro and prototypes for
65245         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65246         implementations.
65247         * m4/math_h.m4: New substitutions for isfinite module.
65248         * lib/isfinite.c: New file.
65249         * m4/isfinite.m4: New file.
65250         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65251         * modules/isfinite: New file.
65252         * modules/isfinite-tests: New file.
65253         * tests/tests-isfinite.c: New file.
65254         * doc/functions/isfinite.texi: Mention isfinite module.
65255         * MODULES.html.sh: Mention new module.
65256
65257 2007-10-27  Ben Pfaff  <blp@gnu.org>
65258
65259         Ralf Wildenhues reported that Tru64 4.0D declares the round
65260         functions but does not have definitions.
65261         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65262         cannot be found in any library, set the output variable to
65263         "missing" instead of "".
65264         * m4/round.m4: Also use our substitute if we cannot find round in
65265         any library, even if it is declared.
65266         * m4/roundf.m4: Likewise for roundf.
65267         * m4/roundl.m4: Likewise for roundl.
65268         * lib/math.in.h: Undefine roundf, round, roundl before defining
65269         their replacements, to allow for hypothetical systems where these
65270         may be defined as macros but not available in libraries.
65271
65272 2007-10-27  Bruno Haible  <bruno@clisp.org>
65273
65274         * doc/gnulib.texi: Invoke @firstparagraphindent.
65275         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65276         changes in gnulib.
65277         (Source changes): New section.
65278
65279 2007-10-26  Bruno Haible  <bruno@clisp.org>
65280
65281         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65282         borrowed from autoconf.
65283
65284 2007-10-26  Bruno Haible  <bruno@clisp.org>
65285
65286         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65287         strerror returned the empty string. Needed on HP-UX 11.00.
65288
65289 2007-10-24  Micah Cowan  <micah@cowan.name>
65290
65291         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65292         * build-aux/bootstrap: Remove support for now-unnecessary option,
65293         --cvs-user, and envvars CVS_USER, CVS_RSH.
65294
65295 2007-10-24  Jim Meyering  <meyering@redhat.com>
65296
65297         Avoid diagnostics from sha1sum when there is no cached checksum.
65298         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65299         if the po.s1 file hasn't been created yet.
65300
65301         * build-aux/bootstrap: Sync from coreutils:
65302         2007-10-24  Jim Meyering  <meyering@redhat.com>
65303         Get gnulib from the git repository, not from an obsolete cvs one.
65304         * build-aux/bootstrap: Suggestion from Micah Cowan.
65305         2007-10-04  Jim Meyering  <jim@meyering.net>
65306         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65307         (update_po_files): Work also when there are no .po files in po/.
65308
65309 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65310
65311         * README: Append ".git" to git and cg examples.
65312         Problem reported by Benoit Sigoure.
65313
65314 2007-10-23  Micah Cowan  <micah@cowan.name>
65315
65316         * users.txt: Add wget.
65317
65318 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65319
65320         Fix linking of some unistdio tests on FreeBSD.
65321         * modules/unistdio/u16-vsnprintf-tests
65322         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65323         * modules/unistdio/u16-vsprintf-tests
65324         (test_u16_vsnprintf1_LDADD): Likewise.
65325         * modules/unistdio/u32-vsnprintf-tests
65326         (test_u32_vsnprintf1_LDADD): Likewise.
65327         * modules/unistdio/u32-vsprintf-tests
65328         (test_u32_vsprintf1_LDADD): Likewise.
65329         * modules/unistdio/u8-vsnprintf-tests
65330         (test_u8_vsnprintf1_LDADD): Likewise.
65331         * modules/unistdio/u8-vsprintf-tests
65332         (test_u8_vsprintf1_LDADD): Likewise.
65333         * modules/unistdio/ulc-vsnprintf-tests
65334         (test_ulc_vsnprintf1_LDADD): Likewise.
65335         * modules/unistdio/ulc-vsprintf-tests
65336         (test_ulc_vsprintf1_LDADD): Likewise.
65337
65338         Fix linking of some uniconv tests on FreeBSD.
65339         * modules/uniconv/u16-conv-from-enc-tests
65340         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65341         * modules/uniconv/u16-conv-to-enc-tests
65342         (test_u16_conv_to_enc_LDADD): Likewise.
65343         * modules/uniconv/u16-strconv-from-enc-tests
65344         (test_u16_strconv_from_enc_LDADD): Likewise.
65345         * modules/uniconv/u16-strconv-to-enc-tests
65346         (test_u16_strconv_to_enc_LDADD): Likewise.
65347         * modules/uniconv/u32-conv-from-enc-tests
65348         (test_u32_conv_from_enc_LDADD): Likewise.
65349         * modules/uniconv/u32-conv-to-enc-tests
65350         (test_u32_conv_to_enc_LDADD): Likewise.
65351         * modules/uniconv/u32-strconv-from-enc-tests
65352         (test_u32_strconv_from_enc_LDADD): Likewise.
65353         * modules/uniconv/u32-strconv-to-enc-tests
65354         (test_u32_strconv_to_enc_LDADD): Likewise.
65355         * modules/uniconv/u8-conv-from-enc-tests
65356         (test_u8_conv_from_enc_LDADD): Likewise.
65357         * modules/uniconv/u8-conv-to-enc-tests
65358         (test_u8_conv_to_enc_LDADD): Likewise.
65359         * modules/uniconv/u8-strconv-from-enc-tests
65360         (test_u8_strconv_from_enc_LDADD): Likewise.
65361         * modules/uniconv/u8-strconv-to-enc-tests
65362         (test_u8_strconv_to_enc_LDADD): Likewise.
65363
65364 2007-10-22  Bruno Haible  <bruno@clisp.org>
65365
65366         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65367         size.
65368
65369 2007-10-22  Eric Blake  <ebb9@byu.net>
65370
65371         Tweak x*printf documentation.
65372         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65373         variable name and comments.
65374         Suggested by Bruno Haible.
65375
65376 2007-10-22  Bruno Haible  <bruno@clisp.org>
65377
65378         * lib/acl.c (copy_acl): Fix file name in comment.
65379
65380 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65381
65382         Fix Tru64 problem with stdbool.h.
65383         * lib/stdbool.in.h (false, true):
65384         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65385         Don't declare as an enum in this situation; it runs afoul of Tru64.
65386         Problem reported by Steven M. Schweda in
65387         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65388
65389 2007-10-22  Eric Blake  <ebb9@byu.net>
65390
65391         Also wrap vf?printf.
65392         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65393         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65394         (xvprintf, xvfprintf): New functions.
65395
65396 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65397
65398         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65399         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65400
65401         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65402         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65403
65404 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65405
65406         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65407         by Bruno Haible.
65408
65409 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65410
65411         * lib/getloadavg.c
65412         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65413         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65414
65415         * tests/test-i-ring.c: Work for C89.
65416
65417 2007-10-22  Bruno Haible  <bruno@clisp.org>
65418
65419         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65420         -1u, in preprocessor expression, so that we don't test for the bug
65421         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65423
65424 2007-10-22  Eric Blake  <ebb9@byu.net>
65425
65426         * tests/test-yesno.sh: Silence stderr during test.
65427
65428 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65429
65430         * modules/crypto/gc-camellia: New file.
65431
65432         * m4/gc-camellia.m4: New file.
65433
65434         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65435
65436         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65437
65438 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65439
65440         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65441         --help to stdout.  Reported by sms@antinode.org (Steven
65442         M. Schweda).
65443
65444 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65445
65446         * users.txt: Fix link to libksba.
65447
65448 2007-10-21  Ben Pfaff  <blp@gnu.org>
65449
65450         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65451         round.c roundf implementation that depends on floorf and ceilf to
65452         be tested unconditionally.
65453
65454 2007-10-21  Ben Pfaff  <blp@gnu.org>
65455
65456         * m4/check-libm-func.m4: Removed.
65457         * m4/check-math-lib.m4: New file.
65458         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65459         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65460         definition and lack of AC_LIBOBJ([roundf]).
65461         * m4/roundl.m4: Ditto, and similarly for roundl.
65462         * modules/round: Reference new m4 file.
65463         * modules/roundf: Ditto.
65464         * modules/roundl: Ditto.
65465         * tests/test-round2.c (main): Use ROUND instead of round.
65466         Bug report from Bruno Haible.
65467
65468 2007-10-21  Bruno Haible  <bruno@clisp.org>
65469
65470         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65471         context.
65472
65473 2007-10-21  Bruno Haible  <bruno@clisp.org>
65474
65475         * tests/test-wcwidth.c (main): Allow negative result for some control
65476         characters.
65477
65478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65479         Needed on OSF/1 5.1.
65480
65481 2007-10-21  Bruno Haible  <bruno@clisp.org>
65482
65483         * tests/test-floorf1.c: Include isnanf.h.
65484         (main): Use isnanf() instead of isnan().
65485         * tests/test-ceilf1.c: Include isnanf.h.
65486         (main): Use isnanf() instead of isnan().
65487         * tests/test-truncf1.c: Include isnanf.h.
65488         (main): Use isnanf() instead of isnan().
65489         * tests/test-roundf1.c: Include isnanf.h.
65490         (main): Use isnanf() instead of isnan().
65491
65492 2007-10-21  Eric Blake  <ebb9@byu.net>
65493
65494         * users.txt: Update URL for m4.
65495
65496 2007-10-21  Bruno Haible  <bruno@clisp.org>
65497
65498         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65499
65500 2007-10-21  Bruno Haible  <bruno@clisp.org>
65501
65502         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65503         Git's management files if the CVS files are not present.
65504
65505 2007-10-20  Bruno Haible  <bruno@clisp.org>
65506
65507         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65508         gcc-3.4.x.
65509
65510 2007-10-20  Ben Pfaff  <blp@gnu.org>
65511
65512         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65513         implementations.
65514         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65515         * lib/round.c: New file.
65516         * lib/roundf.c: New file.
65517         * lib/roundl.c: New file.
65518         * m4/round.m4: New file.
65519         * m4/roundf.m4: New file.
65520         * m4/roundl.m4: New file.
65521         * m4/check-libm-func-m4: New file.
65522         * modules/math: Replace round, roundf, roundl related @VARS@ in
65523         math.in.h.
65524         * modules/round: New file.
65525         * modules/round-tests: New file.
65526         * modules/roundf: New file.
65527         * modules/roundf-tests: New file.
65528         * modules/roundl: New file.
65529         * modules/roundl-tests: New file.
65530         * tests/test-round1.c: New file.
65531         * tests/test-round2.c: New file.
65532         * tests/test-roundf1.c: New file.
65533         * tests/test-roundf2.c: New file.
65534         * tests/test-roundl.c: New file.
65535         * doc/functions/round.texi: Mention round module.
65536         * doc/functions/roundf.texi: Mention roundf module.
65537         * doc/functions/roundl.texi: Mention roundl module.
65538         * MODULES.html.sh: Mention new modules.
65539         Thanks to Bruno Haible for suggestions.
65540
65541 2007-10-20  Jim Meyering  <meyering@redhat.com>
65542
65543         * lib/xprintf.c: Include <config.h> unconditionally.
65544
65545         Change xprintf's license to GPL.
65546         * modules/xprintf (License): s/LGPL/GPL/, since this module
65547         depends on modules (exit and exitfail) which are GPL.
65548         Suggestion from Bruno Haible.
65549
65550         xprintf fixes.
65551         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65552         Use a clearer diagnostic.
65553         Patch from Bruno Haible.
65554
65555 2007-10-20  Bruno Haible  <bruno@clisp.org>
65556
65557         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65558         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65559         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65560
65561 2007-10-20  Bruno Haible  <bruno@clisp.org>
65562
65563         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65564         precision in the comparison result > x - 1 or similar.
65565         * tests/test-ceilf2.c (correct_result_p): Likewise.
65566         * tests/test-truncf2.c (correct_result_p): Likewise.
65567         * tests/test-trunc2.c (correct_result_p): Likewise.
65568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65569
65570 2007-10-20  Bruno Haible  <bruno@clisp.org>
65571
65572         * modules/ceil: New file.
65573         * m4/ceil.m4: New file.
65574         * doc/functions/ceil.texi: Mention the 'ceil' module.
65575
65576 2007-10-20  Bruno Haible  <bruno@clisp.org>
65577
65578         * modules/floor: New file.
65579         * m4/floor.m4: New file.
65580         * doc/functions/floor.texi: Mention the 'floor' module.
65581
65582 2007-10-20  Bruno Haible  <bruno@clisp.org>
65583
65584         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65585         of %a.
65586         * modules/floorf-tests (Depends-on): Likewise.
65587         * modules/truncf-tests (Depends-on): Likewise.
65588         * modules/trunc-tests (Depends-on): Likewise.
65589         Reported by Ben Pfaff.
65590
65591 2007-10-19  Jim Meyering  <meyering@redhat.com>
65592
65593         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65594         Don't bother testing specific errno values.  Just test ferror.
65595
65596         New module: xprintf
65597         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65598
65599 2007-10-19  Bruno Haible  <bruno@clisp.org>
65600
65601         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65602         syntax.
65603         * modules/javaexec (Makefile.am): Likewise.
65604         * modules/relocatable-prog (Makefile.am): Likewise.
65605         Suggested by Jim Meyering.
65606
65607 2007-10-18  Bruno Haible  <bruno@clisp.org>
65608
65609         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65610         Reported by Jim Meyering.
65611
65612 2007-10-18  Eric Blake  <ebb9@byu.net>
65613
65614         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65615
65616 2007-10-18  Bruno Haible  <bruno@clisp.org>
65617
65618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65619         the format string into writable memory. Needed in Fortify conditions.
65620
65621 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65622             Bruno Haible  <bruno@clisp.org>
65623
65624         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65625         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65626         * modules/trim (Depends-on): Add mbchar.
65627         (configure.ac): Add gl_FUNC_MBRTOWC.
65628         (Makefile.am): Augment lib_SOURCES.
65629
65630 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65631
65632         Modify glob.c to use fstatat and dirfd, to simplify it.
65633         Suggested by Eric Blake.
65634         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65635         Don't include <stdbool.h>; not used.
65636         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65637         (link_exists_p): Simplify implementation, since we can now assume
65638         dirfd and fstatat.
65639         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65640
65641 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65642
65643         * gnulib-tool (func_get_dependencies): Fix sed script to
65644         match only tests.
65645
65646 2007-10-17  Bruno Haible  <bruno@clisp.org>
65647
65648         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65649         allow locale names without encoding suffix.
65650         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65651         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65652
65653 2007-10-16  Bruno Haible  <bruno@clisp.org>
65654
65655         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65656         * lib/getgroups.c (getgroups): Likewise.
65657         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65658
65659 2007-10-16  Bruno Haible  <bruno@clisp.org>
65660
65661         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65662         * modules/malloc-posix (License): Likewise.
65663         * modules/realloc-posix (License): Likewise.
65664         * modules/calloc-posix (License): Likewise.
65665         * modules/intprops (License): Change from GPL to LGPL, with
65666         Paul Eggert's approval.
65667
65668 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65669
65670         Merge glibc changes into lib/glob.c.
65671
65672         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65673         2007-10-15 04:59:03 UTC.  Here are the changes:
65674
65675         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65676
65677         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65678
65679         * lib/glob.c: Add some branch prediction throughout.
65680
65681         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65682
65683         [BZ #5103]
65684         * lib/glob.c (glob): Recognize patterns starting \/.
65685
65686         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65687
65688         [BZ #3996]
65689         * lib/glob.c (attribute_hidden): Define if not defined.
65690         (glob): Unescape dirname, filename or username when needed and not
65691         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65692         is NULL.  Handle unescaped [ in pattern without closing ].
65693         Don't pass GLOB_CHECK down to recursive glob for directories.
65694         (__glob_pattern_type): New function.
65695         (__glob_pattern_p): Implement using __glob_pattern_type.
65696         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65697         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65698         Remove unreachable code.
65699
65700         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65701
65702         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65703         explain why there are no leaks.
65704
65705         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65706
65707         [BZ #3253]
65708         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65709         time, rather allocate increasingly bigger arrays of pointers, if
65710         possible with alloca, if too large with malloc.
65711
65712 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65715         Problem reported by H.Merijn Brand in
65716         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65717         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65718         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65719
65720 2007-10-15  Bruno Haible  <bruno@clisp.org>
65721
65722         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65723         with explicit rpl_ prefix.
65724         * lib/fopen.c (fopen): Likewise.
65725         * lib/freopen.c (freopen): Likewise.
65726         * lib/iconv.c (iconv): Likewise.
65727         * lib/iconv_close.c (iconv_close): Likewise.
65728
65729 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65730
65731         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65732
65733 2007-10-15  Bruno Haible  <bruno@clisp.org>
65734
65735         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65736         <stddef.h> instead of <stdlib.h> since we only need NULL.
65737         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65738
65739 2007-10-15  Bruno Haible  <bruno@clisp.org>
65740
65741         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65742         Replace paragraph talking about LIBOBJS.
65743         Reported by Colin Watson <cjwatson@debian.org>.
65744
65745 2007-10-15  Bruno Haible  <bruno@clisp.org>
65746
65747         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65748         <stdlib.h> before using NULL.
65749
65750 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65751
65752         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65753         Reported by Albert Chin <china@thewrittenword.com>.
65754
65755 2007-10-14  Bruno Haible  <bruno@clisp.org>
65756
65757         * modules/iconv_open-utf-tests: New file.
65758         * tests/test-iconv-utf.c: New file.
65759
65760         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65761         * modules/iconv_open-utf: New file.
65762         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65763         (iconv, iconv_close): New declarations.
65764         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65765         be defined.
65766         (iconv_open): Add special handling of conversion between UTF-8 and
65767         UTF-{16,32}{BE,LE}.
65768         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65769         * lib/iconv_close.c: New file.
65770         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65771         gl_FUNC_ICONV_OPEN.
65772         (gl_FUNC_ICONV_OPEN): Use it.
65773         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65774         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65775         and REPLACE_ICONV_UTF.
65776         * modules/iconv_open (Depends-on): Add c-strcase.
65777         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65778         ICONV_CONST.
65779         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65780
65781 2007-10-13  Albert Chin  <china@thewrittenword.com>
65782             Bruno Haible  <bruno@clisp.org>
65783
65784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65785         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65786
65787 2007-10-13  Bruno Haible  <bruno@clisp.org>
65788
65789         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65790         defined, use the ISO C99 inline semantics.
65791         * lib/argp.h (ARGP_EI): Likewise.
65792
65793 2007-10-13  Bruno Haible  <bruno@clisp.org>
65794
65795         Handle 'inline' change in gcc 4.3.0.
65796         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65797         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65798         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65799         argp_fmtstream_point): Disable 'extern' declaration if the function
65800         definition is going to be provided inline.
65801         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65802         semantics, not the ISO C99 inline semantics.
65803         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65804         'extern' declaration if the function definition is going to be provided
65805         inline.
65806         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65807         the GNU C inline semantics, not the ISO C99 inline semantics. With
65808         GCC 4.2, avoid a warning.
65809
65810 2007-10-13  Bruno Haible  <bruno@clisp.org>
65811
65812         * lib/freading.h (freading): Enable the use of __freading for
65813         glibc >= 2.7.
65814         * lib/freading.c (freading): Likewise.
65815
65816 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65817
65818         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65819         "warning: C99 inline functions are not supported; using GNU89".
65820
65821 2007-10-12  Bruno Haible  <bruno@clisp.org>
65822
65823         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65824         of 2.
65825         * tests/test-ceilf2.c: New file.
65826         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65827
65828         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65829         * modules/ceilf-tests: Update.
65830
65831 2007-10-12  Bruno Haible  <bruno@clisp.org>
65832
65833         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65834         of 2.
65835         * tests/test-floorf2.c: New file.
65836         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65837
65838         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65839         * modules/floorf-tests: Update.
65840
65841 2007-10-12  Bruno Haible  <bruno@clisp.org>
65842
65843         * tests/test-trunc2.c: New file.
65844         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65845
65846         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65847         * modules/trunc-tests: Update.
65848
65849 2007-10-12  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65852         of 2.
65853         * tests/test-truncf2.c: New file.
65854         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65855
65856         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65857         * modules/truncf-tests: Update.
65858
65859 2007-10-11  Eric Blake  <ebb9@byu.net>
65860
65861         Don't claim strerror is broken on Interix.
65862         * doc/functions/strerror.texi (strerror): Known broken systems are
65863         now Solaris 8, and not Interix.
65864         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65865         Interix on cross-compile.
65866         Reported by Martin Koeppe in
65867         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65868
65869 2007-10-11  Bruno Haible  <bruno@clisp.org>
65870
65871         * modules/i-ring-tests: New file.
65872         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65873         instead of assert.
65874
65875 2007-10-11  Bruno Haible  <bruno@clisp.org>
65876
65877         * modules/filenamecat-tests: New file.
65878         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65879         * lib/filenamecat.c: Remove test code.
65880
65881 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65882
65883         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65884
65885         * lib/strerror.c: Include <string.h> always, to test interface,
65886         and to remove the need for the dummy.
65887         Include intprops.h to compute width instead of doing it ourselves
65888         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65889         (strerror): Define it to return NULL if there's no system strerror.
65890         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65891         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65892         ancient pre-strerror Unix systems well any more.  Saying "unknown
65893         system error" is enough.
65894         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65895         simpler strerror.c implementation.
65896         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65897         Simplify the tests to reflect the simpler strerror implementation.
65898         * modules/strerror (Depends-on): Add intprops.
65899
65900 2007-10-09  Eric Blake  <ebb9@byu.net>
65901
65902         Silence test-fpending.
65903         * modules/fpending-tests (Files): Add wrapper script.
65904         * tests/test-fpending.sh: New file.
65905
65906 2007-10-09  Bruno Haible  <bruno@clisp.org>
65907
65908         * MODULES.html.sh (func_module): Don't create a hyperlink for
65909         function names like 'printf_frexp'.
65910         (Misc): Add crc, memxor.
65911         (Characteristics of floating types): New section.
65912         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65913         isnanf-nolibm, signbit, trunc, truncf, truncl.
65914         (Enhancements for ISO C 99 functions): New subsection Input/output.
65915         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65916         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65917         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65918         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65919         (Enhancements for POSIX:2001 functions): Add chdir-long.
65920         (File system functions): Add areadlink, chdir-safer, read-file.
65921         Remove cycle-check.
65922         (File system as inode set): New section.
65923         (Date and time): Add gethrxtime.
65924         (Multithreading): Add openmp.
65925         (Internationalization functions): Add localename.
65926         (Unicode string functions): Add unistr/u*-mbsnlen.
65927         (Support for maintaining and releasing projects): Add git-version-gen.
65928         (Lone files): Remove directories.
65929
65930 2007-10-08  Ben Pfaff  <blp@gnu.org>
65931
65932         * lib/xmalloca.h: Fix typo in comment.
65933
65934 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65935
65936         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65937         when avoiding problems with integer overflow.  Use a portable test
65938         instead.
65939
65940 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65941
65942         * modules/dummy (License): Change to LGPLv2+.
65943         * modules/float (License): Likewise
65944         * modules/realloc (License): Likewise
65945         * modules/stdlib (License): Likewise
65946
65947 2007-10-07  Bruno Haible  <bruno@clisp.org>
65948
65949         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65950         * floor.c (TWO_MANT_DIG): Likewise.
65951         * ceil.c (TWO_MANT_DIG): Likewise.
65952         Reported by Ben Pfaff.
65953
65954 2007-10-07  Bruno Haible  <bruno@clisp.org>
65955
65956         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65957         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65958         * lib/frexp.c (FUNC): Likewise.
65959         * lib/printf-frexp.h (printf_frexp): Likewise.
65960         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65961         * lib/printf-frexp.c (FUNC): Likewise.
65962         Suggested by Jim Meyering.
65963
65964 2007-10-07  Jim Meyering  <meyering@redhat.com>
65965
65966         Make xnanosleep's integer overflow test more robust.
65967         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65968         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65969
65970 2007-10-07  Bruno Haible  <bruno@clisp.org>
65971
65972         * NEWS: Mention the license change.
65973
65974         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65975         abbreviations in the modules files.
65976
65977         Change copyright notice from GPLv2+ to GPLv3+.
65978         * README: Change copyright notice.
65979         * MODULES.html.sh: Likewise.
65980         * build-aux/bootstrap.conf: Likewise.
65981         * build-aux/config.libpath: Likewise.
65982         * build-aux/csharpcomp.sh.in: Likewise.
65983         * build-aux/csharpexec.sh.in: Likewise.
65984         * build-aux/install-reloc: Likewise.
65985         * build-aux/javacomp.sh.in: Likewise.
65986         * build-aux/javaexec.sh.in: Likewise.
65987         * build-aux/ldd.sh.in: Likewise.
65988         * build-aux/reloc-ldflags: Likewise.
65989         * build-aux/relocatable.sh.in: Likewise.
65990         * build-aux/x-to-1.in: Likewise.
65991         * check-module: Likewise.
65992         * config/srclistvars.sh: Likewise.
65993         * gnulib-tool: Likewise.
65994         * lib/acl-internal.h: Likewise.
65995         * lib/acl.c: Likewise.
65996         * lib/acl.h: Likewise.
65997         * lib/acl_entries.c: Likewise.
65998         * lib/areadlink-with-size.c: Likewise.
65999         * lib/areadlink.c: Likewise.
66000         * lib/areadlink.h: Likewise.
66001         * lib/argmatch.c: Likewise.
66002         * lib/argmatch.h: Likewise.
66003         * lib/argp-ba.c: Likewise.
66004         * lib/argp-eexst.c: Likewise.
66005         * lib/argp-fmtstream.c: Likewise.
66006         * lib/argp-fmtstream.h: Likewise.
66007         * lib/argp-fs-xinl.c: Likewise.
66008         * lib/argp-help.c: Likewise.
66009         * lib/argp-namefrob.h: Likewise.
66010         * lib/argp-parse.c: Likewise.
66011         * lib/argp-pin.c: Likewise.
66012         * lib/argp-pv.c: Likewise.
66013         * lib/argp-pvh.c: Likewise.
66014         * lib/argp-xinl.c: Likewise.
66015         * lib/argp.h: Likewise.
66016         * lib/at-func.c: Likewise.
66017         * lib/atanl.c: Likewise.
66018         * lib/backupfile.c: Likewise.
66019         * lib/backupfile.h: Likewise.
66020         * lib/basename.c: Likewise.
66021         * lib/binary-io.h: Likewise.
66022         * lib/byteswap.in.h: Likewise.
66023         * lib/c-stack.c: Likewise.
66024         * lib/c-stack.h: Likewise.
66025         * lib/c-strcasestr.c: Likewise.
66026         * lib/c-strcasestr.h: Likewise.
66027         * lib/c-strstr.c: Likewise.
66028         * lib/c-strstr.h: Likewise.
66029         * lib/c-strtod.c: Likewise.
66030         * lib/calloc.c: Likewise.
66031         * lib/canon-host.c: Likewise.
66032         * lib/canon-host.h: Likewise.
66033         * lib/canonicalize-lgpl.c: Likewise.
66034         * lib/canonicalize.c: Likewise.
66035         * lib/canonicalize.h: Likewise.
66036         * lib/ceil.c: Likewise.
66037         * lib/ceilf.c: Likewise.
66038         * lib/ceill.c: Likewise.
66039         * lib/chdir-long.c: Likewise.
66040         * lib/chdir-long.h: Likewise.
66041         * lib/chdir-safer.c: Likewise.
66042         * lib/chdir-safer.h: Likewise.
66043         * lib/chown.c: Likewise.
66044         * lib/classpath.c: Likewise.
66045         * lib/classpath.h: Likewise.
66046         * lib/clean-temp.c: Likewise.
66047         * lib/clean-temp.h: Likewise.
66048         * lib/cloexec.c: Likewise.
66049         * lib/close-stream.c: Likewise.
66050         * lib/closein.c: Likewise.
66051         * lib/closein.h: Likewise.
66052         * lib/closeout.c: Likewise.
66053         * lib/closeout.h: Likewise.
66054         * lib/concat-filename.c: Likewise.
66055         * lib/copy-file.c: Likewise.
66056         * lib/copy-file.h: Likewise.
66057         * lib/count-one-bits.h: Likewise.
66058         * lib/crc.c: Likewise.
66059         * lib/crc.h: Likewise.
66060         * lib/creat-safer.c: Likewise.
66061         * lib/csharpcomp.c: Likewise.
66062         * lib/csharpcomp.h: Likewise.
66063         * lib/csharpexec.c: Likewise.
66064         * lib/csharpexec.h: Likewise.
66065         * lib/cycle-check.c: Likewise.
66066         * lib/cycle-check.h: Likewise.
66067         * lib/diacrit.c: Likewise.
66068         * lib/diacrit.h: Likewise.
66069         * lib/diffseq.h: Likewise.
66070         * lib/dirchownmod.c: Likewise.
66071         * lib/dirent.in.h: Likewise.
66072         * lib/dirfd.c: Likewise.
66073         * lib/dirfd.h: Likewise.
66074         * lib/dirname.c: Likewise.
66075         * lib/dirname.h: Likewise.
66076         * lib/dummy.c: Likewise.
66077         * lib/dup-safer.c: Likewise.
66078         * lib/dup2.c: Likewise.
66079         * lib/eealloc.h: Likewise.
66080         * lib/error.c: Likewise.
66081         * lib/error.h: Likewise.
66082         * lib/euidaccess.c: Likewise.
66083         * lib/exclude.c: Likewise.
66084         * lib/exclude.h: Likewise.
66085         * lib/execute.c: Likewise.
66086         * lib/execute.h: Likewise.
66087         * lib/exitfail.c: Likewise.
66088         * lib/exitfail.h: Likewise.
66089         * lib/expl.c: Likewise.
66090         * lib/fatal-signal.c: Likewise.
66091         * lib/fatal-signal.h: Likewise.
66092         * lib/fbufmode.c: Likewise.
66093         * lib/fbufmode.h: Likewise.
66094         * lib/fchdir.c: Likewise.
66095         * lib/fchmodat.c: Likewise.
66096         * lib/fchownat.c: Likewise.
66097         * lib/fcntl--.h: Likewise.
66098         * lib/fcntl-safer.h: Likewise.
66099         * lib/fcntl.in.h: Likewise.
66100         * lib/fd-safer.c: Likewise.
66101         * lib/fflush.c: Likewise.
66102         * lib/file-has-acl.c: Likewise.
66103         * lib/file-set.c: Likewise.
66104         * lib/file-type.c: Likewise.
66105         * lib/file-type.h: Likewise.
66106         * lib/fileblocks.c: Likewise.
66107         * lib/filemode.c: Likewise.
66108         * lib/filemode.h: Likewise.
66109         * lib/filename.h: Likewise.
66110         * lib/filenamecat.c: Likewise.
66111         * lib/filenamecat.h: Likewise.
66112         * lib/findprog.c: Likewise.
66113         * lib/findprog.h: Likewise.
66114         * lib/float.in.h: Likewise.
66115         * lib/floor.c: Likewise.
66116         * lib/floorf.c: Likewise.
66117         * lib/floorl.c: Likewise.
66118         * lib/fopen-safer.c: Likewise.
66119         * lib/fopen.c: Likewise.
66120         * lib/fpending.c: Likewise.
66121         * lib/fpending.h: Likewise.
66122         * lib/fprintf.c: Likewise.
66123         * lib/fprintftime.h: Likewise.
66124         * lib/fpucw.h: Likewise.
66125         * lib/fpurge.c: Likewise.
66126         * lib/fpurge.h: Likewise.
66127         * lib/freadable.c: Likewise.
66128         * lib/freadable.h: Likewise.
66129         * lib/freadahead.c: Likewise.
66130         * lib/freadahead.h: Likewise.
66131         * lib/freading.c: Likewise.
66132         * lib/freading.h: Likewise.
66133         * lib/free.c: Likewise.
66134         * lib/freopen.c: Likewise.
66135         * lib/frexp.c: Likewise.
66136         * lib/frexpl.c: Likewise.
66137         * lib/fseek.c: Likewise.
66138         * lib/fseterr.c: Likewise.
66139         * lib/fseterr.h: Likewise.
66140         * lib/fstatat.c: Likewise.
66141         * lib/fstrcmp.c: Likewise.
66142         * lib/fstrcmp.h: Likewise.
66143         * lib/fsusage.c: Likewise.
66144         * lib/fsusage.h: Likewise.
66145         * lib/ftell.c: Likewise.
66146         * lib/ftello.c: Likewise.
66147         * lib/fts-cycle.c: Likewise.
66148         * lib/fts.c: Likewise.
66149         * lib/fts_.h: Likewise.
66150         * lib/full-read.c: Likewise.
66151         * lib/full-read.h: Likewise.
66152         * lib/full-write.c: Likewise.
66153         * lib/full-write.h: Likewise.
66154         * lib/fwritable.c: Likewise.
66155         * lib/fwritable.h: Likewise.
66156         * lib/fwriteerror.c: Likewise.
66157         * lib/fwriteerror.h: Likewise.
66158         * lib/fwriting.c: Likewise.
66159         * lib/fwriting.h: Likewise.
66160         * lib/gcd.c: Likewise.
66161         * lib/gcd.h: Likewise.
66162         * lib/getcwd.c: Likewise.
66163         * lib/getdate.h: Likewise.
66164         * lib/getdate.y: Likewise.
66165         * lib/getdomainname.c: Likewise.
66166         * lib/getdomainname.h: Likewise.
66167         * lib/getgroups.c: Likewise.
66168         * lib/gethostname.c: Likewise.
66169         * lib/gethrxtime.c: Likewise.
66170         * lib/gethrxtime.h: Likewise.
66171         * lib/getloadavg.c: Likewise.
66172         * lib/getndelim2.c: Likewise.
66173         * lib/getndelim2.h: Likewise.
66174         * lib/getnline.c: Likewise.
66175         * lib/getnline.h: Likewise.
66176         * lib/getopt.c: Likewise.
66177         * lib/getopt.in.h: Likewise.
66178         * lib/getopt1.c: Likewise.
66179         * lib/getopt_int.h: Likewise.
66180         * lib/getpagesize.h: Likewise.
66181         * lib/getsubopt.c: Likewise.
66182         * lib/gettime.c: Likewise.
66183         * lib/getugroups.c: Likewise.
66184         * lib/getugroups.h: Likewise.
66185         * lib/getusershell.c: Likewise.
66186         * lib/gl_anyavltree_list1.h: Likewise.
66187         * lib/gl_anyavltree_list2.h: Likewise.
66188         * lib/gl_anyhash_list1.h: Likewise.
66189         * lib/gl_anyhash_list2.h: Likewise.
66190         * lib/gl_anylinked_list1.h: Likewise.
66191         * lib/gl_anylinked_list2.h: Likewise.
66192         * lib/gl_anyrbtree_list1.h: Likewise.
66193         * lib/gl_anyrbtree_list2.h: Likewise.
66194         * lib/gl_anytree_list1.h: Likewise.
66195         * lib/gl_anytree_list2.h: Likewise.
66196         * lib/gl_anytree_oset.h: Likewise.
66197         * lib/gl_anytreehash_list1.h: Likewise.
66198         * lib/gl_anytreehash_list2.h: Likewise.
66199         * lib/gl_array_list.c: Likewise.
66200         * lib/gl_array_list.h: Likewise.
66201         * lib/gl_array_oset.c: Likewise.
66202         * lib/gl_array_oset.h: Likewise.
66203         * lib/gl_avltree_list.c: Likewise.
66204         * lib/gl_avltree_list.h: Likewise.
66205         * lib/gl_avltree_oset.c: Likewise.
66206         * lib/gl_avltree_oset.h: Likewise.
66207         * lib/gl_avltreehash_list.c: Likewise.
66208         * lib/gl_avltreehash_list.h: Likewise.
66209         * lib/gl_carray_list.c: Likewise.
66210         * lib/gl_carray_list.h: Likewise.
66211         * lib/gl_linked_list.c: Likewise.
66212         * lib/gl_linked_list.h: Likewise.
66213         * lib/gl_linkedhash_list.c: Likewise.
66214         * lib/gl_linkedhash_list.h: Likewise.
66215         * lib/gl_list.c: Likewise.
66216         * lib/gl_list.h: Likewise.
66217         * lib/gl_oset.c: Likewise.
66218         * lib/gl_oset.h: Likewise.
66219         * lib/gl_rbtree_list.c: Likewise.
66220         * lib/gl_rbtree_list.h: Likewise.
66221         * lib/gl_rbtree_oset.c: Likewise.
66222         * lib/gl_rbtree_oset.h: Likewise.
66223         * lib/gl_rbtreehash_list.c: Likewise.
66224         * lib/gl_rbtreehash_list.h: Likewise.
66225         * lib/gl_sublist.c: Likewise.
66226         * lib/gl_sublist.h: Likewise.
66227         * lib/group-member.c: Likewise.
66228         * lib/group-member.h: Likewise.
66229         * lib/hard-locale.c: Likewise.
66230         * lib/hard-locale.h: Likewise.
66231         * lib/hash-pjw.c: Likewise.
66232         * lib/hash-pjw.h: Likewise.
66233         * lib/hash-triple.c: Likewise.
66234         * lib/hash.c: Likewise.
66235         * lib/hash.h: Likewise.
66236         * lib/human.c: Likewise.
66237         * lib/human.h: Likewise.
66238         * lib/i-ring.c: Likewise.
66239         * lib/i-ring.h: Likewise.
66240         * lib/idcache.c: Likewise.
66241         * lib/imaxabs.c: Likewise.
66242         * lib/imaxdiv.c: Likewise.
66243         * lib/inet_pton.c: Likewise.
66244         * lib/inet_pton.h: Likewise.
66245         * lib/intprops.h: Likewise.
66246         * lib/inttostr.c: Likewise.
66247         * lib/inttostr.h: Likewise.
66248         * lib/inttypes.in.h: Likewise.
66249         * lib/isapipe.c: Likewise.
66250         * lib/isdir.c: Likewise.
66251         * lib/isnan.c: Likewise.
66252         * lib/isnan.h: Likewise.
66253         * lib/isnanf.c: Likewise.
66254         * lib/isnanf.h: Likewise.
66255         * lib/isnanl-nolibm.h: Likewise.
66256         * lib/isnanl.c: Likewise.
66257         * lib/isnanl.h: Likewise.
66258         * lib/javacomp.c: Likewise.
66259         * lib/javacomp.h: Likewise.
66260         * lib/javaexec.c: Likewise.
66261         * lib/javaexec.h: Likewise.
66262         * lib/javaversion.c: Likewise.
66263         * lib/javaversion.h: Likewise.
66264         * lib/javaversion.java: Likewise.
66265         * lib/lbrkprop.h: Likewise.
66266         * lib/lchmod.h: Likewise.
66267         * lib/lchown.c: Likewise.
66268         * lib/ldexpl.c: Likewise.
66269         * lib/linebreak.c: Likewise.
66270         * lib/linebreak.h: Likewise.
66271         * lib/linebuffer.c: Likewise.
66272         * lib/linebuffer.h: Likewise.
66273         * lib/locale.in.h: Likewise.
66274         * lib/logl.c: Likewise.
66275         * lib/long-options.c: Likewise.
66276         * lib/long-options.h: Likewise.
66277         * lib/lstat.c: Likewise.
66278         * lib/lstat.h: Likewise.
66279         * lib/math.in.h: Likewise.
66280         * lib/mbchar.c: Likewise.
66281         * lib/mbchar.h: Likewise.
66282         * lib/mbfile.h: Likewise.
66283         * lib/mbiter.h: Likewise.
66284         * lib/mbscasecmp.c: Likewise.
66285         * lib/mbscasestr.c: Likewise.
66286         * lib/mbschr.c: Likewise.
66287         * lib/mbscspn.c: Likewise.
66288         * lib/mbslen.c: Likewise.
66289         * lib/mbsncasecmp.c: Likewise.
66290         * lib/mbsnlen.c: Likewise.
66291         * lib/mbspbrk.c: Likewise.
66292         * lib/mbspcasecmp.c: Likewise.
66293         * lib/mbsrchr.c: Likewise.
66294         * lib/mbssep.c: Likewise.
66295         * lib/mbsspn.c: Likewise.
66296         * lib/mbsstr.c: Likewise.
66297         * lib/mbstok_r.c: Likewise.
66298         * lib/mbswidth.c: Likewise.
66299         * lib/mbswidth.h: Likewise.
66300         * lib/mbuiter.h: Likewise.
66301         * lib/memcasecmp.c: Likewise.
66302         * lib/memcasecmp.h: Likewise.
66303         * lib/memchr.c: Likewise.
66304         * lib/memcmp.c: Likewise.
66305         * lib/memcoll.c: Likewise.
66306         * lib/memcoll.h: Likewise.
66307         * lib/memcpy.c: Likewise.
66308         * lib/memrchr.c: Likewise.
66309         * lib/mkancesdirs.c: Likewise.
66310         * lib/mkdir-p.c: Likewise.
66311         * lib/mkdir-p.h: Likewise.
66312         * lib/mkdir.c: Likewise.
66313         * lib/mkdirat.c: Likewise.
66314         * lib/mkdtemp.c: Likewise.
66315         * lib/mkstemp-safer.c: Likewise.
66316         * lib/mkstemp.c: Likewise.
66317         * lib/modechange.c: Likewise.
66318         * lib/modechange.h: Likewise.
66319         * lib/mountlist.c: Likewise.
66320         * lib/mountlist.h: Likewise.
66321         * lib/mpsort.c: Likewise.
66322         * lib/nanosleep.c: Likewise.
66323         * lib/obstack.c: Likewise.
66324         * lib/obstack.h: Likewise.
66325         * lib/open-safer.c: Likewise.
66326         * lib/open.c: Likewise.
66327         * lib/openat-die.c: Likewise.
66328         * lib/openat-priv.h: Likewise.
66329         * lib/openat-proc.c: Likewise.
66330         * lib/openat.c: Likewise.
66331         * lib/openat.h: Likewise.
66332         * lib/pagealign_alloc.c: Likewise.
66333         * lib/pagealign_alloc.h: Likewise.
66334         * lib/physmem.c: Likewise.
66335         * lib/physmem.h: Likewise.
66336         * lib/pipe-safer.c: Likewise.
66337         * lib/pipe.c: Likewise.
66338         * lib/pipe.h: Likewise.
66339         * lib/posixtm.c: Likewise.
66340         * lib/posixtm.h: Likewise.
66341         * lib/posixver.c: Likewise.
66342         * lib/printf-frexp.c: Likewise.
66343         * lib/printf-frexp.h: Likewise.
66344         * lib/printf-frexpl.c: Likewise.
66345         * lib/printf-frexpl.h: Likewise.
66346         * lib/printf.c: Likewise.
66347         * lib/progname.c: Likewise.
66348         * lib/progname.h: Likewise.
66349         * lib/progreloc.c: Likewise.
66350         * lib/putenv.c: Likewise.
66351         * lib/quote.c: Likewise.
66352         * lib/quote.h: Likewise.
66353         * lib/quotearg.c: Likewise.
66354         * lib/quotearg.h: Likewise.
66355         * lib/raise.c: Likewise.
66356         * lib/readline.c: Likewise.
66357         * lib/readline.h: Likewise.
66358         * lib/readlink.c: Likewise.
66359         * lib/readtokens.c: Likewise.
66360         * lib/readtokens.h: Likewise.
66361         * lib/readtokens0.c: Likewise.
66362         * lib/readtokens0.h: Likewise.
66363         * lib/readutmp.c: Likewise.
66364         * lib/readutmp.h: Likewise.
66365         * lib/realloc.c: Likewise.
66366         * lib/relocwrapper.c: Likewise.
66367         * lib/rename-dest-slash.c: Likewise.
66368         * lib/rename.c: Likewise.
66369         * lib/rmdir.c: Likewise.
66370         * lib/rpmatch.c: Likewise.
66371         * lib/safe-read.c: Likewise.
66372         * lib/safe-read.h: Likewise.
66373         * lib/safe-write.c: Likewise.
66374         * lib/safe-write.h: Likewise.
66375         * lib/same-inode.h: Likewise.
66376         * lib/same.c: Likewise.
66377         * lib/same.h: Likewise.
66378         * lib/save-cwd.c: Likewise.
66379         * lib/save-cwd.h: Likewise.
66380         * lib/savedir.c: Likewise.
66381         * lib/savedir.h: Likewise.
66382         * lib/savewd.c: Likewise.
66383         * lib/savewd.h: Likewise.
66384         * lib/search.in.h: Likewise.
66385         * lib/setenv.c: Likewise.
66386         * lib/setenv.h: Likewise.
66387         * lib/settime.c: Likewise.
66388         * lib/sh-quote.c: Likewise.
66389         * lib/sh-quote.h: Likewise.
66390         * lib/sig2str.c: Likewise.
66391         * lib/sig2str.h: Likewise.
66392         * lib/signal.in.h: Likewise.
66393         * lib/signbitd.c: Likewise.
66394         * lib/signbitf.c: Likewise.
66395         * lib/signbitl.c: Likewise.
66396         * lib/sigprocmask.c: Likewise.
66397         * lib/sincosl.c: Likewise.
66398         * lib/sleep.c: Likewise.
66399         * lib/sprintf.c: Likewise.
66400         * lib/sqrtl.c: Likewise.
66401         * lib/stat-time.h: Likewise.
66402         * lib/stdio--.h: Likewise.
66403         * lib/stdio-safer.h: Likewise.
66404         * lib/stdlib--.h: Likewise.
66405         * lib/stdlib-safer.h: Likewise.
66406         * lib/stdlib.in.h: Likewise.
66407         * lib/stpcpy.c: Likewise.
66408         * lib/stpncpy.c: Likewise.
66409         * lib/strchrnul.c: Likewise.
66410         * lib/strcspn.c: Likewise.
66411         * lib/strerror.c: Likewise.
66412         * lib/strftime.c: Likewise.
66413         * lib/strftime.h: Likewise.
66414         * lib/striconveh.c: Likewise.
66415         * lib/striconveh.h: Likewise.
66416         * lib/striconveha.c: Likewise.
66417         * lib/striconveha.h: Likewise.
66418         * lib/stripslash.c: Likewise.
66419         * lib/strnlen1.c: Likewise.
66420         * lib/strnlen1.h: Likewise.
66421         * lib/strtod.c: Likewise.
66422         * lib/strtoimax.c: Likewise.
66423         * lib/strtok_r.c: Likewise.
66424         * lib/strtol.c: Likewise.
66425         * lib/strtoll.c: Likewise.
66426         * lib/strtoul.c: Likewise.
66427         * lib/strtoull.c: Likewise.
66428         * lib/sysexits.in.h: Likewise.
66429         * lib/tempname.c: Likewise.
66430         * lib/tempname.h: Likewise.
66431         * lib/timespec.h: Likewise.
66432         * lib/tls.c: Likewise.
66433         * lib/tls.h: Likewise.
66434         * lib/tmpdir.c: Likewise.
66435         * lib/tmpdir.h: Likewise.
66436         * lib/tmpfile-safer.c: Likewise.
66437         * lib/tmpfile.c: Likewise.
66438         * lib/trigl.c: Likewise.
66439         * lib/trigl.h: Likewise.
66440         * lib/trim.c: Likewise.
66441         * lib/trim.h: Likewise.
66442         * lib/trunc.c: Likewise.
66443         * lib/truncf.c: Likewise.
66444         * lib/truncl.c: Likewise.
66445         * lib/tsearch.c: Likewise.
66446         * lib/unicodeio.c: Likewise.
66447         * lib/unicodeio.h: Likewise.
66448         * lib/unistd--.h: Likewise.
66449         * lib/unistd-safer.h: Likewise.
66450         * lib/unistdio/ulc-fprintf.c: Likewise.
66451         * lib/unistdio/ulc-vfprintf.c: Likewise.
66452         * lib/unlinkdir.c: Likewise.
66453         * lib/unlinkdir.h: Likewise.
66454         * lib/unlocked-io.h: Likewise.
66455         * lib/unsetenv.c: Likewise.
66456         * lib/userspec.c: Likewise.
66457         * lib/utime.c: Likewise.
66458         * lib/utimecmp.c: Likewise.
66459         * lib/utimecmp.h: Likewise.
66460         * lib/utimens.c: Likewise.
66461         * lib/verify.h: Likewise.
66462         * lib/verror.c: Likewise.
66463         * lib/verror.h: Likewise.
66464         * lib/version-etc-fsf.c: Likewise.
66465         * lib/version-etc.c: Likewise.
66466         * lib/version-etc.h: Likewise.
66467         * lib/vfprintf.c: Likewise.
66468         * lib/vprintf.c: Likewise.
66469         * lib/vsprintf.c: Likewise.
66470         * lib/w32spawn.h: Likewise.
66471         * lib/wait-process.c: Likewise.
66472         * lib/wait-process.h: Likewise.
66473         * lib/wcwidth.c: Likewise.
66474         * lib/write-any-file.c: Likewise.
66475         * lib/xalloc-die.c: Likewise.
66476         * lib/xalloc.h: Likewise.
66477         * lib/xasprintf.c: Likewise.
66478         * lib/xgetcwd.c: Likewise.
66479         * lib/xgetcwd.h: Likewise.
66480         * lib/xgetdomainname.c: Likewise.
66481         * lib/xgetdomainname.h: Likewise.
66482         * lib/xgethostname.c: Likewise.
66483         * lib/xmalloc.c: Likewise.
66484         * lib/xmalloca.c: Likewise.
66485         * lib/xmalloca.h: Likewise.
66486         * lib/xmemcoll.c: Likewise.
66487         * lib/xnanosleep.c: Likewise.
66488         * lib/xreadlink.c: Likewise.
66489         * lib/xreadlink.h: Likewise.
66490         * lib/xsetenv.c: Likewise.
66491         * lib/xsetenv.h: Likewise.
66492         * lib/xstriconv.c: Likewise.
66493         * lib/xstriconv.h: Likewise.
66494         * lib/xstrndup.c: Likewise.
66495         * lib/xstrndup.h: Likewise.
66496         * lib/xstrtod.c: Likewise.
66497         * lib/xstrtod.h: Likewise.
66498         * lib/xstrtol-error.c: Likewise.
66499         * lib/xstrtol.c: Likewise.
66500         * lib/xstrtol.h: Likewise.
66501         * lib/xtime.h: Likewise.
66502         * lib/xvasprintf.c: Likewise.
66503         * lib/xvasprintf.h: Likewise.
66504         * lib/yesno.c: Likewise.
66505         * lib/yesno.h: Likewise.
66506         * posix-modules: Likewise.
66507         * tests/test-alloca-opt.c: Likewise.
66508         * tests/test-arcfour.c: Likewise.
66509         * tests/test-arctwo.c: Likewise.
66510         * tests/test-argmatch.c: Likewise.
66511         * tests/test-argp-2.sh: Likewise.
66512         * tests/test-argp.c: Likewise.
66513         * tests/test-arpa_inet.c: Likewise.
66514         * tests/test-array_list.c: Likewise.
66515         * tests/test-array_oset.c: Likewise.
66516         * tests/test-atexit.c: Likewise.
66517         * tests/test-avltree_list.c: Likewise.
66518         * tests/test-avltree_oset.c: Likewise.
66519         * tests/test-avltreehash_list.c: Likewise.
66520         * tests/test-base64.c: Likewise.
66521         * tests/test-binary-io.c: Likewise.
66522         * tests/test-byteswap.c: Likewise.
66523         * tests/test-c-ctype.c: Likewise.
66524         * tests/test-c-strcasecmp.c: Likewise.
66525         * tests/test-c-strcasestr.c: Likewise.
66526         * tests/test-c-strncasecmp.c: Likewise.
66527         * tests/test-c-strstr.c: Likewise.
66528         * tests/test-canonicalize-lgpl.c: Likewise.
66529         * tests/test-canonicalize.c: Likewise.
66530         * tests/test-carray_list.c: Likewise.
66531         * tests/test-ceilf.c: Likewise.
66532         * tests/test-ceill.c: Likewise.
66533         * tests/test-count-one-bits.c: Likewise.
66534         * tests/test-crc.c: Likewise.
66535         * tests/test-dirname.c: Likewise.
66536         * tests/test-fbufmode.c: Likewise.
66537         * tests/test-fcntl.c: Likewise.
66538         * tests/test-fflush.c: Likewise.
66539         * tests/test-floorf.c: Likewise.
66540         * tests/test-floorl.c: Likewise.
66541         * tests/test-fopen.c: Likewise.
66542         * tests/test-fprintf-posix.c: Likewise.
66543         * tests/test-fprintf-posix.h: Likewise.
66544         * tests/test-fpurge.c: Likewise.
66545         * tests/test-freadable.c: Likewise.
66546         * tests/test-freadahead.c: Likewise.
66547         * tests/test-freading.c: Likewise.
66548         * tests/test-freopen.c: Likewise.
66549         * tests/test-frexp.c: Likewise.
66550         * tests/test-frexpl.c: Likewise.
66551         * tests/test-fseek.c: Likewise.
66552         * tests/test-fseeko.c: Likewise.
66553         * tests/test-fseterr.c: Likewise.
66554         * tests/test-fstrcmp.c: Likewise.
66555         * tests/test-ftell.c: Likewise.
66556         * tests/test-ftello.c: Likewise.
66557         * tests/test-fwritable.c: Likewise.
66558         * tests/test-fwriting.c: Likewise.
66559         * tests/test-getaddrinfo.c: Likewise.
66560         * tests/test-getpass.c: Likewise.
66561         * tests/test-gettimeofday.c: Likewise.
66562         * tests/test-hmac-md5.c: Likewise.
66563         * tests/test-hmac-sha1.c: Likewise.
66564         * tests/test-iconv.c: Likewise.
66565         * tests/test-iconvme.c: Likewise.
66566         * tests/test-inttypes.c: Likewise.
66567         * tests/test-isnan.c: Likewise.
66568         * tests/test-isnanf.c: Likewise.
66569         * tests/test-isnanl-nolibm.c: Likewise.
66570         * tests/test-isnanl.c: Likewise.
66571         * tests/test-isnanl.h: Likewise.
66572         * tests/test-ldexpl.c: Likewise.
66573         * tests/test-linked_list.c: Likewise.
66574         * tests/test-linkedhash_list.c: Likewise.
66575         * tests/test-locale.c: Likewise.
66576         * tests/test-localename.c: Likewise.
66577         * tests/test-lock.c: Likewise.
66578         * tests/test-lseek.c: Likewise.
66579         * tests/test-malloca.c: Likewise.
66580         * tests/test-math.c: Likewise.
66581         * tests/test-mbscasecmp.c: Likewise.
66582         * tests/test-mbscasestr1.c: Likewise.
66583         * tests/test-mbscasestr2.c: Likewise.
66584         * tests/test-mbscasestr3.c: Likewise.
66585         * tests/test-mbscasestr4.c: Likewise.
66586         * tests/test-mbschr.c: Likewise.
66587         * tests/test-mbscspn.c: Likewise.
66588         * tests/test-mbsncasecmp.c: Likewise.
66589         * tests/test-mbspbrk.c: Likewise.
66590         * tests/test-mbspcasecmp.c: Likewise.
66591         * tests/test-mbsrchr.c: Likewise.
66592         * tests/test-mbsspn.c: Likewise.
66593         * tests/test-mbsstr1.c: Likewise.
66594         * tests/test-mbsstr2.c: Likewise.
66595         * tests/test-mbsstr3.c: Likewise.
66596         * tests/test-md5.c: Likewise.
66597         * tests/test-memmem.c: Likewise.
66598         * tests/test-netinet_in.c: Likewise.
66599         * tests/test-open.c: Likewise.
66600         * tests/test-printf-frexp.c: Likewise.
66601         * tests/test-printf-frexpl.c: Likewise.
66602         * tests/test-printf-posix.c: Likewise.
66603         * tests/test-printf-posix.h: Likewise.
66604         * tests/test-rbtree_list.c: Likewise.
66605         * tests/test-rbtree_oset.c: Likewise.
66606         * tests/test-rbtreehash_list.c: Likewise.
66607         * tests/test-read-file.c: Likewise.
66608         * tests/test-rijndael.c: Likewise.
66609         * tests/test-search.c: Likewise.
66610         * tests/test-signbit.c: Likewise.
66611         * tests/test-sleep.c: Likewise.
66612         * tests/test-snprintf-posix.c: Likewise.
66613         * tests/test-snprintf-posix.h: Likewise.
66614         * tests/test-snprintf.c: Likewise.
66615         * tests/test-sprintf-posix.c: Likewise.
66616         * tests/test-sprintf-posix.h: Likewise.
66617         * tests/test-stat-time.c: Likewise.
66618         * tests/test-stdbool.c: Likewise.
66619         * tests/test-stdint.c: Likewise.
66620         * tests/test-stdio.c: Likewise.
66621         * tests/test-stdlib.c: Likewise.
66622         * tests/test-stpncpy.c: Likewise.
66623         * tests/test-strcasestr.c: Likewise.
66624         * tests/test-striconv.c: Likewise.
66625         * tests/test-striconveh.c: Likewise.
66626         * tests/test-striconveha.c: Likewise.
66627         * tests/test-string.c: Likewise.
66628         * tests/test-sys_select.c: Likewise.
66629         * tests/test-sys_socket.c: Likewise.
66630         * tests/test-sys_stat.c: Likewise.
66631         * tests/test-sys_time.c: Likewise.
66632         * tests/test-sysexits.c: Likewise.
66633         * tests/test-time.c: Likewise.
66634         * tests/test-tls.c: Likewise.
66635         * tests/test-trunc.c: Likewise.
66636         * tests/test-truncf.c: Likewise.
66637         * tests/test-truncl.c: Likewise.
66638         * tests/test-unistd.c: Likewise.
66639         * tests/test-vasnprintf-posix.c: Likewise.
66640         * tests/test-vasnprintf-posix2.c: Likewise.
66641         * tests/test-vasnprintf.c: Likewise.
66642         * tests/test-vasprintf-posix.c: Likewise.
66643         * tests/test-vasprintf.c: Likewise.
66644         * tests/test-verify.c: Likewise.
66645         * tests/test-vfprintf-posix.c: Likewise.
66646         * tests/test-vprintf-posix.c: Likewise.
66647         * tests/test-vsnprintf-posix.c: Likewise.
66648         * tests/test-vsnprintf.c: Likewise.
66649         * tests/test-vsprintf-posix.c: Likewise.
66650         * tests/test-wchar.c: Likewise.
66651         * tests/test-wctype.c: Likewise.
66652         * tests/test-wcwidth.c: Likewise.
66653         * tests/test-xstrtol.c: Likewise.
66654         * tests/test-xvasprintf.c: Likewise.
66655         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66656         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66657         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66658         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66659         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66660         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66661         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66662         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66663         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66664         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66665         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66666         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66667         * tests/uniname/test-uninames.c: Likewise.
66668         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66669         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66670         * tests/unistdio/test-u16-printf1.h: Likewise.
66671         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66672         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66673         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66674         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66675         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66676         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66677         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66678         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66679         * tests/unistdio/test-u32-printf1.h: Likewise.
66680         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66681         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66682         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66683         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66684         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66685         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66686         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66687         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66688         * tests/unistdio/test-u8-printf1.h: Likewise.
66689         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66690         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66691         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66692         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66693         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66694         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66695         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66696         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66697         * tests/unistdio/test-ulc-printf1.h: Likewise.
66698         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66699         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66700         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66701         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66702         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66703         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66704         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66705         * tests/uniwidth/test-u16-width.c: Likewise.
66706         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66707         * tests/uniwidth/test-u32-width.c: Likewise.
66708         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66709         * tests/uniwidth/test-u8-width.c: Likewise.
66710         * tests/uniwidth/test-uc_width.c: Likewise.
66711         * config/srclist-update: Likewise.
66712         (fixlicense): Update to GPLv3+.
66713
66714         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66715         * tests/test-tsearch.c: Change copyright notice.
66716
66717         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66718         * lib/c-strcaseeq.h: Change copyright notice.
66719         * lib/streq.h: Likewise.
66720         * lib/uniconv.h: Likewise.
66721         * lib/uniconv/u-conv-from-enc.h: Likewise.
66722         * lib/uniconv/u-conv-to-enc.h: Likewise.
66723         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66724         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66725         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66726         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66727         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66728         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66729         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66730         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66731         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66732         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66733         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66734         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66735         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66736         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66737         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66738         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66739         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66740         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66741         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66742         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66743         * lib/uniname.h: Likewise.
66744         * lib/uniname/uniname.c: Likewise.
66745         * lib/unistdio.h: Likewise.
66746         * lib/unistdio/u-asnprintf.h: Likewise.
66747         * lib/unistdio/u-asprintf.h: Likewise.
66748         * lib/unistdio/u-printf-args.c: Likewise.
66749         * lib/unistdio/u-printf-args.h: Likewise.
66750         * lib/unistdio/u-printf-parse.h: Likewise.
66751         * lib/unistdio/u-snprintf.h: Likewise.
66752         * lib/unistdio/u-sprintf.h: Likewise.
66753         * lib/unistdio/u-vasprintf.h: Likewise.
66754         * lib/unistdio/u-vsnprintf.h: Likewise.
66755         * lib/unistdio/u-vsprintf.h: Likewise.
66756         * lib/unistdio/u16-asnprintf.c: Likewise.
66757         * lib/unistdio/u16-asprintf.c: Likewise.
66758         * lib/unistdio/u16-printf-parse.c: Likewise.
66759         * lib/unistdio/u16-snprintf.c: Likewise.
66760         * lib/unistdio/u16-sprintf.c: Likewise.
66761         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66762         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66763         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66764         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66765         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66766         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66767         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66768         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66769         * lib/unistdio/u16-vasnprintf.c: Likewise.
66770         * lib/unistdio/u16-vasprintf.c: Likewise.
66771         * lib/unistdio/u16-vsnprintf.c: Likewise.
66772         * lib/unistdio/u16-vsprintf.c: Likewise.
66773         * lib/unistdio/u32-asnprintf.c: Likewise.
66774         * lib/unistdio/u32-asprintf.c: Likewise.
66775         * lib/unistdio/u32-printf-parse.c: Likewise.
66776         * lib/unistdio/u32-snprintf.c: Likewise.
66777         * lib/unistdio/u32-sprintf.c: Likewise.
66778         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66779         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66780         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66781         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66782         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66783         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66784         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66785         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66786         * lib/unistdio/u32-vasnprintf.c: Likewise.
66787         * lib/unistdio/u32-vasprintf.c: Likewise.
66788         * lib/unistdio/u32-vsnprintf.c: Likewise.
66789         * lib/unistdio/u32-vsprintf.c: Likewise.
66790         * lib/unistdio/u8-asnprintf.c: Likewise.
66791         * lib/unistdio/u8-asprintf.c: Likewise.
66792         * lib/unistdio/u8-printf-parse.c: Likewise.
66793         * lib/unistdio/u8-snprintf.c: Likewise.
66794         * lib/unistdio/u8-sprintf.c: Likewise.
66795         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66796         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66797         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66798         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66799         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66800         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66801         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66802         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66803         * lib/unistdio/u8-vasnprintf.c: Likewise.
66804         * lib/unistdio/u8-vasprintf.c: Likewise.
66805         * lib/unistdio/u8-vsnprintf.c: Likewise.
66806         * lib/unistdio/u8-vsprintf.c: Likewise.
66807         * lib/unistdio/ulc-asnprintf.c: Likewise.
66808         * lib/unistdio/ulc-asprintf.c: Likewise.
66809         * lib/unistdio/ulc-printf-parse.c: Likewise.
66810         * lib/unistdio/ulc-snprintf.c: Likewise.
66811         * lib/unistdio/ulc-sprintf.c: Likewise.
66812         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66813         * lib/unistdio/ulc-vasprintf.c: Likewise.
66814         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66815         * lib/unistdio/ulc-vsprintf.c: Likewise.
66816         * lib/unistr.h: Likewise.
66817         * lib/unistr/u-cpy-alloc.h: Likewise.
66818         * lib/unistr/u-cpy.h: Likewise.
66819         * lib/unistr/u-endswith.h: Likewise.
66820         * lib/unistr/u-move.h: Likewise.
66821         * lib/unistr/u-set.h: Likewise.
66822         * lib/unistr/u-startswith.h: Likewise.
66823         * lib/unistr/u-stpcpy.h: Likewise.
66824         * lib/unistr/u-stpncpy.h: Likewise.
66825         * lib/unistr/u-strcat.h: Likewise.
66826         * lib/unistr/u-strcpy.h: Likewise.
66827         * lib/unistr/u-strcspn.h: Likewise.
66828         * lib/unistr/u-strdup.h: Likewise.
66829         * lib/unistr/u-strlen.h: Likewise.
66830         * lib/unistr/u-strncat.h: Likewise.
66831         * lib/unistr/u-strncpy.h: Likewise.
66832         * lib/unistr/u-strnlen.h: Likewise.
66833         * lib/unistr/u-strpbrk.h: Likewise.
66834         * lib/unistr/u-strspn.h: Likewise.
66835         * lib/unistr/u-strstr.h: Likewise.
66836         * lib/unistr/u-strtok.h: Likewise.
66837         * lib/unistr/u16-check.c: Likewise.
66838         * lib/unistr/u16-chr.c: Likewise.
66839         * lib/unistr/u16-cmp.c: Likewise.
66840         * lib/unistr/u16-cpy-alloc.c: Likewise.
66841         * lib/unistr/u16-cpy.c: Likewise.
66842         * lib/unistr/u16-endswith.c: Likewise.
66843         * lib/unistr/u16-mblen.c: Likewise.
66844         * lib/unistr/u16-mbsnlen.c: Likewise.
66845         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66846         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66847         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66848         * lib/unistr/u16-mbtouc.c: Likewise.
66849         * lib/unistr/u16-mbtoucr.c: Likewise.
66850         * lib/unistr/u16-move.c: Likewise.
66851         * lib/unistr/u16-next.c: Likewise.
66852         * lib/unistr/u16-prev.c: Likewise.
66853         * lib/unistr/u16-set.c: Likewise.
66854         * lib/unistr/u16-startswith.c: Likewise.
66855         * lib/unistr/u16-stpcpy.c: Likewise.
66856         * lib/unistr/u16-stpncpy.c: Likewise.
66857         * lib/unistr/u16-strcat.c: Likewise.
66858         * lib/unistr/u16-strchr.c: Likewise.
66859         * lib/unistr/u16-strcmp.c: Likewise.
66860         * lib/unistr/u16-strcpy.c: Likewise.
66861         * lib/unistr/u16-strcspn.c: Likewise.
66862         * lib/unistr/u16-strdup.c: Likewise.
66863         * lib/unistr/u16-strlen.c: Likewise.
66864         * lib/unistr/u16-strmblen.c: Likewise.
66865         * lib/unistr/u16-strmbtouc.c: Likewise.
66866         * lib/unistr/u16-strncat.c: Likewise.
66867         * lib/unistr/u16-strncmp.c: Likewise.
66868         * lib/unistr/u16-strncpy.c: Likewise.
66869         * lib/unistr/u16-strnlen.c: Likewise.
66870         * lib/unistr/u16-strpbrk.c: Likewise.
66871         * lib/unistr/u16-strrchr.c: Likewise.
66872         * lib/unistr/u16-strspn.c: Likewise.
66873         * lib/unistr/u16-strstr.c: Likewise.
66874         * lib/unistr/u16-strtok.c: Likewise.
66875         * lib/unistr/u16-to-u32.c: Likewise.
66876         * lib/unistr/u16-to-u8.c: Likewise.
66877         * lib/unistr/u16-uctomb-aux.c: Likewise.
66878         * lib/unistr/u16-uctomb.c: Likewise.
66879         * lib/unistr/u32-check.c: Likewise.
66880         * lib/unistr/u32-chr.c: Likewise.
66881         * lib/unistr/u32-cmp.c: Likewise.
66882         * lib/unistr/u32-cpy-alloc.c: Likewise.
66883         * lib/unistr/u32-cpy.c: Likewise.
66884         * lib/unistr/u32-endswith.c: Likewise.
66885         * lib/unistr/u32-mblen.c: Likewise.
66886         * lib/unistr/u32-mbsnlen.c: Likewise.
66887         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66888         * lib/unistr/u32-mbtouc.c: Likewise.
66889         * lib/unistr/u32-mbtoucr.c: Likewise.
66890         * lib/unistr/u32-move.c: Likewise.
66891         * lib/unistr/u32-next.c: Likewise.
66892         * lib/unistr/u32-prev.c: Likewise.
66893         * lib/unistr/u32-set.c: Likewise.
66894         * lib/unistr/u32-startswith.c: Likewise.
66895         * lib/unistr/u32-stpcpy.c: Likewise.
66896         * lib/unistr/u32-stpncpy.c: Likewise.
66897         * lib/unistr/u32-strcat.c: Likewise.
66898         * lib/unistr/u32-strchr.c: Likewise.
66899         * lib/unistr/u32-strcmp.c: Likewise.
66900         * lib/unistr/u32-strcpy.c: Likewise.
66901         * lib/unistr/u32-strcspn.c: Likewise.
66902         * lib/unistr/u32-strdup.c: Likewise.
66903         * lib/unistr/u32-strlen.c: Likewise.
66904         * lib/unistr/u32-strmblen.c: Likewise.
66905         * lib/unistr/u32-strmbtouc.c: Likewise.
66906         * lib/unistr/u32-strncat.c: Likewise.
66907         * lib/unistr/u32-strncmp.c: Likewise.
66908         * lib/unistr/u32-strncpy.c: Likewise.
66909         * lib/unistr/u32-strnlen.c: Likewise.
66910         * lib/unistr/u32-strpbrk.c: Likewise.
66911         * lib/unistr/u32-strrchr.c: Likewise.
66912         * lib/unistr/u32-strspn.c: Likewise.
66913         * lib/unistr/u32-strstr.c: Likewise.
66914         * lib/unistr/u32-strtok.c: Likewise.
66915         * lib/unistr/u32-to-u16.c: Likewise.
66916         * lib/unistr/u32-to-u8.c: Likewise.
66917         * lib/unistr/u32-uctomb.c: Likewise.
66918         * lib/unistr/u8-check.c: Likewise.
66919         * lib/unistr/u8-chr.c: Likewise.
66920         * lib/unistr/u8-cmp.c: Likewise.
66921         * lib/unistr/u8-cpy-alloc.c: Likewise.
66922         * lib/unistr/u8-cpy.c: Likewise.
66923         * lib/unistr/u8-endswith.c: Likewise.
66924         * lib/unistr/u8-mblen.c: Likewise.
66925         * lib/unistr/u8-mbsnlen.c: Likewise.
66926         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66927         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66928         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66929         * lib/unistr/u8-mbtouc.c: Likewise.
66930         * lib/unistr/u8-mbtoucr.c: Likewise.
66931         * lib/unistr/u8-move.c: Likewise.
66932         * lib/unistr/u8-next.c: Likewise.
66933         * lib/unistr/u8-prev.c: Likewise.
66934         * lib/unistr/u8-set.c: Likewise.
66935         * lib/unistr/u8-startswith.c: Likewise.
66936         * lib/unistr/u8-stpcpy.c: Likewise.
66937         * lib/unistr/u8-stpncpy.c: Likewise.
66938         * lib/unistr/u8-strcat.c: Likewise.
66939         * lib/unistr/u8-strchr.c: Likewise.
66940         * lib/unistr/u8-strcmp.c: Likewise.
66941         * lib/unistr/u8-strcpy.c: Likewise.
66942         * lib/unistr/u8-strcspn.c: Likewise.
66943         * lib/unistr/u8-strdup.c: Likewise.
66944         * lib/unistr/u8-strlen.c: Likewise.
66945         * lib/unistr/u8-strmblen.c: Likewise.
66946         * lib/unistr/u8-strmbtouc.c: Likewise.
66947         * lib/unistr/u8-strncat.c: Likewise.
66948         * lib/unistr/u8-strncmp.c: Likewise.
66949         * lib/unistr/u8-strncpy.c: Likewise.
66950         * lib/unistr/u8-strnlen.c: Likewise.
66951         * lib/unistr/u8-strpbrk.c: Likewise.
66952         * lib/unistr/u8-strrchr.c: Likewise.
66953         * lib/unistr/u8-strspn.c: Likewise.
66954         * lib/unistr/u8-strstr.c: Likewise.
66955         * lib/unistr/u8-strtok.c: Likewise.
66956         * lib/unistr/u8-to-u16.c: Likewise.
66957         * lib/unistr/u8-to-u32.c: Likewise.
66958         * lib/unistr/u8-uctomb-aux.c: Likewise.
66959         * lib/unistr/u8-uctomb.c: Likewise.
66960         * lib/unitypes.h: Likewise.
66961         * lib/uniwidth.h: Likewise.
66962         * lib/uniwidth/cjk.h: Likewise.
66963         * lib/uniwidth/u16-strwidth.c: Likewise.
66964         * lib/uniwidth/u16-width.c: Likewise.
66965         * lib/uniwidth/u32-strwidth.c: Likewise.
66966         * lib/uniwidth/u32-width.c: Likewise.
66967         * lib/uniwidth/u8-strwidth.c: Likewise.
66968         * lib/uniwidth/u8-width.c: Likewise.
66969         * lib/uniwidth/width.c: Likewise.
66970
66971 2007-10-07  Bruno Haible  <bruno@clisp.org>
66972
66973         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66974         The file is still under LGPL (see modules/inttypes).
66975
66976 2007-10-06  Bruno Haible  <bruno@clisp.org>
66977
66978         * modules/trunc (Dependencies): Add 'extensions'.
66979         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66980         Reported by Ben Pfaff <blp@gnu.org>.
66981
66982 2007-10-06  Bruno Haible  <bruno@clisp.org>
66983
66984         * modules/freopen-tests: New file.
66985         * tests/test-freopen.c: New file.
66986
66987         * modules/fopen-tests: New file.
66988         * tests/test-fopen.c: New file.
66989
66990         * modules/fopen: New file.
66991         * lib/fopen.c: New file.
66992         * m4/fopen.m4: New file.
66993         * modules/freopen: New file.
66994         * lib/freopen.c: New file.
66995         * m4/freopen.m4: New file.
66996         * lib/stdio.in.h (fopen, freopen): New declarations.
66997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66998         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66999         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67000         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67001         * doc/functions/fopen.texi: Mention the 'fopen' module.
67002         * doc/functions/freopen.texi: Mention the 'freopen' module.
67003
67004 2007-10-06  Bruno Haible  <bruno@clisp.org>
67005
67006         * modules/open-tests: New file.
67007         * tests/test-open.c: New file.
67008
67009         * modules/open: New file.
67010         * lib/open.c: New file.
67011         * m4/open.m4: New file.
67012         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67013         lib/open.c does.
67014         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67015         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67016         macros.
67017         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67018         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67019         REPLACE_OPEN.
67020         * doc/functions/open.texi: Mention the 'open' module.
67021
67022 2007-10-04  Bruno Haible  <bruno@clisp.org>
67023
67024         * modules/ceill-tests: New file.
67025         * tests/test-ceill.c: New file.
67026
67027         * modules/ceill: New file.
67028         * lib/ceill.c: Replace entire file.
67029         * m4/ceill.m4: New file.
67030         * lib/math.in.h (ceill): Replace declaration.
67031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67032         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67033         * doc/functions/ceill.texi: Mention the 'ceill' module.
67034         * modules/mathl (Files): Remove lib/ceill.c.
67035         (Depends-on): Add ceill.
67036
67037 2007-10-04  Bruno Haible  <bruno@clisp.org>
67038
67039         * modules/ceilf-tests: New file.
67040         * tests/test-ceilf.c: New file.
67041
67042         * modules/ceilf: New file.
67043         * lib/ceil.c: New file.
67044         * lib/ceilf.c: New file.
67045         * m4/ceilf.m4: New file.
67046         * lib/math.in.h (ceilf): New declaration.
67047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67048         HAVE_DECL_CEILF.
67049         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67050         HAVE_DECL_CEILF.
67051         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67052
67053 2007-10-04  Bruno Haible  <bruno@clisp.org>
67054
67055         * modules/floorl-tests: New file.
67056         * tests/test-floorl.c: New file.
67057
67058         * modules/floorl: New file.
67059         * lib/floorl.c: Replace entire file.
67060         * m4/floorl.m4: New file.
67061         * lib/math.in.h (floorl): Replace declaration.
67062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67063         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67064         * doc/functions/floorl.texi: Mention the 'floorl' module.
67065         * modules/mathl (Files): Remove lib/floorl.c.
67066         (Depends-on): Add floorl.
67067
67068 2007-10-04  Bruno Haible  <bruno@clisp.org>
67069
67070         * modules/floorf-tests: New file.
67071         * tests/test-floorf.c: New file.
67072
67073         * modules/floorf: New file.
67074         * lib/floor.c: New file.
67075         * lib/floorf.c: New file.
67076         * m4/floorf.m4: New file.
67077         * lib/math.in.h (floorf): New declaration.
67078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67079         HAVE_DECL_FLOORF.
67080         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67081         HAVE_DECL_FLOORF.
67082         * doc/functions/floorf.texi: Mention the 'floorf' module.
67083
67084 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67085             Bruno Haible  <bruno@clisp.org>
67086
67087         Advertise for the Git server instead of the CVS server.
67088         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67089         repository instead of the CVS one.
67090         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67091         about all VCS systems generically.
67092         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67093
67094 2007-10-04  Bruno Haible  <bruno@clisp.org>
67095
67096         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67097         means.
67098         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67099
67100 2007-10-04  Bruno Haible  <bruno@clisp.org>
67101
67102         * modules/truncl-tests: New file.
67103         * tests/test-truncl.c: New file.
67104
67105         * modules/truncl: New file.
67106         * lib/truncl.c: New file.
67107         * m4/truncl.m4: New file.
67108         * lib/math.in.h (truncl): New declaration.
67109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67110         HAVE_DECL_TRUNCL.
67111         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67112         HAVE_DECL_TRUNCL.
67113         * doc/functions/truncl.texi: Mention the 'truncl' module.
67114
67115 2007-10-04  Bruno Haible  <bruno@clisp.org>
67116
67117         * modules/truncf-tests: New file.
67118         * tests/test-truncf.c: New file.
67119
67120         * modules/truncf: New file.
67121         * lib/trunc.c: Make paramerizable through USE_* macros.
67122         * lib/truncf.c: New file.
67123         * m4/truncf.m4: New file.
67124         * lib/math.in.h (truncf): New declaration.
67125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67126         HAVE_DECL_TRUNCF.
67127         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67128         HAVE_DECL_TRUNCF.
67129         * doc/functions/truncf.texi: Mention the 'truncf' module.
67130
67131 2007-10-03  Bruno Haible  <bruno@clisp.org>
67132
67133         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67134         augmentation also for tests modules.
67135         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67136         * modules/atexit-tests (Makefile.am): Likewise.
67137         * modules/binary-io-tests (Makefile.am): Likewise.
67138         * modules/c-strcase-tests (Makefile.am): Likewise.
67139         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67140         * modules/canonicalize-tests (Makefile.am): Likewise.
67141         * modules/closein-tests (Makefile.am): Likewise.
67142         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67143         * modules/freadahead-tests (Makefile.am): Likewise.
67144         * modules/fseek-tests (Makefile.am): Likewise.
67145         * modules/fseeko-tests (Makefile.am): Likewise.
67146         * modules/ftell-tests (Makefile.am): Likewise.
67147         * modules/ftello-tests (Makefile.am): Likewise.
67148         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67149         * modules/isnanl-tests (Makefile.am): Likewise.
67150         * modules/lseek-tests (Makefile.am): Likewise.
67151         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67152         * modules/mbscasestr-tests (Makefile.am): Likewise.
67153         * modules/mbschr-tests (Makefile.am): Likewise.
67154         * modules/mbscspn-tests (Makefile.am): Likewise.
67155         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67156         * modules/mbspbrk-tests (Makefile.am): Likewise.
67157         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67158         * modules/mbsrchr-tests (Makefile.am): Likewise.
67159         * modules/mbsspn-tests (Makefile.am): Likewise.
67160         * modules/mbsstr-tests (Makefile.am): Likewise.
67161         * modules/printf-posix-tests (Makefile.am): Likewise.
67162         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67163         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67164         * modules/tsearch-tests (Makefile.am): Likewise.
67165         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67166         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67167         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67168         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67169         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67170         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67171         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67172         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67173         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67174         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67175         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67176         * modules/xstrtol-tests (Makefile.am): Likewise.
67177         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67178         * modules/yesno-tests (Makefile.am): Likewise.
67179
67180 2007-10-03  Bruno Haible  <bruno@clisp.org>
67181
67182         * modules/trunc-tests: New file.
67183         * tests/test-trunc.c: New file.
67184
67185         * modules/trunc: New file.
67186         * lib/trunc.c: New file.
67187         * m4/trunc.m4: New file.
67188         * lib/math.in.h (trunc): New declaration.
67189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67190         HAVE_DECL_TRUNC.
67191         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67192         HAVE_DECL_TRUNC.
67193         * doc/functions/trunc.texi: Mention the 'trunc' module.
67194
67195 2007-10-03  Bruno Haible  <bruno@clisp.org>
67196
67197         * tests/test-fpending.c: New file, mostly copied
67198         from coreutils/lib/t-fpending.c.
67199         * modules/fpending-tests: New file.
67200
67201 2007-10-03  Bruno Haible  <bruno@clisp.org>
67202
67203         Port the stdio extensions to QNX (untested).
67204         * lib/fseterr.c (fseterr): Add support for QNX.
67205         * lib/fbufmode.c (fbufmode): Likewise.
67206         * lib/freadable.c (freadable): Likewise.
67207         * lib/fwritable.c (fwritable): Likewise.
67208         * lib/freading.c (freading): Likewise.
67209         * lib/fwriting.c (fwriting): Likewise.
67210         * lib/freadahead.c (freadahed): Likewise.
67211         * lib/fpurge.c (fpurge): Likewise.
67212         * lib/fseeko.c (rpl_fseeko): Likewise.
67213
67214 2007-10-03  Bruno Haible  <bruno@clisp.org>
67215             Jim Meyering  <jim@meyering.net>
67216             Eric Blake  <ebb9@byu.net>
67217
67218         * doc/relocatable.texi: Use @command instead of @program.
67219
67220 2007-10-02  Jim Meyering  <jim@meyering.net>
67221
67222         Perform one more "_.h" -> ".in.h" substitution.
67223         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67224         instead of unistd_.h here, too.
67225
67226 2007-10-01  Bruno Haible  <bruno@clisp.org>
67227
67228         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67229         Needed for the alloca-opt module.
67230
67231 2007-09-30  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67234         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67235         alloca_.h.
67236         * lib/argz.in.h: Renamed from lib/argz_.h.
67237         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67238         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67239         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67240         byteswap_.h.
67241         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67242         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67243         dirent_.h.
67244         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67245         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67246         fcntl_.h.
67247         * lib/float.in.h: Renamed from lib/float_.h.
67248         * modules/float (Files, Makefile.am): Use float.in.h instead of
67249         float_.h.
67250         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67251         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67252         fnmatch_.h.
67253         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67254         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67255         getopt_.h.
67256         * lib/glob.in.h: Renamed from lib/glob_.h.
67257         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67258         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67259         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67260         iconv_.h.
67261         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67262         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67263         inttypes_.h.
67264         * lib/locale.in.h: Renamed from lib/locale_.h.
67265         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67266         locale_.h.
67267         * lib/math.in.h: Renamed from lib/math_.h.
67268         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67269         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67270         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67271         of netinet_in_.h. Add dependency.
67272         * lib/poll.in.h: Renamed from lib/poll_.h.
67273         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67274         * lib/search.in.h: Renamed from lib/search_.h.
67275         * modules/search (Files, Makefile.am): Use search.in.h instead of
67276         search_.h.
67277         * lib/signal.in.h: Renamed from lib/signal_.h.
67278         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67279         _signal.h.
67280         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67281         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67282         stdbool_.h.
67283         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67284         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67285         stdint_.h.
67286         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67287         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67288         stdio_.h.
67289         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67290         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67291         stdlib_.h.
67292         * lib/string.in.h: Renamed from lib/string_.h.
67293         * modules/string (Files, Makefile.am): Use string.in.h instead of
67294         string_.h.
67295         * doc/gnulib-tool.texi (Initial import): Update.
67296         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67297         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67298         of sys_select_.h. Add dependency.
67299         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67300         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67301         of sys_socket_.h.
67302         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67303         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67304         sys_stat_.h.
67305         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67306         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67307         sys_time_.h.
67308         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67309         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67310         sysexits_.h.
67311         * lib/time.in.h: Renamed from lib/time_.h.
67312         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67313         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67314         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67315         unistd_.h.
67316         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67317         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67318         wchar_.h.
67319         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67320         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67321         wctype_.h.
67322         * build-aux/bootstrap (slurp): Update.
67323         * lib/.cppi-disable: Update.
67324
67325 2007-09-30  Bruno Haible  <bruno@clisp.org>
67326
67327         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67328         Needed on BeOS.
67329
67330 2007-09-30  Bruno Haible  <bruno@clisp.org>
67331
67332         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67333
67334 2007-09-29  Bruno Haible  <bruno@clisp.org>
67335
67336         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67337
67338 2007-09-29  Bruno Haible  <bruno@clisp.org>
67339
67340         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67341         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67342         * build-aux/install-reloc: Compile also areadlink.c.
67343         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67344
67345 2007-09-29  Bruno Haible  <bruno@clisp.org>
67346
67347         * gnulib-tool (func_emit_initmacro_done): Indentation.
67348
67349 2007-09-29  Bruno Haible  <bruno@clisp.org>
67350
67351         * README: Add CVS checkout update instructions.
67352         Info from Bob Proulx <bob@proulx.com>.
67353
67354 2007-09-28  Eric Blake  <ebb9@byu.net>
67355
67356         Provide move-if-change.
67357         * build-aux/move-if-change: New file, based on best practice
67358         rather than any canonical upstream location.
67359
67360 2007-09-28  Jim Meyering  <jim@meyering.net>
67361
67362         Fix canonicalize loop-detection corner case.
67363         Do not attempt to stat the symlink values stored via seen_triple.
67364         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67365         on linux-2.6.18, (but not 2.6.22).
67366         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67367         triple_compare.  The former compares dev,ino,filename, while the latter
67368         would actually stat dirname(filename) when dev and ino were equal.
67369         * lib/hash-triple.c: Install <string.h>.
67370         (STREQ): Define.
67371         (triple_compare_ino_str): New function.
67372         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67373
67374 2007-09-28  Eric Blake  <ebb9@byu.net>
67375
67376         Enforce that AC_REPLACE_FUNCS files exist.
67377         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67378         override check for typos.
67379
67380         Fix test-closein on Solaris 10.
67381         * tests/test-closein.c (main): Don't assume stdin can be inherited
67382         closed on all systems.
67383         * tests/test-closein.sh: Likewise.
67384         Reported by Piotr Tarnowski.
67385
67386 2007-09-28  Jim Meyering  <jim@meyering.net>
67387
67388         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67389
67390 2007-09-27  Jim Meyering  <jim@meyering.net>
67391
67392         canonicalize: Avoid a false-positive cycle failure.
67393         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67394         Sort.  Remove cycle-check.
67395         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67396         not cycle-check.h.
67397         (seen_triple): New function.
67398         (canonicalize_filename_mode): Use it instead of cycle-check.
67399         * tests/test-canonicalize.c: Add a test for this bug.
67400         * tests/test-canonicalize.sh: Set up and run the test.
67401
67402         New module, file-set, from coreutils.
67403         * modules/file-set: Define it.
67404         * lib/file-set.c, lib/file-set.h: Implement.
67405
67406         New module, hash-triple, from coreutils.
67407         * modules/hash-triple: Define it.
67408         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67409
67410 2007-09-25  Eric Blake  <ebb9@byu.net>
67411
67412         Fix strerror on Interix.
67413         * lib/string_.h (strerror): Declare replacement.
67414         * doc/functions/strerror.texi (strerror): Document the Interix
67415         shortcoming.
67416         * modules/string (Makefile.am): Support new hooks.
67417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67418         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67419         gl_FUNC_STRERROR_SEPARATE.
67420         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67421         * lib/strerror.c (rpl_strerror): Provide replacement.
67422         * modules/strerror (Depends-on): Add string.
67423         (configure.ac): Detect use of module.
67424         * tests/test-strerror.c: New file.
67425         * modules/strerror-tests: New test module.
67426         * modules/argp (Depends-on): Add strerror.
67427         * modules/error (Depends-on): Likewise.
67428         Reported by Martin Koeppe.
67429
67430 2007-09-24  Bruno Haible  <bruno@clisp.org>
67431
67432         * README: Update git instructions.
67433
67434 2007-09-24  Eric Blake  <ebb9@byu.net>
67435
67436         Revert fpending breakage from 2007-09-08.
67437         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67438         __fpending.c.
67439
67440 2007-09-24  Jim Meyering  <jim@meyering.net>
67441
67442         filenamecat.c: Add a test.
67443         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67444         showing how the function works when DIR is the empty string.
67445
67446 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67447
67448         * tests/test-canonicalize.sh: Turn on executable bit.
67449
67450 2007-09-19  Eric Blake  <ebb9@byu.net>
67451
67452         * README: Update CVS instructions.
67453
67454 2007-09-18  Bruno Haible  <bruno@clisp.org>
67455
67456         * modules/areadlink: New file.
67457         * lib/areadlink.h (areadlink): New declaration.
67458         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67459
67460 2007-09-17  Jim Meyering  <jim@meyering.net>
67461
67462         * lib/savewd.c (ESTALE) [!defined]: Define.
67463         Reported to be required on Interix by Martin Koeppe.
67464
67465 2007-09-17  Bruno Haible  <bruno@clisp.org>
67466
67467         * gnulib-tool (func_version): Use $version.
67468
67469 2007-09-16  Bruno Haible  <bruno@clisp.org>
67470
67471         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67472         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67473         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67474         Reported by Greg Schafer <gschafer@zip.com.au>.
67475
67476 2007-09-15  Bruno Haible  <bruno@clisp.org>
67477
67478         * gnulib-tool (sed): Try a little harder to make bash understand the
67479         alias.
67480         Reported by Bruce Korb <bruce.korb@gmail.com>.
67481
67482 2007-09-13  Eric Blake  <ebb9@byu.net>
67483
67484         * ChangeLog: Remove conflict markers.
67485
67486 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67487
67488         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67489         Reported by Bruno Haible <bruno@clisp.org>.
67490
67491 2007-09-12  Bruno Haible  <bruno@clisp.org>
67492
67493         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67494         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67495         is not defined.
67496
67497 2007-09-12  Eric Blake  <ebb9@byu.net>
67498
67499         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67500         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67501         Autoconf definition.
67502         * modules/euidaccess (Depends-on): Add extensions, for
67503         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67504         * modules/fnmatch (Depends-on): Likewise.
67505         * modules/getaddrinfo (Depends-on): Likewise.
67506         * modules/getdelim (Depends-on): Likewise.
67507         * modules/getline (Depends-on): Likewise.
67508         * modules/getsubopt (Depends-on): Likewise.
67509         * modules/gettext (Depends-on): Likewise.
67510         * modules/group-member (Depends-on): Likewise.
67511         * modules/mbchar (Depends-on): Likewise.
67512         * modules/memmem (Depends-on): Likewise.
67513         * modules/mempcpy (Depends-on): Likewise.
67514         * modules/memrchr (Depends-on): Likewise.
67515         * modules/pagealign_alloc (Depends-on): Likewise.
67516         * modules/readutmp (Depends-on): Likewise.
67517         * modules/stpcpy (Depends-on): Likewise.
67518         * modules/stpncpy (Depends-on): Likewise.
67519         * modules/strchrnul (Depends-on): Likewise.
67520         * modules/strndup (Depends-on): Likewise.
67521         * modules/strsep (Depends-on): Likewise.
67522         * modules/strverscmp (Depends-on): Likewise.
67523         * modules/vasprintf (Depends-on): Likewise.
67524         * modules/wcwidth (Depends-on): Likewise.
67525         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67526         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67527         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67528         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67529         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67530         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67531         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67532         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67533         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67534         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67535         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67536         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67537         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67538         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67539         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67540         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67541         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67542         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67543         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67544         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67545         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67546         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67547         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67548         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67549         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67550         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67551         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67552         so that lock.m4 can be used in gettext without extensions module.
67553
67554 2007-09-11  Bruno Haible  <bruno@clisp.org>
67555
67556         * m4/isc-posix.m4: Remove file.
67557         Suggested by Eric Blake.
67558
67559 2007-09-11  Eric Blake  <ebb9@byu.net>
67560
67561         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67562
67563 2007-09-10  Bruno Haible  <bruno@clisp.org>
67564
67565         * posix-modules: Fix typo in error message.
67566         Reported by Matt <mkraai@beckman.com>.
67567
67568 2007-09-09  Bruno Haible  <bruno@clisp.org>
67569
67570         * doc/functions/getdelim.texi: Update list of platforms lacking the
67571         function.
67572         * doc/functions/getline.texi: Likewise.
67573
67574 2007-09-09  Jim Meyering  <jim@meyering.net>
67575
67576         * lib/hash.c (hash_initialize): Detect calloc failure.
67577         Reported by Bruno Haible.
67578
67579 2007-09-09  Bruno Haible  <bruno@clisp.org>
67580
67581         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67582         malloc or realloc fails.
67583
67584 2007-09-09  Bruno Haible  <bruno@clisp.org>
67585
67586         * modules/getcwd (Depends-on): Add malloc-posix.
67587         * modules/glob (Depends-on): Likewise.
67588         * modules/putenv (Depends-on): Likewise.
67589         * modules/strdup (Depends-on): Likewise.
67590         * modules/getdelim (Depends-on): Add realloc-posix.
67591         * modules/read-file (Depends-on): Likewise.
67592
67593 2007-09-09  Bruno Haible  <bruno@clisp.org>
67594
67595         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67596         (gl_FUNC_MALLOC_POSIX): Require it.
67597         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67598         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67599         * modules/realloc (Files): Add m4/malloc.m4.
67600         * modules/calloc (Files): Likewise.
67601
67602 2007-09-09  Bruno Haible  <bruno@clisp.org>
67603
67604         * modules/malloc-posix: New file.
67605         * modules/malloc (Depends-on): Add malloc-posix.
67606         * lib/malloc.c: Include errno.h.
67607         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67608         and a POSIX-compatible malloc into a single function. Set ENOMEM
67609         when returning NULL.
67610         * m4/malloc.m4: New file.
67611         * doc/functions/malloc.texi: Mention the malloc-posix module.
67612         * lib/stdlib_.h (malloc): New declaration.
67613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67614         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67615         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67616         and HAVE_MALLOC_POSIX.
67617
67618 2007-09-09  Bruno Haible  <bruno@clisp.org>
67619
67620         * modules/realloc-posix: New file.
67621         * modules/realloc (Depends-on): Add realloc-posix.
67622         * lib/realloc.c: Include errno.h.
67623         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67624         and a POSIX-compatible realloc into a single function. Set ENOMEM
67625         when returning NULL.
67626         * m4/realloc.m4: New file.
67627         * doc/functions/realloc.texi: Mention the realloc-posix module.
67628         * lib/stdlib_.h (realloc): New declaration.
67629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67630         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67631         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67632         and HAVE_REALLOC_POSIX.
67633
67634 2007-09-09  Bruno Haible  <bruno@clisp.org>
67635
67636         * modules/calloc-posix: New file.
67637         * modules/calloc (Depends-on): Add calloc-posix.
67638         * lib/calloc.c: Include errno.h.
67639         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67640         and a POSIX-compatible calloc into a single function. Set ENOMEM
67641         when returning NULL.
67642         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67643         * doc/functions/calloc.texi: Mention the calloc-posix module.
67644         * lib/stdlib_.h (calloc): New declaration.
67645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67646         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67647         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67648         and HAVE_CALLOC_POSIX.
67649
67650 2007-09-09  Bruno Haible  <bruno@clisp.org>
67651
67652         Allow for modules to show an arbitrary notice.
67653         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67654         * gnulib-tool: New option --extract-notice.
67655         (func_usage): Document it.
67656         (sed_extract_prog): Update.
67657         (func_get_notice): New function.
67658         (func_modules_notice): New function.
67659         (func_import, func_create_testdir): Invoke it.
67660         Suggested by Jim Meyering.
67661
67662 2007-09-09  Bruno Haible  <bruno@clisp.org>
67663
67664         * gnulib-tool: New options --verbose, --quiet.
67665         (func_usage): Document them.
67666         (verbose): New variable.
67667         (func_execute_command): New function.
67668         (func_import): Don't show the module list and the file list if
67669         $verbose < 0.
67670         (func_create_testdir): Likewise. Use func_execute_command.
67671         (func_create_megatestdir): Use func_execute_command.
67672
67673 2007-09-08  Bruno Haible  <bruno@clisp.org>
67674
67675         * gnulib-tool (func_import): Prefer rsync over wget when available,
67676         for fetching the PO files.
67677
67678 2007-09-08  Bruno Haible  <bruno@clisp.org>
67679
67680         * posix-modules: New file. Portions copied from gnulib-tool.
67681         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67682
67683 2007-09-08  Jim Meyering  <jim@meyering.net>
67684
67685         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67686         * lib/fpending.h: Rename from __fpending.h.
67687         * lib/fpending.c: Rename from __fpending.c.
67688         Include "fpending.h", not "__fpending.h".
67689         * lib/__fpending.h, lib/__fpending.c: Remove files.
67690         * modules/fpending (Files): Reflect new file names.
67691         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67692
67693 2007-09-08  Bruno Haible  <bruno@clisp.org>
67694
67695         * m4/inttypes-h.m4: Remove stub file.
67696
67697 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67698
67699         * doc/headers/stdint.texi: Discuss #include_next issue.
67700
67701 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67702
67703         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67704
67705 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67706
67707         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67708         in variable name.
67709
67710 2007-09-03  Jim Meyering  <jim@meyering.net>
67711
67712         New module: git-version-gen.
67713         * modules/git-version-gen: New file.
67714
67715         Import changes from coreutils for bootstrap script.
67716
67717         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67718
67719         bootstrap: uses rsync to download the .po files
67720         * build-aux/bootstrap (po_download_command_format): New global.
67721         (download_po_files): Use rsync.
67722         (update_po_files): Don't remove .po files after download,
67723         so future rsync runs can take advantage of the copies.
67724
67725         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67726
67727         Solve the unnecessary-.po-file-regeneration problem once and for all.
67728         * build-aux/bootstrap (download_po_files): New function, renamed from
67729         get_translations.  Now, downloads, but doesn't update LINGUAS.
67730         (update_po_files): New function.
67731
67732         bootstrap: Ignore more.
67733         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67734         uniwidth to e.g., lib/.gitignore.
67735         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67736
67737         * build-aux/bootstrap: New setting: vc_ignore.
67738         (insert_sorted_if_absent): Create $file if absent.
67739         Adapt to new, possibly empty, list: $vc_ignore.
67740
67741         bootstrap: generate more ignorable names
67742         * build-aux/bootstrap (slurp): When generating ignorable names,
67743         also map .sin to .sed, .gperf to .c, and .y to .c.
67744
67745 2007-09-03  Jim Meyering  <jim@meyering.net>
67746
67747         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67748         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67749
67750 2007-09-02  Bruno Haible  <bruno@clisp.org>
67751
67752         Fix mis-recognition of 'mcs' on QNX 6.
67753         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67754         output contains the string "Mono".
67755         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67756         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67757
67758 2007-09-01  Bruno Haible  <bruno@clisp.org>
67759
67760         Fix collision between uniwidth/* and linebreak modules.
67761         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67762         u32_width): Remove declarations.
67763         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67764         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67765         streq3, streq2, streq1, streq0): Remove functions.
67766         (STREQ): Remove macro.
67767         (is_cjk_encoding): Remove function.
67768         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67769         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67770         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67771         * NEWS: Document the change.
67772
67773 2007-09-01  Bruno Haible  <bruno@clisp.org>
67774
67775         * lib/streq.h: Add double-inclusion guard.
67776
67777 2007-09-01  Karl Berry  <karl@gnu.org>
67778
67779         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67780
67781 2007-08-28  Jim Meyering  <jim@meyering.net>
67782
67783         Rename mreadlink_with_size to areadlink_with_size.
67784         * NEWS: Document the change.
67785         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67786         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67787         * lib/mreadlink.h: Rename this to...
67788         * lib/areadlink.h: ...this.
67789         * modules/mreadlink-with-size: Rename this to...
67790         * modules/areadlink-with-size: ...this.
67791         * lib/canonicalize.c: Reflect the renaming.
67792         * modules/canonicalize: Likewise.
67793
67794 2007-08-26  Bruno Haible  <bruno@clisp.org>
67795
67796         * gnulib-tool (func_import): When deciding which files to remove,
67797         consider also dangling symbolic links.
67798         Reported by Eric Blake.
67799
67800 2007-08-26  Bruno Haible  <bruno@clisp.org>
67801
67802         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67803
67804 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67805
67806         * lib/readline.c: Don't include getline.h, the prototype is now
67807         found in stdio.h.
67808
67809 2007-08-23  Jim Meyering  <jim@meyering.net>
67810
67811         Getdelim touchup.
67812         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67813         around the funlockfile call, since funlockfile never sets errno.
67814         Don't set errno upon failed realloc.
67815
67816 2007-08-22  Eric Blake  <ebb9@byu.net>
67817
67818         Getline touchups.
67819         * lib/getdelim.c (getdelim): Revert regression that required *n to
67820         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67821         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67822         getdelim, rather than whether implementation is missing.
67823         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67824         * lib/stdio_.h (getline): Also declare if replacement is
67825         required.
67826         * doc/functions/getdelim.texi: New file.
67827         * doc/functions/getline.texi: Likewise.
67828         * doc/gnulib.texi (Function Substitutes): Add new files.
67829         Reported by Bruno Haible.
67830
67831 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67832
67833         * users.txt: Add Guile.
67834
67835 2007-08-22  Eric Blake  <ebb9@byu.net>
67836
67837         * tests/test-getdelim.c (main): Use remove, not unlink.
67838         * tests/test-getline.c (main): Likewise.
67839
67840         Move getline and getdelim into stdio.h, per POSIX 200x.
67841         * modules/getline (Files): Remove getline.h.
67842         (Depends-on): Add stdio.
67843         (configure.ac): Add module indicator.
67844         * modules/getdelim (Files): Remove getdelim.h.
67845         (Depends-on): Add stdio.
67846         (configure.ac): Add module indicator.
67847         * modules/stdio (Makefile.am): Work with new indicators.
67848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67849         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67850         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67851         * lib/getdelim.h: Delete.
67852         * lib/getline.h: Delete.
67853         * lib/stdio_.h (getdelim, getline): Declare.
67854         * modules/getdelim-tests: New module.
67855         * modules/getline-tests: Likewise.
67856         * tests/test-getdelim.c: New file.
67857         * tests/test-getline.c: Likewise.
67858         * NEWS: Document the change.
67859         * lib/getline.c: Update choice of header.
67860         * lib/csharpcomp.c: Likewise.
67861         * lib/getpass.c: Likewise.
67862         * lib/javacomp.c: Likewise.
67863         * lib/javaversion.c: Likewise.
67864         * lib/yesno.c: Likewise.
67865         * lib/getdelim.c: Likewise.
67866         (getdelim): Set errno on failure, and avoid memory leak.
67867
67868 2007-08-19  Bruno Haible  <bruno@clisp.org>
67869
67870         * modules/closein (Depends-on): Add freadahead.
67871         * lib/closein.c: Include freadahead.h.
67872         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67873         is zero.
67874
67875 2007-08-19  Bruno Haible  <bruno@clisp.org>
67876
67877         * modules/freadahead-tests: New file.
67878         * tests/test-freadahead.sh: New file.
67879         * tests/test-freadahead.c: New file.
67880
67881         * modules/freadahead: New file.
67882         * lib/freadahead.h: New file.
67883         * lib/freadahead.c: New file.
67884         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67885         fbufmode, fpurge, freadable, fwritable.
67886
67887 2007-08-19  Eric Blake  <ebb9@byu.net>
67888
67889         Test yesno in combination with closein.
67890         * lib/yesno.c (yesno): Document use of stdin.
67891         * modules/yesno-tests (Files): New module.
67892         * tests/test-yesno.c (main): New file.
67893         * tests/test-yesno.sh: Likewise.
67894
67895 2007-08-19  Bruno Haible  <bruno@clisp.org>
67896
67897         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67898         * lib/fseeko.c (rpl_fseeko): Likewise.
67899         * lib/fseterr.c (fseterr): Likewise.
67900
67901 2007-08-19  Bruno Haible  <bruno@clisp.org>
67902
67903         * tests/test-lseek.c (main): Disable a test for BeOS.
67904         * doc/functions/lseek.texi: Document the BeOS bug.
67905
67906 2007-08-19  Bruno Haible  <bruno@clisp.org>
67907             Eric Blake  <ebb9@byu.net>
67908
67909         * lib/lseek.c: Include <sys/stat.h>.
67910         (rpl_lseek): Add workaround code also for Unix platforms.
67911         Needed for BeOS.
67912         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67913         * doc/functions/lseek.texi: Document BeOS definiency.
67914
67915 2007-08-18  Bruno Haible  <bruno@clisp.org>
67916
67917         * modules/fstrcmp-tests: New file.
67918         * tests/test-fstrcmp.c: New file.
67919
67920 2007-08-18  Bruno Haible  <bruno@clisp.org>
67921
67922         * modules/fstrcmp: New file, from GNU gettext with modifications.
67923         * lib/fstrcmp.h: New file, from GNU gettext.
67924         * lib/fstrcmp.c: New file, from GNU gettext.
67925         * MODULES.html.sh (String handling): Add fstrcmp.
67926
67927 2007-08-18  Bruno Haible  <bruno@clisp.org>
67928
67929         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67930         'bool'.
67931         (diag, compareseq): Remove const from the ctxt argument.
67932         (USE_HEURISTIC): Undefine at the end.
67933
67934 2007-08-18  Jim Meyering  <jim@meyering.net>
67935
67936         New file: lib/idcache.h
67937         * NEWS: Mention the addition.
67938         * modules/idcache (Files): Add lib/idcache.h
67939         * lib/idcache.c: Include "idcache.h".
67940         Don't include <sys/types.h>.
67941         Add a FIXME comment.
67942         Move file-scoped "static" declarations to the top.
67943         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67944
67945 2007-08-17  Bruno Haible  <bruno@clisp.org>
67946         and Paul Eggert  <eggert@cs.ucla.edu>
67947
67948         * MODULES.html.sh: Add diffseq.
67949         * modules/diffseq: New file.
67950         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67951         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67952
67953 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         Import changes from coreutils for bootstrap script.
67956
67957         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67958
67959         * build-aux/bootstrap (slurp): Work even in environments where
67960         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67961         current code does not slurp files whose names start with ".", and
67962         this looks like it might be a troublesome area.
67963
67964         2007-07-11  Jim Meyering  <jim@meyering.net>
67965
67966         If there's a GPL vN copyright comment, require that N == 3.
67967
67968         2007-07-08  Jim Meyering  <jim@meyering.net>
67969
67970         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67971         * build-aux/bootstrap (mam_template): Move definition out of loop.
67972
67973         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67974
67975         * build-aux/bootstrap (symlink_to_dir): Rename function from
67976         symlink_to_gnulib.  Add a directory parameter.  Update all
67977         callers.
67978         (cp_mark_as_generated): Also check for -- and link to -- files in
67979         gl/.
67980
67981         2007-07-08  Jim Meyering  <jim@meyering.net>
67982
67983         Adapt to deeper hierarchy in gnulib.
67984         * build-aux/bootstrap (symlink_to_dir): If the destination
67985         directory doesn't exist, create it. This is required at least for
67986         "lib/uniwidth/cjk.h".
67987
67988         2007-05-15  Jim Meyering  <jim@meyering.net>
67989
67990         * build-aux/bootstrap: Now that generated Makefile.am files
67991         are no longer under version control, they must be created at
67992         bootstrap time.
67993
67994 2007-08-14  Ben Pfaff  <blp@gnu.org>
67995
67996         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67997
67998 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68001         given the changes below.
68002         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68003         even on hosts that have padding bits beyond the supported 64.
68004
68005 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68006
68007         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68008         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68009         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68010         depends on it.
68011         (xstrtol_error): Remove.
68012         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68013         but with a different signature.
68014         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68015         * lib/xstrtol-error.c: Include exitfail.h.
68016         (xstrtol_fatal): New function, with a different signature from the
68017         old xstrtol_error, so that the caller need not worry about passing
68018         in an exit status, or about storage management of the option argument.
68019         (xstrtol_error): Now a static function.  Redo signature to
68020         implement xstrtol_fatal.  Output the correct number of hyphens in
68021         front of the option so that the caller need not worry about
68022         storage management.
68023         (N_): New macro.
68024         (_): Remove; not used now.
68025         * modules/xstrtol: Depend on getopt.
68026         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68027         of old STRTOL_FATAL_ERROR macro.
68028         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68029         of test program.
68030         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68031         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68032
68033 2007-08-08  Eric Blake  <ebb9@byu.net>
68034
68035         * lib/xstrtol-error.c: Add missing include.
68036
68037         Move xstrtol messages into gnulib domain, when --pobase is used.
68038         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68039         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68040         * modules/xstrtol (Files): Distribute new file.
68041         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68042         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68043         * tests/test-xstrtol.c: ...into new file.
68044         * tests/test-xstrtoul.c: Also test xstrtoul.
68045         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68046         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68047         * tests/test-xstrtol.sh: Drive the tests.
68048         * tests/test-xstrtoimax.sh: Likewise.
68049         * tests/test-xstrtoumax.sh: Likewise.
68050         * modules/xstrtol-tests: New module.
68051         * modules/xstrtoimax-tests: Likewise.
68052         * modules/xstrtoumax-tests: Likewise.
68053
68054 2007-08-08  Jim Meyering  <jim@meyering.net>
68055
68056         New function: mfile_name_concat.
68057         * lib/filenamecat.c (mfile_name_concat): New function, just like
68058         file_name_concat, but return NULL upon failure rather than exiting
68059         with a diagnostic.
68060         * lib/filenamecat.h: Declare it.
68061
68062 2007-08-07  Bruno Haible  <bruno@clisp.org>
68063
68064         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68065         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68066         warning from gcc.
68067         Reported by Eric Blake.
68068
68069 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68070
68071         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68072         * modules/crypto/arcfour (License): Likewise.
68073         * modules/crypto/des-tests (License): Likewise.
68074         * modules/crypto/gc-arctwo-tests (License): Likewise.
68075         * modules/crypto/gc-des-tests (License): Likewise.
68076         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68077         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68078         * modules/crypto/gc-md2-tests (License): Likewise.
68079         * modules/crypto/gc-md4-tests (License): Likewise.
68080         * modules/crypto/gc-md5-tests (License): Likewise.
68081         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68082         * modules/crypto/gc-rijndael-tests (License): Likewise.
68083         * modules/crypto/gc-sha1-tests (License): Likewise.
68084         * modules/crypto/gc-tests (License): Likewise.
68085         * modules/crypto/hmac-md5 (License): Likewise.
68086         * modules/crypto/hmac-sha1 (License): Likewise.
68087         * modules/crypto/md2-tests (License): Likewise.
68088         * modules/crypto/md4-tests (License): Likewise.
68089         * modules/crypto/md5 (License): Likewise.
68090         * modules/crypto/rijndael (License): Likewise.
68091         * modules/crypto/sha1 (License): Likewise.
68092         * modules/memxor (License): Likewise.
68093
68094 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68095         and Bruno Haible  <bruno@clisp.org>
68096
68097         * NEWS: Describe interface changes to human, xstrtol.
68098         * lib/human.h: Include <xstrtol.h>.
68099         (human_options): Return enum strtol_error, not int.  Remove
68100         bool arg; take int * instead.
68101         * lib/human.c: Don't include "gettext.h".
68102         (_): Remove; no longer used.
68103         Don't include <xstrtol.h>, since human.h does it.
68104         (human_options): Adjust to abovementioned interface changes.
68105         Do not report error to stderr; that's now the caller's
68106         responsibility.
68107         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68108         interface change.
68109         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68110         Str, Argument_type_string.  All uses changed.  Put " argument"
68111         in diagnostics to make them clearer.  Change wording of suffix
68112         message for clarity.
68113         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68114         Argument_type_string.
68115         (STRTOL_FATAL_WARN): Remove; no longer used.
68116         * modules/human (Depends-on): Remove gettext-h.
68117
68118 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68119
68120         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68121
68122 2007-07-31  Bruno Haible  <bruno@clisp.org>
68123
68124         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68125         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68126         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68127
68128 2007-07-31  Bruno Haible  <bruno@clisp.org>
68129
68130         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68131         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68132
68133 2007-07-30  Bruno Haible  <bruno@clisp.org>
68134
68135         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68136         * modules/c-ctype (License): Likewise.
68137         * modules/c-strcase (License): Likewise.
68138         * modules/check-version (License): Likewise.
68139         * modules/iconv (License): Likewise.
68140         * modules/iconv_open (License): Likewise.
68141         * modules/read-file (License): Likewise.
68142         * modules/striconv (License): Likewise.
68143         * modules/strverscmp (License): Likewise.
68144         * modules/vasprintf (License): Likewise.
68145         * modules/crypto/des (License): Likewise.
68146         * modules/crypto/gc (License): Likewise.
68147         * modules/crypto/gc-arcfour (License): Likewise.
68148         * modules/crypto/gc-arctwo (License): Likewise.
68149         * modules/crypto/gc-des (License): Likewise.
68150         * modules/crypto/gc-hmac-md5 (License): Likewise.
68151         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68152         * modules/crypto/gc-md2 (License): Likewise.
68153         * modules/crypto/gc-md4 (License): Likewise.
68154         * modules/crypto/gc-md5 (License): Likewise.
68155         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68156         * modules/crypto/gc-random (License): Likewise.
68157         * modules/crypto/gc-rijndael (License): Likewise.
68158         * modules/crypto/gc-sha1 (License): Likewise.
68159         * modules/crypto/md2 (License): Likewise.
68160         * modules/crypto/md4 (License): Likewise.
68161
68162 2007-07-30  Jim Meyering  <jim@meyering.net>
68163
68164         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68165         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68166         it has valid stat data.  This bug would cause du not to count the
68167         sizes of inaccessible directories.
68168         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68169         in <http://bugzilla.redhat.com/250077>.
68170
68171 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68172             Bruno Haible  <bruno@clisp.org>
68173
68174         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68175         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68176         #include_next, gives a diagnostic about it, but reports no error in
68177         the exit code.
68178         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68179
68180 2007-07-24  Ben Pfaff  <blp@gnu.org>
68181
68182         Improve name: "count-one-bits" is better than "popcount".
68183         * MODULES.html.sh: Update name.
68184         * lib/popcount.h: Renamed lib/count-one-bits.h.
68185         (popcount): Renamed count_one_bits.
68186         (popcountl): Renamed count_one_bits_l.
68187         (popcountll): Renamed count_one_bits_ll.
68188         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68189         * modules/popcount: Renamed module/count-one-bits.
68190         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68191         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68192
68193 2007-07-23  Ben Pfaff  <blp@gnu.org>
68194
68195         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68196         better code generation, and add U to large constants to avoid
68197         warnings, in non-GCC case.
68198         Suggested by Bruno Haible.
68199
68200 2007-07-23  Ben Pfaff  <blp@gnu.org>
68201
68202         * lib/popcount.h: Use verify_true instead of if...abort.
68203         * modules/popcount: Depend on verify module.
68204         Suggested by Jim Meyering.
68205
68206 2007-07-23  Bruno Haible  <bruno@clisp.org>
68207
68208         * gnulib-tool (func_import): Create a .cvsignore file also when the
68209         directory is not yet in CVS but the toplevel directory is. When
68210         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68211         Reported by Karl Berry.
68212
68213 2007-07-22  Ben Pfaff  <blp@gnu.org>
68214
68215         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68216         case.
68217         Suggested by Eric Blake.
68218
68219 2007-07-22  Ben Pfaff  <blp@gnu.org>
68220
68221         New module: popcount.
68222         * MODULES.html.sh: Add popcount.
68223         * modules/popcount: New file.
68224         * modules/popcount-tests: New file.
68225         * tests/test-popcount.c: New file.
68226         * lib/popcount.h: New file.
68227         * m4/popcount.m4: New file.
68228
68229 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68230
68231         * build-aux/announce-gen: Update to GPLv3.
68232
68233         * build-aux/config.guess: Update from config.
68234
68235 2007-07-21  Bruno Haible  <bruno@clisp.org>
68236
68237         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68238         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68239
68240 2007-07-20  Jim Meyering  <jim@meyering.net>
68241
68242         * check-module: Diagnose a self-dependency.
68243
68244 2007-07-19  Bruno Haible  <bruno@clisp.org>
68245
68246         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68247         empty.
68248         Reported by Eric Blake.
68249
68250 2007-07-18  Bruno Haible  <bruno@clisp.org>
68251
68252         * gnulib-tool: New options --po-base, --po-domain.
68253         (func_usage): Document them.
68254         (pobase, po_domain): New variables.
68255         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68256         DEFAULT_TEXT_DOMAIN.
68257         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68258         (func_import): Consider pobase and po_domain. Create a po/ directory.
68259         (func_create_testdir): Set pobase and po_domain to empty.
68260         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68261         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68262
68263 2007-07-18  Bruno Haible  <bruno@clisp.org>
68264
68265         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68266         EXTRA_DIST augmentation for files in build-aux/.
68267
68268 2007-07-16  Bruno Haible  <bruno@clisp.org>
68269
68270         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68271         * modules/getdelim (License): Likewise.
68272
68273 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68274
68275         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68276         * modules/d-type (License): Likewise.
68277         * modules/extensions (License): Likewise.
68278         * modules/fnmatch (License): Likewise.
68279         * modules/fseeko (License): Likewise.
68280         * modules/getaddrinfo (License): Likewise.
68281         * modules/getline (License): Likewise.
68282         * modules/getlogin_r (License): Likewise.
68283         * modules/getpass (License): Likewise.
68284         * modules/gettimeofday (License): Likewise.
68285         * modules/glob (License): Likewise.
68286         * modules/inet_ntop (License): Likewise.
68287         * modules/malloc (License): Likewise.
68288         * modules/malloca (License): Likewise.
68289         * modules/memmem (License): Likewise.
68290         * modules/mempcpy (License): Likewise.
68291         * modules/memset (License): Likewise.
68292         * modules/minmax (License): Likewise.
68293         * modules/mktime (License): Likewise.
68294         * modules/netinet_in (License): Likewise.
68295         * modules/pathmax (License): Likewise.
68296         * modules/poll (License): Likewise.
68297         * modules/regex (License): Likewise.
68298         * modules/snprintf (License): Likewise.
68299         * modules/stdbool (License): Likewise.
68300         * modules/stdint (License): Likewise.
68301         * modules/stdio (License): Likewise.
68302         * modules/strcase (License): Likewise.
68303         * modules/strcasestr (License): Likewise.
68304         * modules/strdup (License): Likewise.
68305         * modules/string (License): Likewise.
68306         * modules/strndup (License): Likewise.
68307         * modules/strnlen (License): Likewise.
68308         * modules/strpbrk (License): Likewise.
68309         * modules/strptime (License): Likewise.
68310         * modules/strsep (License): Likewise.
68311         * modules/sys_select (License): Likewise.
68312         * modules/sys_socket (License): Likewise.
68313         * modules/sys_stat (License): Likewise.
68314         * modules/sys_time (License): Likewise.
68315         * modules/time (License): Likewise.
68316         * modules/time_r (License): Likewise.
68317         * modules/timegm (License): Likewise.
68318         * modules/unistd (License): Likewise.
68319         * modules/vsnprintf (License): Likewise.
68320         * modules/wctype (License): Likewise.
68321
68322 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68323
68324         * modules/argz (License): LGPLv2+.
68325
68326 2007-07-15  Karl Berry  <karl@gnu.org>
68327
68328         * doc/gnulib.texi: revise node structure per new fdl.texi.
68329
68330 2007-07-14  Bruno Haible  <bruno@clisp.org>
68331
68332         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68333         the output file.
68334         * lib/uniname/uninames.h: Regenerated.
68335
68336 2007-07-14  Karl Berry  <karl@gnu.org>
68337
68338         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68339         omitting sectioning and index commands.
68340
68341 2007-07-13  Bruno Haible  <bruno@clisp.org>
68342
68343         New gnulib-tool option --more-symlinks.
68344         * gnulib-tool (func_usage): Document --more-symlinks.
68345         (do_copyrights): New variable.
68346         Recognize option --more-symlinks.
68347         (func_import): Don't add a copyright notice transform to
68348         sed_transform_lib_file if do_copyrights is empty.
68349
68350 2007-07-13  Bruno Haible  <bruno@clisp.org>
68351
68352         * lib/vasnprintf.c (decimal_point_char): Define also if
68353         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68354         && !NEED_PRINTF_DIRECTIVE_A.
68355         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68356         Gary V. Vaughan <gary@gnu.org>.
68357
68358 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * lib/inttypes_.h: Undo previous change, since it was fixed
68361         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68362
68363 2007-07-13  Bruno Haible  <bruno@clisp.org>
68364
68365         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68366         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68367
68368 2007-07-13  Jim Meyering  <jim@meyering.net>
68369
68370         df: Don't fail for Tru64's "file-on-file mount".
68371         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68372         so we fall through and use statfs instead.  Details here:
68373         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68374         Reported by Albert Chin.
68375
68376 2007-07-13  Bruno Haible  <bruno@clisp.org>
68377
68378         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68379         * modules/configmake (License): Likewise.
68380         * modules/gettext (License): Likewise.
68381         * modules/gettext-h (License): Likewise.
68382         * modules/include_next (License): Likewise.
68383         * modules/link-warning (License): Likewise.
68384         * modules/localcharset (License): Likewise.
68385         * modules/localename (License): Likewise.
68386         * modules/lock (License): Likewise.
68387         * modules/relocatable-lib-lgpl (License): Likewise.
68388         * modules/size_max (License): Likewise.
68389         * modules/vasnprintf (License): Likewise.
68390         * modules/wchar (License): Likewise.
68391         * modules/xsize (License): Likewise.
68392
68393 2007-07-13  Bruno Haible  <bruno@clisp.org>
68394
68395         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68396         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68397
68398 2007-07-12  Bruno Haible  <bruno@clisp.org>
68399
68400         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68401         in the modules files.
68402
68403 2007-07-11  Karl Berry  <karl@gnu.org>
68404
68405         * MODULES.html.sh (func_module): use
68406          sed -e '\|^'"${includefile}"'$|d'
68407          instead of /.../d, to avoid errors on $includefile's containing /.
68408
68409 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68410
68411         * gnulib-tool (func_import): Avoid duplication of --avoid
68412         statements
68413         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68414         names to `_' in variable names.
68415
68416 2007-07-10  Eric Blake  <ebb9@byu.net>
68417
68418         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68419         * NEWS: Document this change.
68420
68421 2007-07-08  Bruno Haible  <bruno@clisp.org>
68422
68423         Update to Unicode 5.0.
68424         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68425         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68426         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68427         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68428         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68429         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68430         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68431         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68432         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68433         U+10A3F, U+1D242..U+1D244.
68434         (nonspacing_table_ind): Update.
68435         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68436         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68437
68438 2007-07-08  Bruno Haible  <bruno@clisp.org>
68439
68440         Update to Unicode 5.0.
68441         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68442         code transform. Extend the name index field of unicode_name_to_code and
68443         unicode_code_to_name from 16 to 24 bits.
68444         * lib/uniname/uniname.c (unicode_character_name,
68445         unicode_name_character): Add the range 0x12xxx to the code transform.
68446         * lib/uniname/uninames.h: Regenerated.
68447         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68448
68449 2007-07-07  Bruno Haible  <bruno@clisp.org>
68450
68451         * modules/wcwidth-tests: New file.
68452         * tests/test-wcwidth.c: New file.
68453
68454         Work around MacOS X wcwidth() bug.
68455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68456         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68457         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68458         original wcwidth in non-UTF-8 locales.
68459         * modules/wcwidth (Depends-on): Add localcharset, streq,
68460         uniwidth/width.
68461         * doc/functions/wcwidth.texi: Update.
68462
68463 2007-07-07  Bruno Haible  <bruno@clisp.org>
68464
68465         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68466         (wcwidth): New declaration.
68467         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68468         macros.
68469         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68470         here. Prepare for creating <wchar.h> unconditionally.
68471         * modules/wchar (Depends-on): Add link-warning.
68472         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68473         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68474         * lib/wcwidth.h: Remove file.
68475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68476         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68477         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68478         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68479         (Include): Replace wcwidth.h with <wchar.h>.
68480         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68481         * lib/mbchar.h: Don't include wcwidth.h.
68482         * lib/mbswidth.c: Likewise.
68483         * NEWS: Mention the change.
68484
68485 2007-07-07  Bruno Haible  <bruno@clisp.org>
68486
68487         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68488         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68489         definition with an external declaration.
68490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68491         defined as a function. Remove AC_C_INLINE requirement.
68492         * modules/wcwidth (Files): Add lib/wcwidth.c.
68493         (Makefile.am): Remove redundant statement.
68494
68495 2007-07-07  Bruno Haible  <bruno@clisp.org>
68496
68497         * MODULES.html.sh (Unicode string functions): Add the new modules.
68498
68499         * tests/uniwidth/test-u32-strwidth.c: New file.
68500         * modules/uniwidth/u32-strwidth-tests: New file.
68501
68502         * lib/uniwidth/u32-strwidth.c: New file.
68503         * modules/uniwidth/u32-strwidth: New file.
68504
68505         * tests/uniwidth/test-u16-strwidth.c: New file.
68506         * modules/uniwidth/u16-strwidth-tests: New file.
68507
68508         * lib/uniwidth/u16-strwidth.c: New file.
68509         * modules/uniwidth/u16-strwidth: New file.
68510
68511         * tests/uniwidth/test-u8-strwidth.c: New file.
68512         * modules/uniwidth/u8-strwidth-tests: New file.
68513
68514         * lib/uniwidth/u8-strwidth.c: New file.
68515         * modules/uniwidth/u8-strwidth: New file.
68516
68517         * tests/uniwidth/test-u32-width.c: New file.
68518         * modules/uniwidth/u32-width-tests: New file.
68519
68520         * lib/uniwidth/u32-width.c: New file.
68521         * modules/uniwidth/u32-width: New file.
68522
68523         * tests/uniwidth/test-u16-width.c: New file.
68524         * modules/uniwidth/u16-width-tests: New file.
68525
68526         * lib/uniwidth/u16-width.c: New file.
68527         * modules/uniwidth/u16-width: New file.
68528
68529         * tests/uniwidth/test-u8-width.c: New file.
68530         * modules/uniwidth/u8-width-tests: New file.
68531
68532         * lib/uniwidth/u8-width.c: New file.
68533         * modules/uniwidth/u8-width: New file.
68534
68535         * tests/uniwidth/test-uc_width.c: New file.
68536         * modules/uniwidth/width-tests: New file.
68537
68538         * lib/uniwidth/width.c: New file, from GNU libiconv.
68539         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68540         * modules/uniwidth/width: New file.
68541
68542         * lib/uniwidth.h: New file, from GNU libiconv.
68543         * modules/uniwidth/base: New file.
68544
68545 2007-07-07  Bruno Haible  <bruno@clisp.org>
68546
68547         * lib/uniname.h: New file, from GNU gettext.
68548         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68549         * lib/uniname/uninames.h: New file, from GNU gettext.
68550         * lib/uniname/uniname.c: New file, from GNU gettext.
68551         * tests/uniname/test-uninames.sh: New file.
68552         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68553         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68554         * modules/uniname/base: New file.
68555         * modules/uniname/uniname: New file.
68556         * modules/uniname/uniname-tests: New file.
68557         * MODULES.html.sh (Unicode string functions): Add the new modules.
68558
68559 2007-07-06  Bruno Haible  <bruno@clisp.org>
68560
68561         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68562
68563 2007-07-06  Bruno Haible  <bruno@clisp.org>
68564
68565         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68566         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68567         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68568         include <sys/time.h>.
68569         Reported by Eric Blake.
68570
68571 2007-07-06  Eric Blake  <ebb9@byu.net>
68572
68573         Fix testing canonicalize on cygwin.
68574         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68575         Revert patch from 2007-06-19.
68576         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68577         canonicalize module is also in use.
68578         * tests/test-canonicalize.c: New file.
68579         * tests/test-canonicalize.sh: Likewise.
68580         * modules/canonicalize-tests: Likewise.
68581
68582 2007-07-06  Jim Meyering  <jim@meyering.net>
68583
68584         * lib/getugroups.c (getugroups): Detect getgrent failure.
68585         Adjust comment to reflect reality: this function may return -1.
68586
68587 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68588
68589         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68590         the new TP address.
68591         (usage): Fix typo
68592         (gnulib_mk): New variable.
68593
68594 2007-07-05  Jim Meyering  <jim@meyering.net>
68595
68596         Don't let endgrent clobber errno, no matter how improbable.
68597         * lib/getugroups.c (getugroups): Save and restore errno around
68598         endgrent call.
68599
68600         Close the group DB even when failing with 2^31 or more members.
68601         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68602
68603 2007-07-04  Jim Meyering  <jim@meyering.net>
68604
68605         * lib/getugroups.h: New file.
68606         * lib/getugroups.c: Include "getugroups.h".
68607         Remove uses of "register" keyword.
68608         Move local variable, "cp", down into scope where used.
68609         Give "username" parameter the "const" attribute.
68610         * modules/getugroups (Files): Add lib/getugroups.h
68611
68612 2007-07-04  Karl Berry  <karl@gnu.org>
68613
68614         * MODULES.html.sh (func_all_modules): Complete rename of
68615         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68616
68617 2007-07-02  Bruno Haible  <bruno@clisp.org>
68618
68619         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68620         mode, when inttypes.h comes from gnulib.
68621         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68622
68623 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68624
68625         * NEWS: Mention lgpl module name change.
68626
68627         * modules/lgpl-2.1: Renamed from lgpl.
68628
68629         * NEWS: Mention gpl module name change.
68630
68631         * modules/gpl-3.0: New file, based on gpl-2.0.
68632
68633         * modules/gpl-2.0: Renamed from gpl.
68634
68635         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68636         doc/gpl-2.0.texi.
68637
68638 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68639
68640         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68641         #define __STDC_LIMIT_MACROS temporarily while including
68642         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68643         Problem reported by Joel E. Denny in
68644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68645
68646 2007-07-01  Bruno Haible  <bruno@clisp.org>
68647
68648         * lib/unistdio.h: New file.
68649         * lib/unistdio/u-asnprintf.h: New file.
68650         * lib/unistdio/u-asprintf.h: New file.
68651         * lib/unistdio/u-printf-args.c: New file.
68652         * lib/unistdio/u-printf-args.h: New file.
68653         * lib/unistdio/u-printf-parse.h: New file.
68654         * lib/unistdio/u-snprintf.h: New file.
68655         * lib/unistdio/u-sprintf.h: New file.
68656         * lib/unistdio/u-vasprintf.h: New file.
68657         * lib/unistdio/u-vsnprintf.h: New file.
68658         * lib/unistdio/u-vsprintf.h: New file.
68659         * lib/unistdio/ulc-asnprintf.c: New file.
68660         * lib/unistdio/ulc-asprintf.c: New file.
68661         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68662         * lib/unistdio/ulc-printf-parse.c: New file.
68663         * lib/unistdio/ulc-snprintf.c: New file.
68664         * lib/unistdio/ulc-sprintf.c: New file.
68665         * lib/unistdio/ulc-vasnprintf.c: New file.
68666         * lib/unistdio/ulc-vasprintf.c: New file.
68667         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68668         * lib/unistdio/ulc-vsnprintf.c: New file.
68669         * lib/unistdio/ulc-vsprintf.c: New file.
68670         * lib/unistdio/u8-asnprintf.c: New file.
68671         * lib/unistdio/u8-asprintf.c: New file.
68672         * lib/unistdio/u8-printf-parse.c: New file.
68673         * lib/unistdio/u8-snprintf.c: New file.
68674         * lib/unistdio/u8-sprintf.c: New file.
68675         * lib/unistdio/u8-vasnprintf.c: New file.
68676         * lib/unistdio/u8-vasprintf.c: New file.
68677         * lib/unistdio/u8-vsnprintf.c: New file.
68678         * lib/unistdio/u8-vsprintf.c: New file.
68679         * lib/unistdio/u8-u8-asnprintf.c: New file.
68680         * lib/unistdio/u8-u8-asprintf.c: New file.
68681         * lib/unistdio/u8-u8-snprintf.c: New file.
68682         * lib/unistdio/u8-u8-sprintf.c: New file.
68683         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68684         * lib/unistdio/u8-u8-vasprintf.c: New file.
68685         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68686         * lib/unistdio/u8-u8-vsprintf.c: New file.
68687         * lib/unistdio/u16-asnprintf.c: New file.
68688         * lib/unistdio/u16-asprintf.c: New file.
68689         * lib/unistdio/u16-printf-parse.c: New file.
68690         * lib/unistdio/u16-snprintf.c: New file.
68691         * lib/unistdio/u16-sprintf.c: New file.
68692         * lib/unistdio/u16-vasnprintf.c: New file.
68693         * lib/unistdio/u16-vasprintf.c: New file.
68694         * lib/unistdio/u16-vsnprintf.c: New file.
68695         * lib/unistdio/u16-vsprintf.c: New file.
68696         * lib/unistdio/u16-u16-asnprintf.c: New file.
68697         * lib/unistdio/u16-u16-asprintf.c: New file.
68698         * lib/unistdio/u16-u16-snprintf.c: New file.
68699         * lib/unistdio/u16-u16-sprintf.c: New file.
68700         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68701         * lib/unistdio/u16-u16-vasprintf.c: New file.
68702         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68703         * lib/unistdio/u16-u16-vsprintf.c: New file.
68704         * lib/unistdio/u32-asnprintf.c: New file.
68705         * lib/unistdio/u32-asprintf.c: New file.
68706         * lib/unistdio/u32-printf-parse.c: New file.
68707         * lib/unistdio/u32-snprintf.c: New file.
68708         * lib/unistdio/u32-sprintf.c: New file.
68709         * lib/unistdio/u32-vasnprintf.c: New file.
68710         * lib/unistdio/u32-vasprintf.c: New file.
68711         * lib/unistdio/u32-vsnprintf.c: New file.
68712         * lib/unistdio/u32-vsprintf.c: New file.
68713         * lib/unistdio/u32-u32-asnprintf.c: New file.
68714         * lib/unistdio/u32-u32-asprintf.c: New file.
68715         * lib/unistdio/u32-u32-snprintf.c: New file.
68716         * lib/unistdio/u32-u32-sprintf.c: New file.
68717         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68718         * lib/unistdio/u32-u32-vasprintf.c: New file.
68719         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68720         * lib/unistdio/u32-u32-vsprintf.c: New file.
68721         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68722         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68723         * tests/unistdio/test-ulc-printf1.h: New file.
68724         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68725         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68726         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68727         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68728         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68729         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68730         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68731         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68732         * tests/unistdio/test-u8-asnprintf1.c: New file.
68733         * tests/unistdio/test-u8-asnprintf1.h: New file.
68734         * tests/unistdio/test-u8-printf1.h: New file.
68735         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68736         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68737         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68738         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68739         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68740         * tests/unistdio/test-u8-vasprintf1.c: New file.
68741         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68742         * tests/unistdio/test-u8-vsprintf1.c: New file.
68743         * tests/unistdio/test-u16-asnprintf1.c: New file.
68744         * tests/unistdio/test-u16-asnprintf1.h: New file.
68745         * tests/unistdio/test-u16-printf1.h: New file.
68746         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68747         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68748         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68749         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68750         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68751         * tests/unistdio/test-u16-vasprintf1.c: New file.
68752         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68753         * tests/unistdio/test-u16-vsprintf1.c: New file.
68754         * tests/unistdio/test-u32-asnprintf1.c: New file.
68755         * tests/unistdio/test-u32-asnprintf1.h: New file.
68756         * tests/unistdio/test-u32-printf1.h: New file.
68757         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68758         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68759         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68760         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68761         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68762         * tests/unistdio/test-u32-vasprintf1.c: New file.
68763         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68764         * tests/unistdio/test-u32-vsprintf1.c: New file.
68765         * modules/unistdio/base: New file.
68766         * modules/unistdio/u-printf-args: New file.
68767         * modules/unistdio/ulc-asnprintf: New file.
68768         * modules/unistdio/ulc-asprintf: New file.
68769         * modules/unistdio/ulc-fprintf: New file.
68770         * modules/unistdio/ulc-printf-parse: New file.
68771         * modules/unistdio/ulc-snprintf: New file.
68772         * modules/unistdio/ulc-sprintf: New file.
68773         * modules/unistdio/ulc-vasnprintf: New file.
68774         * modules/unistdio/ulc-vasprintf: New file.
68775         * modules/unistdio/ulc-vfprintf: New file.
68776         * modules/unistdio/ulc-vsnprintf: New file.
68777         * modules/unistdio/ulc-vsprintf: New file.
68778         * modules/unistdio/u8-asnprintf: New file.
68779         * modules/unistdio/u8-asprintf: New file.
68780         * modules/unistdio/u8-printf-parse: New file.
68781         * modules/unistdio/u8-snprintf: New file.
68782         * modules/unistdio/u8-sprintf: New file.
68783         * modules/unistdio/u8-vasnprintf: New file.
68784         * modules/unistdio/u8-vasprintf: New file.
68785         * modules/unistdio/u8-vsnprintf: New file.
68786         * modules/unistdio/u8-vsprintf: New file.
68787         * modules/unistdio/u8-u8-asnprintf: New file.
68788         * modules/unistdio/u8-u8-asprintf: New file.
68789         * modules/unistdio/u8-u8-snprintf: New file.
68790         * modules/unistdio/u8-u8-sprintf: New file.
68791         * modules/unistdio/u8-u8-vasnprintf: New file.
68792         * modules/unistdio/u8-u8-vasprintf: New file.
68793         * modules/unistdio/u8-u8-vsnprintf: New file.
68794         * modules/unistdio/u8-u8-vsprintf: New file.
68795         * modules/unistdio/u16-asnprintf: New file.
68796         * modules/unistdio/u16-asprintf: New file.
68797         * modules/unistdio/u16-printf-parse: New file.
68798         * modules/unistdio/u16-snprintf: New file.
68799         * modules/unistdio/u16-sprintf: New file.
68800         * modules/unistdio/u16-vasnprintf: New file.
68801         * modules/unistdio/u16-vasprintf: New file.
68802         * modules/unistdio/u16-vsnprintf: New file.
68803         * modules/unistdio/u16-vsprintf: New file.
68804         * modules/unistdio/u16-u16-asnprintf: New file.
68805         * modules/unistdio/u16-u16-asprintf: New file.
68806         * modules/unistdio/u16-u16-snprintf: New file.
68807         * modules/unistdio/u16-u16-sprintf: New file.
68808         * modules/unistdio/u16-u16-vasnprintf: New file.
68809         * modules/unistdio/u16-u16-vasprintf: New file.
68810         * modules/unistdio/u16-u16-vsnprintf: New file.
68811         * modules/unistdio/u16-u16-vsprintf: New file.
68812         * modules/unistdio/u32-asnprintf: New file.
68813         * modules/unistdio/u32-asprintf: New file.
68814         * modules/unistdio/u32-printf-parse: New file.
68815         * modules/unistdio/u32-snprintf: New file.
68816         * modules/unistdio/u32-sprintf: New file.
68817         * modules/unistdio/u32-vasnprintf: New file.
68818         * modules/unistdio/u32-vasprintf: New file.
68819         * modules/unistdio/u32-vsnprintf: New file.
68820         * modules/unistdio/u32-vsprintf: New file.
68821         * modules/unistdio/u32-u32-asnprintf: New file.
68822         * modules/unistdio/u32-u32-asprintf: New file.
68823         * modules/unistdio/u32-u32-snprintf: New file.
68824         * modules/unistdio/u32-u32-sprintf: New file.
68825         * modules/unistdio/u32-u32-vasnprintf: New file.
68826         * modules/unistdio/u32-u32-vasprintf: New file.
68827         * modules/unistdio/u32-u32-vsnprintf: New file.
68828         * modules/unistdio/u32-u32-vsprintf: New file.
68829         * modules/unistdio/ulc-asnprintf-tests: New file.
68830         * modules/unistdio/ulc-vasnprintf-tests: New file.
68831         * modules/unistdio/ulc-vasprintf-tests: New file.
68832         * modules/unistdio/ulc-vsnprintf-tests: New file.
68833         * modules/unistdio/ulc-vsprintf-tests: New file.
68834         * modules/unistdio/u8-asnprintf-tests: New file.
68835         * modules/unistdio/u8-vasnprintf-tests: New file.
68836         * modules/unistdio/u8-vasprintf-tests: New file.
68837         * modules/unistdio/u8-vsnprintf-tests: New file.
68838         * modules/unistdio/u8-vsprintf-tests: New file.
68839         * modules/unistdio/u16-asnprintf-tests: New file.
68840         * modules/unistdio/u16-vasnprintf-tests: New file.
68841         * modules/unistdio/u16-vasprintf-tests: New file.
68842         * modules/unistdio/u16-vsnprintf-tests: New file.
68843         * modules/unistdio/u16-vsprintf-tests: New file.
68844         * modules/unistdio/u32-asnprintf-tests: New file.
68845         * modules/unistdio/u32-vasnprintf-tests: New file.
68846         * modules/unistdio/u32-vasprintf-tests: New file.
68847         * modules/unistdio/u32-vsnprintf-tests: New file.
68848         * modules/unistdio/u32-vsprintf-tests: New file.
68849         * MODULES.html.sh (Unicode string functions): Add the new modules.
68850
68851 2007-07-01  Bruno Haible  <bruno@clisp.org>
68852
68853         * lib/sprintf.c (sprintf): Limit the available length estimation,
68854         to avoid address wraparound.
68855         * lib/vsprintf.c (vsprintf): Likewise.
68856         * modules/sprintf-posix (Dependencies): Add stdint.
68857         * modules/vsprintf-posix (Dependencies): Likewise.
68858
68859 2007-07-01  Bruno Haible  <bruno@clisp.org>
68860
68861         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68862         Windows PATH as well. Conservative double-quoting. Comments.
68863
68864 2007-07-01  Bruno Haible  <bruno@clisp.org>
68865             Eric Blake  <ebb9@byu.net>
68866             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68867
68868         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68869         empty components in $PATH, denoting '.'.
68870
68871 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68872
68873         * gnulib-tool: Fix indentation.
68874         (func_create_megatestdir): Likewise.
68875         Report by Bruno Haible.
68876
68877 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68878
68879         Sync from Automake.
68880         * build-aux/gnupload: Fix shell portability issues with for loops.
68881         Report by Karl Berry.
68882
68883 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68884
68885         * build-aux/maint.mk (POURL): Use translationproject.org.
68886
68887 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68888             Bruno Haible  <bruno@clisp.org>
68889
68890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68891         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68892         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68893         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68894         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68895
68896 2007-06-27  Bruno Haible  <bruno@clisp.org>
68897
68898         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68899         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68900
68901 2007-06-26  Karl Berry  <karl@gnu.org>
68902
68903         * MODULES.html.sh: remove xreadlink-with-size.
68904
68905 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68906
68907         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68908         method that I hope also handles the double-include problem noted
68909         by Bruno Haible in
68910         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68911
68912 2007-06-23  Bruno Haible  <bruno@clisp.org>
68913
68914         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68915         Don't let the 'mostlyclean' target fail if the last subdirectory could
68916         not be removed.
68917         Reported by Karl Berry.
68918
68919 2007-06-23  Bruno Haible  <bruno@clisp.org>
68920
68921         * gnulib-tool (echo): Add a speedier workaround for ksh.
68922         * tests/test-echo.sh: Likewise.
68923
68924 2007-06-23  Bruno Haible  <bruno@clisp.org>
68925
68926         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68927         * tests/test-echo.sh: Likewise.
68928
68929 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68930
68931         * gnulib-tool (IFS): Initialize early, so we don't set it to
68932         empty later.
68933         (self_abspathname): Rewrite algorithm to set it, reindent.
68934         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68935         (func_create_megatestdir): Merge some sed scripts.
68936
68937 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68938
68939         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68940         exposed by Sun Studio 11 cc on Solaris 8.
68941
68942 2007-06-22  Bruno Haible  <bruno@clisp.org>
68943
68944         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68945         backslashes.
68946         * tests/test-echo.sh: New file.
68947
68948 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68949
68950         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68951         simplify `sed_replace_build_aux' scripts, they are portable but
68952         echoing them with `echo' is not.
68953         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68954
68955 2007-06-21  Karl Berry  <karl@gnu.org>
68956
68957         * config/srclist.txt: guess we can't handle the licenses via
68958         srclist at the moment.
68959
68960 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68961
68962         * MODULES.html.sh: Add include_next.
68963         * modules/include_next: New file.
68964
68965 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68968         INCLUDE_NEXT.
68969         (gl_CHECK_NEXT_HEADERS): New macro.
68970         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68971         the obsolescent gl_ABSOLUTE_HEADER.
68972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68973         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68974         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68975         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68976         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68977         * m4/math_h.m4 (gl_MATH_H): Likewise.
68978         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68979         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68980         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68981         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68982         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68983         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68984         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68985         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68986         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68987         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68988         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68989         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68990         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68991         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68992         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68993         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68994         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68995         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68996         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68997         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68998         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68999         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69000         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69001         * lib/float_.h: Likewise.
69002         * lib/inttypes_.h: Likewise.
69003         * lib/math_.h: Likewise.
69004         * lib/search_.h: Likewise.
69005         * lib/signal_.h: Likewise.
69006         * lib/stdint_.h: Likewise.
69007         * lib/stdio_.h: Likewise.
69008         * lib/stdlib_.h: Likewise.
69009         * lib/string_.h: Likewise.
69010         * lib/sys_stat_.h: Likewise.
69011         * lib/sys_time_.h: Likewise.
69012         * lib/time_.h: Likewise.
69013         * lib/unistd_.h: Likewise.
69014         * lib/wchar_.h: Likewise.
69015         * lib/wctype_.h: Likewise.
69016         * lib/dirent_.h: Likewise.
69017         * lib/iconv_.h: Likewise.
69018         * lib/locale_.h: Likewise.
69019         * lib/netinet_in_.h: Likewise.
69020         * lib/sys_select_.h: Likewise.
69021         * lib/sys_socket_.h: Likewise.
69022         * lib/sysexits_.h: Likewise.
69023         * modules/fcntl (Depends-on): Depend on include_next, not
69024         absolute_header.
69025         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69026         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69027         * modules/fchdir: Likewise.
69028         * modules/float: Likewise.
69029         * modules/iconv_open: Likewise.
69030         * modules/inttypes: Likewise.
69031         * modules/locale: Likewise.
69032         * modules/math: Likewise.
69033         * modules/netinet_in: Likewise.
69034         * modules/search: Likewise.
69035         * modules/signal: Likewise.
69036         * modules/stdint: Likewise.
69037         * modules/stdio: Likewise.
69038         * modules/stdlib: Likewise.
69039         * modules/string: Likewise.
69040         * modules/sys_select: Likewise.
69041         * modules/sys_socket: Likewise.
69042         * modules/sys_stat: Likewise.
69043         * modules/sys_time: Likewise.
69044         * modules/sysexits: Likewise.
69045         * modules/time: Likewise.
69046         * modules/unistd: Likewise.
69047         * modules/wchar: Likewise.
69048         * modules/wctype: Likewise.
69049         * modules/sys_stat: Change maintainer to "all".
69050         * modules/unistd: Likewise.
69051
69052 2007-06-20  Karl Berry  <karl@gnu.org>
69053
69054         * config/srclist.txt: track www changes in license files.
69055
69056 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69057
69058         * build-aux/bootstrap: Remove stray dot.
69059         Make sure build_aux settings are honored when linking
69060         gnulib_extra_files.
69061
69062 2007-06-19  Eric Blake  <ebb9@byu.net>
69063
69064         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69065         Allow compilation on cygwin.
69066
69067 2007-06-19  Jim Meyering  <jim@meyering.net>
69068
69069         xreadlink-with-size: Remove module.  No longer used.
69070         Ex-callers now use xreadlink or mreadlink-with-size.
69071         * modules/xreadlink-with-size: Remove module.
69072         * lib/xreadlink-with-size.c: Remove file.
69073         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69074         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69075         just before the function definition *is* accurate.
69076
69077         Eliminate one way canonicalize_filename_mode could exit.
69078         * lib/canonicalize.c (canonicalize_filename_mode):
69079         Use mreadlink_with_size, not xreadlink_with_size.
69080
69081 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         Detect porting problems to FreeBSD/arm, which has time_t wider than
69084         long int.  Original problem reported for GNU diff by Xin Li in
69085         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69086         * modules/getdate (Depends-on): Add intprops, verify.
69087         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69088         is an integer type no wider than long int.
69089
69090 2007-06-18  Jim Meyering  <jim@meyering.net>
69091
69092         New module: mreadlink-with-size.
69093         * MODULES.html.sh: Add mreadlink-with-size.
69094         * modules/mreadlink-with-size: New module
69095         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69096         not xreadlink-with-size.
69097         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69098
69099 2007-06-16  Bruno Haible  <bruno@clisp.org>
69100
69101         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69102         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69103         Reported by Gary V. Vaughan <gary@gnu.org>.
69104
69105 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69106
69107         Revamp lchown so that it lives in unistd.h where it belongs.
69108         * lib/lchown.h: Remove.
69109         * lib/dirchownmod.c: Don't include lib/lchown.h.
69110         * lib/fchownat.c: Likewise.
69111         * lib/openat.c: Likewise.
69112         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69113         does not follow symlinks.
69114         (EOPNOTSUPP): Define if not defined.
69115         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69116         is defined to 0.
69117         (lchown): New decl.
69118         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69119         Do not check for lchown decl.
69120         Set REPLACE_LCHOWN.
69121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69122         REPLACE_LCHOWN.
69123         * modules/chown: Make it clear it follows symlinks.
69124         * modules/lchown: Make it clear it doesn't follow symlinks.
69125         (Files): Remove lib/lchown.h
69126         (Depends-on): Add unistd.
69127         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69128         (Include): Include <unistd.h>, not "lchown.h".
69129         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69130         REPLACE_LCHOWN.
69131
69132 2007-06-15  Jim Meyering  <jim@meyering.net>
69133
69134         Change license (GPL to LGPL) of fsusage and dependents.
69135         * modules/fsusage (License): Change to LGPL.
69136         * modules/full-read (License): Likewise.
69137         * modules/full-write (License): Likewise.
69138         * modules/safe-read (License): Likewise.
69139         * modules/safe-write (License): Likewise.
69140
69141 2007-06-14  Ben Pfaff  <blp@gnu.org>
69142
69143         Missing part of allocsa -> malloca transition.
69144         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69145         gl_MALLOCA.
69146
69147 2007-06-12  Bruno Haible  <bruno@clisp.org>
69148
69149         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69150         to ia64, x86_64, i386.
69151         Reported by Eric Blake.
69152
69153 2007-06-12  Bruno Haible  <bruno@clisp.org>
69154
69155         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69156         cross-compiling to x86_64.
69157
69158 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69159
69160         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69161         glitch reported by Ralf Wildenhues in
69162         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69163
69164         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69165         Vin Shelton.
69166
69167 2007-06-11  Bruno Haible  <bruno@clisp.org>
69168
69169         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69170         replacement string.
69171         Reported by Eric Blake.
69172
69173 2007-06-10  Bruno Haible  <bruno@clisp.org>
69174
69175         Prepare vasnprintf code for use with Unicode strings.
69176         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69177         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69178         TYPE_U32_STRING.
69179         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69180         a_u32_string variants.
69181         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69182         * lib/printf-args.c: Don't include config.h and the specification
69183         header if PRINTF_FETCHARGS is already defined.
69184         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69185         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69186         TYPE_U16_STRING, TYPE_U32_STRING.
69187         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69188         u16_directive, u16_directives, u32_directive, u32_directives): New
69189         types.
69190         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69191         New declarations.
69192         * lib/printf-parse.c: Don't include config.h and the specification
69193         header if PRINTF_PARSE is already defined. Eliminate the set of
69194         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69195         them now. Include c-ctype.h.
69196         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69197         directive and CHAR_T_ONLY_ASCII.
69198         * lib/vasnprintf.c: Don't include config.h and the specification header
69199         if VASNPRINTF is already defined.
69200         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69201         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69202         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69203         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69204         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69205         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69206         code accordingly.
69207         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69208         pad_ourselves also in this case, with the 'c' and 's' directives, and
69209         with a different notion of "width".
69210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69211
69212 2007-06-10  Bruno Haible  <bruno@clisp.org>
69213
69214         * modules/unistr/u32-mbsnlen: New file.
69215         * lib/unistr/u32-mbsnlen.c: New file.
69216
69217         * modules/unistr/u16-mbsnlen: New file.
69218         * lib/unistr/u16-mbsnlen.c: New file.
69219
69220         * modules/unistr/u8-mbsnlen: New file.
69221         * lib/unistr/u8-mbsnlen.c: New file.
69222
69223         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69224         declarations.
69225
69226 2007-06-10  Bruno Haible  <bruno@clisp.org>
69227
69228         * lib/string_.h (mbsnlen): New declaration.
69229         * lib/mbsnlen.c: New file.
69230         * m4/mbsnlen.m4: New file.
69231         * modules/mbsnlen: New file.
69232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69233         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69234         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69235
69236 2007-06-10  Bruno Haible  <bruno@clisp.org>
69237
69238         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69239
69240 2007-06-10  Bruno Haible  <bruno@clisp.org>
69241
69242         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69243         * lib/mbuiter.h: Likewise.
69244
69245 2007-06-10  Bruno Haible  <bruno@clisp.org>
69246
69247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69248         declaration.
69249
69250 2007-06-10  Karl Berry  <karl@gnu.org>
69251
69252         * config/srclist.txt: remove gettext entries, Bruno prefers
69253         to update individually.
69254
69255 2007-06-10  Bruno Haible  <bruno@clisp.org>
69256
69257         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69258         'maxlen'. Ensure only length + width bytes are allocated, not
69259         length + 1 + width.
69260
69261 2007-06-09  Bruno Haible  <bruno@clisp.org>
69262
69263         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69264         (CHAR_T): Remove macro.
69265         (VASNPRINTF): Update.
69266
69267 2007-06-09  Bruno Haible  <bruno@clisp.org>
69268
69269         * MODULES.html.sh (Unicode string functions): Add the new modules.
69270
69271         * modules/uniconv/u32-conv-to-enc: New file.
69272         * lib/uniconv/u32-conv-to-enc.c: New file.
69273         * modules/uniconv/u32-conv-to-enc-tests: New file.
69274         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69275
69276         * modules/uniconv/u16-conv-to-enc: New file.
69277         * lib/uniconv/u16-conv-to-enc.c: New file.
69278         * lib/uniconv/u-conv-to-enc.h: New file.
69279         * modules/uniconv/u16-conv-to-enc-tests: New file.
69280         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69281
69282         * modules/uniconv/u8-conv-to-enc: New file.
69283         * lib/uniconv/u8-conv-to-enc.c: New file.
69284         * modules/uniconv/u8-conv-to-enc-tests: New file.
69285         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69286
69287         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69288         u32_conv_to_encoding): New declarations.
69289
69290 2007-06-09  Bruno Haible  <bruno@clisp.org>
69291
69292         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69293
69294 2007-06-09  Bruno Haible  <bruno@clisp.org>
69295
69296         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69297         * modules/malloca: Renamed from modules/allocsa, updated.
69298         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69299         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69300         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69301         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69302         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69303         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69304         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69305         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69306         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69307         * modules/c-strcasestr (Depends-on): Update.
69308         * lib/c-strcasestr.c: Update.
69309         * modules/c-strstr (Depends-on): Update.
69310         * lib/c-strstr.c: Update.
69311         * modules/canonicalize-lgpl (Depends-on): Update.
69312         * lib/canonicalize-lgpl.c: Update.
69313         * modules/clean-temp (Depends-on): Update.
69314         * lib/clean-temp.c: Update.
69315         * modules/csharpcomp (Depends-on): Update.
69316         * lib/csharpcomp.c: Update.
69317         * modules/csharpexec (Depends-on): Update.
69318         * lib/csharpexec.c: Update.
69319         * modules/javacomp (Depends-on): Update.
69320         * lib/javacomp.c: Update.
69321         * modules/javaexec (Depends-on): Update.
69322         * lib/javaexec.c: Update.
69323         * modules/mbscasestr (Depends-on): Update.
69324         * lib/mbscasestr.c: Update.
69325         * modules/mbsstr (Depends-on): Update.
69326         * lib/mbsstr.c: Update.
69327         * modules/setenv (Depends-on): Update.
69328         * lib/setenv.c: Update.
69329         * modules/strcasestr (Depends-on): Update.
69330         * lib/strcasestr.c: Update.
69331         * modules/striconveha (Depends-on): Update.
69332         * lib/striconveha.c: Update.
69333         * modules/relocatable-prog-wrapper (Files): Update.
69334         * lib/relocwrapper.c: Update.
69335         * build-aux/install-reloc: Update.
69336         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69337
69338 2007-06-08  Bruno Haible  <bruno@clisp.org>
69339
69340         Port to uClibc.
69341         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69342         * lib/fpurge.c (fpurge): Likewise.
69343         * lib/freading.c (freading): Likewise.
69344         * lib/fseeko.c (rpl_fseeko): Likewise.
69345         * lib/fseterr.c (fseterr): Likewise.
69346         * lib/fwriting.c (fwriting): Likewise.
69347         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69348
69349 2007-06-08  Bruno Haible  <bruno@clisp.org>
69350
69351         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69352         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69353         * modules/gettext (Files): Add m4/intlmacosx.m4.
69354
69355 2007-06-07  Bruno Haible  <bruno@clisp.org>
69356
69357         * modules/localename-tests: New file.
69358         * tests/test-localename.c: New file.
69359
69360         New module 'localename'.
69361         * lib/localename.h: New file.
69362         * lib/localename.c: New file, from GNU gettext.
69363         * m4/localename.m4: New file.
69364         * modules/localename: New file.
69365
69366 2007-06-07  Bruno Haible  <bruno@clisp.org>
69367
69368         Work around the lack of <wchar.h> on some builds of uClibc.
69369         * doc/headers/wchar.texi: Update.
69370         * lib/wchar_.h: Include <wchar.h> only if it exists.
69371         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69372         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69373         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69374         doesn't exist.
69375         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69376         * modules/mbfile (Depends-on): Add wchar.
69377         * modules/mbiter (Depends-on): Likewise.
69378         * modules/mbuiter (Depends-on): Likewise.
69379         Reported by Simon Josefsson.
69380
69381 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         Work around problem reported by Steven M. Schweda in
69384         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69385         Tru64 5.1B with the Compaq compiler environment installed declares
69386         an 'isblank' function but does not define it in the C library.
69387         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69388         * lib/regex_internal.h (isblank): Likewise.
69389         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69390         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69391
69392 2007-06-05  Bruno Haible  <bruno@clisp.org>
69393
69394         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69395         ia64.
69396         * modules/printf-safe: New file.
69397         * modules/fprintf-posix (Depends-on): Add printf-safe.
69398         * modules/printf-posix (Depends-on): Likewise.
69399         * modules/snprintf-posix (Depends-on): Likewise.
69400         * modules/sprintf-posix (Depends-on): Likewise.
69401         * modules/vasnprintf-posix (Depends-on): Likewise.
69402         * modules/vasprintf-posix (Depends-on): Likewise.
69403         * modules/vfprintf-posix (Depends-on): Likewise.
69404         * modules/vprintf-posix (Depends-on): Likewise.
69405         * modules/vsnprintf-posix (Depends-on): Likewise.
69406         * modules/vsprintf-posix (Depends-on): Likewise.
69407         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69408         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69409         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69410         "no" on i386, x86_64, ia64.
69411         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69412         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69413         on i386, x86_64, ia64.
69414         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69415         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69416         on i386, x86_64, ia64.
69417         * tests/test-vasnprintf-posix.c: Include float.h.
69418         (LDBL80_WORDS): New macro.
69419         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69420         on i386, x86_64, ia64.
69421         * tests/test-vasprintf-posix.c: Include float.h.
69422         (LDBL80_WORDS): New macro.
69423         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69424         on i386, x86_64, ia64.
69425         * tests/test-snprintf-posix.c: Include float.h.
69426         * tests/test-sprintf-posix.c: Likewise.
69427         * tests/test-vsnprintf-posix.c: Likewise.
69428         * tests/test-vsprintf-posix.c: Likewise.
69429
69430 2007-06-05  Bruno Haible  <bruno@clisp.org>
69431
69432         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69433         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69434         non-IEEE numbers on i386, x86_64, ia64.
69435         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69436         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69437         * tests/test-isnanl.h: Include float.h.
69438         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69439
69440 2007-06-05  Bruno Haible  <bruno@clisp.org>
69441
69442         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69443         also the %a / %A. Handle the %a / %A code before this extra handling.
69444
69445 2007-06-05  Bruno Haible  <bruno@clisp.org>
69446
69447         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69448         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69449
69450 2007-06-05  Bruno Haible  <bruno@clisp.org>
69451
69452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69453         typo in variable name.
69454
69455 2007-06-05  Eric Blake  <ebb9@byu.net>
69456
69457         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69458         Reported by Simon Josefsson.
69459
69460 2007-06-04  Bruno Haible  <bruno@clisp.org>
69461
69462         Avoid test failures on some PowerPC platforms.
69463         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69464         Define differently for PowerPC.
69465         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69466         Reported by Gary V. Vaughan <gary@gnu.org>.
69467
69468 2007-06-02  Bruno Haible  <bruno@clisp.org>
69469
69470         Fix test-stdint failure on FreeBSD/ia64.
69471         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69472         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69473         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69474         * doc/headers/stdint.texi: Update.
69475
69476 2007-06-01  Bruno Haible  <bruno@clisp.org>
69477
69478         * tests/test-binary-io.c (main): Pass a third argument to open().
69479         Reported by Gary V. Vaughan <gary@gnu.org>.
69480
69481 2007-06-01  Bruno Haible  <bruno@clisp.org>
69482
69483         * doc/functions/frexpl.texi: Update for mingw.
69484
69485 2007-06-01  Bruno Haible  <bruno@clisp.org>
69486
69487         * tests/test-lseek.c (main): Disable test of errno for invalid third
69488         argument.
69489         * doc/functions/lseek.texi: Update.
69490         Reported by Gary V. Vaughan <gary@gnu.org>.
69491
69492 2007-05-28  Bruno Haible  <bruno@clisp.org>
69493
69494         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69495
69496 2007-05-31  Eric Blake  <ebb9@byu.net>
69497
69498         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69499         cross compiling.
69500
69501 2007-05-30  Eric Blake  <ebb9@byu.net>
69502         and Bruno Haible  <bruno@clisp.org>
69503
69504         Work around mingw test failures exposed by m4-1.4.9b.
69505         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69506         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69507         moment.
69508
69509 2007-05-30  Bruno Haible  <bruno@clisp.org>
69510
69511         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69512         assuming that they are closed. Needed on HP-UX 11.
69513
69514 2007-05-29  Bruno Haible  <bruno@clisp.org>
69515
69516         Fix a problem with #include_next.
69517         * lib/dirent_.h: Split the double-inclusion guard.
69518         * lib/fcntl_.h: Likewise.
69519         * lib/float_.h: Likewise.
69520         * lib/iconv_.h: Likewise.
69521         * lib/inttypes_.h: Likewise.
69522         * lib/locale_.h: Likewise.
69523         * lib/math_.h: Likewise.
69524         * lib/netinet_in_.h: Likewise.
69525         * lib/search_.h: Likewise.
69526         * lib/signal_.h: Likewise.
69527         * lib/stdint_.h: Likewise.
69528         * lib/stdio_.h: Likewise.
69529         * lib/stdlib_.h: Likewise.
69530         * lib/string_.h: Likewise.
69531         * lib/sys_select_.h: Likewise.
69532         * lib/sys_socket_.h: Likewise.
69533         * lib/sys_stat_.h: Likewise.
69534         * lib/sys_time_.h: Likewise.
69535         * lib/sysexits_.h: Likewise.
69536         * lib/time_.h: Likewise.
69537         * lib/unistd_.h: Likewise.
69538         * lib/wchar_.h: Likewise.
69539         * lib/wctype_.h: Likewise.
69540
69541 2007-05-29  Bruno Haible  <bruno@clisp.org>
69542
69543         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69544         for the moment.
69545
69546 2007-05-29  Bruno Haible  <bruno@clisp.org>
69547
69548         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69549         invocation.
69550         Reported by Eric Blake.
69551
69552 2007-05-29  Bruno Haible  <bruno@clisp.org>
69553
69554         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69555         compiling case.
69556
69557 2007-05-29  Eric Blake  <ebb9@byu.net>
69558             Bruno Haible  <bruno@clisp.org>
69559
69560         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69561         cross compiles.
69562
69563 2007-05-28  Eric Blake  <ebb9@byu.net>
69564
69565         * modules/closein-tests (test_closein_LDADD): Support test on
69566         cygwin with libtool.
69567
69568 2007-05-28  Bruno Haible  <bruno@clisp.org>
69569
69570         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69571         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69572         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69573         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69574         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69575         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69576         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69577         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69578         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69579
69580 2007-05-28  Eric Blake  <ebb9@byu.net>
69581
69582         Unconditionally include <config.h> in unit tests.
69583         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69584         * tests/test-allocsa.c, tests/test-arcfour.c,
69585         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69586         tests/test-array_list.c, tests/test-array_oset.c,
69587         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69588         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69589         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69590         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69591         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69592         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69593         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69594         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69595         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69596         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69597         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69598         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69599         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69600         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69601         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69602         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69603         test-md5.c, test-memmem.c, test-printf-posix.c,
69604         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69605         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69606         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69607         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69608         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69609         test-vasnprintf-posix2.c, test-vasnprintf.c,
69610         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69611         test-vfprintf-posix.c, test-vprintf-posix.c,
69612         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69613         test-xvasprintf.c: Likewise.
69614
69615 2007-05-28  Bruno Haible  <bruno@clisp.org>
69616
69617         * gnulib-tool (func_import): Remember the --with-tests command-line
69618         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69619         Reported by Eric Blake.
69620
69621 2007-05-28  Bruno Haible  <bruno@clisp.org>
69622
69623         * modules/ftell-tests: New file.
69624         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69625         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69626
69627         * lib/ftell.c: New file.
69628         * modules/ftell: New file.
69629         * m4/ftell.m4: New file.
69630         * doc/functions/ftell.texi: Update.
69631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69632         REPLACE_FTELL.
69633         * lib/stdio_.h (rpl_ftell): New declaration.
69634         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69635         REPLACE_FTELL.
69636
69637 2007-05-28  Eric Blake  <ebb9@byu.net>
69638
69639         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69640
69641 2007-05-28  Bruno Haible  <bruno@clisp.org>
69642
69643         * modules/fseek-tests: New file.
69644         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69645         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69646
69647         * lib/fseek.c: New file.
69648         * modules/fseek: New file.
69649         * m4/fseek.m4: New file.
69650         * doc/functions/fseek.texi: Update.
69651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69652         REPLACE_FSEEK.
69653         * lib/stdio_.h (rpl_fseek): New declaration.
69654         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69655         REPLACE_FSEEK.
69656
69657 2007-05-28  Bruno Haible  <bruno@clisp.org>
69658
69659         * lib/stdio_.h (fflush): More comments.
69660
69661 2007-05-28  Bruno Haible  <bruno@clisp.org>
69662
69663         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69664         runtime test.
69665
69666 2007-05-28  Eric Blake  <ebb9@byu.net>
69667
69668         Improve lseek module.
69669         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69670         * lib/unistd_.h (lseek): Scale back link warning message.
69671         * tests/test-lseek.c: Beef up test.
69672         * tests/test-lseek.sh: Exercise more facets of lseek.
69673         Reported by Bruno Haible.
69674
69675 2007-05-28  Bruno Haible  <bruno@clisp.org>
69676
69677         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69678         to define.
69679
69680 2007-05-27  Bruno Haible  <bruno@clisp.org>
69681
69682         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69683
69684 2007-05-27  Bruno Haible  <bruno@clisp.org>
69685
69686         * modules/openmp: New file.
69687         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69688         Noah Misch.
69689
69690 2007-05-26  Bruno Haible  <bruno@clisp.org>
69691
69692         * modules/chdir-long (Depends-on): Add fchdir.
69693         * modules/chdir-safer (Depends-on): Likewise.
69694         * modules/fts (Depends-on): Likewise.
69695         * modules/fts-lgpl (Depends-on): Likewise.
69696         * modules/openat (Depends-on): Likewise.
69697         * modules/savewd (Depends-on): Likewise.
69698
69699 2007-05-24  Eric Blake  <ebb9@byu.net>
69700
69701         Fix lseek on mingw.
69702         * modules/lseek: New module.
69703         * m4/lseek.m4: New file.
69704         * lib/lseek.c: New file.
69705         * modules/lseek-tests: New file.
69706         * tests/test-lseek.c: New file.
69707         * tests/test-lseek.sh: New file.
69708         * MODULES.html.sh: Document lseek module.
69709         * modules/fflush (Depends-on): Add lseek, fseeko.
69710         * modules/fseeko (Depends-on): Likewise.
69711         * modules/ftello (Depends-on): Likewise.
69712         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69713         broken.
69714         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69715         broken.
69716         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69717         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69718         * lib/ftello.c (rpl_ftello): Likewise.
69719         * tests/test-fseeko.c (main): Test this.
69720         * tests/test-fseeko.sh: Likewise.
69721         * tests/test-ftello.c (main): Likewise.
69722         * tests/test-ftello.sh: Likewise.
69723         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69724         implies replacing fseek.
69725         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69726         HAVE_FTELLO.
69727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69728         * modules/unistd (Makefile.am): Likewise.
69729         * lib/unistd_.h (lseek): Declare a replacement.
69730         * doc/functions/lseek.texi (lseek): Document this fix.
69731         * doc/functions/fseek.texi (fseek): Likewise.
69732         * doc/functions/ftell.texi (ftell): Likewise.
69733
69734 2007-05-24  Bruno Haible  <bruno@clisp.org>
69735
69736         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69737         in the printed representation of a NaN.
69738         * tests/test-vasprintf-posix.c (test_function): Likewise.
69739         * tests/test-snprintf-posix.h (test_function): Likewise.
69740         * tests/test-sprintf-posix.h (test_function): Likewise.
69741         Reported by Eric Blake.
69742
69743 2007-05-23  Eric Blake  <ebb9@byu.net>
69744
69745         Fix fseeko/ftello on cygwin 1.5.24.
69746         * doc/functions/fseeko.texi (fseeko): Document the fix.
69747         * doc/functions/ftello.texi (ftello): Document the fix.
69748         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69749         * doc/functions/stdout.text (stdout): New file.
69750         * doc/functions/stderr.text (stderr): New file.
69751         * doc/gnulib.texi (Function Substitutes): Use new files.
69752         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69753         prior to 1.7.0.
69754         * tests/test-ftello.c (main): Likewise for ftello.
69755         * tests/test-fseeko.sh: New file.
69756         * tests/test-ftello.sh: New file.
69757         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69758         with seekable stdin.
69759         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69761         (gl_REPLACE_FSEEKO): New macro.
69762         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69763         * modules/fseeko (Files): Distribute fseeko.c.
69764         * modules/ftello (Files): Distribute ftello.c.
69765         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69766         mode.
69767         * lib/ftello.c (rpl_ftello): New file.
69768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69769         fseeko, ftello.
69770         (gl_STDIN_LARGE_OFFSET): New macro.
69771         * modules/stdio (Makefile.am): Perform the replacement.
69772         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69773
69774 2007-05-23  Bruno Haible  <bruno@clisp.org>
69775
69776         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69777         GNULIB_POSIXCHECK is defined.
69778
69779 2007-05-21  Bruno Haible  <bruno@clisp.org>
69780
69781         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69782         Check also the output for NaN arguments. When cross-compiling, guess
69783         no on IRIX.
69784         * lib/vasnprintf.c: Update comments.
69785         * tests/test-vasnprintf-posix.c (strisnan): New function.
69786         (test_function): Use it.
69787         * tests/test-vasprintf-posix.c (strisnan): New function.
69788         (test_function): Use it.
69789         * tests/test-snprintf-posix.h (strisnan): New function.
69790         (test_function): Use it.
69791         * tests/test-sprintf-posix.h (strisnan): New function.
69792         (test_function): Use it.
69793         Reported by Eric Blake.
69794
69795 2007-05-20  Bruno Haible  <bruno@clisp.org>
69796
69797         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69798         numbers that fails on BeOS.
69799         * doc/functions/frexpl.texi: Update.
69800
69801 2007-05-20  Jim Meyering  <jim@meyering.net>
69802
69803         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69804         forced upon us by glibc-2.6.
69805
69806 2007-05-20  Bruno Haible  <bruno@clisp.org>
69807
69808         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69809         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69810         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69811         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69812         NEED_PRINTF_INFINITE.
69813         (is_infinitel): New function.
69814         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69816         gl_PREREQ_VASNPRINTF_INFINITE.
69817         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69818         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69819         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69820         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69821         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69822         gl_PREREQ_VASNPRINTF_INFINITE.
69823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69824         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69827         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69830         * doc/functions/fprintf.texi: Update.
69831         * doc/functions/printf.texi: Update.
69832         * doc/functions/snprintf.texi: Update.
69833         * doc/functions/sprintf.texi: Update.
69834         * doc/functions/vfprintf.texi: Update.
69835         * doc/functions/vprintf.texi: Update.
69836         * doc/functions/vsnprintf.texi: Update.
69837         * doc/functions/vsprintf.texi: Update.
69838
69839 2007-05-20  Bruno Haible  <bruno@clisp.org>
69840
69841         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69842         was not found in libc.
69843         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69844
69845 2007-05-20  Bruno Haible  <bruno@clisp.org>
69846
69847         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69848         printed as "-nan" instead of "nan".
69849         * tests/test-vasprintf-posix.c (test_function): Likewise.
69850         * tests/test-snprintf-posix.h (test_function): Likewise.
69851         * tests/test-sprintf-posix.h (test_function): Likewise.
69852         Needed for HP-UX 11.
69853
69854 2007-05-20  Jim Meyering  <jim@meyering.net>
69855
69856         Fix buggy test for the fchownat-deref bug.
69857         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69858         symlink required for the run-test.  Without it, this test would
69859         always declare that fchownat doesn't work, and client code would
69860         unnecessarily use the replacement function with fixed libc.
69861         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69862         Reported by Greg Schafer.
69863
69864 2007-05-19  Bruno Haible  <bruno@clisp.org>
69865
69866         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69867         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69868         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69869         Needed for IRIX 6.5 and Solaris 2.5.1.
69870
69871 2007-05-19  Bruno Haible  <bruno@clisp.org>
69872
69873         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69874         (test_function): Skip tests involving -0.0 on platforms where
69875         -0.0 = 0.0.
69876         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69877         (test_function): Skip tests involving -0.0 on platforms where
69878         -0.0 = 0.0.
69879         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69880         (test_function): Skip tests involving -0.0 on platforms where
69881         -0.0 = 0.0.
69882         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69883         (test_function): Skip tests involving -0.0 on platforms where
69884         -0.0 = 0.0.
69885         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69886         tests.
69887         * tests/test-printf-posix.h (test_function): Likewise.
69888         * tests/test-printf-posix.output: Remove all -0.0 related results.
69889         Needed for IRIX 6.5.
69890
69891 2007-05-19  Bruno Haible  <bruno@clisp.org>
69892
69893         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69894         printed as "nan0x7fffffff" instead of "nan".
69895         * tests/test-vasprintf-posix.c (test_function): Likewise.
69896         * tests/test-snprintf-posix.h (test_function): Likewise.
69897         * tests/test-sprintf-posix.h (test_function): Likewise.
69898         * tests/test-fprintf-posix.h (NaN): Remove macro.
69899         (test_function): Remove all NaN related tests.
69900         * tests/test-printf-posix.h (NaN): Remove macro.
69901         (test_function): Remove all NaN related tests.
69902         * tests/test-printf-posix.output: Remove all NaN related results.
69903         Needed for IRIX 6.5.
69904
69905 2007-05-19  Bruno Haible  <bruno@clisp.org>
69906
69907         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69908         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69909
69910 2007-05-19  Bruno Haible  <bruno@clisp.org>
69911
69912         * lib/float_.h: New file.
69913         * m4/float_h.m4: New file.
69914         * modules/float: New file.
69915         * modules/isnanl (Dependencies): Add float.
69916         * modules/isnanl-nolibm (Dependencies): Likewise.
69917         * modules/mathl (Dependencies): Likewise.
69918         * modules/printf-frexpl (Dependencies): Likewise.
69919         * modules/signbit (Dependencies): Likewise.
69920         * modules/vasnprintf (Dependencies): Likewise.
69921         * doc/headers/float.texi: Update.
69922
69923 2007-05-19  Jim Meyering  <jim@meyering.net>
69924
69925         * lib/utimens.c (gl_futimens): Rename from futimens,
69926         now that glibc-2.6 declares futimens.
69927         * lib/utimens.h: Likewise.
69928
69929 2007-05-19  Bruno Haible  <bruno@clisp.org>
69930
69931         Avoid test failures on mingw.
69932         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69933         * tests/test-printf-posix.sh: Likewise.
69934         * tests/test-vfprintf-posix.sh: Likewise.
69935         * tests/test-vprintf-posix.sh: Likewise.
69936
69937 2007-05-19  Bruno Haible  <bruno@clisp.org>
69938
69939         Fix *printf result for NaN, Inf, -0.0 on mingw.
69940         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69941         * lib/vasnprintf.c: Include math.h and isnan.h.
69942         (is_infinite_or_zero): New function.
69943         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69944         values in the %f, %F, %e, %E, %g, %G directives.
69945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69946         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69947         gl_PRINTF_INFINITE and test its result. Invoke
69948         gl_PREREQ_VASNPRINTF_INFINITE.
69949         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69950         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69951         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69952         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69953         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69954         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69955         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69956         * doc/functions/fprintf.texi: Update.
69957         * doc/functions/printf.texi: Update.
69958         * doc/functions/snprintf.texi: Update.
69959         * doc/functions/sprintf.texi: Update.
69960         * doc/functions/vfprintf.texi: Update.
69961         * doc/functions/vprintf.texi: Update.
69962         * doc/functions/vsnprintf.texi: Update.
69963         * doc/functions/vsprintf.texi: Update.
69964
69965 2007-05-19  Bruno Haible  <bruno@clisp.org>
69966
69967         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69968         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69969         Instead of multiplying with 10^k, set extra_zeroes to k.
69970         (scale10_round_long_double): Remove function.
69971
69972 2007-05-18  Bruno Haible  <bruno@clisp.org>
69973
69974         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69975         introduced on 2007-05-06.
69976
69977 2007-05-18  Bruno Haible  <bruno@clisp.org>
69978
69979         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69980         %g directives.
69981         * tests/test-vasprintf-posix.c (test_function): Likewise.
69982         * tests/test-snprintf-posix.h (test_function): Likewise.
69983         * tests/test-sprintf-posix.h (test_function): Likewise.
69984
69985 2007-05-18  Bruno Haible  <bruno@clisp.org>
69986
69987         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69988         (strmatch): New function.
69989         (test_function): Test the %f directive on numbers of various exponents.
69990         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69991         (strmatch): New function.
69992         (test_function): Test the %f directive on numbers of various exponents.
69993         * tests/test-snprintf-posix.h (strmatch): New function.
69994         (test_function): Test the %f directive on numbers of various exponents.
69995         * tests/test-sprintf-posix.h (strmatch): New function.
69996         (test_function): Test the %f directive on numbers of various exponents.
69997         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69998         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69999         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70000         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70001
70002 2007-05-18  Bruno Haible  <bruno@clisp.org>
70003
70004         Add support for 'long double' number output.
70005         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70006         * lib/vasnprintf.c: Include math.h and float+.h.
70007         (mp_limb_t): New type.
70008         (GMP_LIMB_BITS): New macro.
70009         (mp_twolimb_t): New type.
70010         (GMP_TWOLIMB_BITS): New macro.
70011         (mpn_t): New type.
70012         (multiply, divide, convert_to_decimal, decode_long_double,
70013         scale10_round_long_double, scale10_round_decimal_long_double,
70014         floorlog10l): New functions.
70015         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70016         for the %f, %F, %e, %E, %g, %G directives.
70017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70018         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70019         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70020         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70023         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70025         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70026         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70027         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70028         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70029         * modules/snprintf-posix (Depends-on): Likewise.
70030         * modules/sprintf-posix (Depends-on): Likewise.
70031         * modules/vasnprintf-posix (Depends-on): Likewise.
70032         * modules/vasprintf-posix (Depends-on): Likewise.
70033         * modules/vfprintf-posix (Depends-on): Likewise.
70034         * modules/vsnprintf-posix (Depends-on): Likewise.
70035         * modules/vsprintf-posix (Depends-on): Likewise.
70036         * modules/vasnprintf (Files): Add lib/float+.h.
70037         * doc/functions/fprintf.texi: Update.
70038         * doc/functions/printf.texi: Update.
70039         * doc/functions/snprintf.texi: Update.
70040         * doc/functions/sprintf.texi: Update.
70041         * doc/functions/vfprintf.texi: Update.
70042         * doc/functions/vprintf.texi: Update.
70043         * doc/functions/vsnprintf.texi: Update.
70044         * doc/functions/vsprintf.texi: Update.
70045
70046 2007-05-18  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70049
70050 2007-05-18  Bruno Haible  <bruno@clisp.org>
70051
70052         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70053         for printing 64-bit integers. Needed for mingw.
70054
70055 2007-05-18  Bruno Haible  <bruno@clisp.org>
70056
70057         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70058         gl_FUNC_FREXPL_WORKS.
70059         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70060
70061 2007-05-18  Bruno Haible  <bruno@clisp.org>
70062
70063         * modules/frexpl-nolibm-tests: New file.
70064
70065         * modules/frexpl-nolibm: New file.
70066         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70067
70068 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70071         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70072         GCC 4.2, which otherwise issues a lot of warnings.
70073         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70074         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70075         Likewise.
70076         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70077         * modules/iconv_open (iconv.h): Likewise.
70078         * modules/locale (locale.h): Likewise.
70079         * modules/netinet_in (netinet/in.h): Likewise.
70080         * modules/sys_select (sys_select.h): Likewise.
70081         * modules/sys_socket (sys/socket.h): Likewise.
70082         * modules/sys_stat (sys/stat.h): Likewise.
70083         * modules/sysexits (sysexits.h): Likewise.
70084         * modules/unistd (unistd.h): Likewise.
70085
70086 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70087
70088         * modules/closein-tests (Makefile.am): Distribute
70089         `test-closein.sh'.
70090
70091 2007-05-17  Bruno Haible  <bruno@clisp.org>
70092
70093         * tests/test-printf-posix.output: Renamed from
70094         tests/test-fprintf-posix.out.
70095         * modules/fprintf-posix-tests: Update.
70096         * modules/printf-posix-tests: Update.
70097         * modules/vfprintf-posix-tests: Update.
70098         * modules/vprintf-posix-tests: Update.
70099         * tests/test-fprintf-posix.sh: Update.
70100         * tests/test-printf-posix.sh: Update.
70101         * tests/test-vfprintf-posix.sh: Update.
70102         * tests/test-vprintf-posix.sh: Update.
70103         Reported by Ralf Wildenhues.
70104
70105 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70106
70107         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70108         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70109         GCC 4.2, which otherwise issues a lot of warnings.
70110         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70111         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70112         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70113         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70114         it should no longer be needed.
70115         * lib/string_.h: Likewise.
70116         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70117         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70118         * modules/inttypes (inttypes.h): Likewise.
70119         * modules/math (math.h): Likewise.
70120         * modules/search (search.h): Likewise.
70121         * modules/signal (signal.h): Likewise.
70122         * modules/stdint (stdint.h): Likewise.
70123         * modules/stdio (stdio.h): Likewise.
70124         * modules/stdlib (stdlib.h): Likewise.
70125         * modules/string (string.h): Likewise.
70126         * modules/sys_time (sys/time.h): Likewise.
70127         * modules/time (time.h): Likewise.
70128         * modules/wchar (wchar.h): Likewise.
70129         * modules/wctype (wtype.h): Likewise.
70130
70131 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70132
70133         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70134
70135 2007-05-13  Bruno Haible  <bruno@clisp.org>
70136
70137         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70138         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70139         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70140         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70141         (gl_PREREQ_STRTOK_R): Don't require it here.
70142
70143 2007-05-13  Bruno Haible  <bruno@clisp.org>
70144
70145         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70146         when used in C++ mode.
70147
70148 2007-05-12  Bruno Haible  <bruno@clisp.org>
70149
70150         * lib/linebuffer.h: Tweak doc.
70151         * lib/linebuffer.c: Likewise.
70152
70153 2007-05-12  James Youngman  <jay@gnu.org>
70154
70155         * lib/linebuffer.c (readlinebuffer_delim): New function,
70156         like readlinebuffer, but use a caller-specified delimiter.
70157         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70158         as the delimiter.
70159         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70160
70161 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70162
70163         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70164         * modules/openat (Files): Remove openat-die.c.
70165         (Depends-on): Add openat-die.
70166         * modules/openat-die: New module.
70167
70168 2007-05-06  Bruno Haible  <bruno@clisp.org>
70169
70170         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70171         Update with info about Cygwin.
70172         * doc/functions/fprintf.texi: Update.
70173         * doc/functions/printf.texi: Update.
70174         * doc/functions/snprintf.texi: Update.
70175         * doc/functions/sprintf.texi: Update.
70176         * doc/functions/vfprintf.texi: Update.
70177         * doc/functions/vprintf.texi: Update.
70178         * doc/functions/vsnprintf.texi: Update.
70179         * doc/functions/vsprintf.texi: Update.
70180         Reported by Eric Blake.
70181
70182 2007-05-06  Bruno Haible  <bruno@clisp.org>
70183
70184         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70185         padding ourselves for the floating-point directives.
70186         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70189         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70190         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70191         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70193         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70194         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70195         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70196         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70197         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70198         * tests/test-snprintf-posix.h (test_function): Also check the width
70199         and some flags in the %f directive.
70200         * tests/test-sprintf-posix.h (test_function): Likewise.
70201         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70202         * tests/test-vasprintf-posix.c (test_function): Likewise.
70203         * doc/functions/fprintf.texi: Update.
70204         * doc/functions/printf.texi: Update.
70205         * doc/functions/snprintf.texi: Update.
70206         * doc/functions/sprintf.texi: Update.
70207         * doc/functions/vfprintf.texi: Update.
70208         * doc/functions/vprintf.texi: Update.
70209         * doc/functions/vsnprintf.texi: Update.
70210         * doc/functions/vsprintf.texi: Update.
70211
70212 2007-05-06  Bruno Haible  <bruno@clisp.org>
70213
70214         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70215         pass the ' flag character to sprintf or snprintf.
70216         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70219         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70220         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70222         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70225         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70228         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70229         flag.
70230         * tests/test-sprintf-posix.h (test_function): Likewise.
70231         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70232         * tests/test-vasprintf-posix.c (test_function): Likewise.
70233         * doc/functions/fprintf.texi: Update.
70234         * doc/functions/printf.texi: Update.
70235         * doc/functions/snprintf.texi: Update.
70236         * doc/functions/sprintf.texi: Update.
70237         * doc/functions/vfprintf.texi: Update.
70238         * doc/functions/vprintf.texi: Update.
70239         * doc/functions/vsnprintf.texi: Update.
70240         * doc/functions/vsprintf.texi: Update.
70241
70242 2007-05-01  Bruno Haible  <bruno@clisp.org>
70243
70244         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70245
70246 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70247
70248         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70249         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70250
70251 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70252
70253         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70254         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70256
70257 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70258
70259         * lib/argp-help.c (struct hol_entry): New member `ord'.
70260         (HOL_ENTRY_PTRCMP): Use ord for comparison
70261         (hol_sort): Initialize ord.
70262
70263 2007-05-01  Bruno Haible  <bruno@clisp.org>
70264
70265         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70266         Reported by Eric Blake.
70267         * doc/gnulib.texi (Function Substitutes): Update.
70268
70269 2007-05-01  Bruno Haible  <bruno@clisp.org>
70270
70271         * doc/functions.texi: Remove file, now redundant through
70272         doc/functions/*.texi.
70273
70274 2007-05-01  Bruno Haible  <bruno@clisp.org>
70275
70276         * modules/argp (Depends-on): Add sleep.
70277
70278 2007-05-01  Bruno Haible  <bruno@clisp.org>
70279
70280         * modules/sleep-tests: New file.
70281         * tests/test-sleep.c: New file.
70282
70283         * modules/sleep: New file.
70284         * lib/sleep.c: New file.
70285         * m4/sleep.m4: New file.
70286         * lib/unistd_.h (sleep): New declaration.
70287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70288         HAVE_SLEEP.
70289         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70290         * doc/functions/sleep.texi: Document the sleep module.
70291
70292 2007-05-01  Bruno Haible  <bruno@clisp.org>
70293
70294         * lib/sigprocmask.h: Remove file.
70295         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70296         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70297         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70298         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70299         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70300         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70301         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70302         HAVE_SIGSET_T as a shell variable.
70303         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70304         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70305         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70306         (Depends-on): Add signal. Remove verify.
70307         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70308         (Include): Mention <signal.h> instead of sigprocmask.h.
70309         * NEWS: Mention the change.
70310         * lib/fatal-signal.c: Don't include sigprocmask.h.
70311
70312 2007-05-01  Bruno Haible  <bruno@clisp.org>
70313
70314         * modules/signal: New file.
70315         * lib/signal_.h: New file.
70316         * m4/signal_h.m4: New file.
70317
70318 2007-05-01  Bruno Haible  <bruno@clisp.org>
70319
70320         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70321         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70322         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70323         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70324
70325 2007-05-01  Bruno Haible  <bruno@clisp.org>
70326
70327         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70328         configure time.
70329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70330         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70331         * modules/sys_stat (Makefile.am): Substitute their values into
70332         sys/stat.h.
70333
70334 2007-05-01  Bruno Haible  <bruno@clisp.org>
70335
70336         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70337         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70338         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70339
70340 2007-05-01  Bruno Haible  <bruno@clisp.org>
70341
70342         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70343         'assert' module here.
70344
70345 2007-05-01  Bruno Haible  <bruno@clisp.org>
70346
70347         * doc/functions/*.texi: New files.
70348         * doc/functions/google-ranking.txt: New file.
70349         * doc/gnulib.texi (Function Substitutes): New chapter.
70350         (ctime, inet_ntoa): Remove sections.
70351         * doc/ctime.texi: Remove file.
70352         * doc/inet_ntoa.texi: Remove file.
70353         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70354         dependencies.
70355         (%.info): New rule, specifying a --reference-limit.
70356
70357 2007-05-01  Bruno Haible  <bruno@clisp.org>
70358
70359         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70360
70361 2007-05-01  Bruno Haible  <bruno@clisp.org>
70362
70363         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70364         the portability of 'mkdir' to mingw systems.
70365
70366 2007-05-01  Bruno Haible  <bruno@clisp.org>
70367
70368         * doc/headers/google-ranking.txt: New file.
70369
70370 2007-04-30  Eric Blake  <ebb9@byu.net>
70371
70372         Prefer fseeko to fseek.
70373         * modules/getpass (Depends-on): Add fseeko.
70374         * lib/getpass.c (getpass): Use fseeko, not fseek.
70375
70376 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70377
70378         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70379         assumes the sorting is stable, while most qsort implementations
70380         are not.  Use argument addresses to ensure they never compare as
70381         equal.
70382
70383         * tests/test-argp-2.sh (usage-indent test): Fix output
70384         (func_compare): Restore diff options
70385         * tests/test-argp.c: Restore #include "progname.h"
70386
70387 2007-04-29  Bruno Haible  <bruno@clisp.org>
70388
70389         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70390         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70391         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70393         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70394         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70395         (TESTS, check_PROGRAMS): Add test-snprintf.
70396         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70397         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70398         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70399         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70400         assertions that fail on HP-UX, OSF/1, or IRIX.
70401         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70402
70403 2007-04-29  Bruno Haible  <bruno@clisp.org>
70404
70405         * MODULES.html.sh (posix_functions): Remove 'contents'.
70406
70407 2007-04-29  Karl Berry  <karl@gnu.org>
70408
70409         * config/srclist.txt (gendocs_template_min): new entry.
70410
70411 2007-04-29  Bruno Haible  <bruno@clisp.org>
70412
70413         Work around fpurge bug on BSD systems.
70414         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70415         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70416         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70417         fpurge to rpl_fpurge if the system already has this function.
70418         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70419         the case where the system already has this function. Correct invariants
70420         on BSD systems.
70421         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70422         BSD systems.
70423
70424 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70425
70426         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70427         proposed by Sven Verdoolaege.
70428
70429         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70430         options.
70431         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70432         (usage and help tests): Update
70433
70434 2007-04-29  Bruno Haible  <bruno@clisp.org>
70435
70436         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70437         Print more information in case of failure. Disable a test on BeOS.
70438
70439 2007-04-29  Bruno Haible  <bruno@clisp.org>
70440
70441         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70442         This helps debugging on systems on which no gdb is available.
70443
70444 2007-04-29  Bruno Haible  <bruno@clisp.org>
70445
70446         * lib/freading.h: Improve comments.
70447         * lib/fwriting.h: Likewise.
70448         * tests/test-freading.c (main): Don't check freading immediately after
70449         repositioning. Needed for glibc.
70450
70451 2007-04-29  Bruno Haible  <bruno@clisp.org>
70452
70453         * lib/freading.c (freading): Trivial simplification.
70454
70455 2007-04-28  Bruno Haible  <bruno@clisp.org>
70456
70457         * tests/test-fwriting.c (main): Also test the interaction between
70458         fflush and fwriting.
70459         * modules/fwriting-tests (Depends-on): Add fflush.
70460
70461         * tests/test-freading.c (main): Also test the interaction between
70462         fflush and freading.
70463         * modules/freading-tests (Depends-on): Add fflush.
70464
70465 2007-04-28  Bruno Haible  <bruno@clisp.org>
70466
70467         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70468         fseeko and ftello.
70469         Suggested by Eric Blake.
70470
70471 2007-04-28  Jim Meyering  <jim@meyering.net>
70472
70473         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70474         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70475         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70476
70477 2007-04-27  Eric Blake  <ebb9@byu.net>
70478
70479         * doc/headers/assert.texi (assert.h): Document assert module use.
70480
70481 2007-04-27  Bruno Haible  <bruno@clisp.org>
70482
70483         * doc/headers/*.texi: New files.
70484         * doc/gnulib.texi (Header File Substitutes): New chapter.
70485         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70486         dependencies.
70487         (standards.info ,standards.html, standards.dvi): Update dependencies.
70488         (mostlyclean, clean): New targets.
70489
70490 2007-04-27  Bruno Haible  <bruno@clisp.org>
70491
70492         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70493         * modules/sysexits (Files, Makefile.am): Update.
70494
70495         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70496         * modules/sys_socket (Files, Makefile.am): Update.
70497
70498         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70499         * modules/sys_stat (Files, Makefile.am): Update.
70500
70501 2007-04-27  Eric Blake  <ebb9@byu.net>
70502
70503         * lib/freading.h: Improve comments.
70504         * lib/fwriting.h: Likewise.
70505         * lib/fflush.c: Likewise.
70506
70507         Fix closein for mingw.
70508         * modules/closein-tests: Add tests for closein.
70509         * tests/test-closein.c: New file.
70510         * tests/test-closein.sh: Likewise.
70511         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70512         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70513
70514 2007-04-27  Bruno Haible  <bruno@clisp.org>
70515
70516         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70517         version is < 6.
70518         * lib/math_.h [__DECC]: Likewise.
70519         * lib/stdio_.h [__DECC]: Likewise.
70520         * lib/stdlib_.h [__DECC]: Likewise.
70521         * lib/string_.h [__DECC]: Likewise.
70522         * lib/time_.h [__DECC]: Likewise.
70523         * lib/wchar_.h [__DECC]: Likewise.
70524         * lib/wctype_.h [__DECC]: Likewise.
70525
70526 2007-04-27  Bruno Haible  <bruno@clisp.org>
70527
70528         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70529
70530 2007-04-27  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/fflush.c: Add comments.
70533         * modules/fpurge-tests (Depends-on): Add fflush.
70534         * modules/freadable-tests (Depends-on): Likewise.
70535         * modules/fwritable-tests (Depends-on): Likewise.
70536
70537 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70538
70539         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70540         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70541         Report by Bruno Haible <bruno@clisp.org>.
70542
70543 2007-04-26  Eric Blake  <ebb9@byu.net>
70544
70545         Fix fflush on mingw.
70546         * modules/fflush (Depends-on): Add freading.
70547         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70548         but unread data.
70549
70550 2007-04-26  Eric Blake  <ebb9@byu.net>
70551         and Bruno Haible  <bruno@clisp.org>
70552
70553         Implement freading and fwriting.
70554         * lib/freading.c: New file.
70555         * lib/freading.h: Likewise.
70556         * m4/freading.m4: Likewise.
70557         * modules/freading: Likewise.
70558         * modules/freading-tests: Likewise.
70559         * tests/test-freading.c: Likewise.
70560         * lib/fwriting.c: New file.
70561         * lib/fwriting.h: Likewise.
70562         * m4/fwriting.m4: Likewise.
70563         * modules/fwriting: Likewise.
70564         * modules/fwriting-tests: Likewise.
70565         * tests/test-fwriting.c: Likewise.
70566         * MODULES.html.sh (File stream based Input/Output): Mention them.
70567
70568 2007-04-26  Bruno Haible  <bruno@clisp.org>
70569
70570         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70571         'long' when we assume it.
70572         Suggested by Eric Blake.
70573
70574 2007-04-26  Bruno Haible  <bruno@clisp.org>
70575
70576         Ensure fseeko, ftello are declared on glibc systems.
70577         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70578         * modules/fseeko (configure.ac-early): Likewise.
70579         * modules/ftello (configure.ac-early): Likewise.
70580         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70581         AC_FUNC_FSEEKO for this.
70582         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70583         (gl_CHECK_FSEEKO): Remove macro.
70584
70585 2007-04-26  Bruno Haible  <bruno@clisp.org>
70586
70587         * tests/test-fflush.c (main): Also check the ftell result after
70588         fflush and fseek/fseeko.
70589         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70590         file descriptor position cache in the stream.
70591         * lib/fseeko.c (rpl_fseeko): Likewise.
70592
70593 2007-04-26  Bruno Haible  <bruno@clisp.org>
70594
70595         * modules/fflush-tests (Depends-on): Add fseeko.
70596
70597 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70598             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70599
70600         * lib/argz_.h: ensure error_t definition is obtained in same
70601         mechanism system argz.h would have.
70602         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70603         argz facilities are known bad.  Err on the side of caution if
70604         cross-compiling.
70605
70606 2007-04-25  Eric Blake  <ebb9@byu.net>
70607
70608         * lib/fpurge.c (includes): Use stdlib.h for free.
70609         * tests/test-fflush.c (main): Also test fflush-fseeko.
70610
70611 2007-04-25  Bruno Haible  <bruno@clisp.org>
70612
70613         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70614         * lib/fseeko.c: New file.
70615         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70616         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70617         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70618         gl_FUNC_FSEEKO.
70619         (gl_FUNC_FSEEKO): Invoke it.
70620         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70621         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70622         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70623
70624 2007-04-25  Bruno Haible  <bruno@clisp.org>
70625
70626         * modules/fflush (Depends-on): Add ftello.
70627
70628 2007-04-25  Bruno Haible  <bruno@clisp.org>
70629
70630         * modules/ftello-tests: New file.
70631         * tests/test-ftello.c: New file.
70632
70633         * modules/ftello: New file.
70634         * m4/ftello.m4: New file.
70635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70636         HAVE_FTELLO.
70637         * lib/stdio_.h (ftello): New declaration.
70638         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70639         HAVE_FTELLO.
70640
70641 2007-04-25  Bruno Haible  <bruno@clisp.org>
70642
70643         * modules/fseeko-tests: New file.
70644         * tests/test-fseeko.c: New file.
70645
70646         * modules/fseeko: New file.
70647         * m4/fseeko.m4: New file.
70648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70649         HAVE_FSEEKO.
70650         * lib/stdio_.h (fseeko): New declaration.
70651         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70652         HAVE_FSEEKO.
70653
70654 2007-04-25  Bruno Haible  <bruno@clisp.org>
70655
70656         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70657
70658 2007-04-25  Bruno Haible  <bruno@clisp.org>
70659
70660         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70661         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70662         * tests/test-unistd.c: Likewise.
70663         * tests/test-fcntl.c: Likewise.
70664
70665 2007-04-23  Eric Blake  <ebb9@byu.net>
70666
70667         * lib/fflush.c: Fix missing include.
70668         Reported by Bruno Haible.
70669
70670 2007-04-23  Bruno Haible  <bruno@clisp.org>
70671
70672         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70673         Reported by Eric Blake.
70674
70675 2007-04-23  Bruno Haible  <bruno@clisp.org>
70676
70677         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70678
70679 2007-04-23  Bruno Haible  <bruno@clisp.org>
70680
70681         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70682
70683 2007-04-23  Bruno Haible  <bruno@clisp.org>
70684
70685         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70686         Needed on HP-UX 11.
70687
70688 2007-04-16  Eric Blake  <ebb9@byu.net>
70689
70690         Make fflush rely on fpurge.
70691         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70692         open coding all variants.
70693         * modules/fflush (Depends-on): Add fpurge and unistd.
70694         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70695         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70696
70697         Fix --with-tests compilation on cygwin.
70698         * modules/argmatch-tests (Makefile.am): List gnulib library first
70699         in LDADD.
70700         * modules/argp-tests (Makefile.am): Likewise.
70701         * modules/array-list-tests (Makefile.am): Likewise.
70702         * modules/array-oset-tests (Makefile.am): Likewise.
70703         * modules/avltree-list-tests (Makefile.am): Likewise.
70704         * modules/avltree-oset-tests (Makefile.am): Likewise.
70705         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70706         * modules/carray-list-tests (Makefile.am): Likewise.
70707         * modules/dirname-tests (Makefile.am): Likewise.
70708         * modules/frexp-tests (Makefile.am): Likewise.
70709         * modules/isnanl-tests (Makefile.am): Likewise.
70710         * modules/linked-list-tests (Makefile.am): Likewise.
70711         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70712         * modules/lock-tests (Makefile.am): Likewise.
70713         * modules/rbtree-list-tests (Makefile.am): Likewise.
70714         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70715         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70716         * modules/tls-tests (Makefile.am): Likewise.
70717         * modules/tsearch-tests (Makefile.am): Likewise.
70718         * modules/xvasprintf-tests (Makefile.am): Likewise.
70719
70720         Fix fpurge for cygwin.
70721         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70722         value.
70723         * modules/fpurge-tests (Depends-on): Clean up trash.
70724
70725 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70726
70727         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70728
70729         * m4/autobuild.m4: Re-indent.
70730
70731 2007-04-13  Bruno Haible  <bruno@clisp.org>
70732
70733         * modules/fpurge-tests: New file.
70734         * tests/test-fpurge.c: New file.
70735
70736         * modules/fpurge: New file.
70737         * lib/fpurge.h: New file.
70738         * lib/fpurge.c: New file.
70739         * m4/fpurge.m4: New file.
70740
70741 2007-04-13  Bruno Haible  <bruno@clisp.org>
70742
70743         * modules/fbufmode-tests: New file.
70744         * tests/test-fbufmode.c: New file.
70745
70746         * modules/fbufmode: New file.
70747         * lib/fbufmode.h: New file.
70748         * lib/fbufmode.c: New file.
70749         * m4/fbufmode.m4: New file.
70750
70751 2007-04-13  Bruno Haible  <bruno@clisp.org>
70752
70753         * modules/fwritable-tests: New file.
70754         * tests/test-fwritable.c: New file.
70755
70756         * modules/fwritable: New file.
70757         * lib/fwritable.h: New file.
70758         * lib/fwritable.c: New file.
70759         * m4/fwritable.m4: New file.
70760
70761 2007-04-13  Bruno Haible  <bruno@clisp.org>
70762
70763         * modules/freadable-tests: New file.
70764         * tests/test-freadable.c: New file.
70765
70766         * modules/freadable: New file.
70767         * lib/freadable.h: New file.
70768         * lib/freadable.c: New file.
70769         * m4/freadable.m4: New file.
70770
70771 2007-04-13  Bruno Haible  <bruno@clisp.org>
70772
70773         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70774         MOSTLYCLEANFILES.
70775
70776 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70779         gzip bootstrap.conf to avoid dragging in i18n machinery.
70780         (gnulib_tool_option): Use it.
70781
70782 2007-04-13  Bruno Haible  <bruno@clisp.org>
70783
70784         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70785         %F directives.
70786         * tests/test-vasprintf-posix.c (test_function): Likewise.
70787         * tests/test-snprintf-posix.h (test_function): Likewise.
70788         * tests/test-sprintf-posix.h (test_function): Likewise.
70789         * tests/test-fprintf-posix.h (test_function): Likewise.
70790         * tests/test-printf-posix.h (test_function): Likewise.
70791         * tests/test-fprintf-posix.out: Likewise.
70792
70793 2007-04-13  Bruno Haible  <bruno@clisp.org>
70794
70795         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70796         * modules/tls-tests (configure.ac): Likewise.
70797         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70798
70799 2007-04-13  Bruno Haible  <bruno@clisp.org>
70800
70801         * lib/tls.c (glthread_tls_get): Fix return type.
70802         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70803
70804 2007-04-12  Eric Blake  <ebb9@byu.net>
70805
70806         * modules/gettime (Depends-on): Remove gettime.
70807         Reported by Dmitry V. Levin.
70808
70809 2007-04-12  Bruno Haible  <bruno@clisp.org>
70810
70811         * modules/fflush (Include): Mention <stdio.h>.
70812         * modules/strtoimax (Include): Mention <inttypes.h>.
70813         * modules/strtoumax (Include): Likewise.
70814
70815 2007-04-12  Eric Blake  <ebb9@byu.net>
70816
70817         * .cvsignore: New file.
70818         * .gitignore: Likewise.
70819
70820 2007-04-12  Bruno Haible  <bruno@clisp.org>
70821
70822         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70823         not before, since $(LDADD) often contains libgnu.a.
70824         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70825         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70826         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70827         Needed on Cygwin.
70828
70829 2007-04-12  Eric Blake  <ebb9@byu.net>
70830
70831         Work around glibc's failure to flush stdin on fclose.
70832         * lib/closein.c (close_stdin): Flush stdin before closing.
70833
70834         Work around glibc's failure to reset seekable stdin on exit.
70835         * modules/closein: New module.
70836         * lib/closein.c: New file.
70837         * lib/closein.h: Likewise.
70838         * m4/closein.m4: Likewise.
70839         * MODULES.html.sh (File stream based Input/Output): Document it.
70840
70841 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70842
70843         * gnulib-tool: Rename generated 'autobuild' script to
70844         'do-autobuild' in --create-megatestdir output.
70845
70846         * doc/gnulib.texi (Build robot for gnulib): Fix.
70847
70848 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70849
70850         * modules/sysexits (Depends-on): Add absolute-header.
70851
70852 2007-04-12  Eric Blake  <ebb9@byu.net>
70853
70854         No need to preserve errno on success.
70855         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70856         Reported by Bruno Haible.
70857
70858 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70859
70860         * MODULES.html.sh (Support for maintaining and releasing
70861         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70862
70863 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70864
70865         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70866
70867 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70868
70869         * modules/autobuild: New module.
70870
70871         * m4/autobuild.m4: New file.
70872
70873 2007-04-11  Bruno Haible  <bruno@clisp.org>
70874
70875         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70876         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70877         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70879         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70880         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70881         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70882         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70883         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70884         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70885         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70886         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70887         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70889         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70890         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70891         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70892         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70893         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70895         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70896         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70898         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70899         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70901         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70902         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70903         Reported by Eric Blake.
70904
70905 2007-04-11  Bruno Haible  <bruno@clisp.org>
70906
70907         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70908
70909 2007-04-10  Bruno Haible  <bruno@clisp.org>
70910
70911         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70912         for NaN and Infinity. Needed on FreeBSD 6.1.
70913         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70914         regarding results for "%010a" of Infinity and NaN.
70915         * tests/test-vasprintf-posix.c (test_function): Likewise.
70916         * tests/test-snprintf-posix.h (test_function): Likewise.
70917         * tests/test-sprintf-posix.h (test_function): Likewise.
70918         * tests/test-fprintf-posix.h (test_function): Likewise.
70919         * tests/test-printf-posix.h (test_function): Likewise.
70920         * tests/test-fprintf-posix.out: Likewise.
70921
70922 2007-04-10  Bruno Haible  <bruno@clisp.org>
70923
70924         * modules/locale-tests: New file.
70925         * tests/test-locale.c: New file.
70926
70927         * modules/locale: New file.
70928         * lib/locale_.h: New file.
70929         * m4/locale_h.m4: New file.
70930
70931 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70932             Bruno Haible  <bruno@clisp.org>
70933
70934         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70935         be determined, test for availability of the copysignf, copysign,
70936         copysignl functions.
70937         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70938         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70939         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70940
70941 2007-04-09  Eric Blake  <ebb9@byu.net>
70942
70943         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70944         * modules/stdio (Makefile.am): Support fflush.
70945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70946         * modules/fflush: New file.
70947         * lib/fflush.c: Likewise.
70948         * m4/fflush.m4: Likewise.
70949         * modules/fflush-tests: New test.
70950         * tests/test-fflush.c: Likewise.
70951         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70952
70953 2007-04-06  Bruno Haible  <bruno@clisp.org>
70954
70955         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70956         (VASNPRINTF): Use signbit for faster determination whether to print a
70957         minus sign.
70958         * modules/vasnprintf (Files): Remove lib/float+.h.
70959         * modules/fprintf-posix (Depends-on): Add signbit.
70960         * modules/snprintf-posix (Depends-on): Likewise.
70961         * modules/sprintf-posix (Depends-on): Likewise.
70962         * modules/vasnprintf-posix (Depends-on): Likewise.
70963         * modules/vasprintf-posix (Depends-on): Likewise.
70964         * modules/vfprintf-posix (Depends-on): Likewise.
70965         * modules/vsnprintf-posix (Depends-on): Likewise.
70966         * modules/vsprintf-posix (Depends-on): Likewise.
70967
70968 2007-04-06  Bruno Haible  <bruno@clisp.org>
70969
70970         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70971         * tests/test-frexpl.c (main): Likewise.
70972         * tests/test-ldexpl.c (main): Likewise.
70973         * modules/frexp-tests (Depends-on): Add signbit.
70974         * modules/frexpl-tests (Depdends-on): Likewise.
70975         * modules/ldexpl-tests (Depdends-on): Likewise.
70976
70977 2007-04-06  Bruno Haible  <bruno@clisp.org>
70978
70979         * modules/signbit-tests: New file.
70980         * tests/test-signbit.c: New file.
70981
70982         * modules/signbit: New file.
70983         * lib/signbitf.c: New file.
70984         * lib/signbitd.c: New file.
70985         * lib/signbitl.c: New file.
70986         * m4/signbit.m4: New file.
70987         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70988         (signbit): New macro.
70989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70990         REPLACE_SIGNBIT.
70991         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70992         REPLACE_FREXPL into math.h.
70993
70994 2007-04-06  Bruno Haible  <bruno@clisp.org>
70995
70996         * modules/isnanf-nolibm-tests: New file.
70997         * tests/test-isnanf.c: New file.
70998
70999         * modules/isnanf-nolibm: New file.
71000         * lib/isnanf.h: New file.
71001         * lib/isnanf.c: New file.
71002         * lib/isnan.c: Consider the USE_FLOAT macro.
71003         * m4/isnanf.m4: New file.
71004
71005 2007-04-06  Bruno Haible  <bruno@clisp.org>
71006
71007         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71008         (Link): New section.
71009
71010         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71011
71012 2007-04-06  Bruno Haible  <bruno@clisp.org>
71013
71014         Assume the 'long double' type.
71015         * m4/longdouble.m4: Remove file.
71016         * config/srclist.txt: Don't mention longdouble.m4.
71017         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71018         * lib/float+.h: Likewise.
71019         * lib/frexp.c: Likewise.
71020         * lib/printf-args.h: Likewise.
71021         * lib/printf-args.c: Likewise.
71022         * lib/printf-frexp.c: Likewise.
71023         * lib/printf-parse.c: Likewise.
71024         * lib/vasnprintf.c: Likewise.
71025         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71026         * m4/intl.m4: Likewise.
71027         * m4/isnanl.m4: Likewise.
71028         * m4/printf.m4: Likewise.
71029         * m4/printf-frexpl.m4: Likewise.
71030         * m4/vasnprintf.m4: Likewise.
71031         * modules/allocsa (Files): Remove m4/longdouble.m4.
71032         * modules/gettext (Files): Likewise.
71033         * modules/relocatable-prog-wrapper (Files): Likewise.
71034         * modules/vasnprintf (Files): Likewise.
71035         * modules/isnanl (Files): Likewise.
71036         (Include): Simplify.
71037         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71038         (Include): Simplify.
71039         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71040         (Include): Simplify.
71041         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71042         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71043         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71044         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71045         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71046         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71047         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71048         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71049         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71050         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71051         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71052         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71053         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71054         * tests/test-isnanl.c: Likewise.
71055         * tests/test-snprintf-posix.h: Likewise.
71056         * tests/test-sprintf-posix.h: Likewise.
71057         * tests/test-vasnprintf-posix.c: Likewise.
71058         * tests/test-vasnprintf-posix2.c: Likewise.
71059         * tests/test-vasprintf-posix.c: Likewise.
71060
71061 2007-04-06  Bruno Haible  <bruno@clisp.org>
71062
71063         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71064         * lib/math_.h [__DECC]: Include the overridden include file through
71065         #include_next, outside the double-inclusion guard.
71066         * lib/stdio_.h [__DECC]: Likewise.
71067         * lib/stdlib_.h [__DECC]: Likewise.
71068         * lib/string_.h [__DECC]: Likewise.
71069         * lib/time_.h [__DECC]: Likewise.
71070         * lib/wchar_.h [__DECC]: Likewise.
71071         * lib/wctype_.h [__DECC]: Likewise.
71072         * lib/inttypes_.h [__DECC]: Likewise.
71073         Reported by Albert Chin <china@thewrittenword.com> in
71074         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71075
71076 2007-04-04  Eric Blake  <ebb9@byu.net>
71077
71078         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71079         1.5.x.
71080
71081 2007-04-04  Bruno Haible  <bruno@clisp.org>
71082
71083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71084         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71085
71086 2007-04-04  Bruno Haible  <bruno@clisp.org>
71087
71088         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71089         results for "%010a" of Infinity and NaN.
71090         * tests/test-vasprintf-posix.c (test_function): Likewise.
71091         * tests/test-snprintf-posix.h (test_function): Likewise.
71092         * tests/test-sprintf-posix.h (test_function): Likewise.
71093         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71094         * tests/test-printf-posix.h (test_function): Likewise.
71095         * tests/test-fprintf-posix.out: Update.
71096         Needed for FreeBSD 6.1.
71097
71098 2007-04-04  Bruno Haible  <bruno@clisp.org>
71099
71100         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71101         directly used by the gnulib modules nor by gnulib-tool.
71102
71103 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71104
71105         * DEPENDENCIES: Give overall description of version dependency
71106         desirability.  Use more-typical names for apps.
71107         Add shell, coreutils, diffutils, grep, tar, gzip.
71108
71109 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71110
71111         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71112
71113 2007-04-04  Karl Berry  <karl@gnu.org>
71114
71115         * MODULES.html.sh (func_module): missing '.
71116
71117 2007-04-03  Bruno Haible  <bruno@clisp.org>
71118
71119         * modules/argmatch-tests (Makefile.am): New variable
71120         test_argmatch_LDADD.
71121         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71122         * modules/array-list-tests (Makefile.am): New variable
71123         test_array_list_LDADD.
71124         * modules/array-oset-tests (Makefile.am): New variable
71125         test_array_oset_LDADD.
71126         * modules/avltree-list-tests (Makefile.am): New variable
71127         test_avltree_list_LDADD.
71128         * modules/avltree-oset-tests (Makefile.am): New variable
71129         test_avltree_oset_LDADD.
71130         * modules/avltreehash-list-tests (Makefile.am): New variable
71131         test_avltreehash_list_LDADD.
71132         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71133         test_canonicalize_lgpl_LDADD.
71134         * modules/carray-list-tests (Makefile.am): New variable
71135         test_carray_list_LDADD.
71136         * modules/dirname-tests (Makefile.am): New variable
71137         test_dirname_LDADD.
71138         * modules/linked-list-tests (Makefile.am): New variable
71139         test_linked_list_LDADD.
71140         * modules/linkedhash-list-tests (Makefile.am): New variable
71141         test_linkedhash_list_LDADD.
71142         * modules/rbtree-list-tests (Makefile.am): New variable
71143         test_rbtree_list_LDADD.
71144         * modules/rbtree-oset-tests (Makefile.am): New variable
71145         test_rbtree_oset_LDADD.
71146         * modules/rbtreehash-list-tests (Makefile.am): New variable
71147         test_rbtreehash_list_LDADD.
71148         * modules/xvasprintf-tests (Makefile.am): New variable
71149         test_xvasprintf_LDADD.
71150         Reported by Eric Blake.
71151
71152 2007-04-03  Eric Blake  <ebb9@byu.net>
71153
71154         * DEPENDENCIES: Weaken m4 requirements.
71155
71156 2007-04-03  Bruno Haible  <bruno@clisp.org>
71157
71158         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71159         * modules/isnanl-tests (configure.ac): Likewise.
71160
71161 2007-04-03  Ben Pfaff  <blp@gnu.org>
71162
71163         * modules/iconv_open: Add $(srcdir)/ to source directory
71164         references in Makefile fragments that call gperf, to fix VPATH
71165         builds.
71166
71167 2007-04-03  Bruno Haible  <bruno@clisp.org>
71168
71169         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71170         * lib/ldexpl.c: Undo last change.
71171
71172 2007-04-03  Bruno Haible  <bruno@clisp.org>
71173
71174         * modules/printf-frexpl (Depends-on): Undo last change.
71175         (Files): Add m4/ldexpl.m4.
71176
71177 2007-04-03  Bruno Haible  <bruno@clisp.org>
71178
71179         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71180         * modules/isnanl (Link): New section.
71181
71182         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71183         * modules/frexp (Link): New section.
71184
71185         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71186         * modules/frexpl (Link): New section.
71187
71188         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71189         * modules/ldexpl (Link): New section.
71190
71191 2007-04-03  Bruno Haible  <bruno@clisp.org>
71192
71193         * modules/TEMPLATE-EXTENDED: New file.
71194         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71195
71196 2007-04-03  Bruno Haible  <bruno@clisp.org>
71197
71198         * DEPENDENCIES: New file.
71199         Suggested by Simon Josefsson.
71200
71201 2007-04-03  Bruno Haible  <bruno@clisp.org>
71202
71203         * doc/gnulib.texi: Escape @.
71204
71205 2007-04-03  James Youngman  <jay@gnu.org>
71206         and Paul Eggert  <eggert@cs.ucla.edu>
71207
71208         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71209         birthtime on all systems that have birthtime, not just those which
71210         use st_birthtimensec rather than st_birthtim.  Putting zero in
71211         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71212         that the birth time is not available for files on an NFS mount.
71213
71214 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71215
71216         * modules/memxor: Move back from crypto/, suggested by Bruno.
71217         * modules/crypto/hmac-sha1: Fix memxor dependency.
71218
71219         * modules/crypto/gc: Moved from ../.
71220
71221 2007-04-02  Eric Blake  <ebb9@byu.net>
71222
71223         * lib/ldexpl.c (includes): Avoid libm.
71224
71225         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71226
71227 2007-04-02  Bruno Haible  <bruno@clisp.org>
71228
71229         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71230         on IRIX.
71231
71232 2007-04-02  Bruno Haible  <bruno@clisp.org>
71233
71234         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71235         x86 or x86_64 platforms running MacOS X.
71236         Reported by Ryan Schmidt <@ryandesign.com>.
71237
71238 2007-04-02  Bruno Haible  <bruno@clisp.org>
71239
71240         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71241         i386.
71242
71243 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71244
71245         * modules/crypto/arcfour: Moved from ../.
71246         * modules/crypto/arcfour-tests: Moved from ../.
71247         * modules/crypto/arctwo: Moved from ../.
71248         * modules/crypto/arctwo-tests: Moved from ../.
71249         * modules/crypto/des: Moved from ../.
71250         * modules/crypto/des-tests: Moved from ../.
71251         * modules/crypto/gc-arcfour: Moved from ../.
71252         * modules/crypto/gc-arcfour-tests: Moved from ../.
71253         * modules/crypto/gc-arctwo: Moved from ../.
71254         * modules/crypto/gc-arctwo-tests: Moved from ../.
71255         * modules/crypto/gc-des: Moved from ../.
71256         * modules/crypto/gc-des-tests: Moved from ../.
71257         * modules/crypto/gc-hmac-md5: Moved from ../.
71258         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71259         * modules/crypto/gc-hmac-sha1: Moved from ../.
71260         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71261         * modules/crypto/gc-md2: Moved from ../.
71262         * modules/crypto/gc-md2-tests: Moved from ../.
71263         * modules/crypto/gc-md4: Moved from ../.
71264         * modules/crypto/gc-md4-tests: Moved from ../.
71265         * modules/crypto/gc-md5: Moved from ../.
71266         * modules/crypto/gc-md5-tests: Moved from ../.
71267         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71268         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71269         * modules/crypto/gc-random: Moved from ../.
71270         * modules/crypto/gc-rijndael: Moved from ../.
71271         * modules/crypto/gc-rijndael-tests: Moved from ../.
71272         * modules/crypto/gc-sha1: Moved from ../.
71273         * modules/crypto/gc-sha1-tests: Moved from ../.
71274         * modules/crypto/gc-tests: Moved from ../.
71275         * modules/crypto/hmac-md5: Moved from ../.
71276         * modules/crypto/hmac-md5-tests: Moved from ../.
71277         * modules/crypto/hmac-sha1: Moved from ../.
71278         * modules/crypto/hmac-sha1-tests: Moved from ../.
71279         * modules/crypto/md2: Moved from ../.
71280         * modules/crypto/md2-tests: Moved from ../.
71281         * modules/crypto/md4: Moved from ../.
71282         * modules/crypto/md4-tests: Moved from ../.
71283         * modules/crypto/md5: Moved from ../.
71284         * modules/crypto/md5-tests: Moved from ../.
71285         * modules/crypto/memxor: Moved from ../.
71286         * modules/crypto/rijndael: Moved from ../.
71287         * modules/crypto/rijndael-tests: Moved from ../.
71288         * modules/crypto/sha1: Moved from ../.
71289
71290 2007-03-30  James Youngman  <jay@gnu.org>
71291
71292         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71293         rename() to change the ctime of a file (because ctime is unaffected
71294         by rename on jfs2 on AIX 5.1).
71295         (main): Start by doing cleanup, in case a previous run failed leaving
71296         test files behind.
71297
71298 2007-03-31  Bruno Haible  <bruno@clisp.org>
71299
71300         Support old proprietary implementations of iconv.
71301         * modules/iconv_open: New file.
71302         * lib/iconv_.h: New file.
71303         * m4/iconv_h.m4: New file.
71304         * lib/iconv_open.c: New file.
71305         * lib/iconv_open-aix.gperf: New file.
71306         * lib/iconv_open-hpux.gperf: New file.
71307         * lib/iconv_open-irix.gperf: New file.
71308         * lib/iconv_open-osf.gperf: New file.
71309         * m4/iconv_open.m4: New file.
71310         * modules/linebreak (Depends-on): Add iconv_open.
71311         * modules/striconv (Depends-on): Likewise.
71312         * modules/striconveh (Depends-on): Likewise.
71313         * modules/unicodeio (Depends-on): Likewise.
71314         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71315         (iconv_t)(-1).
71316         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71317         conversion if cd is (iconv_t)(-1).
71318         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71319         is not possible.
71320
71321 2007-03-31  Bruno Haible  <bruno@clisp.org>
71322
71323         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71324         work on Solaris either. Protect also second use of "autodetect_jp".
71325
71326 2007-03-31  Bruno Haible  <bruno@clisp.org>
71327
71328         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71329         the function is not present.
71330
71331 2007-03-31  Bruno Haible  <bruno@clisp.org>
71332
71333         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71334         the function is not present.
71335
71336 2007-03-31  Bruno Haible  <bruno@clisp.org>
71337
71338         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71339         a bug in HP-UX iconv_open().
71340
71341 2007-03-31  Bruno Haible  <bruno@clisp.org>
71342
71343         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71344         (Mathematics <math.h>): New section, add fpieee.
71345         (Input/output <stdio.h>): Add fseterr.
71346         (Mathematics <math.h>): New section, add printf-frexp.
71347         (Container data structures): Add sublist.
71348         (Core language properties): Add fpucw, inline.
71349         (Functions for greatest-width integer types <inttypes.h>): Add
71350         imaxabs, imaxdiv, inttypes.
71351         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71352         isnanl-nolibm, ldexp.
71353         (Mathematics <math.h>): New section, add printf-frexpl.
71354         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71355         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71356         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71357         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71358         (Unicode string functions): Add unistr/u*-mbtoucr.
71359         (Java): Add javacomp-script, javaexec-script.
71360         (C#): Add csharpcomp-script, csharpexec-script.
71361         (Support for building libraries and executables): Add havelib,
71362         relocatable-*.
71363         (Support for maintaining and releasing projects): Renamed from
71364         'Support for maintaining and release projects'. Add announce-gen.
71365
71366 2007-03-31  Bruno Haible  <bruno@clisp.org>
71367
71368         * README: Talk primarily about git.
71369         (git and CVS): Renamed from CVS.
71370         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71371         gnulib is available through git.
71372         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71373
71374 2007-03-30  Bruno Haible  <bruno@clisp.org>
71375
71376         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71377         * lib/poll_.h: Likewise.
71378         * lib/stat_.h: Likewise.
71379         * lib/sys_time_.h: Likewise.
71380         * lib/sysexit_.h: Likewise.
71381         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71382         * lib/stdbool_.h: Likewise.
71383         * lib/byteswap_.h: Add double-inclusion guard.
71384
71385 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71386
71387         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71388
71389 2007-03-30  Karl Berry  <karl@gnu.org>
71390
71391         * config/srclist-update: double space after USA in the license
71392         substitution, since that's how it's usually (?) written.
71393
71394 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71395
71396         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71397         reported by Bruno Haible.
71398
71399 2007-03-29  Bruno Haible  <bruno@clisp.org>
71400
71401         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71402         a bug in AIX iconv().
71403
71404 2007-03-29  Bruno Haible  <bruno@clisp.org>
71405
71406         * modules/ldexpl-tests: New file.
71407         * tests/test-ldexpl.c: New file.
71408
71409 2007-03-29  Bruno Haible  <bruno@clisp.org>
71410
71411         * lib/ldexpl.c: Include fpucw.h.
71412         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71413         multiplication.
71414         * modules/ldexpl (Depends-on): Add fpucw.
71415
71416 2007-03-29  Bruno Haible  <bruno@clisp.org>
71417
71418         * modules/ldexpl: New file.
71419         * m4/ldexpl.m4: New file.
71420         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71421         set.
71422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71423         REPLACE_LDEXPL.
71424         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71425         REPLACE_LDEXPL.
71426         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71427         gl_FUNC_LDEXPL_WORKS.
71428         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71429         * modules/mathl (Files): Remove lib/ldexpl.c.
71430         (Depends-on): Add ldexpl.
71431
71432 2007-03-29  Bruno Haible  <bruno@clisp.org>
71433
71434         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71435
71436 2007-03-29  Bruno Haible  <bruno@clisp.org>
71437
71438         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71439         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71440         and possibly also HP-UX.
71441         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71442         work on AIX, IRIX, HP-UX, OSF/1.
71443         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71444         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71445         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71446         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71447         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71448         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71449
71450 2007-03-29  Bruno Haible  <bruno@clisp.org>
71451
71452         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71453
71454 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71455
71456         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71457         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71458
71459 2007-03-29  Eric Blake  <ebb9@byu.net>
71460
71461         * lib/acl-internal.h: Remove redundant include.
71462         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71463         Cygwin when a file is locked.
71464
71465 2007-03-29  Bruno Haible  <bruno@clisp.org>
71466
71467         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71468         file.
71469         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71470
71471 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71474         try to remove a parent directory if the child couldn't be removed
71475         (except for the first rmdir, which could fail because the child
71476         doesn't exist).  Problem reported by Jeff Blaine in
71477         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71478
71479 2007-03-28  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/striconveh.c (utf8conv_carefully): New function.
71482         (mem_cd_iconveh_internal): Invoke it.
71483
71484 2007-03-28  Bruno Haible  <bruno@clisp.org>
71485
71486         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71487         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71488         input.
71489         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71490         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71491         unistr/u8-uctomb.
71492
71493 2007-03-28  Bruno Haible  <bruno@clisp.org>
71494
71495         * modules/unistr/u8-mbtoucr: New file.
71496         * lib/unistr/u8-mbtoucr.c: New file.
71497         * modules/unistr/u16-mbtoucr: New file.
71498         * lib/unistr/u16-mbtoucr.c: New file.
71499         * modules/unistr/u16-mbtoucr: New file.
71500         * lib/unistr/u16-mbtoucr.c: New file.
71501         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71502
71503 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71504             Bruno Haible  <bruno@clisp.org>
71505
71506         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71507         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71508         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71509
71510         * m4/stdio_h.m4: Add stubs for vasprintf too.
71511
71512         * modules/stdio: Support vasprintf in sed command.
71513
71514         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71515         vasprintf.h.  Add stdio module indicator.
71516
71517         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71518         vasprintf.h.
71519
71520         * lib/vasprintf.h: File removed.
71521
71522         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71523         * lib/vasprintf.c: Ditto.
71524         * lib/xvasprintf.c: Ditto.
71525         * tests/test-vasprintf-posix.c: Ditto.
71526         * tests/test-vasprintf.c: Ditto.
71527
71528 2007-03-27  Bruno Haible  <bruno@clisp.org>
71529
71530         Make vasnprintf multithread-safe.
71531         * lib/vasnprintf.c (decimal_point_char): New function.
71532         (VASNPRINTF): Use it.
71533         Suggested by Simon Josefsson.
71534
71535 2007-03-27  Eric Blake  <ebb9@byu.net>
71536
71537         Support sub-second birthtime on cygwin.
71538         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71539         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71540         (get_stat_birthtime): Also work with st_birthtim.
71541
71542 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71543
71544         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71545         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71546         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71547         (get_stat_birthtime_ns): Simplify compile-time tests.
71548         (get_stat_birthtime): Change the API to look like
71549         get_stat_mtime etc., except return a negative tv_nsec on error.
71550         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71551         Don't check for "spare" fields.
71552         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71553         or for struct stat.st_birthtime, as these tests aren't used.
71554         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71555
71556 2007-03-27  Bruno Haible  <bruno@clisp.org>
71557
71558         * lib/stat-time.h: Include <sys/stat.h>.
71559
71560 2007-03-27  James Youngman  <jay@gnu.org>
71561
71562         * lib/stat-time.h (get_stat_birthtime): New function for
71563           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71564         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71565           and its variants.
71566         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71567         * modules/stat-time-test: New file.
71568         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71569
71570 2007-03-26  Bruno Haible  <bruno@clisp.org>
71571
71572         Better support of signalling NaNs.
71573         * lib/atanl.c: Include isnanl.h.
71574         (atanl): Perform test for NaN at the beginning of the function and
71575         through a call to isnanl.
71576         * lib/cosl.c: Include isnanl.h.
71577         (cosl): Perform test for NaN at the beginning of the function and
71578         through a call to isnanl.
71579         * lib/ldexpl.c: Include isnanl.h.
71580         (ldexpl): Perform test for NaN through a call to isnanl.
71581         * lib/logl.c: Include isnanl.h.
71582         (logl): Perform test for NaN at the beginning of the function and
71583         through a call to isnanl.
71584         * lib/sinl.c: Include isnanl.h.
71585         (sinl): Perform test for NaN at the beginning of the function and
71586         through a call to isnanl.
71587         * lib/sqrtl.c: Include isnanl.h.
71588         (sqrtl): Perform test for NaN at the beginning of the function and
71589         through a call to isnanl.
71590         * lib/tanl.c: Include isnanl.h.
71591         (tanl): Perform test for NaN at the beginning of the function and
71592         through a call to isnanl.
71593         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71594         * modules/mathl (Depends-on): Add isnanl.
71595
71596 2007-03-26  Eric Blake  <ebb9@byu.net>
71597
71598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71599         regression in logic sense of previous patch.
71600
71601 2007-03-26  Bruno Haible  <bruno@clisp.org>
71602
71603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71604         unportable shell command "if ! ...".
71605         Reported by Ralf Wildenhues.
71606
71607 2007-03-25  Bruno Haible  <bruno@clisp.org>
71608
71609         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71610         <sysexits.h> file, and only add EX_CONFIG.
71611         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71612         absolute file name and whether it is sufficient. Substitute also
71613         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71614         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71615         ABSOLUTE_SYSEXITS_H into sysexits.h.
71616
71617 2007-03-25  Bruno Haible  <bruno@clisp.org>
71618
71619         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71620         hints is NULL.
71621
71622 2007-03-25  Bruno Haible  <bruno@clisp.org>
71623
71624         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71625         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71626
71627 2007-03-25  Bruno Haible  <bruno@clisp.org>
71628
71629         * lib/vasnprintf.c: Include langinfo.h.
71630         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71631         multithread-safe.
71632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71633         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71636         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71637         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71640         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71641         Reported by Simon Josefsson.
71642
71643 2007-03-25  Bruno Haible  <bruno@clisp.org>
71644
71645         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71646         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71647         * modules/vasnprintf (Depends-on): Add stdint.
71648
71649 2007-03-25  Bruno Haible  <bruno@clisp.org>
71650
71651         * modules/fpieee: New file.
71652         * m4/fpieee.m4: New file.
71653         * modules/isnan-nolibm (Depends-on): Add fpieee.
71654         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71655         * modules/isnanl (Depends-on): Add fpieee.
71656
71657 2007-03-25  Bruno Haible  <bruno@clisp.org>
71658
71659         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71660
71661 2007-03-25  Bruno Haible  <bruno@clisp.org>
71662
71663         Avoid test failures on IRIX 6.5.
71664         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71665         (main): Use it.
71666         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71667         macros.
71668         (main): Use them.
71669
71670 2007-03-25  Bruno Haible  <bruno@clisp.org>
71671
71672         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71673         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71674         exists but doesn't work.
71675         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71676         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71678         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71679         math.h.
71680
71681 2007-03-25  Bruno Haible  <bruno@clisp.org>
71682
71683         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71684         returns inf. Needed on IRIX 6.5.
71685
71686 2007-03-25  Bruno Haible  <bruno@clisp.org>
71687
71688         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71689         (main): Use isnanl instead of x != x idiom.
71690         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71691
71692         * tests/test-frexp.c: Include isnan.h.
71693         (main): Use isnan instead of x != x idiom.
71694         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71695
71696 2007-03-25  Bruno Haible  <bruno@clisp.org>
71697
71698         * tests/test-frexp.c (NaN): New function/macro.
71699         (main): Use it instead of 0.0 / 0.0.
71700         * tests/test-isnan.c (NaN): New function/macro.
71701         (main): Use it instead of 0.0 / 0.0.
71702         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71703         (test_function): Use it instead of 0.0 / 0.0.
71704         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71705         (test_function): Use it instead of 0.0 / 0.0.
71706         * tests/test-snprintf-posix.h (NaN): New function/macro.
71707         (test_function): Use it instead of 0.0 / 0.0.
71708         * tests/test-sprintf-posix.h (NaN): New function/macro.
71709         (test_function): Use it instead of 0.0 / 0.0.
71710         * tests/test-fprintf-posix.h (NaN): New function/macro.
71711         (test_function): Use it instead of 0.0 / 0.0.
71712         * tests/test-printf-posix.h (NaN): New function/macro.
71713         (test_function): Use it instead of 0.0 / 0.0.
71714
71715         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71716
71717 2007-03-25  Bruno Haible  <bruno@clisp.org>
71718
71719         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71720
71721 2007-03-25  Bruno Haible  <bruno@clisp.org>
71722
71723         * lib/regexec.c (merge_state_with_log): Make static.
71724
71725 2007-03-25  Bruno Haible  <bruno@clisp.org>
71726
71727         * lib/trigl.c (kernel_rem_pio2): Make static.
71728
71729 2007-03-25  Bruno Haible  <bruno@clisp.org>
71730
71731         * lib/sincosl.c (sincosl_table): Make static.
71732
71733 2007-03-25  Bruno Haible  <bruno@clisp.org>
71734
71735         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71736         if the compiler does not support C99.
71737
71738 2007-03-25  Bruno Haible  <bruno@clisp.org>
71739
71740         * modules/time (Makefile.am): Ensure all rule action lines start with a
71741         tab.
71742
71743 2007-03-24  Bruno Haible  <bruno@clisp.org>
71744
71745         * modules/tsearch-tests: New file.
71746         * tests/test-tsearch.sh: New file.
71747         * tests/test-tsearch.c: New file, mostly copied from glibc.
71748
71749         * modules/search-tests: New file.
71750         * tests/test-search.c: New file.
71751
71752         * modules/search: New file.
71753         * lib/search_.h: New file, incorporating lib/tsearch.h.
71754         * m4/search_h.m4: New file.
71755         * lib/tsearch.h: Remove file.
71756         * lib/tsearch.c: Include search.h instead of tsearch.h.
71757         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71758         HAVE_TSEARCH.
71759         * modules/tsearch (Files): Remove lib/tsearch.h.
71760         (Depends-on): Add search.
71761         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71762         (Include): Change tsearch.h into search.h.
71763
71764 2007-03-24  Bruno Haible  <bruno@clisp.org>
71765
71766         * modules/fpucw: New file.
71767         * lib/fpucw.h: New file.
71768         * lib/frexp.c: Include fpucw.h.
71769         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71770         (FUNC): Use them.
71771         * lib/printf-frexp.c: Include fpucw.h.
71772         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71773         (FUNC): Use them.
71774         * lib/vasnprintf.c: Include fpucw.h.
71775         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71776         'long double' calculations.
71777         * tests/test-frexpl.c: Include fpucw.h.
71778         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71779         * tests/test-printf-frexpl.c: Include fpucw.h.
71780         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71781         * modules/frexpl (Depends-on): Add fpucw.
71782         * modules/printf-frexpl (Depends-on): Likewise.
71783         * modules/fprintf-posix (Depends-on): Likewise.
71784         * modules/snprintf-posix (Depends-on): Likewise.
71785         * modules/sprintf-posix (Depends-on): Likewise.
71786         * modules/vasnprintf-posix (Depends-on): Likewise.
71787         * modules/vasprintf-posix (Depends-on): Likewise.
71788         * modules/vfprintf-posix (Depends-on): Likewise.
71789         * modules/vsnprintf-posix (Depends-on): Likewise.
71790         * modules/vsprintf-posix (Depends-on): Likewise.
71791         * modules/frexpl-tests (Depends-on): Likewise.
71792         * modules/printf-frexpl-tests (Depends-on): Likewise.
71793
71794 2007-03-24  Bruno Haible  <bruno@clisp.org>
71795
71796         * lib/float+.h: New file.
71797         * lib/isnan.c: Include float+.h.
71798         (SIZE): New macro.
71799         (FUNC): Compare only SIZE bytes of the value.
71800         * lib/vasnprintf.c: Include float+.h.
71801         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71802         SIZEOF_LDBL or SIZEOF_DBL bytes.
71803         * modules/isnan-nolibm (Files): Add lib/float+.h.
71804         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71805         * modules/isnanl (Files): Add lib/float+.h.
71806         * modules/vasnprintf (Files): Add lib/float+.h.
71807
71808 2007-03-24  Bruno Haible  <bruno@clisp.org>
71809
71810         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71811         include isnanl-nolibm.h.
71812
71813 2007-03-24  Bruno Haible  <bruno@clisp.org>
71814
71815         * tests/test-read-file.c (main): Don't produce spurious output for
71816         expected situations. Make the test fail if it encountered unexpected
71817         results.
71818
71819 2007-03-24  Bruno Haible  <bruno@clisp.org>
71820
71821         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71822         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71823
71824 2007-03-24  Bruno Haible  <bruno@clisp.org>
71825
71826         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71827
71828 2007-03-24  Bruno Haible  <bruno@clisp.org>
71829
71830         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71831         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71832
71833         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71834         * modules/utf8-ucs4: Turn into a symbolic link to module
71835         unistr/u8-mbtouc.
71836
71837         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71838         utf8-ucs4-unsafe.
71839         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71840         unistr/u8-mbtouc-unsafe.
71841
71842         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71843         * modules/utf16-ucs4: Turn into a symbolic link to module
71844         unistr/u16-mbtouc.
71845
71846         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71847         utf16-ucs4-unsafe.
71848         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71849         unistr/u16-mbtouc-unsafe.
71850
71851         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71852         * modules/ucs4-utf8: Turn into a symbolic link to module
71853         unistr/u8-ubtomb.
71854
71855         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71856         * modules/ucs4-utf16: Turn into a symbolic link to module
71857         unistr/u16-ubtomb.
71858
71859 2007-03-24  Bruno Haible  <bruno@clisp.org>
71860
71861         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71862         Enable the function only if HAVE_INLINE.
71863         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71864         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71865         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71866         Enable the function only if HAVE_INLINE.
71867         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71868         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71869         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71870         Enable the function only if HAVE_INLINE.
71871         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71872         Enable the function only if HAVE_INLINE.
71873         * modules/utf8-ucs4: Update.
71874         * modules/utf8-ucs4-unsafe: Update.
71875         * modules/utf16-ucs4: Update.
71876         * modules/utf16-ucs4-unsafe: Update.
71877         * modules/ucs4-utf8: Update.
71878         * modules/ucs4-utf16: Update.
71879
71880 2007-03-24  Bruno Haible  <bruno@clisp.org>
71881
71882         * lib/utf8-ucs4.h: Remove file.
71883         * lib/utf8-ucs4-unsafe.h: Remove file.
71884         * lib/utf16-ucs4.h: Remove file.
71885         * lib/utf16-ucs4-unsafe.h: Remove file.
71886         * lib/ucs4-utf8.h: Remove file.
71887         * lib/ucs4-utf16.h: Remove file.
71888         * lib/unistr.h: Include their previous contents.
71889         * m4/utf-ucs4.m4: Remove file.
71890         * m4/ucs4-utf.m4: Remove file.
71891         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71892         (Depends-on): Add unistr/base.
71893         (configure.ac): Remove gl_UTF_UCS4.
71894         (Makefile.am): Update.
71895         (Include): Change to unistr.h.
71896         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71897         (Depends-on): Add unistr/base.
71898         (configure.ac): Remove gl_UTF_UCS4.
71899         (Makefile.am): Update.
71900         (Include): Change to unistr.h.
71901         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71902         (Depends-on): Add unistr/base.
71903         (configure.ac): Remove gl_UTF_UCS4.
71904         (Makefile.am): Update.
71905         (Include): Change to unistr.h.
71906         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71907         (Depends-on): Add unistr/base.
71908         (configure.ac): Remove gl_UTF_UCS4.
71909         (Makefile.am): Update.
71910         (Include): Change to unistr.h.
71911         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71912         (Depends-on): Add unistr/base.
71913         (configure.ac): Remove gl_UCS4_UTF.
71914         (Makefile.am): Update.
71915         (Include): Change to unistr.h.
71916         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71917         (Depends-on): Add unistr/base.
71918         (configure.ac): Remove gl_UCS4_UTF.
71919         (Makefile.am): Update.
71920         (Include): Change to unistr.h.
71921         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71922         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71923         utf8-ucs4-unsafe.h.
71924         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71925         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71926         utf16-ucs4-unsafe.h.
71927         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71928         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71929         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71930         * lib/unistr/u8-strchr.c: Likewise.
71931         * lib/unistr/u8-strrchr.c: Likewise.
71932         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71933         * lib/unistr/u16-strchr.c: Likewise.
71934         * lib/unistr/u16-strrchr.c: Likewise.
71935         * lib/striconveh.c: Update.
71936         * lib/linebreak.c: Update.
71937
71938 2007-03-24  Bruno Haible  <bruno@clisp.org>
71939
71940         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71941         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71942
71943 2007-03-22  Bruno Haible  <bruno@clisp.org>
71944
71945         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71946
71947 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         * MODULES.html.sh (File system functions): New module write-any-file.
71950         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71951         * m4/write-any-file.m4: New files.
71952
71953 2007-03-23  Eric Blake  <ebb9@byu.net>
71954
71955         * gnulib-tool: Rearrange space-tab sequences, since some editors
71956         like to eat them.
71957
71958 2007-03-23  Eric Blake  <ebb9@byu.net>
71959
71960         * lib/version-etc.c (version_etc_va): Update license wording to
71961         be more concise.  Recommended by Richard Stallman.
71962
71963 2007-03-22  Bruno Haible  <bruno@clisp.org>
71964
71965         * lib/poll.c (MSG_PEEK): New fallback definition.
71966
71967 2007-03-22  Bruno Haible  <bruno@clisp.org>
71968
71969         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71970         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71971         (main): Update.
71972         Fixes a compilation error on BeOS.
71973
71974 2007-03-22  Bruno Haible  <bruno@clisp.org>
71975
71976         * modules/frexpl-tests: New file.
71977         * tests/test-frexpl.c: New file.
71978
71979         * modules/frexpl: New file.
71980         * m4/frexpl.m4: New file.
71981         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71982         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71984         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71985         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71986         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71987
71988 2007-03-22  Bruno Haible  <bruno@clisp.org>
71989
71990         * lib/frexpl.c: Share code with lib/frexp.c.
71991         * modules/mathl (Files): Add lib/frexp.c.
71992         (Depends-on): Add isnanl-nolibm.
71993
71994 2007-03-22  Bruno Haible  <bruno@clisp.org>
71995
71996         * modules/printf-frexp (Files): Add m4/frexp.m4.
71997         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71998         only if the found frexp function actually works.
71999
72000 2007-03-22  Bruno Haible  <bruno@clisp.org>
72001
72002         * lib/frexp.c: Remove older implementation that uses divisions.
72003
72004 2007-03-21  Bruno Haible  <bruno@clisp.org>
72005
72006         * modules/frexp-tests: New file.
72007         * tests/test-frexp.c: New file.
72008
72009         * modules/frexp: New file.
72010         * lib/frexp.c: New file.
72011         * m4/frexp.m4: New file.
72012         * lib/math_.h (frexp): New declaration.
72013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72014         REPLACE_FREXP.
72015         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72016
72017 2007-03-21  Bruno Haible  <bruno@clisp.org>
72018
72019         * modules/isnanl-tests: New file.
72020         * tests/test-isnanl.c: New file.
72021
72022         * modules/isnanl: New file.
72023         * lib/isnanl.h: New file.
72024         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72025         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72026         gl_FUNC_ISNANL_WORKS.
72027         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72028         New macros.
72029
72030 2007-03-21  Bruno Haible  <bruno@clisp.org>
72031
72032         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72033         lib/isnanl.h.
72034         (Include): Update.
72035         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72036         * lib/vasnprintf.c: Update.
72037         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72038         tests/test-isnanl.h, remove tests/test-isnanl.c.
72039         (Makefile.am): Update.
72040         * tests/test-isnanl-nolibm.c: New file.
72041         * tests/test-isnanl.h: New file.
72042         * tests/test-isnanl.c: Remove file.
72043
72044 2007-03-21  Jim Meyering  <jim@meyering.net>
72045
72046         When trying to open ".", treat ESTALE like EACCES.
72047         * lib/savewd.c (savewd_save): Resort to forking not just upon
72048         failure with EACCES, but also when errno is ESTALE.
72049
72050 2007-03-20  Bruno Haible  <bruno@clisp.org>
72051
72052         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72053         Needed on AIX 5.1. Reported by Matthew Woehlke.
72054
72055 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72056
72057         Suggestions by Bruno Haible:
72058         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72059         our own.
72060         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72061         * modules/acl (Depends-on): Add gettext.
72062
72063 2007-03-19  Bruno Haible  <bruno@clisp.org>
72064
72065         * modules/iconvme: Remove file.
72066         * lib/iconvme.h: Remove file.
72067         * lib/iconvme.c: Remove file.
72068         * m4/iconvme.m4: Remove file.
72069
72070 2007-03-19  Bruno Haible  <bruno@clisp.org>
72071
72072         * doc/relocatable-maint.texi: Break long shell script line.
72073         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72074
72075 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72076
72077         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72078         handle file_has_acl.
72079         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72080         * lib/acl.c: Move header inclusions and related macro defns into
72081         lib/acl-internal.h.
72082         (S_ISLNK): Remove defn, since that's now done for us.
72083         (file_has_acl): Move to lib/file-has-acl.c.
72084         Call acl_trivial if available.  This is the crucial part of the fix.
72085         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72086         shared within the library.  Rewrite a bit, partly to make it compatible
72087         with the GNU coding style.
72088         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72089         Remove unnecessary double-quotes.
72090         Don't test for acl_to_text; the build will catch that.
72091         Replace acl_entries if it doesn't exist and it is needed.
72092         Check for -lsec and acl_trivial (as used on Solaris 10).
72093         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72094         lib/file-has-acl.c.
72095         (Depends-on): Add sys_stat, for S_ISLNK.
72096
72097 2007-03-19  Ben Pfaff  <blp@gnu.org>
72098
72099         * doc/gnulib.texi: Fix typos.
72100         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72101
72102 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72103
72104         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72105         If size is zero here, buf must be zero.
72106
72107 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72108
72109         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72110         <bruno@clisp.org>.
72111
72112 2007-03-18  Bruno Haible  <bruno@clisp.org>
72113
72114         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72115         Suggested by Eric Blake.
72116
72117 2007-03-18  Ben Pfaff  <blp@gnu.org>
72118
72119         * doc/relocatable.texi: Recommend using as prefix a directory
72120         that does not exist and will never be created.  Based on
72121         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72122         and others.
72123
72124 2007-03-17  Bruno Haible  <bruno@clisp.org>
72125
72126         * lib/fchownat.c: Include lchown.h.
72127
72128 2007-03-17  Bruno Haible  <bruno@clisp.org>
72129
72130         Fix endless loop when the given allocated size was > INT_MAX.
72131         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72132         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72133         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72134         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72135         * lib/sprintf.c (sprintf): Likewise.
72136
72137 2007-03-17  Bruno Haible  <bruno@clisp.org>
72138
72139         * tests/test-argp-2.sh (func_compare): Output a context diff.
72140
72141 2007-03-17  Bruno Haible  <bruno@clisp.org>
72142
72143         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72144         locale's decimal-point character.
72145
72146 2007-03-17  Bruno Haible  <bruno@clisp.org>
72147
72148         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72149         before comparing it. Needed because on some platforms (e.g. x86) a
72150         'long double' occupies less bytes than sizeof (long double).
72151
72152 2007-03-17  Bruno Haible  <bruno@clisp.org>
72153
72154         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72155         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72156         * tests/test-getaddrinfo.c (simple): Likewise.
72157         * tests/test-read-file.c (main): Likewise.
72158
72159 2007-03-17  Bruno Haible  <bruno@clisp.org>
72160
72161         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72162
72163 2007-03-17  Bruno Haible  <bruno@clisp.org>
72164
72165         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72166         unused variable.
72167
72168 2007-03-17  Bruno Haible  <bruno@clisp.org>
72169
72170         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72171         * tests/test-c-strncasecmp.c: Likewise.
72172
72173 2007-03-17  Bruno Haible  <bruno@clisp.org>
72174
72175         * modules/stdlib (Depends-on): Add unistd.
72176         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72177         Needed for MacOS X 10.3.
72178
72179 2007-03-17  Bruno Haible  <bruno@clisp.org>
72180
72181         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72182
72183 2007-03-17  Bruno Haible  <bruno@clisp.org>
72184
72185         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72186
72187 2007-03-17  Bruno Haible  <bruno@clisp.org>
72188
72189         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72190         to reflect files copied from gnulib (with or without modifications).
72191         Suggested by Jim Meyering.
72192
72193 2007-03-17  Eric Blake  <ebb9@byu.net>
72194
72195         * NEWS: Document stdlib change from 2007-02-18.
72196
72197 2007-03-17  Jim Meyering  <jim@meyering.net>
72198
72199         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72200         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72201         someone uses a name containing shell meta-characters.
72202         Reported by Alfred M. Szmidt.
72203
72204         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72205
72206 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72207
72208         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72209         and copy gettext configuration files only if configure.ac contains
72210         a use of AM_GNU_GETTEXT_VERSION.
72211
72212 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72213
72214         * build-aux/bootstrap (gnulib_name): New variable.
72215         (gnulib_tool_options): Use it.
72216
72217 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72218
72219         * tests/test-des.c: Use new namespace.
72220
72221 2007-03-15  Bruno Haible  <bruno@clisp.org>
72222
72223         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72224         Reported by James Youngman <jay@gnu.org>.
72225
72226 2007-03-15  Bruno Haible  <bruno@clisp.org>
72227
72228         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72229         declared prototype. Needed with cc on OSF/1 5.1.
72230
72231 2007-03-15  Bruno Haible  <bruno@clisp.org>
72232
72233         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72234         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72235         (struct gl_list_implementation): Add dispose_fn argument to the
72236         'create_empty', 'create' methods.
72237         (struct gl_list_impl_base): Add field 'dispose_fn'.
72238         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72239         argument.
72240         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72241         dispose_fn argument.
72242         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72243         dispose_fn on the dropped values.
72244         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72245         dispose_fn argument.
72246         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72247         dropped values.
72248         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72249         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72250         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72251         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72252         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72253         argument.
72254         (gl_tree_list_free): Call dispose_fn on the dropped values.
72255         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72256         the dropped values.
72257         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72258         Add dispose_fn argument.
72259         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72260         Call dispose_fn on the dropped values.
72261         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72262         Add dispose_fn argument.
72263         (gl_sublist_create): Initialize the 'dispose_fn' field.
72264         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72265         * tests/test-array_list.c (main): Update.
72266         * tests/test-carray_list.c (main): Update.
72267         * tests/test-avltree_list.c (main): Update.
72268         * tests/test-rbtree_list.c (main): Update.
72269         * tests/test-avltreehash_list.c (main): Update.
72270         * tests/test-rbtreehash_list.c (main): Update.
72271         * tests/test-linked_list.c (main): Update.
72272         * tests/test-linkedhash_list.c (main): Update.
72273         * tests/test-array_oset.c (main): Update.
72274
72275 2007-03-15  Bruno Haible  <bruno@clisp.org>
72276
72277         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72278         (gl_oset_create_empty): Add dispose_fn argument.
72279         (struct gl_oset_implementation): Add dispose_fn argument to
72280         'create_empty' method.
72281         (struct gl_oset_impl_base): Add dispose_fn field.
72282         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72283         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72284         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72285         values.
72286         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72287         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72288         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72289         dropped value.
72290         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72291         dropped value.
72292         * tests/test-array_oset.c (main): Update.
72293         * tests/test-avltree_oset.c (main): Update.
72294         * tests/test-rbtree_oset.c (main): Update.
72295         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72296
72297 2007-03-13  Bruno Haible  <bruno@clisp.org>
72298
72299         * tests/test-stdbool.c (i): Update after last patch.
72300
72301 2007-03-12  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72304         the iswprint macro. Needed on Solaris 2.5.1.
72305
72306 2007-03-12  Bruno Haible  <bruno@clisp.org>
72307
72308         * tests/test-printf-frexp.c (main): Declare x as volatile.
72309
72310 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72311
72312         * doc/gnulib.texi (Build robot for gnulib): New section.
72313
72314 2007-03-12  Jim Meyering  <jim@meyering.net>
72315
72316         * build-aux/bootstrap: New file.
72317         * build-aux/bootstrap.conf: New file, from coreutils.
72318
72319 2007-03-11  Bruno Haible  <bruno@clisp.org>
72320
72321         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72322
72323 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72324
72325         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72326         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72327         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72328
72329 2007-03-11  Bruno Haible  <bruno@clisp.org>
72330
72331         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72332         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72333
72334 2007-03-11  Bruno Haible  <bruno@clisp.org>
72335
72336         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72337         formula. Needed for SunPRO C 5.0.
72338
72339 2007-03-11  Bruno Haible  <bruno@clisp.org>
72340
72341         * modules/long-options (Depends-on): Add getopt.
72342
72343 2007-03-11  Bruno Haible  <bruno@clisp.org>
72344
72345         * modules/modechange (Depends-on): Add stdbool.
72346
72347 2007-03-11  Bruno Haible  <bruno@clisp.org>
72348
72349         * modules/i-ring (Depends-on): Add stdbool.
72350
72351 2007-03-11  Bruno Haible  <bruno@clisp.org>
72352
72353         * modules/gc-des (Depends-on): Add stdbool.
72354
72355 2007-03-11  Bruno Haible  <bruno@clisp.org>
72356
72357         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72358
72359 2007-03-11  Bruno Haible  <bruno@clisp.org>
72360
72361         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72362
72363 2007-03-11  Bruno Haible  <bruno@clisp.org>
72364
72365         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72366
72367 2007-03-11  Bruno Haible  <bruno@clisp.org>
72368
72369         * lib/vasnprintf.c (sprintf): Undefine.
72370
72371 2007-03-11  Bruno Haible  <bruno@clisp.org>
72372
72373         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72374         initializers in SunPRO C and Compaq C compilers.
72375
72376 2007-03-11  Bruno Haible  <bruno@clisp.org>
72377
72378         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72379         decrementing code ANSI C compliant.
72380
72381 2007-03-11  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72384         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72385
72386 2007-03-11  Bruno Haible  <bruno@clisp.org>
72387
72388         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72389         <stdbool.h> substitute doesn't pass.
72390
72391 2007-03-11  Bruno Haible  <bruno@clisp.org>
72392
72393         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72394
72395 2007-03-11  Bruno Haible  <bruno@clisp.org>
72396
72397         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72398         script, for submission to autobuild.josefsson.org.
72399
72400 2007-03-10  Bruno Haible  <bruno@clisp.org>
72401
72402         * modules/canonicalize-lgpl-tests: New file.
72403         * tests/test-canonicalize-lgpl.sh: New file.
72404         * tests/test-canonicalize-lgpl.c: New file.
72405
72406         * modules/c-strcase-tests: New file.
72407         * tests/test-c-strcase.sh: New file.
72408         * tests/test-c-strcasecmp.c: New file.
72409         * tests/test-c-strncasecmp.c: New file.
72410
72411         * modules/atexit-tests: New file.
72412         * tests/test-atexit.sh: New file.
72413         * tests/test-atexit.c: New file.
72414
72415 2007-03-10  Bruno Haible  <bruno@clisp.org>
72416
72417         * tests/test-binary-io.sh: Use temporary filenames that are not so
72418         likely to clash with those of other tests (in a parallel make).
72419         * tests/test-binary-io.c: Likewise.
72420
72421 2007-03-10  Bruno Haible  <bruno@clisp.org>
72422
72423         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72424         fallback; use #error instead.
72425         Suggested by Simon Josefsson.
72426
72427 2007-03-10  Bruno Haible  <bruno@clisp.org>
72428
72429         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72430         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72431         first and the last.
72432
72433 2007-03-10  Bruno Haible  <bruno@clisp.org>
72434
72435         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72436
72437 2007-03-10  Bruno Haible  <bruno@clisp.org>
72438
72439         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72440         "make distcheck".
72441         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72442         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72443         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72444
72445 2007-03-10  Bruno Haible  <bruno@clisp.org>
72446
72447         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72448         variable.
72449         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72450         variable.
72451
72452 2007-03-09  Eric Blake  <ebb9@byu.net>
72453         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72454
72455         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72456         types are not being provided by gnulib.
72457         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72458         types are supported.
72459
72460 2007-03-10  Bruno Haible  <bruno@clisp.org>
72461
72462         * lib/stdio_.h (__attribute__): New macro.
72463         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72464         vsprintf): Specify __attribute__ __format__ for GCC.
72465         Suggested by Eric Blake.
72466
72467 2007-03-09  Bruno Haible  <bruno@clisp.org>
72468
72469         * modules/printf-posix-tests: New file.
72470         * tests/test-printf-posix.sh: New file.
72471         * tests/test-printf-posix.c: New file.
72472
72473         * modules/printf-posix: New file.
72474         * lib/printf.c: New file.
72475         * m4/printf-posix-rpl.m4: New file.
72476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72477         REPLACE_PRINTF.
72478         * lib/stdio_.h (printf): New declaration.
72479         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72480         ____strfmon____): New macros.
72481         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72482         REPLACE_PRINTF.
72483
72484 2007-03-09  Bruno Haible  <bruno@clisp.org>
72485
72486         * tests/test-vasnprintf-posix2.sh: New file.
72487         * tests/test-vasnprintf-posix2.c: New file.
72488         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72489         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72490         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72491
72492         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72493         a locale dependent decimal point, rather than always '.'.
72494
72495 2007-03-09  Eric Blake  <ebb9@byu.net>
72496
72497         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72498         spite of platforms like Tandem/NSK that define it to -1.
72499
72500 2007-03-08  Bruno Haible  <bruno@clisp.org>
72501
72502         * modules/vprintf-posix-tests: New file.
72503         * tests/test-vprintf-posix.sh: New file.
72504         * tests/test-vprintf-posix.c: New file.
72505         * tests/test-printf-posix.h: New file.
72506
72507         * modules/vprintf-posix: New file.
72508         * lib/vprintf.c: New file.
72509         * m4/vprintf-posix.m4: New file.
72510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72511         REPLACE_VPRINTF.
72512         * lib/stdio_.h (vprintf): New declaration.
72513         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72514         REPLACE_VPRINTF.
72515
72516 2007-03-08  Bruno Haible  <bruno@clisp.org>
72517
72518         * modules/fprintf-posix-tests: New file.
72519         * tests/test-fprintf-posix.sh: New file.
72520         * tests/test-fprintf-posix.c: New file.
72521
72522         * modules/fprintf-posix: New file.
72523         * lib/fprintf.c: New file.
72524         * m4/fprintf-posix.m4: New file.
72525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72526         REPLACE_FPRINTF.
72527         * lib/stdio_.h (fprintf): New declaration.
72528         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72529         REPLACE_FPRINTF.
72530
72531 2007-03-08  Bruno Haible  <bruno@clisp.org>
72532
72533         * modules/vfprintf-posix-tests: New file.
72534         * tests/test-vfprintf-posix.sh: New file.
72535         * tests/test-vfprintf-posix.c: New file.
72536         * tests/test-fprintf-posix.h: New file.
72537         * tests/test-fprintf-posix.out: New file.
72538
72539         * modules/vfprintf-posix: New file.
72540         * lib/vfprintf.c: New file.
72541         * m4/vfprintf-posix.m4: New file.
72542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72543         REPLACE_VFPRINTF.
72544         * lib/stdio_.h (vfprintf): New declaration.
72545         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72546         REPLACE_VFPRINTF.
72547
72548 2007-03-08  Bruno Haible  <bruno@clisp.org>
72549
72550         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72551
72552 2007-03-08  Bruno Haible  <bruno@clisp.org>
72553
72554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72555         instead of 'expr' invocations.
72556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72561         Suggested by Paul Eggert.
72562
72563 2007-03-08  Bruno Haible  <bruno@clisp.org>
72564
72565         * modules/fseterr-tests: New file.
72566         * tests/test-fseterr.c: New file.
72567
72568         * modules/fseterr: New file.
72569         * lib/fseterr.h: New file.
72570         * lib/fseterr.c: New file.
72571
72572 2007-03-08  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72575         * lib/getopt_.h: Likewise.
72576         * lib/mbswidth.h: Likewise.
72577         * lib/setenv.h: Likewise.
72578         * lib/vasnprintf.h: Likewise.
72579         * lib/vasprintf.h: Likewise.
72580         * lib/verror.h: Likewise.
72581         * lib/xsetenv.h: Likewise.
72582         * lib/xvasprintf.h: Likewise.
72583
72584 2007-03-08  Jim Meyering  <jim@meyering.net>
72585
72586         * users.txt: Add parted.
72587
72588         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72589
72590 2007-03-07  Bruno Haible  <bruno@clisp.org>
72591
72592         * m4/printf.m4: Make the shell script snippets copy&pastable.
72593
72594 2007-03-02  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/netinet_in_.h: New file.
72597         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72598         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72599         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72600         (Depends-on): Add absolute-header.
72601         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72602         into netinet/in.h.
72603
72604 2007-03-03  Bruno Haible  <bruno@clisp.org>
72605
72606         * lib/sys_select_.h: New file.
72607         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72608         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72609         * modules/sys_select (Files): Add lib/sys_select_.h.
72610         (Depends-on): Add absolute-header.
72611         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72612         into sys/select.h.
72613
72614 2007-03-02  Bruno Haible  <bruno@clisp.org>
72615
72616         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72617         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72618         values.
72619         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72620         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72621         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72622         * modules/sys_socket (Depends-on): Add absolute-header.
72623         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72624         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72625         (Include): Remove requirement of inclusion of <sys/types.h>.
72626
72627 2007-03-02  Bruno Haible  <bruno@clisp.org>
72628
72629         * lib/byteswap_.h (bswap_32): Fix formula.
72630
72631 2007-03-06  Bruno Haible  <bruno@clisp.org>
72632
72633         * modules/sprintf-posix-tests: New file.
72634         * tests/test-sprintf-posix.c: New file.
72635
72636         * modules/sprintf-posix: New file.
72637         * lib/sprintf.c: New file.
72638         * m4/sprintf-posix.m4: New file.
72639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72640         REPLACE_SPRINTF.
72641         * lib/stdio_.h (sprintf): New declaration.
72642         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72643         REPLACE_SPRINTF.
72644
72645 2007-03-06  Bruno Haible  <bruno@clisp.org>
72646
72647         * modules/vsprintf-posix-tests: New file.
72648         * tests/test-vsprintf-posix.c: New file.
72649         * tests/test-sprintf-posix.h: New file.
72650
72651         * modules/vsprintf-posix: New file.
72652         * lib/vsprintf.c: New file.
72653         * m4/vsprintf-posix.m4: New file.
72654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72655         REPLACE_VSPRINTF.
72656         * lib/stdio_.h (vsprintf): New declaration.
72657         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72658         REPLACE_VSPRINTF.
72659
72660 2007-03-06  Bruno Haible  <bruno@clisp.org>
72661
72662         * modules/vsnprintf (Depend-on): Remove minmax.
72663
72664 2007-03-06  Bruno Haible  <bruno@clisp.org>
72665
72666         * modules/snprintf-posix-tests: New file.
72667         * tests/test-snprintf-posix.c: New file.
72668
72669         * modules/snprintf-posix: New file.
72670         * m4/snprintf-posix.m4: New file.
72671         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72672         gl_FUNC_SNPRINTF.
72673         (gl_FUNC_SNPRINTF): Invoke it.
72674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72675         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72676         is set.
72677         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72678
72679 2007-03-06  Bruno Haible  <bruno@clisp.org>
72680
72681         * modules/vsnprintf-posix-tests: New file.
72682         * tests/test-vsnprintf-posix.c: New file.
72683         * tests/test-snprintf-posix.h: New file.
72684
72685         * modules/vsnprintf-posix: New file.
72686         * m4/vsnprintf-posix.m4: New file.
72687         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72688         gl_FUNC_VSNPRINTF.
72689         (gl_FUNC_VSNPRINTF): Invoke it.
72690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72691         * lib/stdio_.h (vsnprintf): Define as a replacement if
72692         REPLACE_VSNPRINTF is set.
72693         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72694
72695 2007-03-06  Bruno Haible  <bruno@clisp.org>
72696
72697         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72698         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72699
72700 2007-03-06  Bruno Haible  <bruno@clisp.org>
72701
72702         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72703         (asinl): Declare also if HAVE_DECL_ASINL is set.
72704         (atanl): Declare also if HAVE_DECL_ATANL is set.
72705         (ceill): Declare also if HAVE_DECL_CEILL is set.
72706         (cosl): Declare also if HAVE_DECL_COSL is set.
72707         (expl): Declare also if HAVE_DECL_EXPL is set.
72708         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72709         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72710         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72711         (logl): Declare also if HAVE_DECL_LOGL is set.
72712         (sinl): Declare also if HAVE_DECL_SINL is set.
72713         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72714         (tanl): Declare also if HAVE_DECL_TANL is set.
72715         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72717         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72718         declaration of frexpl, ldexpl.
72719         * modules/printf-frexpl (Depends-on): Add math.
72720         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72721
72722 2007-03-05  Bruno Haible  <bruno@clisp.org>
72723
72724         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72725         frexpl and ldexpl are declared.
72726         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72727
72728 2007-03-05  Bruno Haible  <bruno@clisp.org>
72729
72730         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72731         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72732
72733 2007-03-05  Bruno Haible  <bruno@clisp.org>
72734
72735         * lib/stdio_.h: Include <stddef.h>.
72736
72737 2007-03-05  Bruno Haible  <bruno@clisp.org>
72738
72739         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72740
72741 2007-03-05  Bruno Haible  <bruno@clisp.org>
72742
72743         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72744         NetBSD 4, from Ralf Wildenhues.
72745
72746 2007-03-04  Bruno Haible  <bruno@clisp.org>
72747
72748         * lib/vasprintf.h: Update #if logic for the case when the functions
72749         exist but are overridden.
72750
72751 2007-03-04  Bruno Haible  <bruno@clisp.org>
72752
72753         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72754         implementations: glibc-2.4 and MacOS X 10.3.
72755         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72756         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72757         * tests/test-vasprintf-posix.c (test_function): Likewise.
72758
72759 2007-03-04  Bruno Haible  <bruno@clisp.org>
72760
72761         * modules/vasprintf-posix-tests: New file.
72762         * tests/test-vasprintf-posix.c: New file.
72763
72764         * modules/vasprintf-posix: New file.
72765         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72766         defined.
72767         * m4/vasprintf-posix.m4: New file.
72768         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72769         gl_FUNC_VASPRINTF.
72770         (gl_FUNC_VASPRINTF): Invoke it.
72771         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72772         here.
72773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72774
72775 2007-03-04  Bruno Haible  <bruno@clisp.org>
72776
72777         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72778         REPLACE_GETTIMEOFDAY.
72779         * modules/sys_time (Makefile.am): Likewise.
72780         * m4/sys_time_h.m4: Likewise.
72781         * m4/gettimeofday.m4: Likewise.
72782
72783 2007-03-04  Bruno Haible  <bruno@clisp.org>
72784
72785         * modules/vasnprintf-posix-tests: New file.
72786         * tests/test-vasnprintf-posix.c: New file.
72787
72788         * modules/vasnprintf-posix: New file.
72789         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72790         printf-frexpl.h.
72791         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72792         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72793         REPLACE_VASNPRINTF is defined.
72794         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72795         gl_FUNC_VASNPRINTF.
72796         (gl_FUNC_VASNPRINTF): Invoke it.
72797         * m4/vasnprintf-posix.m4: New file.
72798         * m4/printf.m4: New file.
72799
72800 2007-03-04  Bruno Haible  <bruno@clisp.org>
72801
72802         Compile progreloc.c only if --enable-relocatable is specified.
72803         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72804         if --enable-relocatable was specified.
72805         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72806         lib_SOURCES.
72807
72808 2007-03-04  Jim Meyering  <jim@meyering.net>
72809
72810         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72811         Use it consistently, rather than enumerating errno constants.
72812
72813 2007-03-04  Bruno Haible  <bruno@clisp.org>
72814
72815         * modules/xvasprintf-tests: New file.
72816         * tests/test-xvasprintf.c: New file.
72817
72818         * modules/vasprintf-tests: New file.
72819         * tests/test-vasprintf.c: New file.
72820
72821         * modules/vasnprintf-tests: New file.
72822         * tests/test-vasnprintf.c: New file.
72823
72824         * modules/vsnprintf-tests: New file.
72825         * tests/test-vsnprintf.c: New file.
72826
72827         * modules/snprintf-tests: New file.
72828         * tests/test-snprintf.c: New file.
72829
72830 2007-03-04  Bruno Haible  <bruno@clisp.org>
72831
72832         Compile relocatable.c only if --enable-relocatable is specified.
72833         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72834         gl_RELOCATABLE_LIBRARY.
72835         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72836         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72837         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72838         gl_RELOCATABLE_LIBRARY.
72839         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72840         (Makefile.am): Remove lib_SOURCES.
72841         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72842         gl_RELOCATABLE_LIBRARY.
72843         (Makefile.am): Remove lib_SOURCES.
72844         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72845         always.
72846         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72847         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72848
72849 2007-03-04  Bruno Haible  <bruno@clisp.org>
72850
72851         * modules/argmatch-tests: New file.
72852         * tests/test-argmatch.c: New file.
72853
72854         * tests/test-allocsa.c (main): Halve the number of loop runs.
72855
72856         * modules/alloca-opt-tests: New file.
72857         * tests/test-alloca-opt.c: New file.
72858
72859 2007-03-04  Jim Meyering  <jim@meyering.net>
72860
72861         Work around difference between Linux ACLs and Solaris 10 ZFS.
72862         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72863         for EINVAL.
72864
72865 2007-03-03  Bruno Haible  <bruno@clisp.org>
72866
72867         * modules/relocatable-prog (Depends-on): Add back progreloc's
72868         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72869
72870 2007-03-03  Bruno Haible  <bruno@clisp.org>
72871
72872         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72873         * modules/relocatable-lib: New file.
72874
72875 2007-03-03  Bruno Haible  <bruno@clisp.org>
72876
72877         * modules/relocatable-prog: Renamed from modules/relocatable.
72878         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72879
72880 2007-03-03  Bruno Haible  <bruno@clisp.org>
72881
72882         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72883         m4/relocatable-lib.m4.
72884         (Depends-on): Remove 'relocatable'.
72885         (configure.ac): Add gl_RELOCATABLE_NOP.
72886
72887 2007-03-03  Bruno Haible  <bruno@clisp.org>
72888
72889         * modules/relocatable-prog-wrapper: New file.
72890         * modules/relocatable (Depends-on): Add it. Remove all other
72891         dependencies except progname.
72892         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72893
72894         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72895         (gl_FUNC_STRERROR): Nop.
72896         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72897
72898         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72899         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72900
72901         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72902         (gl_FUNC_READLINK): Update.
72903
72904         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72905
72906 2007-03-03  Bruno Haible  <bruno@clisp.org>
72907
72908         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72909         * modules/xreadlink (Depends-on): Add unistd.
72910         * modules/xreadlink-with-size (Depends-on): Likewise.
72911
72912 2007-03-03  Bruno Haible  <bruno@clisp.org>
72913
72914         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72915         extracted from gt_FUNC_SETENV.
72916         (gt_FUNC_SETENV): Remove macro.
72917         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72918         remove gt_FUNC_SETENV.
72919
72920 2007-03-03  Bruno Haible  <bruno@clisp.org>
72921
72922         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72923         ENABLE_RELOCATABLE here.
72924         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72925
72926 2007-03-03  Bruno Haible  <bruno@clisp.org>
72927
72928         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72929         * tests/test-rbtreehash_list.c: Include progname.h.
72930         (main): Call set_program_name.
72931
72932         * modules/rbtree-oset-tests (Depends-on): Add progname.
72933         * tests/test-rbtree_oset.c: Include progname.h.
72934         (main): Call set_program_name.
72935
72936         * modules/rbtree-list-tests (Depends-on): Add progname.
72937         * tests/test-rbtree_list.c: Include progname.h.
72938         (main): Call set_program_name.
72939
72940         * modules/linked-list-tests (Depends-on): Add progname.
72941         * tests/test-linked_list.c: Include progname.h.
72942         (main): Call set_program_name.
72943
72944 2007-03-03  Bruno Haible  <bruno@clisp.org>
72945
72946         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72947         All uses of __restrict changed to _Restrict_.
72948         * lib/glob_.h (__restrict): Remove macro.
72949
72950 2007-03-02  Bruno Haible  <bruno@clisp.org>
72951
72952         * modules/gettext (configure.ac): Require gettext infrastructure
72953         from version 0.16.1.
72954
72955 2007-03-02  Bruno Haible  <bruno@clisp.org>
72956
72957         * modules/linkedhash-list-tests (Depends-on): Add progname.
72958         * tests/test-linkedhash_list.c: Include progname.h.
72959         (main): Call set_program_name.
72960
72961         * modules/carray-list-tests (Depends-on): Add progname.
72962         * tests/test-carray_list.c: Include progname.h.
72963         (main): Call set_program_name.
72964
72965         * modules/avltreehash-list-tests (Depends-on): Add progname.
72966         * tests/test-avltreehash_list.c: Include progname.h.
72967         (main): Call set_program_name.
72968
72969         * modules/avltree-oset-tests (Depends-on): Add progname.
72970         * tests/test-avltree_oset.c: Include progname.h.
72971         (main): Call set_program_name.
72972
72973         * modules/avltree-list-tests (Depends-on): Add progname.
72974         * tests/test-avltree_list.c: Include progname.h.
72975         (main): Call set_program_name.
72976
72977         * modules/array-oset-tests (Depends-on): Add progname.
72978         * tests/test-array_oset.c: Include progname.h.
72979         (main): Call set_program_name.
72980
72981         * modules/array-list-tests (Depends-on): Add progname.
72982         * tests/test-array_list.c: Include progname.h.
72983         (main): Call set_program_name.
72984
72985         * modules/argp-tests (Depends-on): Add progname.
72986         * tests/test-argp.c: Include argp.h first. Include progname.h.
72987         (main): Call set_program_name.
72988
72989 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72990
72991         * doc/gnulib-tool.texi (Initial import): Reword description of
72992         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72993         limited effect even if defined after the first system include.
72994
72995 2007-03-01  Bruno Haible  <bruno@clisp.org>
72996
72997         * build-aux/config.libpath: Update to libtool-1.5.22.
72998         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72999
73000 2007-03-01  Bruno Haible  <bruno@clisp.org>
73001
73002         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73003         foo_CFLAGS.
73004         Reported by Ralf Wildenhues.
73005
73006 2007-03-01  Bruno Haible  <bruno@clisp.org>
73007
73008         * build-aux/install-reloc: Remove object files left over by some
73009         compilers.
73010         Reported by Ralf Wildenhues.
73011
73012 2007-03-01  Bruno Haible  <bruno@clisp.org>
73013
73014         * build-aux/install-reloc: Break long lines.
73015
73016 2007-03-01  Bruno Haible  <bruno@clisp.org>
73017
73018         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73019         Reported by Ralf Wildenhues.
73020
73021 2007-03-01  Bruno Haible  <bruno@clisp.org>
73022
73023         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73024         include ordering constraints.
73025
73026 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73027
73028         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73030         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73031         as another example.
73032         * lib/time_.h: Fix misspelling.
73033         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73034         Require gl_HEADER_TIME_H_DEFAULTS.
73035         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73036         * m4/time_r.m4 (gl_TIME_R): Likewise.
73037         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73038
73039 2007-03-01  Bruno Haible  <bruno@clisp.org>
73040
73041         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73042         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73043
73044 2007-03-01  Jim Meyering  <jim@meyering.net>
73045
73046         * modules/xreadlink (Maintainer): Add my name.
73047         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73048
73049 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73050             Bruno Haible  <bruno@clisp.org>
73051
73052         * build-aux/install-reloc: Compile also c-ctype.c.
73053         * build-aux/relocatable.sh.in: New file.
73054         * doc/relocatable.texi: New file.
73055         * doc/relocatable-maint.texi: New file.
73056         * doc/gnulib.texi: Include relocatable-maint.texi.
73057         * lib/progreloc.c: Include unistd.h unconditionally.
73058         * lib/relocwrapper.c: Include unistd.h unconditionally.
73059         Include c-ctype.h.
73060         (add_dotbin): Use c_tolower.
73061         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73062         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73063         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73064         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73065         to m4/relocatable-lib.m4.
73066         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73067         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73068         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73069         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73070         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73071         * modules/relocatable: New file.
73072         * modules/relocatable-lib: New file.
73073         * modules/relocatable-script: New file.
73074
73075 2007-02-28  Bruno Haible  <bruno@clisp.org>
73076
73077         Import --enable-relocatable infrastructure.
73078         * build-aux/config.libpath: New file, from GNU gettext.
73079         * build-aux/install-reloc: New file, from GNU gettext.
73080         * build-aux/reloc-ldflags: New file, from GNU gettext.
73081         * lib/relocatable.h: New file, from GNU gettext.
73082         * lib/relocatable.c: New file, from GNU gettext.
73083         * lib/relocwrapper.c: New file, from GNU gettext.
73084         * m4/relocatable.m4: New file, from GNU gettext.
73085
73086 2007-02-28  Bruno Haible  <bruno@clisp.org>
73087
73088         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73089
73090         * modules/xreadlink: New file, from GNU gettext with modifications.
73091         * lib/xreadlink.c: New file, from GNU gettext.
73092         * lib/xreadlink.h: Add comments.
73093         (xreadlink): New declaration.
73094
73095         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73096         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73097         lib/xreadlink-with-size.c.
73098         (configure.ac): Remove gl_XREADLINK invocation.
73099         (Makefile.am): Augment lib_SOURCES.
73100         * m4/xreadlink.m4: Remove file.
73101         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73102         (xreadlink_with_size): Renamed from xreadink.
73103         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73104         * modules/canonicalize (Depends-on): Replace xreadlink with
73105         xreadlink-with-size.
73106         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73107
73108 2007-02-25  Jim Meyering  <jim@meyering.net>
73109
73110         * build-aux/announce-gen: When complaining about excess arguments,
73111         list them.
73112
73113 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73114
73115         * README: Document signed integer overflow situation more
73116         accurately.
73117
73118 2007-02-25  Bruno Haible  <bruno@clisp.org>
73119
73120         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73121         'a' or 'A' conversion.
73122
73123 2007-02-25  Bruno Haible  <bruno@clisp.org>
73124
73125         * modules/filename: Renamed from modules/pathname.
73126         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73127         lib/concatpath.c with lib/concat-filename.c.
73128         (Makefile.am): Update.
73129         (Include): Replace pathname.h with filename.h.
73130         * lib/filename.h: Renamed from lib/pathname.h.
73131         (concatenated_filename): Renamed from concatenated_pathname.
73132         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73133         (concatenated_filename): Renamed from concatenated_pathname.
73134         * lib/findprog.c: Include filename.h instead of pathname.h.
73135         (find_in_path): Update.
73136         * lib/javacomp.c: Include filename.h instead of pathname.h.
73137         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73138         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73139         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73140         is_oldgcj_14_13_usable, is_javac_usable): Update.
73141         * lib/javaexec.c: Include filename.h instead of pathname.h.
73142         (execute_java_class): Update.
73143         * modules/findprog: Update.
73144         * modules/javacomp: Update.
73145         * modules/javaexec: Update.
73146         * MODULES.html.sh (File system functions): Add 'filename', remove
73147         'pathname'.
73148
73149 2007-02-25  Bruno Haible  <bruno@clisp.org>
73150
73151         * modules/printf-frexpl-tests: New file.
73152         * tests/test-printf-frexpl.c: New file.
73153
73154         * modules/printf-frexpl: New file.
73155         * lib/printf-frexpl.h: New file.
73156         * lib/printf-frexpl.c: New file.
73157         * m4/printf-frexpl.m4: New file.
73158
73159 2007-02-25  Bruno Haible  <bruno@clisp.org>
73160
73161         * modules/printf-frexp-tests: New file.
73162         * tests/test-printf-frexp.c: New file.
73163
73164         * modules/printf-frexp: New file.
73165         * lib/printf-frexp.h: New file.
73166         * lib/printf-frexp.c: New file.
73167         * m4/printf-frexp.m4: New file.
73168
73169 2007-02-25  Bruno Haible  <bruno@clisp.org>
73170
73171         Assume automake >= 1.10 for the tests.
73172         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73173         * modules/arctwo-tests: Likewise.
73174         * modules/argp-tests: Likewise.
73175         * modules/avltree-list-tests: Likewise.
73176         * modules/avltree-oset-tests: Likewise.
73177         * modules/avltreehash-list-tests: Likewise.
73178         * modules/carray-list-tests: Likewise.
73179         * modules/crc-tests: Likewise.
73180         * modules/des-tests: Likewise.
73181         * modules/gc-arcfour-tests: Likewise.
73182         * modules/gc-arctwo-tests: Likewise.
73183         * modules/gc-des-tests: Likewise.
73184         * modules/gc-hmac-md5-tests: Likewise.
73185         * modules/gc-hmac-sha1-tests: Likewise.
73186         * modules/gc-md2-tests: Likewise.
73187         * modules/gc-md4-tests: Likewise.
73188         * modules/gc-md5-tests: Likewise.
73189         * modules/gc-pbkdf2-sha1-tests: Likewise.
73190         * modules/gc-rijndael-tests: Likewise.
73191         * modules/gc-sha1-tests: Likewise.
73192         * modules/gc-tests: Likewise.
73193         * modules/getaddrinfo-tests: Likewise.
73194         * modules/hmac-md5-tests: Likewise.
73195         * modules/hmac-sha1-tests: Likewise.
73196         * modules/linked-list-tests: Likewise.
73197         * modules/linkedhash-list-tests: Likewise.
73198         * modules/lock-tests: Likewise.
73199         * modules/md2-tests: Likewise.
73200         * modules/md4-tests: Likewise.
73201         * modules/md5-tests: Likewise.
73202         * modules/rbtree-list-tests: Likewise.
73203         * modules/rbtree-oset-tests: Likewise.
73204         * modules/rbtreehash-list-tests: Likewise.
73205         * modules/read-file-tests: Likewise.
73206         * modules/rijndael-tests: Likewise.
73207         * modules/stdint-tests: Likewise.
73208         * modules/tls-tests: Likewise.
73209
73210 2007-02-24  Bruno Haible  <bruno@clisp.org>
73211
73212         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73213         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73214         function; instead check whether isnan with a double argument links.
73215         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73216         function; instead check whether isnan with a 'long double' argument
73217         links.
73218         Reported by Eric Blake <ebb9@byu.net>.
73219
73220 2007-02-24  Bruno Haible  <bruno@clisp.org>
73221
73222         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73223         defined.
73224         * lib/isnanl.c: Remove all code. Just include isnan.c.
73225         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73226
73227 2007-02-25  Jim Meyering  <jim@meyering.net>
73228
73229         Avoid conflicting types for 'unsetenv' on FreeBSD.
73230         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73231         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73232         in stdlib.h.
73233
73234 2007-02-24  Bruno Haible  <bruno@clisp.org>
73235
73236         * modules/isnanl-nolibm-tests: New file.
73237         * tests/test-isnanl.c: New file.
73238
73239         * modules/isnanl-nolibm: New file.
73240         * lib/isnanl.h: New file.
73241         * lib/isnanl.c: New file.
73242         * m4/isnanl.m4: New file.
73243
73244 2007-02-24  Bruno Haible  <bruno@clisp.org>
73245
73246         * modules/isnan-nolibm-tests: New file.
73247         * tests/test-isnan.c: New file.
73248
73249         * modules/isnan-nolibm: New file.
73250         * lib/isnan.h: New file.
73251         * lib/isnan.c: New file.
73252         * m4/isnan.m4: New file.
73253
73254 2007-02-24  Bruno Haible  <bruno@clisp.org>
73255
73256         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73257         assume that an exponent fits in 20 bits.
73258
73259 2007-02-24  Jim Meyering  <jim@meyering.net>
73260
73261         * m4/regex.m4: Update the description of the configure-time option,
73262         --without-included-regex, to state accurately what the defaults are,
73263         and perhaps to give people an idea why using this option is risky.
73264
73265 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73268         loops on small arguments.  This attempts to avoid the problem
73269         Bruno Haible reported for AIX 4.3.2 in
73270         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73271
73272 2007-02-23  Bruno Haible  <bruno@clisp.org>
73273
73274         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73275         Needed for help2man.
73276
73277 2007-02-23  Karl Berry  <karl@gnu.org>
73278
73279         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73280         exists, foo.h should be cvs-ignored, not committed.
73281
73282 2007-02-23  Eric Blake  <ebb9@byu.net>
73283
73284         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73285         * lib/stat-time.h (includes): Likewise.
73286         * lib/utimecmp.c (includes): Likewise.
73287         * lib/utimens.h (includes): Likewise.
73288         * lib/getdate.y (includes): Also include "timespec.h" for use
73289         internal to the module.
73290         * modules/utimens (Depends-on): Revert yesterday's patch.
73291         * modules/nanosleep (Depends-on): Add missing dependency.
73292
73293 2007-02-22  Bruno Haible  <bruno@clisp.org>
73294
73295         * lib/glob.c: Don't include getlogin_r.h.
73296
73297 2007-02-22  Jim Meyering  <jim@meyering.net>
73298
73299         * modules/utimens (Depends-on): Add timespec, required for
73300         utimens.h's inclusion of timespec.h.
73301
73302 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73305         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73306         Schwab in
73307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73308         I'll try to think of a better way to fix the Solaris problem.
73309
73310         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73311         like glibc; on Solaris 10, it fails with errno == EINVAL.
73312         POSIX says the behavior is unspecified if the first argument is NULL,
73313         so play it safe and never pass NULL to the system getcwd.
73314
73315 2007-02-21  Jim Meyering  <jim@meyering.net>
73316
73317         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73318         of gettimeofday.  It would conflict with the one now always
73319         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73320         an IRIX 6.5 build failure.
73321
73322 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         Minor fixups to port to Solaris 10 with Sun C 5.8.
73325         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73326         * modules/getcwd (Depends-on): Add dirfd.
73327         * lib/putenv.c (putenv): #undef it.
73328         (rpl_putenv): New decl.
73329         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73330
73331 2007-02-20  Bruno Haible  <bruno@clisp.org>
73332
73333         * modules/stdio-tests: New file.
73334         * tests/test-stdio.c: New file.
73335
73336         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73337         (Depends-on): Add stdio.
73338         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73339         (Include): Use <stdio.h> instead of vsnprintf.h.
73340         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73341         HAVE_DECL_VSNPRINTF.
73342         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73343
73344         * modules/snprintf (Files): Remove lib/snprintf.h.
73345         (Depends-on): Add stdio.
73346         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73347         (Include): Use <stdio.h> instead of snprintf.h.
73348         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73349         HAVE_DECL_SNPRINTF.
73350         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73351         * lib/getaddrinfo.c: Likewise.
73352
73353         * modules/stdio: New file.
73354         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73355         * lib/snprintf.h: Remove file.
73356         * lib/vsnprintf.h: Remove file.
73357         * lib/.cppi-disable: Remove snprintf.h.
73358         * m4/stdio_h.m4: New file.
73359         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73360
73361 2007-02-20  Jim Meyering  <jim@meyering.net>
73362
73363         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73364         used by e.g., mingw.  From Bruno Haible.
73365
73366 2007-02-19  Bruno Haible  <bruno@clisp.org>
73367
73368         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73369         warnings.
73370         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73371
73372 2007-02-19  Bruno Haible  <bruno@clisp.org>
73373
73374         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73375         from mingw users.
73376
73377 2007-02-19  Bruno Haible  <bruno@clisp.org>
73378
73379         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73380         warnings.
73381         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73382
73383 2007-02-19  Jim Meyering  <jim@meyering.net>
73384
73385         Don't use FD after a successful "fdopendir (fd)".
73386         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73387         Reset it by calling dirfd on the just-obtained DIR*.
73388
73389         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73390         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73391
73392 2007-02-18  Bruno Haible  <bruno@clisp.org>
73393
73394         * lib/readlink.c: Include <unistd.h>.
73395         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73396         HAVE_READLINK.
73397         * modules/readlink (Depends-on): Add unistd.
73398         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73399         (Include): Add <unistd.h>.
73400
73401         * lib/getlogin_r.h: Remove file.
73402         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73403         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73404         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73405         HAVE_DECL_GETLOGIN_R.
73406         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73407         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73408         (Include): Use <unistd.h> instead of getlogin_r.h.
73409
73410         * lib/getcwd.h: Remove file.
73411         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73412         * lib/xgetcwd.c: Likewise.
73413         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73414         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73415         * modules/getcwd (Files): Remove lib/getcwd.h.
73416         (Depends-on): Add unistd.
73417         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73418         (Include): Use <unistd.h> instad of getcwd.h.
73419
73420         * lib/ftruncate.c: Include <unistd.h> first.
73421         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73422         Set HAVE_FTRUNCATE.
73423         * modules/ftruncate (Depends-on): Add unistd.
73424         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73425
73426         * lib/fchdir.c: Include <unistd.h> first.
73427         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73428         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73429         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73430         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73431         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73432
73433         * lib/dup2.c: Include <unistd.h> first.
73434         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73435         HAVE_DUP2.
73436         * modules/dup2 (Depends-on): Add unistd.
73437         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73438
73439         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73440         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73441         REPLACE_CHOWN. Don't define chown as a macro here.
73442         * modules/chown (Depends-on): Add unistd.
73443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73444
73445         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73446         Add definition for GL_LINK_WARNING.
73447         (chown, dup2): New declarations.
73448         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73449         link warning.
73450         (ftruncate): New declaration.
73451         (getcwd): New declaration, taken from old getcwd.h.
73452         (getlogin_r): New declaration, taken from old getlogin_r.h.
73453         (readlink): New declaration.
73454         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73455         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73456         (gl_PREREQ_UNISTD): Remove macro.
73457         (gl_UNISTD_MODULE_INDICATOR): New macro.
73458         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73459         many new variables. Don't set UNISTD_H.
73460         * modules/unistd (Description): Change.
73461         (Depends-on): Add link-warning.
73462         (configure.ac): Update.
73463         (Makefile.am): Create unistd.h always. Substitute many new variables
73464         into it.
73465
73466 2007-02-18  Bruno Haible  <bruno@clisp.org>
73467
73468         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73469         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73470         HAVE_GETSUBOPT.
73471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73472         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73473         * lib/getsubopt.h: Remove file.
73474         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73475         (Depends-on): Add stdlib.
73476         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73477         (Includes): Use <stdlib.h> instead of getsubopt.h.
73478         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73479         Set HAVE_GETSUBOPT.
73480         * lib/getsubopt.c: Don't include getsubopt.h.
73481
73482 2007-02-18  Bruno Haible  <bruno@clisp.org>
73483
73484         * modules/fchdir (Depends-on): Add dup2.
73485
73486 2007-02-18  Bruno Haible  <bruno@clisp.org>
73487
73488         * lib/stdlib_.h: Handle glibc's special invocation convention
73489         specially.
73490
73491 2007-02-18  Bruno Haible  <bruno@clisp.org>
73492
73493         * modules/stdlib-tests: New file.
73494         * tests/test-stdlib.c: New file.
73495
73496         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73497         (Depends-on): Add stdlib.
73498         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73499         (Includes): Use <stdlib.h> instead of mkstemp.h.
73500         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73501         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73502         * lib/mkstemp.c: Don't include mkstemp.h.
73503         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73504         * lib/stdlib--.h: Don't include mkstemp.h.
73505
73506         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73507         (Depends-on): Add stdlib.
73508         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73509         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73510         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73511         HAVE_MKDTEMP.
73512         * lib/mkdtemp.c: Don't include mkdtemp.h.
73513         * lib/clean-temp.c: Don't include mkdtemp.h.
73514
73515         * modules/exit (Files): Remove lib/exit.h.
73516         (Depends-on): Add stdlib.
73517         (Makefile.am): Remove lib_SOURCES.
73518         (Include): Use <stdlib.h> instead of exit.h.
73519         * lib/argmatch.c: Don't include exit.h.
73520         * lib/execute.c: Likewise.
73521         * lib/pagealign_alloc.c: Likewise.
73522         * lib/pipe.c: Likewise.
73523         * lib/wait-process.c: Likewise.
73524         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73525         * lib/exitfail.c: Likewise.
73526         * lib/savewd.c: Likewise.
73527         * lib/xsetenv.c: Likewise.
73528
73529         * modules/stdlib: New file.
73530         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73531         and extra comments about mkstemp().
73532         * lib/exit.h: Remove file.
73533         * lib/mkdtemp.h: Remove file.
73534         * lib/mkstemp.h: Remove file.
73535         * m4/stdlib_h.m4: New file.
73536         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73537
73538 2007-02-18  Bruno Haible  <bruno@clisp.org>
73539
73540         * modules/math-tests: New file.
73541         * tests/test-math.c: New file.
73542
73543         * modules/math: New file.
73544         * modules/mathl (Files): Remove lib/mathl.h.
73545         (Depends-on): Add math.
73546         (Makefile.am): Don't mention mathl.h.
73547         (Include): Use <math.h> instead of mathl.h.
73548         * lib/math_.h: New file.
73549         * lib/mathl.h: Remove file.
73550         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73551         mathl.h.
73552         * lib/asinl.c: Likewise.
73553         * lib/atanl.c: Likewise.
73554         * lib/ceill.c: Likewise.
73555         * lib/cosl.c: Likewise.
73556         * lib/expl.c: Likewise.
73557         * lib/floorl.c: Likewise.
73558         * lib/frexpl.c: Likewise.
73559         * lib/ldexpl.c: Likewise.
73560         * lib/logl.c: Likewise.
73561         * lib/sincosl.c: Likewise.
73562         * lib/sinl.c: Likewise.
73563         * lib/sqrtl.c: Likewise.
73564         * lib/tanl.c: Likewise.
73565         * lib/trigl.c: Likewise.
73566         * m4/math_h.m4: New file.
73567         * MODULES.html.sh (Mathematics): Add math.
73568
73569 2007-02-17  Bruno Haible  <bruno@clisp.org>
73570
73571         * modules/wctype-tests: New file.
73572         * tests/test-wctype.c: New file.
73573
73574         * modules/wchar-tests: New file.
73575         * tests/test-wchar.c: New file.
73576
73577         * modules/unistd-tests: New file.
73578         * tests/test-unistd.c: New file.
73579
73580         * modules/time-tests: New file.
73581         * tests/test-time.c: New file.
73582
73583         * modules/sysexits-tests: New file.
73584         * tests/test-sysexits.c: New file.
73585
73586         * modules/sys_time-tests: New file.
73587         * tests/test-sys_time.c: New file.
73588
73589         * modules/sys_stat-tests: New file.
73590         * tests/test-sys_stat.c: New file.
73591
73592         * modules/sys_socket-tests: New file.
73593         * tests/test-sys_socket.c: New file.
73594
73595         * modules/sys_select-tests: New file.
73596         * tests/test-sys_select.c: New file.
73597
73598         * modules/string-tests: New file.
73599         * tests/test-string.c: New file.
73600
73601         * modules/stdbool-tests: New file.
73602         * tests/test-stdbool.c: New file.
73603
73604         * modules/netinet_in-tests: New file.
73605         * tests/test-netinet_in.c: New file.
73606
73607         * modules/inttypes-tests: New file.
73608         * tests/test-inttypes.c: New file.
73609
73610         * modules/fcntl-tests: New file.
73611         * tests/test-fcntl.c: New file.
73612
73613         * modules/byteswap-tests: New file.
73614         * tests/test-byteswap.c: New file.
73615
73616         * modules/arpa_inet-tests: New file.
73617         * tests/test-arpa_inet.c: New file.
73618
73619 2007-02-17  Bruno Haible  <bruno@clisp.org>
73620
73621         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73622         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73623         if the corresponding module is not enabled. Emit link warnings if
73624         the function is used nevertheless.
73625         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73626         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73627         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73628         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73629         * modules/inttypes (Depends-on): Add link-warning.
73630         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73631         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73632         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73633         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73634         * modules/imaxdiv (configure.ac): Likewise.
73635         * modules/strtoimax (configure.ac): Likewise.
73636         * modules/strtoumax (configure.ac): Likewise.
73637
73638 2007-02-17  Bruno Haible  <bruno@clisp.org>
73639
73640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73641         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73642         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73643         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73644
73645 2007-02-17  Bruno Haible  <bruno@clisp.org>
73646
73647         * modules/link-warning: New file.
73648         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73649         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73650         * modules/string (Depends-on): Add link-warning.
73651         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73652         string.h.
73653         * MODULES.html.sh (Support for building libraries and executables): Add
73654         link-warning.
73655
73656 2007-02-17  Bruno Haible  <bruno@clisp.org>
73657
73658         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73659         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73660         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73661         long lines.
73662
73663 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73664             Bruno Haible  <bruno@clisp.org>
73665
73666         * modules/tmpfile: New file.
73667         * lib/tmpfile.c: New file.
73668         * m4/tmpfile.m4: New file.
73669         * MODULES.html.sh (func_all_modules): New section "Input/output".
73670
73671 2007-02-15  Bruno Haible  <bruno@clisp.org>
73672
73673         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73674         (supports_delete_on_close): New function.
73675         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73676
73677 2007-02-14  Bruno Haible  <bruno@clisp.org>
73678
73679         * modules/mbspcasecmp-tests: New file.
73680         * tests/test-mbspcasecmp.sh: New file.
73681         * tests/test-mbspcasecmp.c: New file.
73682
73683         New module mbspcasecmp.
73684         * modules/mbspcasecmp: New file.
73685         * lib/mbspcasecmp.c: New file.
73686         * lib/string_.h (strncasecmp): Change warning message.
73687         (mbspcasecmp): New declaration.
73688         * m4/mbspcasecmp.m4: New file.
73689         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73690         GNULIB_MBSPCASECMP.
73691         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73692         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73693
73694 2007-02-14  Bruno Haible  <bruno@clisp.org>
73695
73696         * modules/mbsncasecmp-tests: New file.
73697         * tests/test-mbsncasecmp.sh: New file.
73698         * tests/test-mbsncasecmp.c: New file.
73699
73700         New module mbsncasecmp.
73701         * modules/mbsncasecmp: New file.
73702         * lib/mbsncasecmp.c: New file.
73703         * lib/string_.h (mbsncasecmp): New declaration.
73704         * m4/mbsncasecmp.m4: New file.
73705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73706         GNULIB_MBSNCASECMP.
73707         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73708         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73709
73710 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73713         Verify that it doesn't overlap with our flags.
73714         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73715         do not have the desired effect in multibyte locales; instead, use
73716         mbscasecmp.
73717         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73718         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73719         we don't require GNU fnmatch ourselves (if our users require it, they
73720         should do so explicitly).
73721
73722         Fix regex code so it doesn't rely on strcasecmp.
73723         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73724         Otherwise, include gnulib's langinfo.h.
73725         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73726         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73727         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73728         * modules/regex (FILES): Remove m4/codeset.m4.
73729         (Depends-on): Add localcharset.  Remove strcase.
73730
73731 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73732
73733         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73734         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73735
73736 2007-02-13  Bruno Haible  <bruno@clisp.org>
73737
73738         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73739         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73740
73741 2007-02-12  Bruno Haible  <bruno@clisp.org>
73742
73743         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73744         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73745         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73746         time warning rather than a link error.
73747
73748 2007-02-12  Bruno Haible  <bruno@clisp.org>
73749
73750         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73751         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73752         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73753
73754 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73755
73756         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73757         args, not 2.
73758
73759 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73760
73761         New module 'time', so that apps can include <time.h> as per
73762         POSIX and GNU instead of separate include files like time_r.h
73763         and timegm.h.  This implementation tries out a simpler approach
73764         for replacing decls in standard include files (as compared to
73765         the string module), somewhat as an experiment.
73766
73767         * config/srclist.txt: Comment out mktime.c for now.
73768         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73769         since it doesn't apply any more.  Use generic wording instead.
73770         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73771         'time'.
73772         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73773         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73774         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73775         Don't include <sys/types.h>; no longer needed since we assume C89.
73776         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73777         * lib/strftime.c: Likewise.
73778         * lib/time_r.c: Likewise.
73779         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73780         * lib/nanosleep.c: Include <time.h> first, to check interface.
73781         * lib/strptime.c: Likewise.
73782         * lib/time_r.c: Likewise.
73783         * lib/timegm.c: Likewise.
73784         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73785         needed.
73786         * lib/timegm.c: Don't include timegm.h; no longer needed.
73787         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73788         time.h now handles any problems in that area.
73789         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73790         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73791         that time.h defines struct timespec.
73792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73793         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73794         handles that.
73795         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73796         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73797         needed.  Set REPLACE_LOCALTIME.
73798         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73799         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73800         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73801         nanosleep; time_h.m4 now does that.  Don't require
73802         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73803         module handles this now.
73804         * modules/getdate (Depends-on): Remove timespec.  Add time.
73805         * modules/nanosleep (Depends-on): Likewise.
73806         * modules/stat-time (Depends-on): Likewise.
73807         * modules/nanosleep (Include): Include time.h, not timespec.h.
73808         * modules/strptime (Files): Remove lib/strptime.h.
73809         (Depends-on): Add extensions, time.
73810         (Include): Include time.h, not strptime.h.
73811         * modules/time_r (Files): Remove lib/time_r.h.
73812         (Depends-on): Add time.
73813         (Include): Include time.h, not time_r.h.
73814         * modules/timegm: Likewise.
73815         * modules/timespec (Description): Now does timespec-related decls
73816         of our own, instead of struct timespec itself.
73817         (Depends-on): Add time; remove extensions.
73818         (Maintainer): Add self.
73819         * modules/utimecmp (Depends-on): Add time; remove timespec.
73820         * modules/utimens (Depends-on): Likewise.
73821         * modules/xnanosleep (Depends-on): Likewise.
73822
73823 2007-02-11  Bruno Haible  <bruno@clisp.org>
73824
73825         * lib/c-strstr.c: Include allocsa.h.
73826         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73827         * lib/c-strcasestr.c: Include allocsa.h.
73828         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73829         * lib/strcasestr.c: Include allocsa.h.
73830         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73831         * lib/mbsstr.c: Include allocsa.h.
73832         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73833         allocsa/freesa instead of malloc/free.
73834         * lib/mbscasestr.c: Include allocsa.h.
73835         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73836         allocsa/freesa instead of malloc/free.
73837         * modules/c-strstr (Depends-on): Add allocsa.
73838         * modules/c-strcasestr (Depends-on): Likewise.
73839         * modules/strcasestr (Depends-on): Likewise.
73840         * modules/mbsstr (Depends-on): Likewise.
73841         * modules/mbscasestr (Depends-on): Likewise.
73842
73843 2007-02-11  Bruno Haible  <bruno@clisp.org>
73844
73845         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73846
73847         * modules/mbsspn-tests: New file.
73848         * tests/test-mbsspn.sh: New file.
73849         * tests/test-mbsspn.c: New file.
73850
73851 2007-02-11  Bruno Haible  <bruno@clisp.org>
73852
73853         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73854
73855         * modules/mbspbrk-tests: New file.
73856         * tests/test-mbspbrk.sh: New file.
73857         * tests/test-mbspbrk.c: New file.
73858
73859 2007-02-11  Bruno Haible  <bruno@clisp.org>
73860
73861         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73862         unneeded cast.
73863
73864         * modules/mbscspn-tests: New file.
73865         * tests/test-mbscspn.sh: New file.
73866         * tests/test-mbscspn.c: New file.
73867
73868 2007-02-11  Bruno Haible  <bruno@clisp.org>
73869
73870         * modules/mbscasecmp-tests: New file.
73871         * tests/test-mbscasecmp.sh: New file.
73872         * tests/test-mbscasecmp.c: New file.
73873
73874 2007-02-11  Bruno Haible  <bruno@clisp.org>
73875
73876         Ensure O(n) worst-case complexity of mbscasestr.
73877         * lib/mbscasestr.c: Include stdbool.h.
73878         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73879         functions.
73880         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73881         the bookkeeping indicates that it's worth it.
73882         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73883
73884         * modules/mbscasestr-tests: New file.
73885         * tests/test-mbscasestr1.c: New file.
73886         * tests/test-mbscasestr2.sh: New file.
73887         * tests/test-mbscasestr2.c: New file.
73888         * tests/test-mbscasestr3.sh: New file.
73889         * tests/test-mbscasestr3.c: New file.
73890         * tests/test-mbscasestr4.sh: New file.
73891         * tests/test-mbscasestr4.c: New file.
73892         * m4/locale-tr.m4: New file.
73893
73894 2007-02-11  Bruno Haible  <bruno@clisp.org>
73895
73896         Ensure O(n) worst-case complexity of mbsstr.
73897         * lib/mbsstr.c: Include stdbool.h.
73898         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73899         functions.
73900         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73901         bookkeeping indicates that it's worth it.
73902         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73903
73904         * modules/mbsstr-tests: New file.
73905         * tests/test-mbsstr1.c: New file.
73906         * tests/test-mbsstr2.sh: New file.
73907         * tests/test-mbsstr2.c: New file.
73908         * tests/test-mbsstr3.sh: New file.
73909         * tests/test-mbsstr3.c: New file.
73910         * m4/locale-fr.m4: New file.
73911
73912 2007-02-11  Bruno Haible  <bruno@clisp.org>
73913
73914         * lib/mbsrchr.c (mbsrchr): Fix bug.
73915
73916         * modules/mbsrchr-tests: New file.
73917         * tests/test-mbsrchr.sh: New file.
73918         * tests/test-mbsrchr.c: New file.
73919
73920 2007-02-11  Bruno Haible  <bruno@clisp.org>
73921
73922         * lib/mbschr.c (mbschr): Fix bug.
73923
73924         * modules/mbschr-tests: New file.
73925         * tests/test-mbschr.sh: New file.
73926         * tests/test-mbschr.c: New file.
73927         * m4/locale-zh.m4: New file.
73928
73929 2007-02-11  Bruno Haible  <bruno@clisp.org>
73930
73931         Support for copying multibyte string iterators.
73932         * lib/mbiter.h: Include <string.h>.
73933         (mbiter_multi_copy): New function.
73934         (mbi_copy): New macro.
73935         * lib/mbuiter.h: Include <string.h>.
73936         (mbuiter_multi_copy): New function.
73937         (mbui_copy): New macro.
73938
73939 2007-02-11  Bruno Haible  <bruno@clisp.org>
73940
73941         New module mbslen.
73942         * modules/mbslen: New file.
73943         * lib/mbslen.c: New file.
73944         * lib/string_.h (mbslen): New declaration.
73945         * m4/mbslen.m4: New file.
73946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73947         GNULIB_MBSLEN.
73948         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73949         * MODULES.html.sh (Internationalization functions): Add mbslen.
73950
73951 2007-02-11  Bruno Haible  <bruno@clisp.org>
73952
73953         Ensure O(n) worst-case complexity of strcasestr substitute.
73954         * lib/strcasestr.c: Include stdbool.h.
73955         (knuth_morris_pratt): New function.
73956         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73957         bookkeeping indicates that it's worth it.
73958         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73959
73960         * modules/strcasestr-tests: New file.
73961         * tests/test-strcasestr.c: New file.
73962
73963 2007-02-11  Bruno Haible  <bruno@clisp.org>
73964
73965         Ensure O(n) worst-case complexity of c_strcasestr.
73966         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73967         (knuth_morris_pratt): New function.
73968         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73969         the bookkeeping indicates that it's worth it.
73970         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73971
73972         * modules/c-strcasestr-tests: New file.
73973         * tests/test-c-strcasestr.c: New file.
73974
73975 2007-02-11  Bruno Haible  <bruno@clisp.org>
73976
73977         Ensure O(n) worst-case complexity of c_strstr.
73978         * lib/c-strstr.c: Include stdbool.h, string.h.
73979         (knuth_morris_pratt): New function.
73980         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73981         bookkeeping indicates that it's worth it.
73982         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73983
73984         * lib/c-strstr.c: Complete rewrite for maintainability.
73985
73986         * modules/c-strstr-tests: New file.
73987         * tests/test-c-strstr.c: New file.
73988
73989 2007-02-11  Bruno Haible  <bruno@clisp.org>
73990
73991         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73992         5.2.1 and earlier, whereby \055 was treated just like the range
73993         delimiter '-'.
73994         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73995
73996 2007-02-08  Bruno Haible  <bruno@clisp.org>
73997
73998         * modules/regex (Depends-on): Add stdbool.
73999         Reported by Dalibor Topic <robilad@kaffe.org>.
74000
74001 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74002
74003         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74004         Prefer returning from main to exiting from it.
74005         Remove unnecessary parens after sizeof.
74006
74007 2007-02-05  Bruno Haible  <bruno@clisp.org>
74008
74009         New module mbssep.
74010         * modules/mbssep: New file.
74011         * lib/mbssep.c: New file.
74012         * lib/string_.h (strsep): Add a conditional link warning.
74013         (mbssep): New declaration.
74014         * m4/mbssep.m4: New file.
74015         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74016         GNULIB_MBSSEP.
74017         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74018         * MODULES.html.sh (Internationalization functions): Add mbssep.
74019
74020 2007-02-05  Bruno Haible  <bruno@clisp.org>
74021
74022         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74023         Optimize search in case of 1 delimiter.
74024
74025 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74026
74027         * lib/acl.h: Include sys/types.h before sys/acl.h.
74028
74029 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74030
74031         Merge upstream fix for glibc bugzilla #3957:
74032
74033         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74034
74035         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74036         bit for RE_HAT_LISTS_NOT_NEWLINE.
74037         (build_charclass_op): Remove bogus comment.
74038
74039 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74040
74041         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74042
74043 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74044
74045         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74046         * lib/memmem.c [!defined _LIBC]: Include config.h.
74047
74048 2007-02-04  Bruno Haible  <bruno@clisp.org>
74049
74050         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74051         warning message.
74052
74053 2007-02-04  Bruno Haible  <bruno@clisp.org>
74054
74055         New module mbstok_r.
74056         * modules/mbstok_r: New file.
74057         * lib/mbstok_r.c: New file.
74058         * lib/string_.h (strtok_r): Change argument names to match the
74059         comments. Add a conditional link warning.
74060         (mbstok_r): New declaration.
74061         * m4/mbstok_r.m4: New file.
74062         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74063         GNULIB_MBSTOK_R.
74064         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74065         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74066
74067 2007-02-04  Bruno Haible  <bruno@clisp.org>
74068
74069         New module mbsspn.
74070         * modules/mbsspn: New file.
74071         * lib/mbsspn.c: New file.
74072         * lib/string_.h (strspn): Add a conditional link warning.
74073         (mbsspn): New declaration.
74074         * m4/mbsspn.m4: New file.
74075         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74076         GNULIB_MBSSPN.
74077         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74078         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74079
74080 2007-02-04  Bruno Haible  <bruno@clisp.org>
74081
74082         New module mbspbrk.
74083         * modules/mbspbrk: New file.
74084         * lib/mbspbrk.c: New file.
74085         * lib/string_.h (strpbrk): Add a conditional link warning.
74086         (mbspbrk): New declaration.
74087         * m4/mbspbrk.m4: New file.
74088         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74089         GNULIB_MBSPBRK.
74090         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74091         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74092
74093 2007-02-04  Bruno Haible  <bruno@clisp.org>
74094
74095         New module mbscspn.
74096         * modules/mbscspn: New file.
74097         * lib/mbscspn.c: New file.
74098         * lib/string_.h (strcspn): Add a conditional link warning.
74099         (mbscspn): New declaration.
74100         * m4/mbscspn.m4: New file.
74101         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74102         GNULIB_MBSCSPN.
74103         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74104         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74105
74106 2007-02-04  Bruno Haible  <bruno@clisp.org>
74107
74108         New module mbscasestr, reduced goal of strcasestr.
74109         * modules/mbscasestr: New file.
74110         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74111         (mbscasestr): Renamed from strcasestr.
74112         * lib/strcasestr.c: Don't include mbuiter.h.
74113         (strcasestr): Remove support for multibyte locales.
74114         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74115         Change the conditional link warning.
74116         (mbscasestr): New declaration.
74117         * m4/mbscasestr.m4: New file.
74118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74119         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74120         REPLACE_STRCASESTR.
74121         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74123         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74124         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74125         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74126         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74127         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74128         (Depends-on): Remove mbuiter.
74129         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74130
74131 2007-02-04  Bruno Haible  <bruno@clisp.org>
74132
74133         Simplify handling of strncasecmp.
74134         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74135         the conditional link warning.
74136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74137         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74138         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74139         * modules/strcase (configure.ac): Don't invoke
74140         gl_STRING_MODULE_INDICATOR.
74141         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74142
74143 2007-02-04  Bruno Haible  <bruno@clisp.org>
74144
74145         New module mbscasecmp, reduced goal of strcasecmp.
74146         * modules/mbscasecmp: New file.
74147         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74148         (mbscasecmp): Renamed from strcasecmp.
74149         * lib/strcasecmp.c: Don't include mbuiter.h.
74150         (strcasecmp): Remove support for multibyte locales.
74151         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74152         Change the conditional link warning.
74153         (mbscasecmp): New declaration.
74154         * m4/mbscasecmp.m4: New file.
74155         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74156         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74157         REPLACE_STRCASECMP.
74158         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74159         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74160         GNULIB_MBSCASECMP.
74161         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74162         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74163         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74164         (Depends-on): Remove mbuiter.
74165         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74166
74167 2007-02-04  Bruno Haible  <bruno@clisp.org>
74168
74169         New module mbsstr. Remove module strstr.
74170         * modules/mbsstr: New file.
74171         * modules/strstr: Remove file.
74172         * lib/mbsstr.c: Renamed from lib/strstr.c.
74173         (mbsstr): Renamed from strstr.
74174         * lib/string_.h (strstr): Remove declaration. Change the conditional
74175         link warning.
74176         (mbsstr): New declaration.
74177         * m4/mbsstr.m4: New file.
74178         * m4/strstr.m4: Remove file.
74179         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74180         REPLACE_STRSTR.
74181         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74182         Don't initialize GNULIB_STRSTR.
74183         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74184         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74185         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74186         (Support for systems lacking ANSI C 89): Remove strstr.
74187
74188 2007-02-04  Bruno Haible  <bruno@clisp.org>
74189
74190         New module mbsrchr.
74191         * modules/mbsrchr: New file.
74192         * lib/mbsrchr.c: New file.
74193         * lib/string_.h (strrchr): Add a conditional link warning.
74194         (mbsrchr): New declaration.
74195         * m4/mbsrchr.m4: New file.
74196         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74197         GNULIB_MBSRCHR.
74198         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74199         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74200
74201 2007-02-04  Bruno Haible  <bruno@clisp.org>
74202
74203         New module mbschr.
74204         * modules/mbschr: New file.
74205         * lib/mbschr.c: New file.
74206         * lib/string_.h (strchr): Add a conditional link warning.
74207         (mbschr): New declaration.
74208         * m4/mbschr.m4: New file.
74209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74210         GNULIB_MBSCHR.
74211         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74212         * MODULES.html.sh (Internationalization functions): Add mbschr.
74213
74214 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74215
74216         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74217
74218         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74219
74220 2007-02-04  Bruno Haible  <bruno@clisp.org>
74221
74222         New module description section 'configure.ac-early'.
74223         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74224         (func_get_autoconf_early_snippet): New function.
74225         (func_import, func_create_testdir): Use it. Remove special cases for
74226         modules 'extensions' and 'lock'.
74227         * modules/extensions (configure.ac-early): Require
74228         gl_USE_SYSTEM_EXTENSIONS.
74229         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74230
74231 2007-02-04  Bruno Haible  <bruno@clisp.org>
74232
74233         Make use of gcj-4.3's -fsource and -ftarget option.
74234         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74235         and if so try the options -fsource and -ftarget.
74236         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74237         source_version, ftarget_option, target_version arguments.
74238         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74239         (is_envjavac_oldgcj_14_14_usable): Renamed from
74240         is_envjavac_gcj_14_14_usable.
74241         (is_envjavac_oldgcj_14_13_usable): Renamed from
74242         is_envjavac_gcj_14_13_usable.
74243         (is_gcj_present): Update.
74244         (is_gcj_43, is_gcj43_usable): New functions.
74245         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74246         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74247         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74248         try the options -fsource and -ftarget.
74249
74250 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74251
74252         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74253         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74254         larger value.
74255
74256 2007-02-03  Jim Meyering  <jim@meyering.net>
74257
74258         Give tools a better chance to allocate space for very large buffers.
74259         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74260
74261         Make pwd and readlink work also when run with an unreadable parent dir
74262         on systems with openat support.
74263         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74264         provided getcwd function, even when we have openat support.
74265         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74266
74267 2007-02-02  Bruno Haible  <bruno@clisp.org>
74268
74269         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74270         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74271         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74272         portability problems if one of these functions is only used on specific
74273         platforms.
74274         Reported by Paul Eggert.
74275
74276 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74279         is causing more trouble than it's curing.
74280         * lib/regex_internal.h (__mempcpy): Remove.
74281         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74282         (and make the code a tad smaller to boot).
74283         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74284
74285 2007-02-02  Jim Meyering  <jim@meyering.net>
74286
74287         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74288         section, not in the Makefile.am: one.
74289
74290 2007-02-02  Eric Blake  <ebb9@byu.net>
74291
74292         * lib/strchrnul.c: Always include config.h first.
74293
74294         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74295         gnulib strstr is not necessary here.
74296
74297 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74298
74299         * m4/socklen.m4: Fix typo.
74300
74301 2007-02-02  Eric Blake  <ebb9@byu.net>
74302
74303         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74304         * modules/netinet_in (Makefile.am): Likewise.
74305
74306 2007-02-01  Bruno Haible  <bruno@clisp.org>
74307
74308         * lib/string_.h (GL_LINK_WARNING): New macro.
74309         (strcasecmp, strstr, strcasestr): If provided by the system,
74310         conditionally define as a macro that leads to a warning instead of to
74311         an error.
74312         (strncasecmp): Conditionally define as a macro that leads to a warning.
74313
74314 2007-02-01  Karl Berry  <karl@gnu.org>
74315
74316         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74317
74318 2007-02-01  Bruno Haible  <bruno@clisp.org>
74319
74320         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74321         renamings.
74322
74323 2007-02-01  Eric Blake  <ebb9@byu.net>
74324
74325         * modules/regex (Depends-on): Revert dependence on mempcpy.
74326         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74327         module's definition of mempcpy.
74328         Reported by Paul Eggert.
74329
74330 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74333         the symbol XYZ before redefining it.  This fixes a problem with
74334         programs that don't use XYZ, when compiled on systems that define
74335         XYZ to something else.
74336
74337 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74340         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74341         writeable to group or other and (2) is intended to have a special
74342         mode bit that is set or cleared.  In such a case, the directory
74343         should be neither group- nor other-writeable until the special
74344         mode bits are right.
74345
74346 2007-01-31  Eric Blake  <ebb9@byu.net>
74347
74348         * modules/mountlist (Depends-on): Add strstr.
74349
74350         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74351         bug.
74352         * modules/string (Makefile.am): Remove redundant replacement.
74353         * modules/regex (Depends-on): Add mempcpy.
74354
74355 2007-01-31  Bruno Haible  <bruno@clisp.org>
74356
74357         New module description field 'Link'.
74358         * gnulib-tool (func_usage): Document --extract-link-directive.
74359         (sed_extract_prog): Recognize 'Link' directive.
74360         (func_get_link_directive): New function.
74361         (func_import): Show summary of link directives.
74362         Handle --extract-link-directive option.
74363         * modules/acl (Link): New section.
74364         * modules/clock-time (Link): New section.
74365         * modules/euidaccess (Link): New section.
74366         * modules/gettext (Link): New section.
74367         * modules/iconv (Link): New section.
74368         * modules/lock (Link): New section.
74369         * modules/nanosleep (Link): New section.
74370         * modules/readline (Link): New section.
74371
74372 2007-01-27  Bruno Haible  <bruno@clisp.org>
74373
74374         Enforce the use of gnulib modules for unportable <string.h> functions.
74375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74376         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74377         (gl_HEADER_STRING_H_BODY): Require it.
74378         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74379         the symbol XYZ to one that gives a link error.
74380         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74381         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74382         * modules/mempcpy (configure.ac): Likewise.
74383         * modules/memrchr (configure.ac): Likewise.
74384         * modules/stpcpy (configure.ac): Likewise.
74385         * modules/stpncpy (configure.ac): Likewise.
74386         * modules/strcase (configure.ac): Likewise.
74387         * modules/strcasestr (configure.ac): Likewise.
74388         * modules/strchrnul (configure.ac): Likewise.
74389         * modules/strdup (configure.ac): Likewise.
74390         * modules/strndup (configure.ac): Likewise.
74391         * modules/strnlen (configure.ac): Likewise.
74392         * modules/strpbrk (configure.ac): Likewise.
74393         * modules/strsep (configure.ac): Likewise.
74394         * modules/strstr (configure.ac): Likewise.
74395         * modules/strtok_r (configure.ac): Likewise.
74396
74397 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74398
74399         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74400
74401 2007-01-30  Jim Meyering  <jim@meyering.net>
74402
74403         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74404
74405 2007-01-29  Bruno Haible  <bruno@clisp.org>
74406
74407         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74408         * lib/execute.c: Likewise.
74409         * lib/pipe.c: Likewise.
74410         * lib/printf-args.h: Likewise.
74411         * lib/printf-args.c: Likewise.
74412         * lib/printf-parse.c: Likewise.
74413         * lib/vasnprintf.c: Likewise.
74414
74415 2007-01-29  Eric Blake  <ebb9@byu.net>
74416
74417         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74418         declaration.
74419
74420 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * lib/strptime.h (strptime): Use 'restrict' for args where
74423         POSIX requires this.
74424         * lib/strptime.c (strptime): Likewise.
74425         Change license notice from LGPL to GPL, since gnulib-tool will
74426         change this as needed.
74427         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74428         defined.
74429         Include "strptime.h" first, to check interface.
74430         Do not #undef _LIBC and _NL_CURRENT.
74431         Do not include <stdlib.h>; no longer needed.
74432         Include "time_r.h" and declare ptime_locale_status
74433         only if _LIBC is not defined.
74434         (__P): Remove unused macro.
74435         (match_string): Bring back glibc version, but use it only if _LIBC
74436         is defined.
74437         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74438         Remove unnecessary assertion and abort() call.
74439         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74440         * m4/strptime.m4: Fix serial number comment.
74441         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74442         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74443         (Depends-on): Add time_r.
74444
74445 2007-01-29  Bruno Haible  <bruno@clisp.org>
74446
74447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74448         strptime.
74449         * modules/strptime (Depends-on): Add stdbool.
74450         * lib/strptime.h: Include <time.h> always. Add comments.
74451
74452 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74453
74454         * modules/strptime: New file.
74455         * lib/strptime.h: New file.
74456         * lib/strptime.c: New file.
74457         * m4/strptime.m4: New file.
74458
74459 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74460
74461         * MODULES.html.sh: New module mpsort.
74462         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74463
74464         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74465         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74466         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74467         All uses changed.
74468         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74469         All uses changed.
74470         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74471         to _Restrict_.
74472         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74473         the parameter matches the prototype.
74474
74475 2007-01-28  Jim Meyering  <jim@meyering.net>
74476
74477         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74478         sys/time.h here, reverting that part of the previous patch:
74479         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74480
74481 2007-01-28  Bruno Haible  <bruno@clisp.org>
74482
74483         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74484         value of $(SYS_TIME_H).
74485         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74486         remove it conditionally, too. [added by Jim Meyering]
74487         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74488         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74489         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74490         GETTIMEOFDAY_REPLACEMENT to 1.
74491
74492 2007-01-28  Bruno Haible  <bruno@clisp.org>
74493
74494         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74495         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74497         Set UNISTD_H instead of UNISTD_H2.
74498         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74499
74500 2007-01-28  Bruno Haible  <bruno@clisp.org>
74501
74502         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74503         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74504
74505 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74506
74507         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74508         (func_create_testdir): Ensure C locale for `grep' and `tr'
74509         character ranges.
74510         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74511         ACLOCAL_AMFLAGS parsing state machine.
74512
74513 2007-01-27  Bruno Haible  <bruno@clisp.org>
74514
74515         * modules/unistr/base: Update.
74516
74517 2007-01-27  Bruno Haible  <bruno@clisp.org>
74518
74519         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74520         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74521         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74522         modules/unistr/u32-mbtouc.
74523         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74524         * lib/unistr.h: Update.
74525         * lib/linebreak.c: Update.
74526         * modules/unistr/u32-mbtouc: Renamed from
74527         modules/unistr/u32-mbtouc-safe.
74528         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74529         * lib/unistr.h: Update.
74530         * lib/unistr/u32-to-u8.c: Update.
74531         * lib/unistr/u32-to-u16.c: Update.
74532
74533 2007-01-27  Bruno Haible  <bruno@clisp.org>
74534
74535         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74536         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74537         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74538         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74539         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74540         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74541         modules/unistr/u16-mbtouc.
74542         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74543         * lib/unistr.h: Update.
74544         * lib/linebreak.c: Update.
74545         * modules/linebreak: Update.
74546         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74547         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74548         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74549         * modules/unistr/u16-mbtouc: Renamed from
74550         modules/unistr/u16-mbtouc-safe.
74551         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74552         * lib/unistr.h: Update.
74553         * lib/unistr/u16-to-u8.c: Update.
74554         * modules/unistr/u16-to-u8: Update.
74555         * lib/unistr/u16-to-u32.c: Update.
74556         * modules/unistr/u16-to-u32: Update.
74557
74558 2007-01-27  Bruno Haible  <bruno@clisp.org>
74559
74560         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74561         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74562         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74563         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74564         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74565         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74566         modules/unistr/u8-mbtouc.
74567         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74568         * lib/unistr.h: Update.
74569         * lib/striconveh.c: Update.
74570         * modules/striconveh: Update.
74571         * lib/linebreak.c: Update.
74572         * modules/linebreak: Update.
74573         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74574         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74575         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74576         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74577         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74578         * lib/unistr.h: Update.
74579         * lib/striconveh.c: Update.
74580         * modules/striconveh: Update.
74581         * lib/unistr/u8-to-u16.c: Update.
74582         * modules/unistr/u8-to-u16: Update.
74583         * lib/unistr/u8-to-u32.c: Update.
74584         * modules/unistr/u8-to-u32: Update.
74585
74586 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74587
74588         Sync from Libtool.
74589         * lib/argz.c: Do not include strings.h nor memory.h, include
74590         string.h unconditionally.  Patch by Simon Josefsson.
74591
74592 2007-01-27  Bruno Haible  <bruno@clisp.org>
74593
74594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74595         from gl_HEADER_STRING_H_BODY.
74596         (gl_HEADER_STRING_H_BODY): Require it.
74597         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74598         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74599         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74600         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74601         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74602         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74604         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74605         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74606         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74607         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74608         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74609         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74610         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74611         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74612
74613 2007-01-27  Bruno Haible  <bruno@clisp.org>
74614
74615         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74616         check_PROGRAMS into noinst_PROGRAMS.
74617         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74618         check_PROGRAMS in this case.
74619         (func_import): Set for_test to false.
74620         (func_create_testdir): Set for_test to true.
74621
74622 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74623             Bruno Haible  <bruno@clisp.org>
74624
74625         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74626         (Depends-on): Add string.
74627         (Includes): Use <string.h> instead of strcasestr.h.
74628         * modules/string (Makefile.am): Also substitute the value of
74629         REPLACE_STRCASESTR.
74630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74631         assume strcasestr is declared in <string.h> not <strings.h>. Also
74632         set REPLACE_STRCASESTR.
74633         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74634         REPLACE_STRCASESTR.
74635         * lib/strcasestr.h: Remove file.
74636         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74637         * lib/string_.h (strcasestr): New declaration.
74638
74639 2007-01-27  Bruno Haible  <bruno@clisp.org>
74640
74641         * lib/string_.h: Use 'extern'.
74642
74643 2007-01-27  Jim Meyering  <jim@meyering.net>
74644
74645         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74646         of set-but-not-used local, "q".
74647
74648         * lib/mempcpy.c: Include <config.h> before <string.h>.
74649         This fixes a compilation error on HP-UX, due to the system's
74650         "restrict"-using mempcpy prototype.
74651
74652 2007-01-26  Bruno Haible  <bruno@clisp.org>
74653
74654         Small optimization.
74655         * lib/javacomp.c: Include c-strstr.h.
74656          (is_envjavac_gcj): Use c_strstr instead of strstr.
74657         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74658
74659 2007-01-26  Bruno Haible  <bruno@clisp.org>
74660
74661         * MODULES.html.sh (Unicode string functions): Add the new modules.
74662
74663         * modules/uniconv/u32-strconv-to-locale: New file.
74664         * lib/uniconv/u32-strconv-to-locale.c: New file.
74665
74666         * modules/uniconv/u16-strconv-to-locale: New file.
74667         * lib/uniconv/u16-strconv-to-locale.c: New file.
74668
74669         * modules/uniconv/u8-strconv-to-locale: New file.
74670         * lib/uniconv/u8-strconv-to-locale.c: New file.
74671
74672         * modules/uniconv/u32-strconv-from-locale: New file.
74673         * lib/uniconv/u32-strconv-from-locale.c: New file.
74674
74675         * modules/uniconv/u16-strconv-from-locale: New file.
74676         * lib/uniconv/u16-strconv-from-locale.c: New file.
74677
74678         * modules/uniconv/u8-strconv-from-locale: New file.
74679         * lib/uniconv/u8-strconv-from-locale.c: New file.
74680
74681         * modules/uniconv/u32-strconv-to-enc: New file.
74682         * lib/uniconv/u32-strconv-to-enc.c: New file.
74683         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74684         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74685
74686         * modules/uniconv/u16-strconv-to-enc: New file.
74687         * lib/uniconv/u16-strconv-to-enc.c: New file.
74688         * lib/uniconv/u-strconv-to-enc.h: New file.
74689         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74690         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74691
74692         * modules/uniconv/u8-strconv-to-enc: New file.
74693         * lib/uniconv/u8-strconv-to-enc.c: New file.
74694         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74695         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74696
74697         * modules/uniconv/u32-strconv-from-enc: New file.
74698         * lib/uniconv/u32-strconv-from-enc.c: New file.
74699         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74700         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74701
74702         * modules/uniconv/u16-strconv-from-enc: New file.
74703         * lib/uniconv/u16-strconv-from-enc.c: New file.
74704         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74705         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74706
74707         * modules/uniconv/u8-strconv-from-enc: New file.
74708         * lib/uniconv/u8-strconv-from-enc.c: New file.
74709         * lib/uniconv/u-strconv-from-enc.h: New file.
74710         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74711         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74712
74713         * modules/uniconv/u32-conv-from-enc: New file.
74714         * lib/uniconv/u32-conv-from-enc.c: New file.
74715         * modules/uniconv/u32-conv-from-enc-tests: New file.
74716         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74717
74718         * modules/uniconv/u16-conv-from-enc: New file.
74719         * lib/uniconv/u16-conv-from-enc.c: New file.
74720         * lib/uniconv/u-conv-from-enc.h: New file.
74721         * modules/uniconv/u16-conv-from-enc-tests: New file.
74722         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74723
74724         * modules/uniconv/u8-conv-from-enc: New file.
74725         * lib/uniconv/u8-conv-from-enc.c: New file.
74726         * modules/uniconv/u8-conv-from-enc-tests: New file.
74727         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74728
74729         * modules/uniconv/base: New file.
74730         * lib/uniconv.h: New file.
74731
74732 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74733
74734         * doc/gnulib-tool.texi (Initial import): Update to match current
74735         behavior with strdup module.
74736         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74737         * lib/memmem.h: Remove; all uses removed.  This is now done
74738         by <string.h>.
74739         * lib/mempcpy.h: Likewise.
74740         * lib/memrchr.h: Likewise.
74741         * lib/stpcpy.h: Likewise.
74742         * lib/stpncpy.h: Likewise.
74743         * lib/strcase.h: Likewise.
74744         * lib/strchrnul.h: Likewise.
74745         * lib/strdup.h: Likewise.
74746         * lib/strndup.h: Likewise.
74747         * lib/strnlen.h: Likewise.
74748         * lib/strpbrk.h: Likewise.
74749         * lib/strsep.h: Likewise.
74750         * lib/strstr.h: Likewise.
74751         * lib/strtok_r.h: Likewise.
74752         * lib/string_.h: New file.
74753         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74754         Rely on <string.h> instead.
74755         * lib/canon-host.c: Likewise.
74756         * lib/chdir-long.c: Likewise.
74757         * lib/concatpath.c: Likewise.
74758         * lib/exclude.c: Likewise.
74759         * lib/fchdir.c: Likewise.
74760         * lib/getaddrinfo.c: Likewise.
74761         * lib/getcwd.c: Likewise.
74762         * lib/getsubopt.c: Likewise.
74763         * lib/glob.c: Likewise.
74764         * lib/hard-locale.c: Likewise.
74765         * lib/iconvme.c: Likewise.
74766         * lib/javacomp.c: Likewise.
74767         * lib/mempcpy.c: Likewise.
74768         * lib/memrchr.c: Likewise.
74769         * lib/regex_internal.h: Likewise.
74770         * lib/stpncpy.c: Likewise.
74771         * lib/strcasecmp.c: Likewise.
74772         * lib/strchrnul.c: Likewise.
74773         * lib/strdup.c: Likewise.
74774         * lib/striconv.c: Likewise.
74775         * lib/striconveh.c: Likewise.
74776         * lib/striconveha.c: Likewise.
74777         * lib/strncasecmp.c: Likewise.
74778         * lib/strndup.c: Likewise.
74779         * lib/strnlen.c: Likewise.
74780         * lib/strsep.c: Likewise.
74781         * lib/strstr.c: Likewise.
74782         * lib/strtok_r.c: Likewise.
74783         * lib/userspec.c: Likewise.
74784         * lib/w32spawn.h: Likewise.
74785         * lib/xstrndup.c: Likewise.
74786         * lib/mountlist.c (strstr): Remove decl.
74787         * m4/string_h.m4: New file.
74788         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74789         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74790         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74791         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74792         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74793         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74794         Set REPLACE_STRCASECMP if necessary.
74795         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74796         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74797         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74798         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74799         HAVE_DECL_STRDUP if necessary.
74800         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74801         since gl_FUNC_STRNDUP does that now.
74802         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74803         Check for decl here...
74804         (gl_PREREQ_STRNLEN): ... not here.
74805         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74806         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74807         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74808         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74809         necessary.
74810         * modules/string: New file.
74811         * modules/memmem (Files): Remove special-purpose include file.
74812         (Depends-on): Add string.
74813         (Include): Include <string.h>, not the removed file.
74814         * modules/mempcpy: Likewise.
74815         * modules/memrchr: Likewise.
74816         * modules/stpcpy: Likewise.
74817         * modules/stpncpy: Likewise.
74818         * modules/strcase: Likewise.
74819         * modules/strchrnul: Likewise.
74820         * modules/strdup: Likewise.
74821         * modules/strndup: Likewise.
74822         * modules/strnlen: Likewise.
74823         * modules/strpbrk: Likewise.
74824         * modules/strsep: Likewise.
74825         * modules/strstr: Likewise.
74826         * modules/strtok_r: Likewise.
74827         * tests/test-dirname.c: Don't include "strdup.h", since
74828         <string.h> now suffices.
74829         * tests/test-memmem.c: Don't include "memmem.h", since
74830         <string.h> now suffices.
74831
74832 2007-01-25  Bruno Haible  <bruno@clisp.org>
74833
74834         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74835         *resultp is 0.
74836
74837         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74838         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74839         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74840         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74841
74842         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74843         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74844         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74845         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74846         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74847         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74848
74849 2007-01-24  Bruno Haible  <bruno@clisp.org>
74850
74851         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74852         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74853         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74854         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74855         gl_FUNC_FTS_CORE.
74856         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74857         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74858         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74859         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74860         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74861         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74862         gl_FUNC_FCHOWNAT.
74863         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74864         gl_FUNC_STRFTIME.
74865         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74866         Reported by Ralf Wildenhues.
74867
74868 2007-01-24  Bruno Haible  <bruno@clisp.org>
74869
74870         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74871         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74872         gl_GETADDRINFO.
74873         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74874         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74875         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74876
74877 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74880         Don't use 'exit'; just return from 'main'.
74881         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74882
74883         * lib/fnmatch_.h: Readjust white space and comments to match
74884         glibc, to avoid spurious diffs.
74885
74886 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74887
74888         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74889         2004-12-01 change by Jakub Jelinek, since this code won't compile
74890         if !LIBC.  Problem reported by Bob Proulx.
74891
74892 2007-01-23  Bruno Haible  <bruno@clisp.org>
74893
74894         * lib/striconveh.c: Include c-strcaseeq.h.
74895         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74896         * modules/striconveh (Depends-on): Add c-strcaseeq.
74897
74898 2007-01-23  Bruno Haible  <bruno@clisp.org>
74899
74900         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74901
74902         * modules/c-strcaseeq: New file.
74903         * lib/c-strcaseeq.h: New file.
74904
74905         * modules/streq: New file.
74906         * lib/streq.h: New file.
74907
74908 2007-01-23  Bruno Haible  <bruno@clisp.org>
74909
74910         * modules/striconveha-tests: New file.
74911         * tests/test-striconveha.c: New file.
74912
74913         * lib/striconveha.h: Include <stdbool.h>.
74914         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74915         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74916         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74917         (mem_iconveha): New function.
74918         (str_iconveha_notranslit): Renamed from str_iconveha.
74919         (str_iconveha): New function.
74920         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74921         c-strcase.
74922
74923 2007-01-23  Bruno Haible  <bruno@clisp.org>
74924
74925         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74926         encodings without forgiving before trying any encoding with handler.
74927         (str_iconveha): Try all encodings without forgiving before trying any
74928         encoding with handler.
74929
74930 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74931
74932         Import the following changes from libc.
74933
74934         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74935
74936         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74937
74938         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74939
74940         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74941         normal_bracket label.
74942
74943         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74944
74945         [BZ #361]
74946         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74947         to normal_bracket after fetching the next character.
74948
74949 2007-01-22  Bruno Haible  <bruno@clisp.org>
74950
74951         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74952         argument.
74953         * lib/striconveh.c (iconv_carefully_1): New function.
74954         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74955         argument.
74956         (str_cd_iconveh): Update.
74957         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74958         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74959         * tests/test-striconveh.c (MAGIC): New macro.
74960         (new_offsets): New function.
74961         (main): Test call with and without offsets.
74962
74963 2007-01-22  Bruno Haible  <bruno@clisp.org>
74964
74965         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74966         * modules/sys_select (Makefile.am): Likewise.
74967         * modules/sys_socket (Makefile.am): Likewise.
74968         * modules/sys_time (Makefile.am): Likewise.
74969
74970 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * modules/gettimeofday (License): Change from GPL to LGPL, since
74973         gettimeofday is a library function.
74974
74975 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74976
74977         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74978
74979 2007-01-21  Bruno Haible  <bruno@clisp.org>
74980
74981         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74982
74983 2007-01-21  Bruno Haible  <bruno@clisp.org>
74984
74985         * modules/striconveha: New file.
74986         * lib/striconveha.h: New file.
74987         * lib/striconveha.c: New file.
74988         * MODULES.html.sh (Internationalization functions): Add striconveha.
74989         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74990         string.
74991         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74992
74993 2007-01-21  Bruno Haible  <bruno@clisp.org>
74994
74995         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74996         * lib/striconveh.c (str_iconveh): Likewise.
74997
74998 2007-01-21  Bruno Haible  <bruno@clisp.org>
74999
75000         * lib/striconveh.h (mem_iconveh): New declaration.
75001         * lib/striconveh.c (mem_iconveh): New function.
75002         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75003
75004 2007-01-21  Bruno Haible  <bruno@clisp.org>
75005
75006         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75007
75008         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75009         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75010         original result buffer.
75011         (str_cd_iconveh): Update.
75012         * tests/test-striconveh.c (main): Update.
75013
75014         * lib/striconv.h (mem_cd_iconv): Change specification.
75015         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75016         result buffer.
75017         (str_cd_iconv): Update.
75018         * tests/test-striconv.c (main): Update.
75019
75020 2007-01-21  Bruno Haible  <bruno@clisp.org>
75021
75022         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75023
75024 2007-01-20  Jim Meyering  <jim@meyering.net>
75025
75026         * lib/userspec.c (parse_with_separator): If a user or group string
75027         starts with "+", skip the corresponding name-to-ID look-up, since
75028         such a look-up must fail: user and group names may not include "+".
75029
75030 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75031
75032         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75033         since we now assume the sys_time module.
75034         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75035         check for sys/time.h; no longer needed.
75036         * modules/poll (Depends-on): Depend on sys_time.
75037
75038 2007-01-18  Bruno Haible  <bruno@clisp.org>
75039
75040         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75041         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75042
75043         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75044         gettimeofday.
75045
75046         * tests/test-gettimeofday.c: Include <time.h>.
75047         (dummy): Remove variable.
75048
75049         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75050         gl_HEADER_SYS_TIME_H.
75051         (gl_HEADER_SYS_TIME_H): New macro.
75052
75053         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75054         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75055         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75056         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75057         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75058         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75059         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75060         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75061         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75062         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75063         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75064
75065         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75066         last change; it caused a compilation error when cross-compiling to
75067         Cygwin.
75068
75069 2007-01-18  Jim Meyering  <jim@meyering.net>
75070
75071         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75072         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75073         than the race-prone "test -d sys || mkdir sys".
75074         (configure.ac): Use AC_PROG_MKDIR_P.
75075         * modules/sys_select: Likewise.
75076         * modules/sys_socket: Likewise.
75077         * modules/sys_time: Likewise.
75078
75079 2007-01-18  Eric Blake  <ebb9@byu.net>
75080
75081         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75082         replace gettimeofday.
75083         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75084         name, to avoid infinite recursion.
75085
75086 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75089         module sys_time.
75090         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75091         assume timespec.h defines struct timeval.
75092         * lib/settime.c: Likewise.
75093         * lib/utimens.c: Likewise.
75094         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75095         since we now assume the gettimeofday module.
75096         * lib/tempname.c (__gen_tempname): Likewise.
75097         * lib/gettimeofday.h: Remove.
75098         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75099         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75100         Include <time.h>, for 'time()'.
75101         (localtime_buffer_addr): Also use this workaround if
75102         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75103         to simplify the uses.  All uses changed.
75104         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75105         that #undef is inside {}, and 'const' follows type name consistently.
75106         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75107         (gettimeofday): Do not use the maximum possible value for
75108         tv->tv_usec, since that might break usages other than ls.c.
75109         Instead, we'll leave ls.c alone.  This undoes today's patch
75110         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75111         we've never observed the problem but might as well keep the
75112         canary.
75113         * lib/nanosleep.c: Include timespec.h first, for interface check.
75114         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75115         now assume the sys_time module.
75116         * lib/tempname.c: Likewise.
75117         * lib/timespec.h: Likewise.
75118         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75119         needed.
75120         * lib/strftime.c: Likewise.
75121         * lib/timespec.h: Likewise.
75122         * lib/posixtm.c: Include posixtm.h first, for interface check.
75123         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75124         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75125         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75126         * lib/sys_time_.h: New file.
75127         * lib/timespec.h (struct timespec): Use long int, not long.
75128         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75129         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75130         Remove obsolescent call to AC_HEADER_TIME.
75131         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75133         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75134         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75135         Likewise.
75136         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75137         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75138         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75139         into the sys_time module.  Check for gettimeofday just once.
75140         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75141         for gettimeofday signature to just check the signature.  Merely
75142         compile it, since linking doesn't test signature.  Improve test for
75143         whether gettimeofday.o is actually needed.
75144         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75145         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75146         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75147         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75148         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75149         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75150         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75151         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75152         than worrying about sys/time.h.
75153         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75154         Don't bother worrying about TIME_WITH_SYS_TIME.
75155         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75156         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75157         * m4/sys_time_h.m4: New file.
75158         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75159         Don't include sys/time.h.  Return from main rather than exiting.
75160         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75161         all uses changed.
75162         * modules/gethrxtime (Depends-on): Add sys_time.
75163         * modules/gettime (Depends-on): Likewise.
75164         * modules/gettimeofday (Depends-on): Likewise.
75165         * modules/nanosleep (Depends-on): Likewise.
75166         * modules/settime (Depends-on): Likewise.
75167         * modules/tempname (Depends-on): Likewise.
75168         * modules/utimens (Depends-on): Likewise.
75169         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75170         (Include): Change back to <sys/time.h>.
75171         (Maintainer): Add self.
75172         * modules/sys_time: New file.
75173         * modules/tempname (Depends-on): Add gettimeofday.
75174         * tests/test-gettimeofday.c: Include <sys/time.h>
75175         rather than gettimeofday.h.
75176
75177 2007-01-17  Bruno Haible  <bruno@clisp.org>
75178
75179         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75180         the license default to GPL.
75181         (func_create_testdir): Don't complain if a module is LGPL and its
75182         tests module depends on GPLed modules.
75183
75184 2007-01-17  Bruno Haible  <bruno@clisp.org>
75185
75186         * lib/gettimeofday.c (gettimeofday): Add code for the case
75187         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75188         maximum possible value for tv->tv_usec, rather than the minimum one.
75189
75190 2005-10-08  Martin Lambers  <marlam@marlam.de>
75191 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75192 2007-01-16  Bruno Haible  <bruno@clisp.org>
75193
75194         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75195         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75196         gl_FUNC_GETTIMEOFDAY.
75197         (Include): Add gettimeofday.h.
75198         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75199         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75200         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75201         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75202         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75203         * lib/gettimeofday.h: New file.
75204         * lib/gettimeofday.c: Include <sys/timeb.h>.
75205         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75206         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75207         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75208         fall back on time().
75209
75210         * tests/test-gettimeofday.c: New file.
75211         * modules/gettimeofday-tests: New file.
75212
75213 2007-01-16  Eric Blake  <ebb9@byu.net>
75214
75215         * modules/fnmatch (Depends-on): Depend on wchar.
75216         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75217         * m4/fnmatch.m4: Likewise.
75218         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75219         * m4/mbchar.m4: Likewise.
75220         * modules/mbswidth (Depends-on): Depend on wchar.
75221         * lib/mbswidth.c: Assume <wchar.h>.
75222         * m4/mbswidth.m4: Likewise.
75223         * modules/quotearg (Depends-on): Depend on wchar.
75224         * lib/quotearg.c: Assume <wchar.h>.
75225         * m4/quotearg.m4: Likewise.
75226         * modules/regex (Depends-on): Depend on wchar.
75227         * lib/regex_internal.h: Assume <wchar.h>.
75228         * m4/regex.m4: Likewise.
75229         * modules/stdint (Depends-on): Depend on wchar.
75230         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75231         * m4/stdint.m4: Likewise.
75232         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75233         * modules/strftime (Depends-on): Depend on wchar.
75234         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75235         * modules/strtol (Depends-on): Depend on wchar.
75236         * lib/strtol.c: Assume <wchar.h>.
75237         * modules/wcwidth (Depends-on): Depend on wchar.
75238         * lib/wcwidth.h: Assume <wchar.h>.
75239         * m4/wcwidth.m4: Likewise.
75240
75241 2007-01-16  Bruno Haible  <bruno@clisp.org>
75242
75243         * modules/csharpexec-script: New, created from...
75244         * modules/csharpexec: ... this.
75245
75246 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75247
75248         * modules/javaexec-script: New, created from...
75249         * modules/javaexec: ... this.
75250
75251 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75252
75253         * modules/poll (Dependencies): Add sys_select.
75254
75255 2007-01-15  Jim Meyering  <jim@meyering.net>
75256
75257         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75258         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75259         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75260         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75261
75262 2007-01-15  Bruno Haible  <bruno@clisp.org>
75263
75264         * modules/striconveh: New file.
75265         * lib/striconveh.h: New file.
75266         * lib/striconveh.c: New file.
75267         * MODULES.html.sh (Internationalization functions): Add striconveh.
75268
75269         * modules/striconveh-tests: New file.
75270         * tests/test-striconveh.c: New file.
75271
75272 2007-01-15  Bruno Haible  <bruno@clisp.org>
75273
75274         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75275         not from GNU libiconv or GNU libc.
75276
75277 2007-01-15  Bruno Haible  <bruno@clisp.org>
75278
75279         * doc/gnulib-intro.texi (Copyright): Explain the different license
75280         terms for module descriptions, autoconf macros, tests, documentation.
75281
75282 2007-01-14  Bruno Haible  <bruno@clisp.org>
75283
75284         * modules/striconv-tests: New file.
75285         * tests/test-striconv.c: New file.
75286
75287 2007-01-14  Bruno Haible  <bruno@clisp.org>
75288
75289         * modules/iconv-tests: New file.
75290         * tests/test-iconv.c: New file.
75291
75292 2007-01-14  Bruno Haible  <bruno@clisp.org>
75293
75294         * gnulib-tool (func_get_license): For test modules, use the license of
75295         the main module.
75296
75297 2007-01-14  Bruno Haible  <bruno@clisp.org>
75298
75299         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75300         if iconv is found to exist.
75301
75302 2007-01-14  Bruno Haible  <bruno@clisp.org>
75303
75304         * modules/c-ctype-tests: New file.
75305         * tests/test-c-ctype.c: New file.
75306
75307 2007-01-14  Bruno Haible  <bruno@clisp.org>
75308
75309         * modules/binary-io-tests: New file.
75310         * tests/test-binary-io.sh: New file.
75311         * tests/test-binary-io.c: New file.
75312
75313 2007-01-14  Bruno Haible  <bruno@clisp.org>
75314
75315         * modules/array-oset-tests: New file.
75316         * tests/test-array_oset.c: New file.
75317
75318 2007-01-14  Bruno Haible  <bruno@clisp.org>
75319
75320         * modules/array-list-tests: New file.
75321         * tests/test-array_list.c: New file.
75322
75323 2007-01-14  Bruno Haible  <bruno@clisp.org>
75324
75325         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75326         and make.
75327         Reported by Simon Josefsson in
75328         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75329
75330 2007-01-14  Bruno Haible  <bruno@clisp.org>
75331
75332         * modules/allocsa-tests: New file.
75333         * tests/test-allocsa.c: New file.
75334
75335 2007-01-14  Bruno Haible  <bruno@clisp.org>
75336
75337         * modules/fchdir (Depends-on): Add absolute-header.
75338         * modules/unistd (Depends-on): Likewise.
75339
75340 2006-12-30  Bruno Haible  <bruno@clisp.org>
75341
75342         * modules/fchdir: New file.
75343         * modules/unistd (Files): Add lib/unistd_.h.
75344         (Makefile.am): Generate unistd.h from unistd_.h.
75345         * lib/fchdir.c: New file.
75346         * lib/dirent_.h: New file.
75347         * lib/unistd_.h: New file.
75348         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75349         * m4/fchdir.m4: New file.
75350         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75351         (gl_HEADER_UNISTD): Invoke it.
75352         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75353         function.
75354         * lib/backupfile.c (opendir, closedir): Undefine.
75355         * lib/chown.c (open, close): Undefine.
75356         * lib/clean-temp.c (open, close): Undefine.
75357         * lib/copy-file.c (open, close): Undefine.
75358         * lib/execute.c (open, close): Undefine.
75359         * lib/fsusage.c (open, close): Undefine.
75360         * lib/gc-gnulib.c (open, close): Undefine.
75361         * lib/getcwd.c (opendir, closedir): Undefine.
75362         * lib/glob.c (opendir, closedir): Undefine.
75363         * lib/javacomp.c (open, close): Undefine.
75364         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75365         * lib/openat-proc.c (open, close): Undefine.
75366         * lib/pagealign_alloc.c (open, close): Undefine.
75367         * lib/pipe.c (open, close): Undefine.
75368         * lib/progreloc.c (open, close): Undefine.
75369         * lib/savedir.c (opendir, closedir): Undefine.
75370         * lib/utime.c (open, close): Undefine.
75371         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75372
75373 2007-01-10  Bruno Haible  <bruno@clisp.org>
75374
75375         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75376
75377 2007-01-12  Eric Blake  <ebb9@byu.net>
75378
75379         Provide a robust <wchar.h>.  Further simplifications are now
75380         possible in other modules, but not included here.
75381         * modules/wchar: New module.
75382         * m4/wchar.m4: New file.
75383         * lib/wchar_.h: Likewise.
75384         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75385         of the new module.
75386         * MODULES.html.sh (Extended multibyte and wide character utilities):
75387         New section.
75388
75389 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75390
75391         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75392         to a reasonable default for memory allocation.
75393         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75394         file system that reports garbage st_size values for symlinks.
75395         Problem reported by Liyang Hu.
75396
75397 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75398
75399         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75400         Emacs .#* auto-save files).
75401
75402 2007-01-11  Bruno Haible  <bruno@clisp.org>
75403
75404         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75405         directory.
75406
75407 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75408
75409         Use @...@ consistently in lib/wctype_.h.
75410         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75411         on it being set to 1 or 0.
75412         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75413         go back to AC_SUBSTing it.
75414         * modules/wctype (Makefile.am): Undo previous change.
75415
75416 2007-01-10  Eric Blake  <ebb9@byu.net>
75417
75418         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75419         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75420         * modules/wctype (Makefile.am): Likewise.
75421         Reported by Chris McGuire.
75422
75423 2007-01-10  Jim Meyering  <jim@meyering.net>
75424
75425         fts.c: a small readability/maintainability improvement
75426         * lib/fts.c (fts_read): Make this code slightly more readable and
75427         maintainable by hoisting the "sp->fts_cur = p" assignments to
75428         immediately follow the statements that set P.  Derived from
75429         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75430
75431 2007-01-10  Eric Blake  <ebb9@byu.net>
75432
75433         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75434         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75436         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75437         Reported by Chris McGuire.
75438
75439 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75440
75441         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75442         in sed script.
75443
75444 2007-01-09  Bruno Haible  <bruno@clisp.org>
75445
75446         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75447         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75448         variables.
75449         (func_module): Use them.
75450
75451 2007-01-09  Bruno Haible  <bruno@clisp.org>
75452
75453         * modules/unistr/base: New file.
75454         * lib/unistr.h: New file.
75455
75456         * modules/unistr/u8-to-u16: New file.
75457         * lib/unistr/u8-to-u16.c: New file.
75458
75459         * modules/unistr/u8-to-u32: New file.
75460         * lib/unistr/u8-to-u32.c: New file.
75461
75462         * modules/unistr/u16-to-u8: New file.
75463         * lib/unistr/u16-to-u8.c: New file.
75464
75465         * modules/unistr/u16-to-u32: New file.
75466         * lib/unistr/u16-to-u32.c: New file.
75467
75468         * modules/unistr/u32-to-u8: New file.
75469         * lib/unistr/u32-to-u8.c: New file.
75470
75471         * modules/unistr/u32-to-u16: New file.
75472         * lib/unistr/u32-to-u16.c: New file.
75473
75474         * modules/unistr/u8-check: New file.
75475         * modules/unistr/u16-check: New file.
75476         * modules/unistr/u32-check: New file.
75477         * lib/unistr/u8-check.c: New file.
75478         * lib/unistr/u16-check.c: New file.
75479         * lib/unistr/u32-check.c: New file.
75480
75481         * modules/unistr/u8-chr: New file.
75482         * modules/unistr/u16-chr: New file.
75483         * modules/unistr/u32-chr: New file.
75484         * lib/unistr/u8-chr.c: New file.
75485         * lib/unistr/u16-chr.c: New file.
75486         * lib/unistr/u32-chr.c: New file.
75487
75488         * modules/unistr/u8-cmp: New file.
75489         * modules/unistr/u16-cmp: New file.
75490         * modules/unistr/u32-cmp: New file.
75491         * lib/unistr/u8-cmp.c: New file.
75492         * lib/unistr/u16-cmp.c: New file.
75493         * lib/unistr/u32-cmp.c: New file.
75494
75495         * modules/unistr/u8-cpy: New file.
75496         * modules/unistr/u16-cpy: New file.
75497         * modules/unistr/u32-cpy: New file.
75498         * lib/unistr/u8-cpy.c: New file.
75499         * lib/unistr/u16-cpy.c: New file.
75500         * lib/unistr/u32-cpy.c: New file.
75501         * lib/unistr/u-cpy.h: New file.
75502
75503         * modules/unistr/u8-cpy-alloc: New file.
75504         * modules/unistr/u16-cpy-alloc: New file.
75505         * modules/unistr/u32-cpy-alloc: New file.
75506         * lib/unistr/u8-cpy-alloc.c: New file.
75507         * lib/unistr/u16-cpy-alloc.c: New file.
75508         * lib/unistr/u32-cpy-alloc.c: New file.
75509         * lib/unistr/u-cpy-alloc.h: New file.
75510
75511         * modules/unistr/u8-endswith: New file.
75512         * modules/unistr/u16-endswith: New file.
75513         * modules/unistr/u32-endswith: New file.
75514         * lib/unistr/u8-endswith.c: New file.
75515         * lib/unistr/u16-endswith.c: New file.
75516         * lib/unistr/u32-endswith.c: New file.
75517         * lib/unistr/u-endswith.h: New file.
75518
75519         * modules/unistr/u8-mblen: New file.
75520         * modules/unistr/u16-mblen: New file.
75521         * modules/unistr/u32-mblen: New file.
75522         * lib/unistr/u8-mblen.c: New file.
75523         * lib/unistr/u16-mblen.c: New file.
75524         * lib/unistr/u32-mblen.c: New file.
75525
75526         * modules/unistr/u8-mbtouc: New file.
75527         * modules/unistr/u16-mbtouc: New file.
75528         * modules/unistr/u32-mbtouc: New file.
75529         * lib/unistr/u8-mbtouc.c: New file.
75530         * lib/unistr/u16-mbtouc.c: New file.
75531         * lib/unistr/u32-mbtouc.c: New file.
75532
75533         * modules/unistr/u8-mbtouc-safe: New file.
75534         * modules/unistr/u16-mbtouc-safe: New file.
75535         * modules/unistr/u32-mbtouc-safe: New file.
75536         * lib/unistr/u8-mbtouc-safe.c: New file.
75537         * lib/unistr/u16-mbtouc-safe.c: New file.
75538         * lib/unistr/u32-mbtouc-safe.c: New file.
75539
75540         * modules/unistr/u8-move: New file.
75541         * modules/unistr/u16-move: New file.
75542         * modules/unistr/u32-move: New file.
75543         * lib/unistr/u8-move.c: New file.
75544         * lib/unistr/u16-move.c: New file.
75545         * lib/unistr/u32-move.c: New file.
75546         * lib/unistr/u-move.h: New file.
75547
75548         * modules/unistr/u8-next: New file.
75549         * modules/unistr/u16-next: New file.
75550         * modules/unistr/u32-next: New file.
75551         * lib/unistr/u8-next.c: New file.
75552         * lib/unistr/u16-next.c: New file.
75553         * lib/unistr/u32-next.c: New file.
75554
75555         * modules/unistr/u8-prev: New file.
75556         * modules/unistr/u16-prev: New file.
75557         * modules/unistr/u32-prev: New file.
75558         * lib/unistr/u8-prev.c: New file.
75559         * lib/unistr/u16-prev.c: New file.
75560         * lib/unistr/u32-prev.c: New file.
75561
75562         * modules/unistr/u8-set: New file.
75563         * modules/unistr/u16-set: New file.
75564         * modules/unistr/u32-set: New file.
75565         * lib/unistr/u8-set.c: New file.
75566         * lib/unistr/u16-set.c: New file.
75567         * lib/unistr/u32-set.c: New file.
75568         * lib/unistr/u-set.h: New file.
75569
75570         * modules/unistr/u8-startswith: New file.
75571         * modules/unistr/u16-startswith: New file.
75572         * modules/unistr/u32-startswith: New file.
75573         * lib/unistr/u8-startswith.c: New file.
75574         * lib/unistr/u16-startswith.c: New file.
75575         * lib/unistr/u32-startswith.c: New file.
75576         * lib/unistr/u-startswith.h: New file.
75577
75578         * modules/unistr/u8-stpcpy: New file.
75579         * modules/unistr/u16-stpcpy: New file.
75580         * modules/unistr/u32-stpcpy: New file.
75581         * lib/unistr/u8-stpcpy.c: New file.
75582         * lib/unistr/u16-stpcpy.c: New file.
75583         * lib/unistr/u32-stpcpy.c: New file.
75584         * lib/unistr/u-stpcpy.h: New file.
75585
75586         * modules/unistr/u8-stpncpy: New file.
75587         * modules/unistr/u16-stpncpy: New file.
75588         * modules/unistr/u32-stpncpy: New file.
75589         * lib/unistr/u8-stpncpy.c: New file.
75590         * lib/unistr/u16-stpncpy.c: New file.
75591         * lib/unistr/u32-stpncpy.c: New file.
75592         * lib/unistr/u-stpncpy.h: New file.
75593
75594         * modules/unistr/u8-strcat: New file.
75595         * modules/unistr/u16-strcat: New file.
75596         * modules/unistr/u32-strcat: New file.
75597         * lib/unistr/u8-strcat.c: New file.
75598         * lib/unistr/u16-strcat.c: New file.
75599         * lib/unistr/u32-strcat.c: New file.
75600         * lib/unistr/u-strcat.h: New file.
75601
75602         * modules/unistr/u8-strchr: New file.
75603         * modules/unistr/u16-strchr: New file.
75604         * modules/unistr/u32-strchr: New file.
75605         * lib/unistr/u8-strchr.c: New file.
75606         * lib/unistr/u16-strchr.c: New file.
75607         * lib/unistr/u32-strchr.c: New file.
75608
75609         * modules/unistr/u8-strcmp: New file.
75610         * modules/unistr/u16-strcmp: New file.
75611         * modules/unistr/u32-strcmp: New file.
75612         * lib/unistr/u8-strcmp.c: New file.
75613         * lib/unistr/u16-strcmp.c: New file.
75614         * lib/unistr/u32-strcmp.c: New file.
75615
75616         * modules/unistr/u8-strcpy: New file.
75617         * modules/unistr/u16-strcpy: New file.
75618         * modules/unistr/u32-strcpy: New file.
75619         * lib/unistr/u8-strcpy.c: New file.
75620         * lib/unistr/u16-strcpy.c: New file.
75621         * lib/unistr/u32-strcpy.c: New file.
75622         * lib/unistr/u-strcpy.h: New file.
75623
75624         * modules/unistr/u8-strcspn: New file.
75625         * modules/unistr/u16-strcspn: New file.
75626         * modules/unistr/u32-strcspn: New file.
75627         * lib/unistr/u8-strcspn.c: New file.
75628         * lib/unistr/u16-strcspn.c: New file.
75629         * lib/unistr/u32-strcspn.c: New file.
75630         * lib/unistr/u-strcspn.h: New file.
75631
75632         * modules/unistr/u8-strdup: New file.
75633         * modules/unistr/u16-strdup: New file.
75634         * modules/unistr/u32-strdup: New file.
75635         * lib/unistr/u8-strdup.c: New file.
75636         * lib/unistr/u16-strdup.c: New file.
75637         * lib/unistr/u32-strdup.c: New file.
75638         * lib/unistr/u-strdup.h: New file.
75639
75640         * modules/unistr/u8-strlen: New file.
75641         * modules/unistr/u16-strlen: New file.
75642         * modules/unistr/u32-strlen: New file.
75643         * lib/unistr/u8-strlen.c: New file.
75644         * lib/unistr/u16-strlen.c: New file.
75645         * lib/unistr/u32-strlen.c: New file.
75646         * lib/unistr/u-strlen.h: New file.
75647
75648         * modules/unistr/u8-strmblen: New file.
75649         * modules/unistr/u16-strmblen: New file.
75650         * modules/unistr/u32-strmblen: New file.
75651         * lib/unistr/u8-strmblen.c: New file.
75652         * lib/unistr/u16-strmblen.c: New file.
75653         * lib/unistr/u32-strmblen.c: New file.
75654
75655         * modules/unistr/u8-strmbtouc: New file.
75656         * modules/unistr/u16-strmbtouc: New file.
75657         * modules/unistr/u32-strmbtouc: New file.
75658         * lib/unistr/u8-strmbtouc.c: New file.
75659         * lib/unistr/u16-strmbtouc.c: New file.
75660         * lib/unistr/u32-strmbtouc.c: New file.
75661
75662         * modules/unistr/u8-strncat: New file.
75663         * modules/unistr/u16-strncat: New file.
75664         * modules/unistr/u32-strncat: New file.
75665         * lib/unistr/u8-strncat.c: New file.
75666         * lib/unistr/u16-strncat.c: New file.
75667         * lib/unistr/u32-strncat.c: New file.
75668         * lib/unistr/u-strncat.h: New file.
75669
75670         * modules/unistr/u8-strncmp: New file.
75671         * modules/unistr/u16-strncmp: New file.
75672         * modules/unistr/u32-strncmp: New file.
75673         * lib/unistr/u8-strncmp.c: New file.
75674         * lib/unistr/u16-strncmp.c: New file.
75675         * lib/unistr/u32-strncmp.c: New file.
75676
75677         * modules/unistr/u8-strncpy: New file.
75678         * modules/unistr/u16-strncpy: New file.
75679         * modules/unistr/u32-strncpy: New file.
75680         * lib/unistr/u8-strncpy.c: New file.
75681         * lib/unistr/u16-strncpy.c: New file.
75682         * lib/unistr/u32-strncpy.c: New file.
75683         * lib/unistr/u-strncpy.h: New file.
75684
75685         * modules/unistr/u8-strnlen: New file.
75686         * modules/unistr/u16-strnlen: New file.
75687         * modules/unistr/u32-strnlen: New file.
75688         * lib/unistr/u8-strnlen.c: New file.
75689         * lib/unistr/u16-strnlen.c: New file.
75690         * lib/unistr/u32-strnlen.c: New file.
75691         * lib/unistr/u-strnlen.h: New file.
75692
75693         * modules/unistr/u8-strpbrk: New file.
75694         * modules/unistr/u16-strpbrk: New file.
75695         * modules/unistr/u32-strpbrk: New file.
75696         * lib/unistr/u8-strpbrk.c: New file.
75697         * lib/unistr/u16-strpbrk.c: New file.
75698         * lib/unistr/u32-strpbrk.c: New file.
75699         * lib/unistr/u-strpbrk.h: New file.
75700
75701         * modules/unistr/u8-strrchr: New file.
75702         * modules/unistr/u16-strrchr: New file.
75703         * modules/unistr/u32-strrchr: New file.
75704         * lib/unistr/u8-strrchr.c: New file.
75705         * lib/unistr/u16-strrchr.c: New file.
75706         * lib/unistr/u32-strrchr.c: New file.
75707
75708         * modules/unistr/u8-strspn: New file.
75709         * modules/unistr/u16-strspn: New file.
75710         * modules/unistr/u32-strspn: New file.
75711         * lib/unistr/u8-strspn.c: New file.
75712         * lib/unistr/u16-strspn.c: New file.
75713         * lib/unistr/u32-strspn.c: New file.
75714         * lib/unistr/u-strspn.h: New file.
75715
75716         * modules/unistr/u8-strstr: New file.
75717         * modules/unistr/u16-strstr: New file.
75718         * modules/unistr/u32-strstr: New file.
75719         * lib/unistr/u8-strstr.c: New file.
75720         * lib/unistr/u16-strstr.c: New file.
75721         * lib/unistr/u32-strstr.c: New file.
75722         * lib/unistr/u-strstr.h: New file.
75723
75724         * modules/unistr/u8-strtok: New file.
75725         * modules/unistr/u16-strtok: New file.
75726         * modules/unistr/u32-strtok: New file.
75727         * lib/unistr/u8-strtok.c: New file.
75728         * lib/unistr/u16-strtok.c: New file.
75729         * lib/unistr/u32-strtok.c: New file.
75730         * lib/unistr/u-strtok.h: New file.
75731
75732         * modules/unistr/u8-uctomb: New file.
75733         * modules/unistr/u16-uctomb: New file.
75734         * modules/unistr/u32-uctomb: New file.
75735         * lib/unistr/u8-uctomb.c: New file.
75736         * lib/unistr/u16-uctomb.c: New file.
75737         * lib/unistr/u32-uctomb.c: New file.
75738
75739         * MODULES.html.sh (Unicode string functions): Add the new modules.
75740
75741 2007-01-08  Bruno Haible  <bruno@clisp.org>
75742
75743         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75744         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75745         subdirectories.
75746
75747 2007-01-08  Karl Berry  <karl@gnu.org>
75748
75749         * doc/error.texi: mention that main() fns must set program_name
75750         when progname is used.
75751
75752 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75753
75754         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75755         WCTYPE_H is empty, for the benefit of builds from non-distclean
75756         directories.  Problem reported by Eric Blake in
75757         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75758
75759 2007-01-08  Bruno Haible  <bruno@clisp.org>
75760
75761         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75762         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75763         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75764         PROVIDE_CANONICALIZE_FILENAME_MODE.
75765         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75766
75767 2007-01-08  Bruno Haible  <bruno@clisp.org>
75768
75769         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75770         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75771         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75772         * lib/fts.c: Likewise.
75773         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75774
75775 2006-12-25  Bruno Haible  <bruno@clisp.org>
75776
75777         * modules/utf8-ucs4-safe: New file.
75778         * lib/utf8-ucs4-safe.h: New file.
75779         * lib/unistr/utf8-ucs4-safe.c: New file.
75780
75781         * modules/utf16-ucs4-safe: New file.
75782         * lib/utf16-ucs4-safe.h: New file.
75783         * lib/unistr/utf16-ucs4-safe.c: New file.
75784
75785         * MODULES.html.sh (Unicode string functions): Add the new modules.
75786
75787 2007-01-08  Bruno Haible  <bruno@clisp.org>
75788
75789         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75790         (Depends-on): Add unitypes.
75791         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75792         (u8_mbtouc_aux): Move out to separate file.
75793         (u8_mbtouc): Use ucs4_t, uint8_t types.
75794         * lib/unistr/utf8-ucs4.c: New file.
75795
75796         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75797         (Depends-on): Add unitypes.
75798         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75799         (u16_mbtouc_aux): Move out to separate file.
75800         (u16_mbtouc): Use ucs4_t, uint16_t types.
75801         * lib/unistr/utf16-ucs4.c: New file.
75802
75803         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75804         (Depends-on): Add unitypes.
75805         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75806         (u8_uctomb_aux): Move out to separate file.
75807         (u8_uctomb): Use ucs4_t, uint8_t types.
75808         * lib/unistr/ucs4-utf8.c: New file.
75809
75810         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75811         (Depends-on): Add unitypes.
75812         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75813         (u16_uctomb_aux): Move out to separate file.
75814         (u16_uctomb): Use ucs4_t, uint16_t types.
75815         * lib/unistr/ucs4-utf16.c: New file.
75816
75817 2006-12-25  Bruno Haible  <bruno@clisp.org>
75818
75819         * modules/unitypes: New file.
75820         * lib/unitypes.h: New file.
75821         * MODULES.html.sh (func_all_modules): New section "Unicode string
75822         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75823         this section. Add unitypes.
75824
75825 2007-01-08  Bruno Haible  <bruno@clisp.org>
75826
75827         Avoid variable names that conflict with those from libtool.
75828         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75829         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75830         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75831         library_names_spec to acl_library_names_spec, hardcode_* to
75832         acl_hardcode_*.
75833         Reported by Ralf Wildenhues.
75834
75835 2007-01-08  Bruno Haible  <bruno@clisp.org>
75836
75837         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75838         definition.
75839         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75840         definition.
75841         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75842         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75843         definition.
75844         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75845         definition.
75846         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75847         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75848         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75849         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75850         definition.
75851         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75852         definition.
75853         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75854         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75855         GC_USE_<algorithm>.
75856         * lib/gc-libgcrypt.c: Likewise.
75857         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75858         * modules/gc-arctwo (configure.ac): Likewise.
75859         * modules/gc-des (configure.ac): Likewise.
75860         * modules/gc-hmac-md5 (configure.ac): Likewise.
75861         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75862         * modules/gc-md2 (configure.ac): Likewise.
75863         * modules/gc-md4 (configure.ac): Likewise.
75864         * modules/gc-md5 (configure.ac): Likewise.
75865         * modules/gc-random (configure.ac): Likewise.
75866         * modules/gc-rijndael (configure.ac): Likewise.
75867         * modules/gc-sha1 (configure.ac): Likewise.
75868
75869 2007-01-08  Bruno Haible  <bruno@clisp.org>
75870
75871         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75872         macro definition.
75873         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75874         definition.
75875         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75876         definition.
75877         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75878         * modules/fcntl-safer (configure.ac): Likewise.
75879         * modules/fopen-safer (configure.ac): Likewise.
75880         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75881         GNULIB_FWRITEERROR macro definition.
75882
75883 2007-01-08  Bruno Haible  <bruno@clisp.org>
75884
75885         * m4/gnulib-common.m4: New file.
75886         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75887         (func_get_filelist): Add m4/gnulib-common.m4.
75888
75889 2007-01-08  Bruno Haible  <bruno@clisp.org>
75890
75891         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75892         command.
75893
75894 2007-01-08  Jim Meyering  <jim@meyering.net>
75895
75896         Use a more robust test for a "can't happen" condition.
75897         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75898         narrowed the st_size value.  Presuming the "can't happen" condition
75899         is true, that narrowing could conceivably convert an invalid st_size
75900         value into a valid one.  Instead, use a change based on Matthew
75901         Woehlke's original patch.
75902
75903         Slight readability improvement: use an assert-like macro
75904         in place of literal "abort ()" uses.
75905         * lib/fts.c (fts_assert): Define.
75906         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75907         Use this macro instead of a bare 'abort'.
75908
75909 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75910
75911         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75912         simply work around them.
75913         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75914         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75915         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75916         declaring.
75917         Don't bother to define as macros, since the standard doesn't require it.
75918         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75919         longer worry about IRIX 5.3.
75920         (HAVE_WCTYPE_CTMP_BUG): Remove.
75921
75922 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75923
75924         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75925         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75926         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75927         Problems reported by Georg Schwarz for IRIX 5.3.
75928
75929         * gnulib-tool (autoconf_minversion): Take the maximum version number
75930         found, not the minimum.  Problem reported by James Youngman.
75931
75932 2007-01-03  Karl Berry  <karl@gnu.org>
75933
75934         * doc/error.texi: new file, explaining interaction with progname.
75935         * doc/gnulib.texi: include it.  Update copyright.
75936
75937 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75938
75939         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75940         AC_CANONICAL_HOST, to improve autobuild outputs.
75941
75942 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75943             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75944
75945         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75946         sockets, server sockets, and other file descriptors.  Count errors
75947         to compute the return value.  Reorder the code a bit to be easier
75948         to follow.  Don't set event bits that were not requested (except
75949         POLLERR and POLLHUP).
75950
75951 2007-01-01  Bruno Haible  <bruno@clisp.org>
75952
75953         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75954
75955 2007-01-03  Jim Meyering  <jim@meyering.net>
75956
75957         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75958
75959 2007-01-02  Bruno Haible  <bruno@clisp.org>
75960
75961         * modules/settime (Include): Require timespec.h.
75962         * modules/nanosleep (Include): Likewise.
75963
75964 2007-01-01  Bruno Haible  <bruno@clisp.org>
75965
75966         * gnulib-tool (func_emit_copyright_notice): Bump year.
75967         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75968
75969 2007-01-01  Bruno Haible  <bruno@clisp.org>
75970
75971         Improve support for OpenBSD.
75972         * build-aux/config.rpath (libname_spec): Export.
75973         (library_names_spec): New variable. Export.
75974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75975         library_names_spec from the config.rpath output. Locate shared library
75976         through the name pattern in library_names_spec.
75977
75978 2007-01-01  Eric Blake  <ebb9@byu.net>
75979
75980         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75981
75982 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75983
75984         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75985         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75986         assume the C locale, and avoid an "eval" that could cause trouble.
75987         Problem with SORT reported by Bob Proulx.
75988
75989         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75990         Define.  Trivial patch from Henning Nielsen Lund, originally
75991         sent to bug-grep@gnu.org today.
75992
75993 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75994
75995         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75996         struct stat.  Problem reported by Henning Nielsen Lund.
75997         * lib/acl.c: Include acl.h first, to check interface.  Don't
75998         bother to include sys/types.h and sys/stat.h again.
75999
76000 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         Import the following change from libc; problem reported by
76003         Sven Verdoolaege.
76004
76005         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76006
76007         [BZ #1373]
76008         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76009
76010 2006-12-28  Jim Meyering  <jim@meyering.net>
76011
76012         * build-aux/announce-gen: Do not assume that the package
76013         builds any of tar.gz, tar.bz2, and .xdelta files.
76014         Suggestion from Simon Josefsson.
76015
76016 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76017
76018         * modules/announce-gen: New file.
76019
76020 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76021
76022         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76023         handles its gotchas now.
76024         * lib/mbswidth.c: Likewise.
76025         * lib/wcwidth.h: Likewise.
76026         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76027         and iswcntrl; the wctype module does this stuff now.
76028         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76030         * modules/mbchar (Depends-on): Add wctype.
76031         * modules/mbswidth (Depends-on): Likewise.
76032         * modules/wcwidth (Depends-on): Likewise.
76033
76034 2006-12-27  Eric Blake  <ebb9@byu.net>
76035
76036         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76037         module uses more than what <wctype.h> is required to provide.
76038
76039 2006-12-26  Eric Blake  <ebb9@byu.net>
76040
76041         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76042
76043 2006-12-26  Eric Blake  <ebb9@byu.net>
76044
76045         * modules/absolute-header: New module.
76046         * modules/fcntl (Depends-on): Depend on it.
76047         * modules/inttypes (Depends-on): Likewise.
76048         * modules/stdint (Depends-on): Likewise.
76049         * modules/sys_stat (Depends-on): Likewise.
76050         * modules/wctype (Depends-on): Likewise.
76051         * MODULES.html.sh (Support for building libraries and
76052         executables): Document it.
76053
76054 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76055
76056         * gnulib-tool (SED): Remove, undoing previous change.
76057         The problem was that it broke coreutils on Solaris, because
76058         "sed --posix" leaked into a makefile.
76059         (sed): New alias, if 'alias' and GNU sed.
76060
76061 2006-12-24  Jim Meyering  <jim@meyering.net>
76062
76063         Work around an fchownat bug in glibc-2.4:
76064         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76065         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76066         in spite of the -P option.
76067         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76068         New macros.
76069         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76070         * modules/openat (Files): Add lib/fchownat.c.
76071         * lib/openat.c (fchownat): Don't define here.  Move to...
76072         * lib/fchownat.c: ...this new file.
76073
76074 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76075
76076         Fix bug reported by Bruno Haible in
76077         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76078         where quotearg.c didn't compile on Mac OS X 10.2 because it
76079         lacks <wchar.h> and wint_t.
76080         * lib/wctype_.h (__wctype_wint_t): New type.
76081         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76082         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76083         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76084         Arg is now of type __wctype_wint_t, not wint_t.
76085         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76086         substitute HAVE_WINT_T.
76087         * modules/wctype (Files): Add m4/wint_t.m4.
76088         (wctype.h): Substitute HAVE_WINT_T.
76089
76090 2006-12-23  Bruno Haible  <bruno@clisp.org>
76091
76092         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76093
76094 2006-12-23  Bruno Haible  <bruno@clisp.org>
76095
76096         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76097         S_ISLNK.
76098         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76099         mingw.
76100
76101 2006-12-22  Bruno Haible  <bruno@clisp.org>
76102
76103         * lib/copy-file.c: Include acl.h.
76104         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76105         Close the file descriptors only after being done with copy_acl.
76106         * modules/copy-file (Depends-on): Add acl.
76107
76108 2006-12-22  Bruno Haible  <bruno@clisp.org>
76109
76110         * gnulib-tool (SED): New variable.
76111         Use $SED instead of sed everywhere.
76112
76113 2006-12-22  Bruno Haible  <bruno@clisp.org>
76114
76115         * modules/no-c++: New file.
76116         * m4/no-c++.m4: New file.
76117         * MODULES.html.sh (Support for building libraries and executables):
76118         Add no-c++.
76119
76120 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76121
76122         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76123         Include <limits.h>, and use its INT_MAX to rewrite the
76124         j loop so that it does not overflow 'int'.  Problem reported by
76125         Ralf Wildenhues in
76126         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76127         Play it safe by shifting left by 1 rather than multiplying by 2,
76128         as GCC is less likely to optimize this away when the value
76129         is signed (when it assumes overflow leads to undefined behavior).
76130         Also, don't assume time_t uses two's complement.
76131
76132 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         * MODULES.html.sh: New module wctype.
76135         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76136         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76137         <wctype.h>, since the new wctype module should fix this.
76138         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76139         the wctype module should arrange for it.
76140         * lib/regex_internal.h: Likewise.
76141         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76142         since the wctype module should handle this now.
76143         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76144         * modules/fnmatch (Depends-on): Add wctype.
76145         * modules/quotearg (Depends-on): Likewise.
76146         * modules/regex (Depends-on): Likewise.
76147
76148 2006-12-19  Bruno Haible  <bruno@clisp.org>
76149
76150         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76151         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76152
76153 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76154
76155         * modules/savewd (Depends-on): Fix dependency on fcntl.
76156
76157 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76158
76159         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76160         conforms to C99, rather than relying on the user's environment
76161         setting of STDINT_H.
76162
76163 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76164         and Eric Blake  <ebb9@byu.net>
76165
76166         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76167         This is more consistent with the other defines here.
76168         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76169         Port to z/OS.  Problem reported by Paul Gilmartin.
76170         Change local vars to use gl_ prefix rather than ac_.
76171         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76172         with other defines.
76173         * modules/double-slash-root: New module.
76174         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76175         (Depends-on): Add double-slash-root.
76176         * MODULES.html.sh (File system functions): Mention new module.
76177
76178 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76181         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76182         This is for the benefit of gzip, which doesn't do i18n.
76183
76184 2006-12-12  Jim Meyering  <jim@meyering.net>
76185
76186         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76187         Reported by Andreas Schwab <schwab@suse.de>.
76188
76189 2006-12-12  Bruno Haible  <bruno@clisp.org>
76190
76191         Merge these changes.
76192         2006-09-05  Bruno Haible  <bruno@clisp.org>
76193         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76194         iconv_alloc succeeded.
76195         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76196         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76197         test for " && dest " at the end - dest is always != NULL there. Call
76198         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76199         with 2xNULL arguments, also to flush the state storage. Handle the
76200         IRIX iconv behaviour. Realloc the final result, to throw away unused
76201         memory.
76202
76203 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76204
76205         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76206         and fchmodat unconditionally, since glibc 2.4 has them.
76207         Problem reported by Arkadiusz Miskiewicz.
76208
76209 2006-12-10  Bruno Haible  <bruno@clisp.org>
76210
76211         * gnulib-tool (func_import): Show the include files only for those
76212         modules that are copied and specified.
76213         Reported by Karl Berry.
76214
76215 2006-12-08  Jim Meyering  <jim@meyering.net>
76216
76217         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76218         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76219
76220         * build-aux/announce-gen: Add two new options, both optional:
76221         --bootstrap-tools=TOOL_LIST
76222               a comma-separated list of tools, e.g.,
76223               autoconf,automake,bison,gnulib
76224         --gnulib-snapshot-date=DATE
76225               if gnulib is in the bootstrap tool list,
76226               then report this as the snapshot date.
76227               If not specified, use the current date/time.
76228               If you specify a date here, be sure it's UTC.
76229
76230 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76231
76232         * tests/test-argp-2.sh: Fix test to match actual output.
76233         (func_compare): Fix sed script to be portable.
76234
76235 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76236
76237         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76238         workaround for this case.  It is not autoconfigured now; offhand
76239         it's hard to see how to autoconfigure it.
76240
76241 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76242
76243         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76244         a directory that is about to be chowned.  Such a directory's
76245         initial file permissions should permit the owner only and this
76246         should not be changed until after the chown, since the group and
76247         other bits would be incorrect if they granted permission before
76248         the chown.
76249
76250         Fix porting problem for iswctype reported by Georg Schwarz in:
76251         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76252         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76253         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76254         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76255         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76256
76257 2006-12-03  Jim Meyering  <jim@meyering.net>
76258
76259         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76260         p->fts_statp may not yet be defined.
76261         (fts_read): Instead, set it in the caller, once p->fts_statp is
76262         sure to be defined, and corresponds to a top-level directory.
76263         This bug made du -x fail.  Here's the coreutils test case:
76264         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76265         Reported by Mike Frysinger.
76266
76267 2006-12-01  Jim Meyering  <jim@meyering.net>
76268
76269         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76270         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76271         Reported by Simon Josefsson.
76272
76273 2006-11-30  Jim Meyering  <jim@meyering.net>
76274
76275         * m4/warning.m4: Use the all-permissive copyright notice
76276         recommended by RMS (rather than LGPL).
76277         * m4/vararrays.m4: Likewise.
76278         * m4/flexmember.m4: Likewise.
76279
76280 2006-11-29  Bruno Haible  <bruno@clisp.org>
76281
76282         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76283         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76284         using +=.
76285         Reported by Simon Josefsson <simon@josefsson.org>.
76286
76287 2006-11-28  James Youngman <jay@gnu.org>
76288
76289         * README: Advise users that they might find the bug-gnulib@gnu.org
76290         and autotools-announce@gnu.org mailing lists useful.
76291
76292 2006-11-28  Bruno Haible  <bruno@clisp.org>
76293
76294         * m4/ptrdiff_max.m4: Remove file.
76295
76296 2006-11-21  Bruno Haible  <bruno@clisp.org>
76297
76298         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76299         _AC_COMPUTE_INT.
76300         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76301         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76302         _AC_COMPUTE_INT.
76303         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76304         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76305         _AC_COMPUTE_INT.
76306         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76307
76308 2006-11-28  Jim Meyering  <jim@meyering.net>
76309
76310         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76311         warning from "gcc -Wshadow" about shadowing the builtin.
76312
76313 2006-11-27  Bruno Haible  <bruno@clisp.org>
76314
76315         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76316         _AC_COMPUTE_INT.
76317         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76318
76319 2006-11-27  Bruno Haible  <bruno@clisp.org>
76320             Paul Eggert  <eggert@cs.ucla.edu>
76321
76322         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76323
76324 2006-11-26  Bruno Haible  <bruno@clisp.org>
76325
76326         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76327         noinst_LTLIBRARIES.
76328
76329 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76330             Bruno Haible  <bruno@clisp.org>
76331
76332         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76333         if compiling with "gcc -ansi".
76334
76335 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76336
76337         Fix some incompatibilities with gcc -ansi -pedantic.
76338         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76339         if compiling pedantically with GCC, unless it's C99 or later.
76340         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76341         it mishandles gcc -ansi -pedantic as well.
76342         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76343         if gcc -pedantic.
76344         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76345         initializers for struct if -pedantic, unless it's C99 or later.
76346
76347 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76348
76349         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76350         Don't close an fd more than once. Identical atimes indicate
76351         success, not failure.
76352
76353 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76354
76355         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76356
76357 2006-11-23  Jim Meyering  <jim@meyering.net>
76358
76359         * build-aux/announce-gen: New file.  From coreutils.
76360
76361 2006-11-22  Jim Meyering  <jim@meyering.net>
76362
76363         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76364         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76365         (fts_read): Use a temporary to narrow the overused st_size member
76366         before using it in a switch statement.  Reported by Matthew Woehlke.
76367
76368         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76369         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76370
76371 2006-11-20  Bruno Haible  <bruno@clisp.org>
76372
76373         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76374         changequote instead of pairs of brackets.
76375         Reported by Andreas Schwab <schwab@suse.de>.
76376
76377 2006-11-21  Jim Meyering  <jim@meyering.net>
76378
76379         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76380         so as to remain compatible with older compilers.
76381         Patch from Michael Deutschmann.
76382
76383 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * MODULES.html.sh (File system functions): Add openat.
76386
76387         * lib/openat.h (rpl_fstatat): New macro, if
76388         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76389         (fstatat): Define to rpl_fstatat under the same conditions,
76390         unless COMPILING_FSTATAT.
76391         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76392         seems to have the bug.
76393         * lib/fstatat.c: New file.
76394         * modules/openat (Files): Add it.
76395
76396 2006-11-20  Bruno Haible  <bruno@clisp.org>
76397
76398         * Makefile: New file.
76399
76400 2006-11-20  Jim Meyering  <jim@meyering.net>
76401
76402         The beginnings of syntax-related checks for gnulib.
76403         * lib/Makefile: New file.
76404         * lib/t-idcache: New script.  Ensure that the two halves of
76405         idcache.c stay in sync.
76406
76407         * lib/idcache.c: Adjust comments in user- and group- portions to
76408         be more accurate, and to be consistent with one another.
76409
76410 2006-11-20  Jim Meyering  <jim@meyering.net>
76411
76412         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76413         continue using the flexible array member (thus, this module performs
76414         half as many malloc calls), with the addition that...
76415         (getgroup, getuser): Consistently record a non-match via an empty
76416         "name" string, and map an empty string match to a NULL return value.
76417         * modules/idcache (Depends-on): Re-add flexmember.
76418
76419         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76420         (getuidbyname, getgroup, getgidbyname): Likewise.
76421
76422         Use cleaner syntax: NULL rather than 0.
76423         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76424
76425 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76426
76427         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76428         It mishandled the case where the group was missing.
76429         Problem reported by Greg Schafer.
76430         * modules/idcache: Likewise.
76431
76432 2006-11-18  Jim Meyering  <jim@meyering.net>
76433
76434         * check-module (%exempt_header): Add exception for some
76435         conditionally-included headers.
76436
76437         * modules/i-ring (Depends-on): Add verify.
76438         (License): Change to LGPL.
76439
76440 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76441
76442         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76443         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76444         and inttostr.h.  Use snprintf rather than uinttostr, so that
76445         LGPLed code doesn't depend on GPLed.
76446
76447 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76448
76449         * modules/inline (License): Change from GPL to LGPL.
76450
76451 2006-11-17  Jim Meyering  <jim@meyering.net>
76452
76453         * modules/d-type (License): Switch to LGPL.
76454
76455 2006-11-15  Bruno Haible  <bruno@clisp.org>
76456
76457         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76458
76459 2006-11-15  Eric Blake  <ebb9@byu.net>
76460
76461         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76462         the module dependency.
76463
76464 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76465             Bruno Haible  <bruno@clisp.org>
76466
76467         * gnulib-tool (func_create_testdir): Add license consistency check.
76468
76469 2006-11-15  Eric Blake  <ebb9@byu.net>
76470
76471         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76472         random "(cached)" in configure output.
76473
76474 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76475
76476         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76477         test for conforming inttypes.h is both announced and cached.
76478
76479         * MODULES.html.sh (seen_modules, seen_files): New variables.
76480         (func_module): Rewrite to use a few less gnulib-tool and sed
76481         invocations.  Avoid a couple of quadratic algorithms for ...
76482         (missed_modules, missed_files): ... these, with ...
76483         (func_append, func_tmpdir): ... these new functions, from
76484         gnulib-tool.  Analogously, install traps for cleanup.
76485
76486         * tests/test-gc.c (main): Remove unused variables.
76487         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76488
76489 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76490
76491         * modules/inttostr (License): Change to LGPL.
76492
76493 2006-11-14  Eric Blake  <ebb9@byu.net>
76494
76495         * modules/tempname (License): Change to LGPL.
76496
76497 2006-11-14  Eric Blake  <ebb9@byu.net>
76498
76499         * doc/functions.texi (Function Portability): *printf functions on
76500         Cygwin now understand all POSIX size specifiers.
76501
76502 2006-11-14  Bruno Haible  <bruno@clisp.org>
76503
76504         * modules/c-ctype (License): Change to LGPL.
76505
76506 2006-11-12  Bruno Haible  <bruno@clisp.org>
76507
76508         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76509         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76510         for GNOME libraries, for which the include files are installed in
76511         subdirectories of $prefix/include.
76512
76513 2006-11-12  Bruno Haible  <bruno@clisp.org>
76514
76515         * m4/lib-link.m4: Require at least autoconf-2.54.
76516         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76517         name to underscores for the --with option.
76518
76519 2006-11-13  Bruno Haible  <bruno@clisp.org>
76520
76521         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76522         the tests directory.
76523         Reported by Ralf Wildenhues.
76524
76525 2006-11-13  Bruno Haible  <bruno@clisp.org>
76526
76527         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76528         (func_emit_initmacro_end): Undo the override here.
76529         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76530         Works around the famous automake error in coreutils.
76531
76532 2006-11-13  Eric Blake  <ebb9@byu.net>
76533
76534         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76535         element, not its node.
76536
76537 2006-11-12  Bruno Haible  <bruno@clisp.org>
76538
76539         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76540         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76541
76542 2006-11-12  Bruno Haible  <bruno@clisp.org>
76543
76544         * gnulib-tool: New option --local-symlink.
76545         (func_usage): Document it.
76546         (lsymbolic): New variable.
76547         (func_import, func_create_testdir): If --symlink was not specified,
76548         test whether --local-symlink was specified and the file comes from
76549         the local_gnulib_dir.
76550
76551 2006-11-12  Bruno Haible  <bruno@clisp.org>
76552
76553         * gnulib-tool (func_ln): New function.
76554         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76555
76556 2006-11-12  Bruno Haible  <bruno@clisp.org>
76557
76558         Finish support for source files in subdirectories.
76559         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76560         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76561         AUTOMAKE_OPTIONS.
76562         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76563
76564 2006-11-12  Bruno Haible  <bruno@clisp.org>
76565
76566         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76567         EXTRA_lib_SOURCES augmentation.
76568         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76569
76570 2006-11-12  Jim Meyering  <jim@meyering.net>
76571
76572         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76573         file descriptors.  This also averts a failure on systems with
76574         native openat support when a traversed directory lacks "x" access.
76575         * lib/fts_.h: Include "i-ring.h"
76576         (struct FTS) [fts_fd_ring]: New member.
76577         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76578         (FCHDIR): Add parentheses.
76579         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76580         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76581         When descending, rather than simply closing the previous
76582         fts_cwd_fd value, push that file descriptor onto the ring.
76583         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76584         (fts_open): Initialize the new fd_ring member.
76585         (fts_close): Clear the ring.
76586         (fts_safe_changedir): When possible, use our new fd_ring to skip
76587         the diropen and fstat and dev/ino comparison that would normally
76588         accompany a virtual `chdir ("..")'.
76589
76590         * modules/fts (Depends-on): Add i-ring.
76591         * modules/i-ring: New module.
76592         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76593         * m4/i-ring.m4: New file.
76594
76595 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76596
76597         * gnulib-tool (func_create_testdir): Fix replacement of
76598         `build-aux' in configure.ac.  Run autotools in gltests
76599         subdirectory.
76600         (func_create_testdir, func_create_megatestdir, test): There is
76601         no need for '--force' in most autotool invocations in a new
76602         tree.  Actually fail the whole test if any of the tools, or the
76603         configure or make stages fail.
76604
76605         Sync from Automake.
76606         * build-aux/gnupload: Revert last change.  Add pointer to upload
76607         instructions of the GNU Maintenance Instructions.
76608         Suggestion by Karl Berry.
76609
76610 2006-11-10  Jim Meyering  <jim@meyering.net>
76611
76612         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76613
76614 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76615
76616         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76617         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76618         (bind_textdomain_codeset) [! ENABLE_NLS]:
76619         Evaluate all the arguments.  That way, callers get compatible behavior
76620         if the arguments have side effects.  Also, it avoids some GCC
76621         diagnostics in some cases; Joel E. Denny reported problems when Bison
76622         was configured with --enable-gcc-warnigs.
76623
76624 2006-11-10  Jim Meyering  <jim@meyering.net>
76625
76626         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76627         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76628         account.
76629
76630 2006-11-10  Jim Meyering  <jim@meyering.net>
76631
76632         * modules/inline: New file/module.
76633         * modules/xalloc (Files): Remove m4/inline.m4.
76634         (Depends-on): Add inline, instead.
76635         * modules/oset: Likewise.
76636         * modules/list: Likewise.
76637
76638 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76639
76640         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76641         Problem reported by Matthew Woehlke.
76642
76643 2006-11-09  Bruno Haible  <bruno@clisp.org>
76644
76645         * lib/tempname.c (gen_tempname): Remove variant that invokes
76646         __gen_tempname.
76647         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76648         __gen_tempname.
76649
76650 2006-11-08  Bruno Haible  <bruno@clisp.org>
76651
76652         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76653         to 'yes' instead of 'cross-compiling'.
76654
76655 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * lib/quotearg.h (quotearg_free): New decl.
76658         * lib/quotearg.c (quotearg_free): New function.
76659         (slot0, nslots, slotvec0, slotvec):
76660         Now file-scope so that quotearg_free can get at them.
76661
76662 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76663
76664         Sync from Automake.
76665         * build-aux/gnupload: Add missing 'gnu' to example URL.
76666         Report by Karl Berry.
76667
76668 2006-11-08  Bruno Haible  <bruno@clisp.org>
76669
76670         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76671         Suggested by Paul Eggert.
76672
76673 2006-11-08  Jim Meyering  <jim@meyering.net>
76674
76675         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76676         It's already included if !_LIBC.
76677         (fts_safe_changedir): Add a comment.
76678
76679 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76680
76681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76682         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76683         Matthew Woehlke.
76684
76685         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76686         definitions up, to avoid colliding with change below.
76687         (static_inline) [HAVE_INLINE]: New macro.
76688         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76689         Provide extern decls when !HAVE_INLINE.  Do not define unless
76690         static_inline is defined, either by us or by xmalloc.c.  Use
76691         static_inline rather than static inline.
76692         (XCALLOC): Optimize sizeof(T) = 1 case.
76693         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76694
76695 2006-11-07  Bruno Haible  <bruno@clisp.org>
76696
76697         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76698         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76699         AC_C_INLINE.
76700         * modules/xalloc (Files): Add m4/inline.m4.
76701
76702 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76703
76704         * README: Fix typo.
76705         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76706         (Miscellanous Notes): ...from this.
76707
76708 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76709
76710         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76711         Mention that offsetof should be used instead of sizeof.
76712         From Bruno Haible.
76713
76714 2006-11-07  Bruno Haible  <bruno@clisp.org>
76715
76716         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76717
76718 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76719
76720         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76721         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76722         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76723         (gl_tree_add_before, gl_tree_add_after):
76724         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76725         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76726         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76727         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76728         (gl_linked_add_after, gl_linked_add_at): Likewise.
76729         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76730         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76731         (gl_tree_add_before, gl_tree_add_after): Likewise.
76732         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76733         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76734         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76735
76736 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76737
76738         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76739
76740 2006-11-06  Bruno Haible  <bruno@clisp.org>
76741
76742         * m4/inline.m4: New file.
76743         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76744         * modules/list (Files): Add m4/inline.m4.
76745         * modules/oset (Files): Likewise.
76746
76747 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * lib/idcache.c: Include <stddef.h>, for offsetof.
76750         (struct userid.name): Change from char * to a flexible array member.
76751         All uses changed.
76752         * modules/idcache (Depends-on): Add flexmember.
76753
76754         * MODULES.html.sh (Core language properties): New module flexmember.
76755         * modules/flexmember, m4/flexmember.m4: New files.
76756
76757         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76758         inline functions that are identical with the old xnmalloc_inline,
76759         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76760         that we can avoid some unnecessary integer multiplications and
76761         divisions in the common case where the element size is known at
76762         compile time.
76763         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76764         needed.
76765         (xnboundedmalloc): Remove.
76766         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76767         arguments, for consistency with rest of this header.
76768         (xcharalloc): Rewrite using XNMALLOC.
76769         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76770         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76771         versions have been moved to lib/xalloc.h and renamed to be the
76772         non-*_inline versions.
76773         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76774         and xnrealloc functions, since those functions are now inline and
76775         now call us.
76776         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76777         renaming described above.
76778         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76779         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76780         captures the dependency in AC_C_INLINE.
76781
76782         New module canonicalize-lgpl, proposed by Charles Wilson in
76783         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76784         with a few small changes afterwards.
76785         * MODULES.html.sh (File system functions): New module
76786         canonicalize-lgpl.
76787         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76788         and canonicalize_file_name.
76789         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76790         * modules/canonicalize-lgpl: New files.
76791
76792 2006-11-05  Bruno Haible  <bruno@clisp.org>
76793
76794         * gnulib-tool (func_import, func_create_testdir): Create directories
76795         also for files in subdirectories of lib/.
76796
76797 2006-11-05  Bruno Haible  <bruno@clisp.org>
76798
76799         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76800         ANSI C compliant.
76801
76802 2006-11-03  Bruno Haible  <bruno@clisp.org>
76803
76804         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76805         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76806         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76807         (xnboundedmalloc): New inline function.
76808         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76809         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76810         xmalloc.
76811         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76812         xmalloc.
76813         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76814         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76815         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76816         xmalloc.
76817         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76818         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76819         xmalloc.
76820         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76821         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76822         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76823         xmalloc.
76824         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76825         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76826         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76827         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76828         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76829         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76830         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76831
76832 2006-11-03  Bruno Haible  <bruno@clisp.org>
76833
76834         * lib/c-ctype.h [C++]: Define functions without name mangling.
76835         * lib/fwriteerror.h [C++]: Likewise.
76836         * lib/gcd.h [C++]: Likewise.
76837         * lib/linebreak.h [C++]: Likewise.
76838
76839 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76840
76841         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76842         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76843         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76844         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76845         Check for functions and headers just once.
76846         Check for declaration of canonicalize_file_name.
76847         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76848
76849 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76850
76851         * gnulib-tool (func_import): Fix typo in actioncmd.
76852
76853 2006-11-02  Bruno Haible  <bruno@clisp.org>
76854
76855         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76856         newline sequence in the Makefile.am snippet as a space, like "make"
76857         does.
76858         Reported by Roger Persson <perrog@gmail.com>.
76859
76860 2006-11-01  Bruno Haible  <bruno@clisp.org>
76861
76862         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76863         already declared in <string.h>.
76864         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76865
76866 2006-11-01  Bruno Haible  <bruno@clisp.org>
76867
76868         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76869         * lib/strcase.h: Include <string.h>.
76870         (strcasecmp): Define to rpl_strcasecmp here.
76871
76872 2006-11-01  Bruno Haible  <bruno@clisp.org>
76873
76874         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76875
76876 2006-11-01  Eric Blake  <ebb9@byu.net>
76877
76878         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76879
76880         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76881
76882 2006-10-29  Bruno Haible  <bruno@clisp.org>
76883
76884         Make it compile in C++ mode.
76885         * lib/full-write.c (full_rw): Add a cast.
76886
76887 2006-11-01  Bruno Haible  <bruno@clisp.org>
76888
76889         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76890         be POSIX compliant.
76891         Reported by Roger Persson <perrog@gmail.com>.
76892
76893 2006-11-01  Eric Blake  <ebb9@byu.net>
76894
76895         * lib/getopt_.h: Fix comments.
76896
76897 2006-10-31  Eric Blake  <ebb9@byu.net>
76898
76899         * modules/tmpdir (Depends-on): Add sys_stat.
76900         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76901         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76902         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76903         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76904         tempname.
76905
76906 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76907
76908         Avoid some C++ diagnostics reported by Bruno Haible.
76909         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76910         xmalloc.
76911         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76912         (struct slotvec): Move to top level.
76913         (quotearg_n_options): Rewrite to avoid xmalloc.
76914         * lib/xalloc.h (xcharalloc): New function.
76915         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76916         [defined __cplusplus]: Add function template that provides result
76917         type propagation.  This part of the change is from Bruno Haible.
76918
76919 2006-10-29  Bruno Haible  <bruno@clisp.org>
76920
76921         Make it compile in C++ mode.
76922         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76923         * lib/strnlen1.c (strnlen1): Cast memchr result.
76924         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76925         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76926         (create_temp_dir): Rename local variable 'template'.
76927         (compile_csharp_using_sscli): Add cast.
76928         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76929         * lib/findprog.c (find_in_path): Likewise.
76930         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76931         * lib/wait-process.c (register_slave_subprocess): Likewise.
76932
76933 2006-10-22  Bruno Haible  <bruno@clisp.org>
76934
76935         * modules/tsearch: New file.
76936         * lib/tsearch.h: New file.
76937         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76938         * m4/tsearch.m4: New file.
76939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76940
76941 2006-10-29  Eric Blake  <ebb9@byu.net>
76942
76943         * lib/arcfour.c: Assume config.h.
76944         * lib/arctwo.c: Likewise.
76945         * lib/base64.c: Likewise.
76946         * lib/check-version.c: Likewise.
76947         * lib/crc.c: Likewise.
76948         * lib/des.c: Likewise.
76949         * lib/gc-gnulib.c: Likewise.
76950         * lib/gc-libgcrypt.c: Likewise.
76951         * lib/gc-pbkdf2-sha1.c: Likewise.
76952         * lib/getaddrinfo.c: Likewise.
76953         * lib/getdelim.c: Likewise.
76954         * lib/getline.c: Likewise.
76955         * lib/hmac-md5.c: Likewise.
76956         * lib/hmac-sha1.c: Likewise.
76957         * lib/iconvme.c: Likewise.
76958         * lib/md2.c: Likewise.
76959         * lib/md4.c: Likewise.
76960         * lib/memxor.c: Likewise.
76961         * lib/read-file.c: Likewise.
76962         * lib/readline.c: Likewise.
76963         * lib/rijndael-alg-fst.c: Likewise.
76964         * lib/rijndael-api-fst.c: Likewise.
76965         * lib/xgetdomainname.c: Likewise.
76966
76967 2006-10-28  Eric Blake  <ebb9@byu.net>
76968
76969         * lib/xstrndup.c: Assume config.h.
76970
76971 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76974         stat-macros.h is now for our own macros, whereas stat_h is for
76975         macros in the <sys/stat.h> name space.
76976         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76977         (STAT_MACROS_H): Remove.
76978         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76979         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76980         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76981         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76982         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76983         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76984         Move these macros to ...
76985         * lib/stat_.h: here.  Don't include stat-macros.h.
76986         * lib/canonicalize.c: Don't include stat-macros.h.
76987         * lib/chown.c: Likewise.
76988         * lib/euidaccess.c: Likewise.
76989         * lib/file-type.c: Likewise.
76990         * lib/filemode.c: Likewise.
76991         * lib/glob.c: Likewise.
76992         * lib/isapipe.c: Likewise.
76993         * lib/lchown.c: Likewise.
76994         * lib/lstat.c: Likewise.
76995         * lib/mkdir-p.c: Likewise.
76996         * lib/rmdir.c: Likewise.
76997         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76998         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76999         unless mkdir isn't declared, to speed up 'configure'.
77000         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77001         would define all the S_* symbols.
77002         * modules/canonicalize (Depends-on):
77003         Depend on sys_stat, not stat-macros.
77004         * modules/chown: Likewise.
77005         * modules/euidaccess: Likewise.
77006         * modules/filemode: Likewise.
77007         * modules/file-type: Likewise.
77008         * modules/glob: Likewise.
77009         * modules/isapipe: Likewise.
77010         * modules/lchown: Likewise.
77011         * modules/lstat: Likewise.
77012         * modules/mkancesdirs: Likewise.
77013         * modules/rmdir: Likewise.
77014         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77015         * modules/modechange: Likewise.
77016         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77017         (configure.ac): Remove gl_STAT_MACROS.
77018         * modules/sys_stat (Depends-on): Remove stat-macros.
77019
77020 2006-10-27  Bruno Haible  <bruno@clisp.org>
77021
77022         * m4/signed.m4: Remove file.
77023         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77024         invocation.
77025         * modules/vasnprintf (Files): Remove m4/signed.m4.
77026
77027 2006-10-27  Bruno Haible  <bruno@clisp.org>
77028
77029         Update to GNU gettext 0.16.
77030         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77031         m4/inttypes-h.m4, m4/signed.m4.
77032         * m4/gettext.m4: Update to GNU gettext 0.16.
77033         * m4/intl.m4: New file, from GNU gettext.
77034         * m4/intldir.m4: New file, from GNU gettext.
77035         * config/srclist.txt: Update
77036
77037 2006-10-27  Eric Blake  <ebb9@byu.net>
77038
77039         * MODULES.html.sh: Document tempname.
77040         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77041         dependencies.
77042         (Files): Move lib/tempname.c...
77043         * modules/tempname: ...to this new module.
77044         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77045         (gl_PREREQ_TEMPNAME): Move...
77046         * m4/tempname.m4: ...to this new file.
77047         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77048         * modules/sys_stat (Depends-on): Add stat-macros.
77049         * lib/stat_.h (includes): Pick up stat macros.
77050         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77051         if stat macros are broken.
77052         * lib/tempname.c (includes): No need to include "stat-macros.h".
77053         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77054         (direxists, __path_search) [!_LIBC]: Don't compile these in
77055         gnulib; the tmpdir module covers that.
77056         * lib/tempname.h: New file.
77057
77058 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77059
77060         * COPYING: Explain how gnulib-tool converts licence headers.
77061         Almost all wording by Eric Blake.
77062
77063 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77064
77065         * lib/mbchar.h (is_basic_table): Make read-only.
77066         * lib/mbchar.c (is_basic_table): Likewise.
77067         Reported by John Darrington.
77068
77069 2006-10-25  Bruno Haible  <bruno@clisp.org>
77070
77071         * lib/progname.h (set_program_name): Undefine before defining.
77072
77073 2006-10-25  Bruno Haible  <bruno@clisp.org>
77074
77075         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77076         false for non-gcc C++ compilers.
77077         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77078
77079 2006-10-24  Bruno Haible  <bruno@clisp.org>
77080
77081         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77082         iconv implementations like Irix iconv.
77083
77084 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77085
77086         * modules/vararrays: New file.
77087         * m4/vararrays.m4: New file, taken from diffutils.
77088         * MODULES.html.sh: New module vararrays.
77089
77090 2006-10-24  Karl Berry  <karl@gnu.org>
77091
77092         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77093         Don't call GNU Unix.
77094
77095 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77096
77097         * users.txt: Add Libtool.
77098
77099         Sync from Libtool:
77100
77101         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77104         to gnulib's policy of including config.h unconditionally.
77105
77106 2006-10-24  Bruno Haible  <bruno@clisp.org>
77107
77108         * modules/wcwidth (Files): Add m4/wint_t.m4.
77109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77110         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77111
77112 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77113
77114         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77115         to pacify GCC with some -W flags enabled.  Problem reported by
77116         Bruno Haible.
77117
77118 2006-10-24  Jim Meyering  <jim@meyering.net>
77119
77120         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77121         Reported by Karl Berry.
77122
77123 2006-10-23  Bruno Haible  <bruno@clisp.org>
77124
77125         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77126
77127 2006-10-24  Bruno Haible  <bruno@clisp.org>
77128
77129         * lib/gl_list.h: Use C comment style, not C++ comment style.
77130
77131 2006-10-23  Eric Blake  <ebb9@byu.net>
77132
77133         * lib/getaddrinfo.c (includes): Add missing include.
77134
77135 2006-10-23  Bruno Haible  <bruno@clisp.org>
77136             Paul Eggert  <eggert@cs.ucla.edu>
77137
77138         Ability to rename obstack_free.
77139         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77140         obstack_free.
77141         (obstack_free): Invoke the __obstack_free macro.
77142         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77143
77144 2006-10-23  Bruno Haible  <bruno@clisp.org>
77145             Paul Eggert  <eggert@cs.ucla.edu>
77146
77147         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77148         __argc, __argv from the declaration. (They are defined as macros on
77149         mingw.)
77150
77151 2006-10-22  Bruno Haible  <bruno@clisp.org>
77152
77153         * doc/gnulib-intro.texi: New file.
77154         * doc/gnulib.texi: Include it.
77155
77156 2006-10-21  Bruno Haible  <bruno@clisp.org>
77157
77158         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77159         "Introduction", "Miscellanous Notes", "Particular Modules".
77160
77161 2006-10-21  Bruno Haible  <bruno@clisp.org>
77162
77163         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77164         Change mostlyclean-local rule to avoid sh syntax error from bash
77165         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77166
77167 2006-10-23  Jim Meyering  <jim@meyering.net>
77168
77169         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77170         in place of snprintf.
77171
77172         * modules/inttostr (Files): Add lib/uinttostr.c.
77173         * lib/uinttostr.c (inttostr): New file/function.
77174         * lib/inttostr.h (uinttostr): Declare.
77175         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77176         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77177         Add uinttostr.
77178         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77179
77180 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77181
77182         * lib/canonicalize.c (ELOOP): Define if not already defined.
77183         Problem reported by Bruno Haible in
77184         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77185
77186 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77187
77188         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77189         Problem reported by Perry Smith and Ville Laurikari.
77190
77191         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77192         uses.
77193
77194 2006-10-19  Bruno Haible  <bruno@clisp.org>
77195
77196         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77197         for mingw.
77198
77199 2006-10-19  Bruno Haible  <bruno@clisp.org>
77200
77201         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77202         Needed for mingw.
77203
77204 2006-10-19  Bruno Haible  <bruno@clisp.org>
77205
77206         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77207
77208 2006-10-19  Bruno Haible  <bruno@clisp.org>
77209
77210         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77211         it.
77212
77213 2006-10-19  Bruno Haible  <bruno@clisp.org>
77214
77215         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77216         invocation.
77217
77218 2006-10-19  Bruno Haible  <bruno@clisp.org>
77219
77220         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77221         mountlist by default.
77222
77223 2006-10-16  Bruno Haible  <bruno@clisp.org>
77224
77225         * lib/c-strstr.c: Include c-strstr.h.
77226
77227 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77228
77229         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77230         in a slash.
77231
77232 2006-10-18  Bruno Haible  <bruno@clisp.org>
77233
77234         * lib/lock.h [C++]: Wrap definitions in extern "C".
77235
77236 2006-10-18  Bruno Haible  <bruno@clisp.org>
77237
77238         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77239         gl_LIBOBJS list.
77240
77241 2006-10-18  Bruno Haible  <bruno@clisp.org>
77242
77243         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77244
77245 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77246
77247         * lib/xstrtol.h: Include gettext.h.
77248         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77249         Problem reported by Eric Blake.
77250         * modules/xstrtol (Depends-on): Add gettext-h.
77251
77252 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77253
77254         * lib/strftime.c (advance): New macro.
77255         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77256         incomplete type, so you can't add 0 to it.  Problem and patch
77257         reported by Eelco Dolstra for dietlibc.
77258
77259 2006-10-18  Jim Meyering  <jim@meyering.net>
77260
77261         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77262         type for a local, and rename it: s/up/user_proc/.
77263
77264 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77265
77266         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77267         READ_UTMP_USER_PROCESS.
77268         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77269
77270 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77273         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77274
77275 2006-10-17  Eric Blake  <ebb9@byu.net>
77276
77277         * lib/sigprocmask.c (sigprocmask): Fix typo.
77278
77279         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77280
77281         * modules/clean-temp (Makefile.am): Don't add to make output...
77282         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77283         config.h.
77284
77285 2006-10-17  Bruno Haible  <bruno@clisp.org>
77286
77287         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77288         differently if DEFAULT_TEXT_DOMAIN is set.
77289
77290 2006-10-16  Bruno Haible  <bruno@clisp.org>
77291
77292         * lib/clean-temp.c: Include fwriteerror.h.
77293
77294 2006-10-16  Bruno Haible  <bruno@clisp.org>
77295
77296         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77297
77298 2006-10-16  Bruno Haible  <bruno@clisp.org>
77299
77300         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77301         * lib/sigprocmask.h: Include <sys/types.h>.
77302         (sigset_t): Use the system's definition if present.
77303
77304 2006-10-17  Eric Blake  <ebb9@byu.net>
77305
77306         * lib/xvasprintf.c (includes): Assume config.h.
77307         * lib/xasprintf.c (includes): Likewise.
77308
77309 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77310
77311         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77312         at least as wide as intmax_t.
77313
77314 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77315
77316         (Imported from Automake.)
77317         * build-aux/gnupload: Update to version 1.1 of directive file.
77318
77319 2006-10-16  Eric Blake  <ebb9@byu.net>
77320
77321         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77322         match Automake 1.10a.
77323
77324 2006-10-14  Bruno Haible  <bruno@clisp.org>
77325
77326         * modules/sigprocmask: New file.
77327         * lib/sigprocmask.h: New file.
77328         * lib/sigprocmask.c: New file.
77329         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77330         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77331         request sigprocmask.o.
77332         (gl_PREREQ_SIGPROCMASK): New macro.
77333         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77334         (Depends-on): Add sigprocmask.
77335         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77336         gt_SIGNALBLOCKING. Test for 'raise' only once.
77337         * lib/fatal-signal.c: Include sigprocmask.h.
77338         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77339         unblock_fatal_signals): Define always.
77340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77341         sigprocmask.
77342
77343 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         Sync from Automake.
77346         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77347         which incorrectly sets the mode of an existing destination
77348         directory.  In some cases the unpatched install-sh could do the
77349         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77350         system.  We hope this is rare in practice, but it's clearly worth
77351         fixing.  Problem reported by Alex Unleashed in
77352         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77353         Also, don't bother to check for -m bugs unless we're using -m;
77354         suggested by Stepan Kasal.
77355
77356 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77357
77358         Sync from Automake.
77359         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77360         `-c' flag, so they appear at the same position as in %FASTDEP%
77361         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77362         which ignores unknown options only after the first non-option.
77363         Bug report against M4 by Nelson H. F. Beebe.
77364
77365 2006-10-13  Jim Meyering  <jim@meyering.net>
77366
77367         Fix a bug in yesterday's change.
77368         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77369         p->fts_statp->st_dev would be used uninitialized.
77370         Ensures that we always call fts_stat on the very first entry.
77371         Miklos Szeredi reported that find -xdev stopped working.
77372
77373 2006-10-12  Bruno Haible  <bruno@clisp.org>
77374
77375         * gnulib-tool (func_get_automake_snippet): Append an automatically
77376         computed EXTRA_DIST augmentation.
77377         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77378         * modules/alloca-opt (Makefile.am): Likewise.
77379         * modules/allocsa (Makefile.am): Likewise.
77380         * modules/arcfour (Makefile.am): Likewise.
77381         * modules/arctwo (Makefile.am): Likewise.
77382         * modules/argmatch (Makefile.am): Likewise.
77383         * modules/argz (Makefile.am): Likewise.
77384         * modules/atexit (Makefile.am): Likewise.
77385         * modules/backupfile (Makefile.am): Likewise.
77386         * modules/byteswap (Makefile.am): Likewise.
77387         * modules/c-strtod (Makefile.am): Likewise.
77388         * modules/c-strtold (Makefile.am): Likewise.
77389         * modules/calloc (Makefile.am): Likewise.
77390         * modules/canon-host (Makefile.am): Likewise.
77391         * modules/canonicalize (Makefile.am): Likewise.
77392         * modules/chdir-long (Makefile.am): Likewise.
77393         * modules/chdir-safer (Makefile.am): Likewise.
77394         * modules/check-version (Makefile.am): Likewise.
77395         * modules/chown (Makefile.am): Likewise.
77396         * modules/cloexec (Makefile.am): Likewise.
77397         * modules/close-stream (Makefile.am): Likewise.
77398         * modules/closeout (Makefile.am): Likewise.
77399         * modules/crc (Makefile.am): Likewise.
77400         * modules/csharpexec (Makefile.am): Likewise.
77401         * modules/cycle-check (Makefile.am): Likewise.
77402         * modules/des (Makefile.am): Likewise.
77403         * modules/dev-ino (Makefile.am): Likewise.
77404         * modules/dirfd (Makefile.am): Likewise.
77405         * modules/dirname (Makefile.am): Likewise.
77406         * modules/dup2 (Makefile.am): Likewise.
77407         * modules/eealloc (Makefile.am): Likewise.
77408         * modules/error (Makefile.am): Likewise.
77409         * modules/euidaccess (Makefile.am): Likewise.
77410         * modules/exclude (Makefile.am): Likewise.
77411         * modules/exitfail (Makefile.am): Likewise.
77412         * modules/fcntl-safer (Makefile.am): Likewise.
77413         * modules/fcntl (Makefile.am): Likewise.
77414         * modules/file-type (Makefile.am): Likewise.
77415         * modules/fileblocks (Makefile.am): Likewise.
77416         * modules/filemode (Makefile.am): Likewise.
77417         * modules/filenamecat (Makefile.am): Likewise.
77418         * modules/fnmatch (Makefile.am): Likewise.
77419         * modules/fopen-safer (Makefile.am): Likewise.
77420         * modules/fpending (Makefile.am): Likewise.
77421         * modules/fprintftime (Makefile.am): Likewise.
77422         * modules/free (Makefile.am): Likewise.
77423         * modules/fsusage (Makefile.am): Likewise.
77424         * modules/ftruncate (Makefile.am): Likewise.
77425         * modules/fts (Makefile.am): Likewise.
77426         * modules/gc-arcfour (Makefile.am): Likewise.
77427         * modules/gc-des (Makefile.am): Likewise.
77428         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77429         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77430         * modules/gc-md4 (Makefile.am): Likewise.
77431         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77432         * modules/gc-sha1 (Makefile.am): Likewise.
77433         * modules/gc (Makefile.am): Likewise.
77434         * modules/getaddrinfo (Makefile.am): Likewise.
77435         * modules/getcwd (Makefile.am): Likewise.
77436         * modules/getdelim (Makefile.am): Likewise.
77437         * modules/getdomainname (Makefile.am): Likewise.
77438         * modules/getgroups (Makefile.am): Likewise.
77439         * modules/gethostname (Makefile.am): Likewise.
77440         * modules/gethrxtime (Makefile.am): Likewise.
77441         * modules/getline (Makefile.am): Likewise.
77442         * modules/getloadavg (Makefile.am): Likewise.
77443         * modules/getlogin_r (Makefile.am): Likewise.
77444         * modules/getndelim2 (Makefile.am): Likewise.
77445         * modules/getopt (Makefile.am): Likewise.
77446         * modules/getpagesize (Makefile.am): Likewise.
77447         * modules/getpass-gnu (Makefile.am): Likewise.
77448         * modules/getpass (Makefile.am): Likewise.
77449         * modules/getsubopt (Makefile.am): Likewise.
77450         * modules/gettime (Makefile.am): Likewise.
77451         * modules/gettimeofday (Makefile.am): Likewise.
77452         * modules/getugroups (Makefile.am): Likewise.
77453         * modules/getusershell (Makefile.am): Likewise.
77454         * modules/glob (Makefile.am): Likewise.
77455         * modules/group-member (Makefile.am): Likewise.
77456         * modules/hard-locale (Makefile.am): Likewise.
77457         * modules/hash (Makefile.am): Likewise.
77458         * modules/hmac-md5 (Makefile.am): Likewise.
77459         * modules/hmac-sha1 (Makefile.am): Likewise.
77460         * modules/human (Makefile.am): Likewise.
77461         * modules/idcache (Makefile.am): Likewise.
77462         * modules/imaxabs (Makefile.am): Likewise.
77463         * modules/imaxdiv (Makefile.am): Likewise.
77464         * modules/inet_ntop (Makefile.am): Likewise.
77465         * modules/inet_pton (Makefile.am): Likewise.
77466         * modules/intprops (Makefile.am): Likewise.
77467         * modules/inttostr (Makefile.am): Likewise.
77468         * modules/inttypes (Makefile.am): Likewise.
77469         * modules/isapipe (Makefile.am): Likewise.
77470         * modules/javaversion (Makefile.am): Likewise.
77471         * modules/lchmod (Makefile.am): Likewise.
77472         * modules/lchown (Makefile.am): Likewise.
77473         * modules/localcharset (Makefile.am): Likewise.
77474         * modules/long-options (Makefile.am): Likewise.
77475         * modules/lstat (Makefile.am): Likewise.
77476         * modules/malloc (Makefile.am): Likewise.
77477         * modules/mathl (Makefile.am): Likewise.
77478         * modules/mbchar (Makefile.am): Likewise.
77479         * modules/md2 (Makefile.am): Likewise.
77480         * modules/md4 (Makefile.am): Likewise.
77481         * modules/md5 (Makefile.am): Likewise.
77482         * modules/memcasecmp (Makefile.am): Likewise.
77483         * modules/memchr (Makefile.am): Likewise.
77484         * modules/memcmp (Makefile.am): Likewise.
77485         * modules/memcoll (Makefile.am): Likewise.
77486         * modules/memcpy (Makefile.am): Likewise.
77487         * modules/memmem (Makefile.am): Likewise.
77488         * modules/memmove (Makefile.am): Likewise.
77489         * modules/mempcpy (Makefile.am): Likewise.
77490         * modules/memrchr (Makefile.am): Likewise.
77491         * modules/memset (Makefile.am): Likewise.
77492         * modules/memxor (Makefile.am): Likewise.
77493         * modules/mkancesdirs (Makefile.am): Likewise.
77494         * modules/mkdir-p (Makefile.am): Likewise.
77495         * modules/mkdir (Makefile.am): Likewise.
77496         * modules/mkdtemp (Makefile.am): Likewise.
77497         * modules/mkstemp (Makefile.am): Likewise.
77498         * modules/mktime (Makefile.am): Likewise.
77499         * modules/modechange (Makefile.am): Likewise.
77500         * modules/mountlist (Makefile.am): Likewise.
77501         * modules/nanosleep (Makefile.am): Likewise.
77502         * modules/obstack (Makefile.am): Likewise.
77503         * modules/openat (Makefile.am): Likewise.
77504         * modules/pagealign_alloc (Makefile.am): Likewise.
77505         * modules/pathmax (Makefile.am): Likewise.
77506         * modules/physmem (Makefile.am): Likewise.
77507         * modules/poll (Makefile.am): Likewise.
77508         * modules/posixtm (Makefile.am): Likewise.
77509         * modules/posixver (Makefile.am): Likewise.
77510         * modules/putenv (Makefile.am): Likewise.
77511         * modules/quote (Makefile.am): Likewise.
77512         * modules/quotearg (Makefile.am): Likewise.
77513         * modules/raise (Makefile.am): Likewise.
77514         * modules/read-file (Makefile.am): Likewise.
77515         * modules/readline (Makefile.am): Likewise.
77516         * modules/readlink (Makefile.am): Likewise.
77517         * modules/readtokens (Makefile.am): Likewise.
77518         * modules/readutmp (Makefile.am): Likewise.
77519         * modules/realloc (Makefile.am): Likewise.
77520         * modules/regex (Makefile.am): Likewise.
77521         * modules/rename-dest-slash (Makefile.am): Likewise.
77522         * modules/rename (Makefile.am): Likewise.
77523         * modules/rijndael (Makefile.am): Likewise.
77524         * modules/rmdir (Makefile.am): Likewise.
77525         * modules/rpmatch (Makefile.am): Likewise.
77526         * modules/safe-read (Makefile.am): Likewise.
77527         * modules/safe-write (Makefile.am): Likewise.
77528         * modules/same-inode (Makefile.am): Likewise.
77529         * modules/same (Makefile.am): Likewise.
77530         * modules/save-cwd (Makefile.am): Likewise.
77531         * modules/savedir (Makefile.am): Likewise.
77532         * modules/setenv (Makefile.am): Likewise.
77533         * modules/settime (Makefile.am): Likewise.
77534         * modules/sha1 (Makefile.am): Likewise.
77535         * modules/sig2str (Makefile.am): Likewise.
77536         * modules/snprintf (Makefile.am): Likewise.
77537         * modules/stat-macros (Makefile.am): Likewise.
77538         * modules/stat-time (Makefile.am): Likewise.
77539         * modules/stdbool (Makefile.am): Likewise.
77540         * modules/stdint (Makefile.am): Likewise.
77541         * modules/stdlib-safer (Makefile.am): Likewise.
77542         * modules/stpcpy (Makefile.am): Likewise.
77543         * modules/stpncpy (Makefile.am): Likewise.
77544         * modules/strcase (Makefile.am): Likewise.
77545         * modules/strcasestr (Makefile.am): Likewise.
77546         * modules/strchrnul (Makefile.am): Likewise.
77547         * modules/strcspn (Makefile.am): Likewise.
77548         * modules/strdup (Makefile.am): Likewise.
77549         * modules/strerror (Makefile.am): Likewise.
77550         * modules/strftime (Makefile.am): Likewise.
77551         * modules/strndup (Makefile.am): Likewise.
77552         * modules/strnlen (Makefile.am): Likewise.
77553         * modules/strpbrk (Makefile.am): Likewise.
77554         * modules/strsep (Makefile.am): Likewise.
77555         * modules/strstr (Makefile.am): Likewise.
77556         * modules/strtod (Makefile.am): Likewise.
77557         * modules/strtoimax (Makefile.am): Likewise.
77558         * modules/strtok_r (Makefile.am): Likewise.
77559         * modules/strtol (Makefile.am): Likewise.
77560         * modules/strtoll (Makefile.am): Likewise.
77561         * modules/strtoul (Makefile.am): Likewise.
77562         * modules/strtoull (Makefile.am): Likewise.
77563         * modules/strtoumax (Makefile.am): Likewise.
77564         * modules/strverscmp (Makefile.am): Likewise.
77565         * modules/sys_socket (Makefile.am): Likewise.
77566         * modules/sys_stat (Makefile.am): Likewise.
77567         * modules/sysexits (Makefile.am): Likewise.
77568         * modules/time_r (Makefile.am): Likewise.
77569         * modules/timegm (Makefile.am): Likewise.
77570         * modules/timespec (Makefile.am): Likewise.
77571         * modules/tmpfile-safer (Makefile.am): Likewise.
77572         * modules/trim (Makefile.am): Likewise.
77573         * modules/unistd-safer (Makefile.am): Likewise.
77574         * modules/unlinkdir (Makefile.am): Likewise.
77575         * modules/unlocked-io (Makefile.am): Likewise.
77576         * modules/userspec (Makefile.am): Likewise.
77577         * modules/utime (Makefile.am): Likewise.
77578         * modules/utimecmp (Makefile.am): Likewise.
77579         * modules/utimens (Makefile.am): Likewise.
77580         * modules/vasnprintf (Makefile.am): Likewise.
77581         * modules/vasprintf (Makefile.am): Likewise.
77582         * modules/vsnprintf (Makefile.am): Likewise.
77583         * modules/xalloc (Makefile.am): Likewise.
77584         * modules/xgetcwd (Makefile.am): Likewise.
77585         * modules/xnanosleep (Makefile.am): Likewise.
77586         * modules/xreadlink (Makefile.am): Likewise.
77587         * modules/xstrtod (Makefile.am): Likewise.
77588         * modules/xstrtol (Makefile.am): Likewise.
77589         * modules/xstrtold (Makefile.am): Likewise.
77590         * modules/yesno (Makefile.am): Likewise.
77591         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77592
77593 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77594
77595         * modules/error (Makefile.am): Distribute files through
77596         EXTRA_DIST, not lib_SOURCES.
77597
77598 2006-10-12  Eric Blake  <ebb9@byu.net>
77599
77600         * modules/error (Makefile.am): Distribute files in /lib.
77601         * modules/obstack (Makefile.am): Likewise.
77602
77603 2006-10-12  Bruno Haible  <bruno@clisp.org>
77604
77605         * modules/acl (Makefile.am): Distribute all files in lib/ through
77606         EXTRA_DIST.
77607         * modules/arcfour (Makefile.am): Likewise.
77608         * modules/arctwo (Makefile.am): Likewise.
77609         * modules/argmatch (Makefile.am): Likewise.
77610         * modules/argz (Makefile.am): Likewise.
77611         * modules/atexit (Makefile.am): Likewise.
77612         * modules/backupfile (Makefile.am): Likewise.
77613         * modules/c-strtod (Makefile.am): Likewise.
77614         * modules/c-strtold (Makefile.am): Likewise.
77615         * modules/calloc (Makefile.am): Likewise.
77616         * modules/canon-host (Makefile.am): Likewise.
77617         * modules/canonicalize (Makefile.am): Likewise.
77618         * modules/chdir-long (Makefile.am): Likewise.
77619         * modules/chdir-safer (Makefile.am): Likewise.
77620         * modules/check-version (Makefile.am): Likewise.
77621         * modules/chown (Makefile.am): Likewise.
77622         * modules/cloexec (Makefile.am): Likewise.
77623         * modules/close-stream (Makefile.am): Likewise.
77624         * modules/closeout (Makefile.am): Likewise.
77625         * modules/crc (Makefile.am): Likewise.
77626         * modules/cycle-check (Makefile.am): Likewise.
77627         * modules/des (Makefile.am): Likewise.
77628         * modules/dirfd (Makefile.am): Likewise.
77629         * modules/dirname (Makefile.am): Likewise.
77630         * modules/dup2 (Makefile.am): Likewise.
77631         * modules/euidaccess (Makefile.am): Likewise.
77632         * modules/exclude (Makefile.am): Likewise.
77633         * modules/exitfail (Makefile.am): Likewise.
77634         * modules/fcntl-safer (Makefile.am): Likewise.
77635         * modules/file-type (Makefile.am): Likewise.
77636         * modules/fileblocks (Makefile.am): Likewise.
77637         * modules/filemode (Makefile.am): Likewise.
77638         * modules/filenamecat (Makefile.am): Likewise.
77639         * modules/fnmatch (Makefile.am): Likewise.
77640         * modules/fopen-safer (Makefile.am): Likewise.
77641         * modules/fpending (Makefile.am): Likewise.
77642         * modules/fprintftime (Makefile.am): Likewise.
77643         * modules/free (Makefile.am): Likewise.
77644         * modules/fsusage (Makefile.am): Likewise.
77645         * modules/ftruncate (Makefile.am): Likewise.
77646         * modules/fts (Makefile.am): Likewise.
77647         * modules/gc (Makefile.am): Likewise.
77648         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77649         * modules/getaddrinfo (Makefile.am): Likewise.
77650         * modules/getcwd (Makefile.am): Likewise.
77651         * modules/getdelim (Makefile.am): Likewise.
77652         * modules/getdomainname (Makefile.am): Likewise.
77653         * modules/getgroups (Makefile.am): Likewise.
77654         * modules/gethostname (Makefile.am): Likewise.
77655         * modules/gethrxtime (Makefile.am): Likewise.
77656         * modules/getline (Makefile.am): Likewise.
77657         * modules/getloadavg (Makefile.am): Likewise.
77658         * modules/getlogin_r (Makefile.am): Likewise.
77659         * modules/getopt (Makefile.am): Likewise.
77660         * modules/getpass (Makefile.am): Likewise.
77661         * modules/getpass-gnu (Makefile.am): Likewise.
77662         * modules/getsubopt (Makefile.am): Likewise.
77663         * modules/gettime (Makefile.am): Likewise.
77664         * modules/gettimeofday (Makefile.am): Likewise.
77665         * modules/getugroups (Makefile.am): Likewise.
77666         * modules/getusershell (Makefile.am): Likewise.
77667         * modules/glob (Makefile.am): Likewise.
77668         * modules/group-member (Makefile.am): Likewise.
77669         * modules/hard-locale (Makefile.am): Likewise.
77670         * modules/hash (Makefile.am): Likewise.
77671         * modules/hmac-md5 (Makefile.am): Likewise.
77672         * modules/hmac-sha1 (Makefile.am): Likewise.
77673         * modules/human (Makefile.am): Likewise.
77674         * modules/idcache (Makefile.am): Likewise.
77675         * modules/imaxabs (Makefile.am): Likewise.
77676         * modules/imaxdiv (Makefile.am): Likewise.
77677         * modules/inet_ntop (Makefile.am): Likewise.
77678         * modules/inet_pton (Makefile.am): Likewise.
77679         * modules/inttostr (Makefile.am): Likewise.
77680         * modules/isapipe (Makefile.am): Likewise.
77681         * modules/lchown (Makefile.am): Likewise.
77682         * modules/long-options (Makefile.am): Likewise.
77683         * modules/lstat (Makefile.am): Likewise.
77684         * modules/malloc (Makefile.am): Likewise.
77685         * modules/mathl (Makefile.am): Likewise.
77686         * modules/mbchar (Makefile.am): Likewise.
77687         * modules/md2 (Makefile.am): Likewise.
77688         * modules/md4 (Makefile.am): Likewise.
77689         * modules/md5 (Makefile.am): Likewise.
77690         * modules/memcasecmp (Makefile.am): Likewise.
77691         * modules/memchr (Makefile.am): Likewise.
77692         * modules/memcmp (Makefile.am): Likewise.
77693         * modules/memcoll (Makefile.am): Likewise.
77694         * modules/memcpy (Makefile.am): Likewise.
77695         * modules/memmem (Makefile.am): Likewise.
77696         * modules/memmove (Makefile.am): Likewise.
77697         * modules/mempcpy (Makefile.am): Likewise.
77698         * modules/memrchr (Makefile.am): Likewise.
77699         * modules/memset (Makefile.am): Likewise.
77700         * modules/memxor (Makefile.am): Likewise.
77701         * modules/mkancesdirs (Makefile.am): Likewise.
77702         * modules/mkdir (Makefile.am): Likewise.
77703         * modules/mkdir-p (Makefile.am): Likewise.
77704         * modules/mkdtemp (Makefile.am): Likewise.
77705         * modules/mkstemp (Makefile.am): Likewise.
77706         * modules/mktime (Makefile.am): Likewise.
77707         * modules/modechange (Makefile.am): Likewise.
77708         * modules/mountlist (Makefile.am): Likewise.
77709         * modules/nanosleep (Makefile.am): Likewise.
77710         * modules/openat (Makefile.am): Likewise.
77711         * modules/pagealign_alloc (Makefile.am): Likewise.
77712         * modules/physmem (Makefile.am): Likewise.
77713         * modules/poll (Makefile.am): Likewise.
77714         * modules/posixtm (Makefile.am): Likewise.
77715         * modules/posixver (Makefile.am): Likewise.
77716         * modules/putenv (Makefile.am): Likewise.
77717         * modules/quote (Makefile.am): Likewise.
77718         * modules/quotearg (Makefile.am): Likewise.
77719         * modules/raise (Makefile.am): Likewise.
77720         * modules/read-file (Makefile.am): Likewise.
77721         * modules/readline (Makefile.am): Likewise.
77722         * modules/readlink (Makefile.am): Likewise.
77723         * modules/readtokens (Makefile.am): Likewise.
77724         * modules/readutmp (Makefile.am): Likewise.
77725         * modules/realloc (Makefile.am): Likewise.
77726         * modules/regex (Makefile.am): Likewise.
77727         * modules/rename (Makefile.am): Likewise.
77728         * modules/rename-dest-slash (Makefile.am): Likewise.
77729         * modules/rijndael (Makefile.am): Likewise.
77730         * modules/rmdir (Makefile.am): Likewise.
77731         * modules/rpmatch (Makefile.am): Likewise.
77732         * modules/safe-read (Makefile.am): Likewise.
77733         * modules/safe-write (Makefile.am): Likewise.
77734         * modules/same (Makefile.am): Likewise.
77735         * modules/save-cwd (Makefile.am): Likewise.
77736         * modules/savedir (Makefile.am): Likewise.
77737         * modules/setenv (Makefile.am): Likewise.
77738         * modules/settime (Makefile.am): Likewise.
77739         * modules/sha1 (Makefile.am): Likewise.
77740         * modules/sig2str (Makefile.am): Likewise.
77741         * modules/snprintf (Makefile.am): Likewise.
77742         * modules/stdlib-safer (Makefile.am): Likewise.
77743         * modules/stpcpy (Makefile.am): Likewise.
77744         * modules/stpncpy (Makefile.am): Likewise.
77745         * modules/strcase (Makefile.am): Likewise.
77746         * modules/strcasestr (Makefile.am): Likewise.
77747         * modules/strchrnul (Makefile.am): Likewise.
77748         * modules/strcspn (Makefile.am): Likewise.
77749         * modules/strdup (Makefile.am): Likewise.
77750         * modules/strerror (Makefile.am): Likewise.
77751         * modules/strftime (Makefile.am): Likewise.
77752         * modules/strndup (Makefile.am): Likewise.
77753         * modules/strnlen (Makefile.am): Likewise.
77754         * modules/strpbrk (Makefile.am): Likewise.
77755         * modules/strsep (Makefile.am): Likewise.
77756         * modules/strstr (Makefile.am): Likewise.
77757         * modules/strtod (Makefile.am): Likewise.
77758         * modules/strtoimax (Makefile.am): Likewise.
77759         * modules/strtok_r (Makefile.am): Likewise.
77760         * modules/strtol (Makefile.am): Likewise.
77761         * modules/strtoll (Makefile.am): Likewise.
77762         * modules/strtoul (Makefile.am): Likewise.
77763         * modules/strtoull (Makefile.am): Likewise.
77764         * modules/strtoumax (Makefile.am): Likewise.
77765         * modules/strverscmp (Makefile.am): Likewise.
77766         * modules/time_r (Makefile.am): Likewise.
77767         * modules/timegm (Makefile.am): Likewise.
77768         * modules/tmpfile-safer (Makefile.am): Likewise.
77769         * modules/unistd-safer (Makefile.am): Likewise.
77770         * modules/unlinkdir (Makefile.am): Likewise.
77771         * modules/userspec (Makefile.am): Likewise.
77772         * modules/utime (Makefile.am): Likewise.
77773         * modules/utimecmp (Makefile.am): Likewise.
77774         * modules/utimens (Makefile.am): Likewise.
77775         * modules/vasnprintf (Makefile.am): Likewise.
77776         * modules/vasprintf (Makefile.am): Likewise.
77777         * modules/vsnprintf (Makefile.am): Likewise.
77778         * modules/xalloc (Makefile.am): Likewise.
77779         * modules/xgetcwd (Makefile.am): Likewise.
77780         * modules/xnanosleep (Makefile.am): Likewise.
77781         * modules/xreadlink (Makefile.am): Likewise.
77782         * modules/xstrtod (Makefile.am): Likewise.
77783         * modules/xstrtol (Makefile.am): Likewise.
77784         * modules/xstrtold (Makefile.am): Likewise.
77785         * modules/yesno (Makefile.am): Likewise.
77786
77787 2006-10-12  Jim Meyering  <jim@meyering.net>
77788
77789         * m4/getloadavg.m4: Revert the change below.
77790
77791         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77792         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77793         fail with a symlink, which is what coreutils' ./bootstrap now
77794         creates by default.
77795
77796 2006-10-12  Bruno Haible  <bruno@clisp.org>
77797
77798         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77799         mingw.
77800         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77801         MSVC and mingw explicitly.
77802
77803 2006-10-11  Simon Josefsson  <jas@extundo.com>
77804             Bruno Haible  <bruno@clisp.org>
77805
77806         Add support for multiple gnulib-tool invocations in the scope of a
77807         single configure.ac file.
77808         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77809         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77810         with the same contents as the _LIBADD variable.
77811         (func_emit_initmacro_start, func_emit_initmacro_end,
77812         func_emit_initmacro_done): New functions.
77813         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77814         gl_LIBOBJS and gl_LTLIBOBJS.
77815
77816 2006-10-11  Bruno Haible  <bruno@clisp.org>
77817
77818         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77819         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77820         autoreconf. Instead, invoke autopoint explicitly but move back the
77821         *.m4 files from gnulib.
77822
77823 2006-10-11  Bruno Haible  <bruno@clisp.org>
77824
77825         * gnulib-tool (func_usage): Make module names after --create-testdir
77826         optional.
77827         (func_create_testdir): If no module was specified, use nearly all
77828         modules.
77829
77830 2006-10-12  Jim Meyering  <jim@meyering.net>
77831
77832         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77833         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77834         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77835         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77836         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77837         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77838         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77839         (fts_set_stat_required): New function.
77840         (fts_open): Defer the calls to fts_stat, if possible or requested.
77841         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77842         into fts_stat itself.
77843         (fts_read): Perform any required (deferred) fts_stat call.
77844         (fts_build): Likewise, for the directory we're about to open and read.
77845         In the readdir loop, carefully decide whether each entry will require
77846         an eventual call to fts_stat, using dirent.d_type info if available.
77847         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77848         a command line argument into this function.  Update all callers.
77849         Map a return value of FTS_DOT to FTS_D for a command line argument.
77850         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77851         Thanks to Miklos Szeredi for his tenacity and for the initial
77852         bug report about "find" failing on a FUSE-based file system.
77853
77854         * lib/fts.c (fts_open): Use consistent indentation.
77855
77856 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77857
77858         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77859         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77860         reported by Jim Meyering.  All uses of cache variables renamed
77861         to match Autoconf's.
77862         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77863         the other one.
77864
77865         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77866         Fix misspelling in diagnostic.
77867
77868 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77869
77870         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77871         defined.  Problem reported by Matthew Woehlke.
77872
77873         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77874         Add support for Tandem NonStop R series.
77875         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77876         Use new macro.
77877
77878         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77879         (has_trailing_slash): Omit size arg; all callers changed.
77880         Omit 'inline', since it doesn't help performance and we'd
77881         need to configure it.
77882         Don't count //, ///, etc. as having a trailing slash.
77883         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77884         (rpl_rename_dest_slash): On failure, use rename's errno rather
77885         than (in some cases) an incorrect or junk errno.
77886         Simplify code by removing need to compute length; this does
77887         cause it to make two passes instead of one over the file name,
77888         but it's worth it.
77889
77890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77891         change, since Autoconf's version may no longer be appropriate now
77892         that we are using CVS Autoconf's version.  Add support for Tandem.
77893
77894 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77895             Bruno Haible  <bruno@clisp.org>
77896
77897         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77898         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77899         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77900         gl_AC_TYPE_LONG_LONG.
77901
77902         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77903         instead of HAVE_LONG_LONG.
77904         * lib/printf-args.c (printf_fetchargs): Likewise.
77905         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77906         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77907         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77908         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77909         gl_AC_TYPE_LONG_LONG.
77910
77911 2006-10-11  Bruno Haible  <bruno@clisp.org>
77912
77913         * m4/longlong.m4: Add comments.
77914         * m4/ulonglong.m4: Likewise.
77915
77916 2006-10-10  Bruno Haible  <bruno@clisp.org>
77917
77918         Make it possible to #define stpcpy, strdup to aliases.
77919         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77920         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77921
77922 2006-10-10  Bruno Haible  <bruno@clisp.org>
77923
77924         Make it possible to #define gcd to an alias.
77925         * lib/gcd.c: Include config.h.
77926
77927 2006-10-10  Bruno Haible  <bruno@clisp.org>
77928
77929         Make it possible to #define c_isascii to an alias.
77930         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77931         defined. Undefine the macros before defining them, to avoid gcc
77932         warnings.
77933         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77934         define NO_C_CTYPE_MACROS early.
77935
77936 2006-10-10  Bruno Haible  <bruno@clisp.org>
77937
77938         Make it possible to #define set_program_name to an alias.
77939         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77940         ENABLE_RELOCATABLE early.
77941
77942 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77943
77944         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77945         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77946         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77947         More generally, don't assume that 64-bit signed int is available
77948         if unsigned int is, and vice versa.
77949         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77950         unsigned symbols, not on their signed counterparts.
77951         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77952         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77953         (UINT64_C, UINTMAX_C):
77954         Likewise.
77955         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77956         unsigned counterparts.
77957         (Have_long_long, Unsigned): New macros.
77958         (Int): Renamed from INT.
77959         (strtoimax): Use the new macros.
77960         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77961         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77962         * modules/inttypes (inttypes.h): Substitute
77963         HAVE_UNSIGNED_LONG_LONG_INT.
77964         * modules/stdint (stdint.h): Likewise.
77965         (Files): Add m4/ulonglong.m4.
77966
77967 2006-10-10  Bruno Haible  <bruno@clisp.org>
77968
77969         Fix a gcc -Wshadow warning.
77970         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77971         to 'bucket'.
77972         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77973         gl_linked_indexof_from_to): Likewise.
77974         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77975         Likewise.
77976         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77977         Likewise.
77978         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77979         Reported by Eric Blake.
77980
77981 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77984         for NetBSD.  Problem reported by Bruno Haible.
77985
77986 2006-10-09  Jim Meyering  <jim@meyering.net>
77987
77988         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77989         Patch from Bruno Haible.
77990
77991 2006-10-09  Jim Meyering  <jim@meyering.net>
77992
77993         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77994         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77995         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77996
77997 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77998
77999         Don't include <config.h> twice; this doesn't work in some cases,
78000         e.g., when config.h has "#define intmax_t long long int" and
78001         we include <config.h>, <inttypes.h>, <config.h> in that order.
78002         Problem reported by Matthew Woehlke in:
78003         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78004         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78005         * lib/fts-cycle.c: Don't include config.h.
78006         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78007         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78008         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78009         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78010         inttypes.h.
78011         * lib/xstrtoumax.c: Likewise.
78012         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78013         __strtol and the like, so that this module is more like its siblings.
78014         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78015         Remove; no longer needed now that we assume gnulib inttypes.h.
78016
78017 2006-10-08  Bruno Haible  <bruno@clisp.org>
78018
78019         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78020         option.
78021
78022 2006-10-07  Jim Meyering  <jim@meyering.net>
78023
78024         * modules/inttypes (inttypes.h): Revert what seems to have been
78025         an inadvertent part of today's change: use "|", not "/" in the
78026         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78027
78028 2006-10-07  Bruno Haible  <bruno@clisp.org>
78029
78030         * modules/sublist: New file.
78031
78032 2006-10-07  Bruno Haible  <bruno@clisp.org>
78033
78034         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78035         * modules/argz (argz.h): Likewise.
78036         * modules/arpa_inet (arpa/inet.h): Likewise.
78037         * modules/byteswap (byteswap.h): Likewise.
78038         * modules/configmake (configmake.h): Likewise.
78039         * modules/fcntl (fcntl.h): Likewise.
78040         * modules/fnmatch (fnmatch.h): Likewise.
78041         * modules/getopt (getopt.h): Likewise.
78042         * modules/glob (glob.h): Likewise.
78043         * modules/inttypes (inttypes.h): Likewise.
78044         * modules/netinet_in (netinet/in.h): Likewise.
78045         * modules/poll (poll.h): Likewise.
78046         * modules/stdbool (stdbool.h): Likewise.
78047         * modules/stdint (stdint.h): Likewise.
78048         * modules/sys_select (sys/select.h): Likewise.
78049         * modules/sys_socket (sys/socket.h): Likewise.
78050         * modules/sys_stat (sys/stat.h): Likewise.
78051         * modules/sysexits (sysexits.h): Likewise.
78052         * modules/unistd (unistd.h): Likewise.
78053         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78054         Add a "DO NOT EDIT" comment to the generated file.
78055         (func_import): Likewise for gnulib-comp.m4.
78056
78057 2006-10-07  Bruno Haible  <bruno@clisp.org>
78058
78059         * lib/gl_sublist.h: New file.
78060         * lib/gl_sublist.c: New file.
78061
78062 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78063
78064         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78065         name (relative to the original working directory) and the file
78066         name component (relative to the temporary working directory).  All
78067         callers changed.
78068         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78069         * lib/mkdir-p.c (make_dir_parents): Likewise.
78070         * lib/mkdir-p.h (make_dir_parents): Likewise.
78071
78072 2006-10-06  Eric Blake  <ebb9@byu.net>
78073
78074         Define several macros for use by the clean-temp module.
78075         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78076         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78077         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78078
78079         * lib/clean-temp.h (close_stream_temp): New declaration.
78080         * lib/clean-temp.c (includes): Pull in headers according to what
78081         other modules are in use.
78082         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78083
78084 2006-10-06  Bruno Haible  <bruno@clisp.org>
78085
78086         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78087         instead of fopen, fwriteerror.
78088
78089 2006-10-06  Bruno Haible  <bruno@clisp.org>
78090
78091         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78092         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78093         int.
78094         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78095         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78096         Return an error indicator.
78097         Suggested by Eric Blake.
78098
78099 2006-10-06  Bruno Haible  <bruno@clisp.org>
78100
78101         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78102         Reported by Eric Blake.
78103
78104 2006-10-06  Bruno Haible  <bruno@clisp.org>
78105
78106         * modules/closeout (Description): Mention stderr too.
78107
78108 2006-10-06  Bruno Haible  <bruno@clisp.org>
78109         and Paul Eggert  <eggert@cs.ucla.edu>
78110
78111         * lib/closeout.c (close_stdout): Also close stderr.
78112         * lib/closeout.h: Update comment.
78113
78114 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78115
78116         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78117         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78118         * lib/dirchownmod.c: Include lchown.h.
78119         * lib/lchown.c: Don't include files that lchown.h now includes.
78120         Don't declare chown, since lchown.h now does that.
78121         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78122         (lchown): Define to rpl_chown if lchown is declared but
78123         does not exist.  Declare using a prototype if lchown is not
78124         declared.  Add a copyright notice.
78125         * lib/mkstemp.h: Include <unistd.h>.
78126         * lib/openat.c: Include lchown.h.
78127
78128         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78129         we now test for that separately.
78130         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78131         rather than O_NOFOLLOW, when testing whether it's possible to
78132         avoid a race condition reliably.
78133         * lib/savewd.c (savewd_chdir): Likewise.
78134
78135         Remove macros that are no longer needed now that stdint.h is
78136         reliable.
78137         * lib/fsusage.c (UINTMAX_MAX): Remove.
78138         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78139         * lib/utimecmp.c (SIZE_MAX): Remove.
78140
78141         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78142
78143         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78144         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78145         O_NOATIME works.
78146
78147 2006-10-05  Bruno Haible  <bruno@clisp.org>
78148
78149         * lib/gl_list.h (gl_sortedlist_search_from_to,
78150         gl_sortedlist_indexof_from_to): New declarations.
78151         (gl_list_implementation): New fields sortedlist_search_from_to,
78152         sortedlist_indexof_from_to.
78153         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78154         inline functions.
78155         * lib/gl_list.c (gl_sortedlist_search_from_to,
78156         gl_sortedlist_indexof_from_to): New functions.
78157         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78158         function.
78159         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78160         (gl_array_sortedlist_search_from_to): New function.
78161         (gl_array_list_implementation): Update.
78162         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78163         function.
78164         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78165         (gl_carray_sortedlist_search_from_to): New function.
78166         (gl_carray_list_implementation): Update.
78167         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78168         gl_linked_sortedlist_indexof_from_to): New functions.
78169         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78170         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78171         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78172         gl_tree_sortedlist_indexof_from_to): New functions.
78173         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78174         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78175         Update.
78176         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78177         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78178         Update.
78179
78180 2006-10-05  Bruno Haible  <bruno@clisp.org>
78181
78182         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78183         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78184         (struct gl_list_implementation): Add fields search_from_to,
78185         indexof_from_to. Remove fields search, indexof.
78186         (gl_list_search): Use the search_from_to method.
78187         (gl_list_search_from, gl_list_search_from_to): New functions.
78188         (gl_list_indexof): Use the indexof_from_to method.
78189         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78190         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78191         (gl_list_search_from, gl_list_search_from_to): New functions.
78192         (gl_list_indexof): Use the indexof_from_to method.
78193         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78194         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78195         gl_array_indexof. Add start_index, end_index arguments.
78196         (gl_array_search_from_to): Renamed from gl_array_search. Add
78197         start_index, end_index arguments.
78198         (gl_array_remove, gl_array_list_implementation): Update.
78199         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78200         gl_carray_indexof. Add start_index, end_index arguments.
78201         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78202         start_index, end_index arguments.
78203         (gl_carray_remove, gl_carray_list_implementation): Update.
78204         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78205         gl_linked_search. Add start_index, end_index arguments.
78206         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78207         start_index, end_index arguments.
78208         (gl_linked_remove): Update.
78209         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78210         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78211         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78212         field to 'size_t'.
78213         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78214         gl_tree_search. Add start_index, end_index arguments.
78215         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78216         start_index, end_index arguments.
78217         (gl_tree_remove): Update.
78218         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78219         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78220         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78221         function.
78222         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78223         gl_tree_search. Add start_index, end_index arguments.
78224         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78225         start_index, end_index arguments.
78226         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78227         Update.
78228         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78229
78230 2006-10-05  Bruno Haible  <bruno@clisp.org>
78231
78232         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78233
78234         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78235         fwriteerror_temp): New declarations.
78236         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78237         (descriptors): New variable.
78238         (cleanup): First, close the descriptors.
78239         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78240         fclose_temp, fwriteerror_temp): New functions.
78241
78242 2006-10-04  Jim Meyering  <jim@meyering.net>
78243
78244         * lib/fts.c (fts_open): Tiny comment change.
78245
78246 2006-10-04  Bruno Haible  <bruno@clisp.org>
78247
78248         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78249         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78250         gl_LOCK_BODY.
78251         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78252         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78253         gl_LOCK_EARLY_BODY.
78254         (gl_LOCK): Require gl_LOCK_BODY.
78255
78256 2006-10-04  Bruno Haible  <bruno@clisp.org>
78257
78258         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78259         (gl_oset_search_atleast): New declaration.
78260         (struct gl_oset_implementation): Add field 'search_atleast'.
78261         (gl_oset_search_atleast): New inline function.
78262         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78263         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78264         (gl_array_oset_implementation): Update.
78265         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78266         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78267         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78268
78269 2006-10-04  Bruno Haible  <bruno@clisp.org>
78270
78271         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78272
78273 2006-10-03  Bruno Haible  <bruno@clisp.org>
78274
78275         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78276         from gl_avltreehash_list_implementation.
78277
78278 2006-10-03  Bruno Haible  <bruno@clisp.org>
78279
78280         * lib/gl_oset.c (gl_oset_add): Fix return type.
78281
78282 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78283
78284         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78285
78286 2006-10-02  Eric Blake  <ebb9@byu.net>
78287
78288         * modules/strnlen (Depends-on): Add extensions.
78289
78290 2006-10-02  Eric Blake  <ebb9@byu.net>
78291
78292         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78293         definition in 2.60+.
78294
78295 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78296
78297         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78298         checks.
78299
78300 2006-10-02  Bruno Haible  <bruno@clisp.org>
78301
78302         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78303         to the AUTOMAKE_OPTIONS.
78304         Reported by Jim Meyering.
78305
78306 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         Work around bug in Solaris 10 /proc file system:
78309         /proc/self/fd/NNN/.. isn't the parent directory of
78310         the directory whose file descriptor is NNN.  This needs to
78311         be worked around at run time, not compile time, since a
78312         program might be built on Solaris 8, where things work, and
78313         run on Solaris 10.
78314         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78315         to use the following interface instead:
78316         (OPENAT_BUFFER_SIZE): New macro.
78317         (openat_proc_name): New function.
78318         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78319         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78320         Likewise.
78321         * lib/openat-proc.c: New file.
78322         * modules/openat (Files): Add lib/openat-proc.c.
78323         (Depends-on): Add same-inode, stdbool.
78324         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78325
78326 2006-09-29  Bruno Haible  <bruno@clisp.org>
78327
78328         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78329         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78330         argument. Set stdout_closed before testing for ferror, not after.
78331         (fwriteerror, fwriteerror_no_ebadf): New functions.
78332
78333 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78334
78335         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78336
78337 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78338
78339         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78340         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78341
78342 2006-09-28  Jim Meyering  <jim@meyering.net>
78343
78344         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78345         Include <unistd.h>.
78346
78347 2006-09-28  Bruno Haible  <bruno@clisp.org>
78348
78349         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78350         * modules/linkedhash-list (Depends-on): Likewise.
78351         * modules/rbtreehash-list (Depends-on): Likewise.
78352
78353 2006-09-28  Bruno Haible  <bruno@clisp.org>
78354
78355         * lib/strndup.h: Simplify the redefinition of strndup.
78356         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78357         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78358
78359 2006-09-28  Bruno Haible  <bruno@clisp.org>
78360
78361         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78362         * lib/gl_linkedhash_list.c: Likewise.
78363         * lib/gl_rbtreehash_list.c: Likewise.
78364
78365 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78366
78367         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78368         getaddrinfo.
78369
78370         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78371         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78372         it causes <stdio_ext.h> to cause a compile-time error.
78373         Problem reported by Nelson H. F. Beebe.
78374         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78375         of HAVE_DECL___PENDING.
78376
78377         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78378         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78379         declaration.
78380
78381 2006-09-27  Jim Meyering  <jim@meyering.net>
78382
78383         This file could end up with a definition for a function
78384         named __strndup, rather than rpl_strndup on a system with
78385         incomplete weak_alias support.
78386         * lib/strndup.c (strndup): Rename from __strndup.
78387         Remove #defines that used to map __strndup to strndup.
78388         Don't use K&R prototypes.
78389         Remove LIBC-related code, since this file is not sync'd with glibc.
78390         * lib/strndup.h: Revamp, accordingly.
78391         * m4/strndup.m4: Modernize.
78392
78393 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * modules/savewd (Depends-on): Add 'raise'.
78396         * lib/savewd.c: Include <signal.h>, for 'raise'.
78397
78398 2006-09-26  Jim Meyering  <jim@meyering.net>
78399
78400         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78401         when we detect Darwin 8.7.0's acl_get_file bug.
78402         Rearrange to perform the new (below) run-test while $LIBS
78403         contains any acl-related library.  Set USE_ACL at the end.
78404         (gl_ACL_GET_FILE): New function.
78405
78406 2006-09-26  Eric Blake  <ebb9@byu.net>
78407
78408         * lib/verror.c: Include <config.h> unconditionally.
78409
78410 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78411
78412         * modules/clock-time (Maintainer): Add self.
78413         * modules/getlogin_r (Depends-on): Add extensions.
78414
78415 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78416
78417         * modules/clock-time: New module.
78418         * modules/nanosleep (Depends-on): Add clock-time.
78419         * modules/gethrxtime (Depends-on): Likewise.
78420         * modules/gettime (Depends-on): Likewise.
78421         * modules/settime (Depends-on): Likewise.
78422
78423         * modules/fts-lgpl: Depend on openat.
78424         * modules/mkancesdirs: Depend on savewd.
78425         * modules/mkdir-p: Likewise.
78426
78427 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78428
78429         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78430
78431         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78432         `gl_have_arbitrary_file_name_length_limit' to
78433         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78434         actually works between configure runs.
78435
78436 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78437             Bruno Haible  <bruno@clisp.org>
78438
78439         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78440
78441 2006-09-25  Jim Meyering  <jim@meyering.net>
78442
78443         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78444         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78445
78446 2006-09-25  Eric Blake  <ebb9@byu.net>
78447
78448         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78449         exec's in 2006-09-18 patch when shuffling fds.
78450
78451 2006-09-25  Bruno Haible  <bruno@clisp.org>
78452
78453         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78454         Reported by Jim Meyering.
78455
78456 2006-09-24  Jim Meyering  <jim@meyering.net>
78457
78458         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78459         compare a pointer against a literal "0".  That caused failures with
78460         at least HP-UX's hpcc.
78461
78462 2006-09-22  Simon Josefsson  <jas@extundo.com>
78463
78464         * modules/gc-sha1:
78465         * modules/gc-md4:
78466         * modules/gc-hmac-sha1:
78467         * modules/gc-hmac-md5:
78468         * modules/gc-des:
78469         * modules/gc-arcfour: Distribute more files.
78470
78471 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78472
78473         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78474         (gl_linked_iterator_from_to): Initialize struct completely.
78475         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78476         (gl_tree_iterator_from_to): Likewise
78477         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78478         * lib/gl_array_list.c [lint] (gl_array_iterator)
78479         (gl_array_iterator_from_to): Likewise.
78480         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78481         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78482         (gl_carray_iterator_from_to): Likewise.
78483
78484         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78485         * lib/md4.c (md4_process_block): Remove unused variable.
78486         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78487         parentheses for clarity.
78488
78489 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78490
78491         * modules/bison-i18n (Depends-on): Add gettext.
78492
78493 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78494
78495         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78496         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78497         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78498         also add missing comma that caused broken test.
78499         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78500         stdlib.h, for `abort'.
78501         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78502         variables.
78503         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78504         include unistd.h if present, for `rmdir'.
78505         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78506         variables.
78507         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78508         in the process include standard headers for prototypes.
78509         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78510         gets declared on GNU/Linux.
78511         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78512         unistd.h, for `rmdir'.
78513         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78514
78515         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78516         always true.
78517         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78518
78519         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78520
78521 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78522
78523         * gnulib-tool (func_version): Create output all at once.  This
78524         may help avoid triggering unnecessary SIGPIPEs, and at any
78525         rate it doesn't hurt.
78526
78527 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78528             Bruno Haible  <bruno@clisp.org>
78529
78530         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78531         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78532         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78533
78534         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78535         (gl_FUNC_VASPRINTF): Invoke it.
78536
78537 2006-09-22  Bruno Haible  <bruno@clisp.org>
78538
78539         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78540         getloadavg.c as first argument.
78541
78542 2006-09-22  Bruno Haible  <bruno@clisp.org>
78543
78544         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78545         at the beginning of the gl_INIT macro.
78546         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78547         gl_GETLOADAVG.
78548
78549 2006-09-22  Bruno Haible  <bruno@clisp.org>
78550
78551         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78552         module.
78553         Suggested by Ralf Wildenhues.
78554
78555 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78556
78557         Import this patch from libc:
78558
78559         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78560
78561         * lib/regex_internal.c (re_string_reconstruct): Handle
78562         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78563         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78564         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78565         re_string_context_at.
78566
78567         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78568         now requires it.
78569         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78570         gl_REGEX now does it for us.
78571         (gl_REGEX): Add test taken from
78572         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78573
78574         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78575         Check that large offsets work.  Modernize Autoconf usages.
78576         Prefer "yes" to mean a good thing rather than a bad.
78577         Don't put "#define mkstemp" in config.h, as this might interfere
78578         with standard system headers that "#define mkstemp mkstemp64".
78579
78580         * modules/mkstemp (Depends-on): Add extensions, so that
78581         mkstemp is visible on some platforms.
78582         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78583         (Include): Change to "mkstemp.h" from <stdlib.h>.
78584         (Files): Add mkstemp.h.
78585
78586         * lib/mkstemp.h: New file, since some standard headers
78587         #define mkstemp.
78588         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78589         Include "mkstemp.h".
78590         Make the _LIBC code resemble glibc original more,
78591         e.g., use K&R style.
78592         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78593         (mkstemp): Remove, since mkstemp.h does this for us.
78594         * lib/stdlib--.h: Include mkstemp.h.
78595
78596         Import this patch from libc:
78597
78598         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78599
78600         * lib/tempname.c (__gen_tempname): Change attempts_min
78601         into a macro.  Use preprocessor to decide how to initialize
78602         attempts [Coverity CID 67].
78603
78604 2006-09-20  Bruno Haible  <bruno@clisp.org>
78605
78606         * lib/mkdtemp.c: Import from libc.
78607         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78608                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78609                 attempts_min into a macro.  Use preprocessor to decide how to
78610                 initialize attempts [Coverity CID 67].
78611         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78612                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78613                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78614
78615 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78616
78617         * gnulib-tool (func_exit): New function, to allow to pass the
78618         exit status portably through the trap.  Use everywhere.
78619         (--help, --version): Signal a write error.
78620         (trap): catch SIGPIPE, for write errors.
78621         Exit at the end of the trap, with the correct exit status.
78622
78623 2006-09-19  Karl Berry  <karl@gnu.org>
78624
78625         * doc/gnulib.texi: note about the license texinfo files.
78626
78627 2006-09-19  Eric Blake  <ebb9@byu.net>
78628
78629         * gnulib-tool: Avoid space-tab.
78630
78631 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78632
78633         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78634         that prevented coreutils 6.1 from building.  Problem reported
78635         by Petter Reinholdtsen.
78636
78637 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         * gnulib-tool (avoidlist): Fix typo that broke options like
78640         --avoid=lock that are used by coreutils bootstrap.
78641
78642 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78643
78644         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78645         more systematically.
78646
78647 2006-09-18  Jim Meyering  <jim@meyering.net>
78648
78649         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78650
78651 2006-09-18  Bruno Haible  <bruno@clisp.org>
78652
78653         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78654
78655 2006-09-18  Bruno Haible  <bruno@clisp.org>
78656
78657         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78658         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78659         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78660         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78661         * m4/gettext.m4: Require autoconf >= 2.52.
78662         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78663         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78664         of gl_cv_header_inttypes_h.
78665
78666 2006-09-18  Bruno Haible  <bruno@clisp.org>
78667
78668         * lib/javaversion.c: Include configmake.h.
78669
78670 2006-09-18  Bruno Haible  <bruno@clisp.org>
78671
78672         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78673         avoid that the while loops be executed in a subshell.
78674
78675 2006-09-18  Bruno Haible  <bruno@clisp.org>
78676
78677         * MODULES.html.sh (func_module): Break long lines.
78678         Suggested by Bruce Korb <bkorb@gnu.org>.
78679
78680 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78681
78682         Speed up by a factor of 1.12.
78683         * gnulib-tool (nl): New variable.
78684         (func_import): Rewrite include directive extraction to only read each
78685         directive once.
78686
78687 2006-09-17  Bruno Haible  <bruno@clisp.org>
78688
78689         * modules/javaversion (Makefile.am): Remove DEFS setting.
78690         (Depends-on): Add configmake, for PKGDATADIR definition.
78691
78692 2006-09-17  Bruno Haible  <bruno@clisp.org>
78693
78694         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78695
78696 2006-09-17  Bruno Haible  <bruno@clisp.org>
78697
78698         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78699         (func_modules_transitive_closure, func_modules_add_dummy,
78700         func_modules_to_filelist, func_import, func_create_testdir,
78701         func_create_megatestdir, ...): Use it wherever possible.
78702         Suggested by Ralf Wildenhues.
78703
78704 2006-09-16  Karl Berry  <karl@gnu.org>
78705
78706         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78707         to avoid sectioning errors.
78708         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78709         [ifinfo]: blank line after @center-ed titles.
78710         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78711         Spell FSF address consistently with others.
78712         (These changes approved by rms.)
78713
78714 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78715
78716         Speed up by a factor of 1.61.
78717         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78718         already checked module names again.
78719
78720 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78721
78722         Speed up by a factor of 1.13.
78723         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78724         for new_files, and the input to func_add_or_update.
78725
78726 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78727
78728         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78729         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78730
78731 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * modules/mkancesdirs (Depends-on): Add fcntl.
78734         * modules/savewd: New file.
78735         * MODULES.html.sh (File system functions): Add savewd.
78736
78737         * modules/configmake (Makefile.am): Add support for the
78738         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78739
78740 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78741
78742         * m4/savewd.m4: New file.
78743
78744 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78745
78746         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78747         (dirchownmod): New arg FD.  All callers changed.
78748         Use FD rather than opening the directory ourself, as opening is
78749         now the caller's responsibility.
78750         * lib/dirchownmod.h: Likewise.
78751         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78752         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78753         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78754         (test_dir): Remove.
78755         (mkancesdirs): Return length of prefix of FILE that has already
78756         been made, or -2 if there is a child doing the work.  Redo
78757         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78758         ".", and treat ".." specially since it might stray back into
78759         already-created areas.  Use a subprocess if necessary.  New arg
78760         WD; all users changed.  MAKE_DIR function should now return 1
78761         if it creates a directory that is not readable.  Return -2 if
78762         a child process is spun off.
78763         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78764         Adjust signature to match code.
78765         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78766         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78767         all users changed.
78768         * lib/savewd.c, lib/savewd.h: New files.
78769
78770 2006-09-15  Jim Meyering  <jim@meyering.net>
78771
78772         * modules/rename-dest-slash: New module.
78773         * MODULES.html.sh (posix_compat): Add it here.
78774
78775         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78776
78777 2006-09-15  Jim Meyering  <jim@meyering.net>
78778
78779         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78780         file.
78781
78782         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78783
78784 2006-09-15  Jim Meyering  <jim@meyering.net>
78785
78786         * lib/rename-dest-slash.c (has_trailing_slash): Use
78787         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78788         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78789         test before testing whether SRC is a directory.
78790         Suggestions from Bruno Haible.
78791
78792         Avoid a warning about an unused variable.
78793         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78794         into the #ifdef block where it's used.
78795
78796         * lib/rename-dest-slash.c: New file.
78797
78798 2006-09-14  Bruno Haible  <bruno@clisp.org>
78799
78800         * lib/allocsa.c: Include <config.h> unconditionally.
78801         * lib/asnprintf.c: Likewise.
78802         * lib/asprintf.c: Likewise.
78803         * lib/c-strcasecmp.c: Likewise.
78804         * lib/c-strcasestr.c: Likewise.
78805         * lib/c-strncasecmp.c: Likewise.
78806         * lib/c-strstr.c: Likewise.
78807         * lib/classpath.c: Likewise.
78808         * lib/clean-temp.c: Likewise.
78809         * lib/concatpath.c: Likewise.
78810         * lib/copy-file.c: Likewise.
78811         * lib/csharpcomp.c: Likewise.
78812         * lib/csharpexec.c: Likewise.
78813         * lib/execute.c: Likewise.
78814         * lib/fatal-signal.c: Likewise.
78815         * lib/findprog.c: Likewise.
78816         * lib/fwriteerror.c: Likewise.
78817         * lib/gl_array_list.c: Likewise.
78818         * lib/gl_array_oset.c: Likewise.
78819         * lib/gl_avltree_list.c: Likewise.
78820         * lib/gl_avltree_oset.c: Likewise.
78821         * lib/gl_avltreehash_list.c: Likewise.
78822         * lib/gl_carray_list.c: Likewise.
78823         * lib/gl_linked_list.c: Likewise.
78824         * lib/gl_linkedhash_list.c: Likewise.
78825         * lib/gl_list.c: Likewise.
78826         * lib/gl_oset.c: Likewise.
78827         * lib/gl_rbtree_list.c: Likewise.
78828         * lib/gl_rbtree_oset.c: Likewise.
78829         * lib/gl_rbtreehash_list.c: Likewise.
78830         * lib/imaxabs.c: Likewise.
78831         * lib/imaxdiv.c: Likewise.
78832         * lib/javacomp.c: Likewise.
78833         * lib/javaexec.c: Likewise.
78834         * lib/javaversion.c: Likewise.
78835         * lib/linebreak.c: Likewise.
78836         * lib/localcharset.c: Likewise.
78837         * lib/lock.c: Likewise.
78838         * lib/mbchar.c: Likewise.
78839         * lib/mbswidth.c: Likewise.
78840         * lib/mkdtemp.c: Likewise.
78841         * lib/pipe.c: Likewise.
78842         * lib/printf-args.c: Likewise.
78843         * lib/printf-parse.c: Likewise.
78844         * lib/progname.c: Likewise.
78845         * lib/progreloc.c: Likewise.
78846         * lib/readlink.c: Likewise.
78847         * lib/sh-quote.c: Likewise.
78848         * lib/stpcpy.c: Likewise.
78849         * lib/stpncpy.c: Likewise.
78850         * lib/strcasecmp.c: Likewise.
78851         * lib/strcasestr.c: Likewise.
78852         * lib/strcspn.c: Likewise.
78853         * lib/striconv.c: Likewise.
78854         * lib/strncasecmp.c: Likewise.
78855         * lib/strnlen1.c: Likewise.
78856         * lib/strstr.c: Likewise.
78857         * lib/strtok_r.c: Likewise.
78858         * lib/tls.c: Likewise.
78859         * lib/tmpdir.c: Likewise.
78860         * lib/unicodeio.c: Likewise.
78861         * lib/unsetenv.c: Likewise.
78862         * lib/vasnprintf.c: Likewise.
78863         * lib/vasprintf.c: Likewise.
78864         * lib/wait-process.c: Likewise.
78865         * lib/xallocsa.c: Likewise.
78866         * lib/xsetenv.c: Likewise.
78867         * lib/xstriconv.c: Likewise.
78868
78869 2006-09-13  Simon Josefsson  <jas@extundo.com>
78870
78871         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78872         that internally, suggested by Ralf Wildenhues
78873         <Ralf.Wildenhues@gmx.de>.
78874
78875 2006-09-13  Simon Josefsson  <jas@extundo.com>
78876
78877         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78878         @LIBOBJS@.
78879         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78880
78881 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78882
78883         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78884         longer worry about uses that don't define HAVE_CONFIG_H.
78885         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78886         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78887         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78888         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78889         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78890         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78891         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78892         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78893         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78894         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78895         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78896         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78897         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78898         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78899         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78900         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78901         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78902         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78903         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78904         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78905         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78906         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78907         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78908         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78909         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78910         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78911         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78912         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78913         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78914         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78915         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78916         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78917         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78918         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78919         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78920         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78921         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78922         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78923         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78924         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78925         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78926         Likewise.
78927
78928 2006-09-13  Eric Blake  <ebb9@byu.net>
78929
78930         * lib/getopt.c: Fix typo in last commit.
78931
78932 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78933
78934         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78935         dgettext.
78936
78937 2006-09-12  Jim Meyering  <jim@meyering.net>
78938
78939         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78940         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78941         Reported by Nelson H. F. Beebe.
78942
78943 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78944
78945         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78946         program_invocation_name and program_invocation_short_name are
78947         initialized.
78948         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78949         and program_invocation_short_name to argp.h, so they are visible
78950         to user programs.
78951         * lib/argp.h: Likewise
78952
78953 2006-09-10  Bruno Haible  <bruno@clisp.org>
78954
78955         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78956         m4/inttypes_h.m4, m4/uintmax_t.m4.
78957
78958 2006-09-10  Bruno Haible  <bruno@clisp.org>
78959
78960         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78961         gl_AC_TYPE_UINTMAX_T.
78962
78963 2006-09-10  Bruno Haible  <bruno@clisp.org>
78964
78965         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78966
78967 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78968
78969         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78970         convention.  Text proposed by Bruno Haible.
78971         (struct argp_option): Document the use of N_() wrappers.
78972
78973         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78974         '\v', and translate the two parts separately, instead of feeding
78975         the whole string to gettext.  This allows to exclude
78976         '\v' from the strings visible to the translator by writing doc
78977         strings as N_("..") "\v" N_("..").
78978
78979 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * config/srclist.txt: Undo latest change; the bug was fixed.
78982
78983 2006-09-09  Bruno Haible  <bruno@clisp.org>
78984
78985         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78986         assignments if building a library without libtool.
78987         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78988         in func_emit_lib_Makefile_am.
78989         (func_import): When building a static library libfoo.a, arrange to
78990         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78991         (func_create_testdir): Likewise.
78992         * modules/gc (configure.ac, Makefile.am): If building statically,
78993         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78994         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78995         * modules/striconv (configure.ac, Makefile.am): Likewise.
78996         Based on a suggestion by Ralf Wildenhues.
78997
78998 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78999
79000         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79001         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79002         Also:
79003
79004         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79005         Add year_2050_test to catch glibc bug 2821
79006         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79007
79008         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79009         Prefer #ifdef to #if.
79010
79011         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79012         Return from 'main' instead of calling 'exit'.
79013
79014 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79015
79016         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79017         returned the maximum time_t value rather than (time_t) -1.
79018         Problem originally reported by William Bardwell
79019         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79020
79021         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79022         Moved to here ...
79023         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79024         ... from here.
79025
79026 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79027
79028         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79029         2821 is fixed.
79030
79031 2006-09-08  Jim Meyering  <jim@meyering.net>
79032
79033         Don't make generated files read-only.  That would bother too many
79034         people.  However, do retain the ability to work when targets are
79035         read-only: remove the destination and temporary files before writing
79036         them (when generated via sed or echo), or by using the -f option for
79037         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79038         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79039         * modules/byteswap, modules/configmake, modules/fcntl:
79040         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79041         * modules/localcharset, modules/netinet_in, modules/poll:
79042         * modules/stdbool, modules/stdint, modules/sys_select:
79043         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79044
79045 2006-09-08  Jim Meyering  <jim@meyering.net>
79046
79047         Avoid new build failure on FreeBSD 6.0.
79048         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79049         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79050         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79051
79052 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79053
79054         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79055
79056 2006-09-07  Jim Meyering  <jim@meyering.net>
79057
79058         Fix global typo in last change: use chmod u-w, not chmod u-x.
79059         Spotted by Paul Eggert and Bruce Korb.
79060         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79061         * modules/byteswap, modules/configmake, modules/fcntl:
79062         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79063         * modules/localcharset, modules/netinet_in, modules/poll:
79064         * modules/stdbool, modules/stdint, modules/sys_select:
79065         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79066
79067 2006-09-06  Jim Meyering  <jim@meyering.net>
79068
79069         Make generated files be read-only.
79070         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79071         Ensure that each generated file is now read-only.
79072         * modules/argz: Likewise.
79073         * modules/arpa_inet: Likewise.
79074         * modules/byteswap: Likewise.
79075         * modules/configmake: Likewise.
79076         * modules/fcntl: Likewise.
79077         * modules/fnmatch: Likewise.
79078         * modules/getopt: Likewise.
79079         * modules/glob: Likewise.
79080         * modules/inttypes: Likewise.
79081         * modules/netinet_in: Likewise.
79082         * modules/poll: Likewise.
79083         * modules/stdbool: Likewise.
79084         * modules/stdint: Likewise.
79085         * modules/sys_select: Likewise.
79086         * modules/sys_socket: Likewise.
79087         * modules/sys_stat: Likewise.
79088         * modules/sysexits: Likewise.
79089         * modules/localcharset: Same as above, but continue using temporary
79090         file named "t-$@" (why different?) rather than the "$@-t" used
79091         everywhere else.
79092
79093         * modules/sysexits (Makefile.am): Replace literal occurrences
79094         of "sysexit.h" more readable, and more consistent, "$@".
79095
79096 2006-09-06  Bruno Haible  <bruno@clisp.org>
79097
79098         * modules/striconv: New file.
79099         * modules/xstriconv: New file.
79100         * MODULES.html.sh (Internationalization functions): Add striconv,
79101         xstriconv.
79102
79103 2006-09-06  Bruno Haible  <bruno@clisp.org>
79104
79105         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79106         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79107         not using libtool correctly.
79108
79109 2006-09-06  Bruno Haible  <bruno@clisp.org>
79110
79111         * lib/striconv.h: New file.
79112         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79113         iconvstring.c.
79114         * lib/xstriconv.h: New file.
79115         * lib/xstriconv.c: New file.
79116
79117 2006-09-06  Bruno Haible  <bruno@clisp.org>
79118
79119         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79120         lib_..._LDFLAGS.
79121
79122 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79123
79124         * lib/argz_.h: Sync from Libtool.
79125
79126         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79127                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79128
79129         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79130
79131 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79132
79133         * modules/trim: New file.
79134
79135 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79136
79137         * lib/trim.h: New file.
79138         * lib/trim.c: New file.
79139
79140 2006-09-05  Bruno Haible  <bruno@clisp.org>
79141
79142         * MODULES.html.sh (String handling): Add trim.
79143
79144 2006-09-04  Karl Berry  <karl@gnu.org>
79145
79146         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79147         until next release.
79148
79149 2006-09-03  Bruno Haible  <bruno@clisp.org>
79150
79151         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79152         correctly.
79153
79154 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79157         not gl_GETLOADAVG.  Omit unneeded semicolons.
79158         Problems reported by Ralf Wildenhues in
79159         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79160         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79161         at the end, which is the usual gnulib style.
79162
79163         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79164         of doing all the work ourselves.
79165         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79166         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79167
79168 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79169
79170         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79171         Problem reported by Ralf Wildenhues in
79172         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79173
79174         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79175         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79176
79177 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79178
79179         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79180         yesterday's patch by changing test -n to test -z.
79181
79182 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79183
79184         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79185         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79186         the former is now obsolescent.
79187
79188         * modules/chdir-long (Depends-on): Add fcntl.
79189
79190 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79193         obsolescent, and programs should use gnulib instead.
79194         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79195         but with prefixes changed.
79196
79197 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79200         or stdbool.h, because they might not exist while configuring.
79201
79202         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79203         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79204         does that for us.
79205         (O_DIRECTORY): Remove.
79206
79207 2006-08-31  Eric Blake  <ebb9@byu.net>
79208
79209         * gnulib-tool: Don't let emacs change spaces to TAB.
79210
79211 2006-08-31  Bruno Haible  <bruno@clisp.org>
79212
79213         * gnulib-tool: When calling func_import more than once, do it in a
79214         subshell.
79215         Reported by Eric Blake <ebb9@byu.net>.
79216
79217 2006-08-31  Bruno Haible  <bruno@clisp.org>
79218
79219         * gnulib-tool (nl): Remove variable.
79220         (sed_transform_lib_file): Use more robust test for config-h module.
79221         (func_import): Fix typo in 2006-08-25 patch.
79222
79223 2006-08-31  Bruno Haible  <bruno@clisp.org>
79224
79225         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79226         specified, augment Makefile.am variables instead of assigning them.
79227
79228 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         Work around a bug in both the Linux and SunOS 64-bit kernels:
79231         nanosleep mishandles sleeps for longer than 2**31 seconds.
79232         Problem reported by Frank v Waveren in
79233         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79234         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79235         Check for nanosleep bug.
79236         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79237
79238 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         Work around a bug in both the Linux and SunOS 64-bit kernels:
79241         nanosleep mishandles sleeps for longer than 2**31 seconds.
79242         Problem reported by Frank v Waveren in
79243         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79244         * lib/nanosleep.c (BILLION): New constant.
79245         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79246         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79247         implementation.
79248
79249 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79250
79251         * modules/nanosleep (Depends-on): Add gettime.
79252
79253 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79254         and Simon Josefsson  <jas@extundo.com>
79255         and Oskar Liljeblad  <oskar@osk.mine.nu>
79256
79257         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79258         * gnulib-tool (func_import): New license type 'unmodifiable license
79259         text'.
79260         * modules/fdl: Use it.  Longer description.
79261         * module/gpl, module/lgpl: New files.
79262
79263 2006-08-30  Jim Meyering  <jim@meyering.net>
79264
79265         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79266         shadowing the parameter.
79267
79268 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79269
79270         Sync from Libtool:
79271
79272         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79273
79274         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79275         sharing with gnulib.  Report by Eric Blake.
79276
79277 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * modules/isapipe: New file.
79280         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79281
79282 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79283
79284         * modules/configmake (Makefile.am): Add a comment, and omit
79285         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79286         by Bruno Haible.
79287
79288 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79289
79290         * m4/isapipe.m4: New file.
79291
79292 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79293
79294         * lib/isapipe.c, lib/isapipe.h: New files.
79295
79296 2006-08-29  Jim Meyering  <jim@meyering.net>
79297
79298         * modules/configmake (Makefile.am): Make configmake.h depend on
79299         Makefile.  Otherwise, a stale configmake.h could hang around.
79300
79301 2006-08-29  Eric Blake  <ebb9@byu.net>
79302
79303         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79304         resolution of upstream bug 3044.
79305
79306 2006-08-29  Bruno Haible  <bruno@clisp.org>
79307
79308         * modules/localcharset (Depends-on): Add configmake.
79309         (Makefile.am): Remove setting of LIBDIR through DEFS.
79310
79311 2006-08-29  Bruno Haible  <bruno@clisp.org>
79312
79313         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79314         defined.
79315
79316 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         * modules/fcntl: New file.
79319         * modules/chdir-safer (Depends-on): Add fcntl.
79320         * modules/fts: Likewise.
79321         * modules/mkdir-p: Likewise.
79322
79323         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79324         This undoes the most recent change, since we're now addressing the
79325         problem in a different way.
79326
79327         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79328         into output, since the output might be called Makefile.am even
79329         if $makefile_name is something different.
79330         (func_import): Use $makefile_am rather than
79331         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79332         empty.
79333
79334         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79335
79336 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79337
79338         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79339         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79340         recent change to stdint.m4, since we're now addressing the problem in a
79341         different way.
79342
79343 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79344
79345         * m4/fcntl_h.m4: New file.
79346
79347 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * lib/fcntl_.h: New file.
79350         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79351         the fcntl module.
79352         * lib/dirchownmod.c: Likewise.
79353         * lib/fts.c: Likewise.
79354
79355         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79356         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79357         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79358         just before including <inttypes.h>, to avoid circular inclusion.
79359
79360 2006-08-28  Jim Meyering  <jim@meyering.net>
79361
79362         * doc/visibility.texi: Actually read and correct the grammar of the
79363         sentence affected by yesterday's change.
79364
79365 2006-08-28  Eric Blake  <ebb9@byu.net>
79366
79367         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79368         needs wrapper.
79369
79370 2006-08-28  Eric Blake  <ebb9@byu.net>
79371
79372         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79373
79374 2006-08-28  Eric Blake  <ebb9@byu.net>
79375
79376         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79377
79378 2006-08-28  Bruno Haible  <bruno@clisp.org>
79379
79380         * modules/c-strstr: New file, from GNU gettext.
79381         * MODULES.html.sh (String handling): Add c-strstr.
79382
79383 2006-08-28  Bruno Haible  <bruno@clisp.org>
79384
79385         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79386         macros.
79387         Reported by Eric Blake.
79388
79389 2006-08-28  Bruno Haible  <bruno@clisp.org>
79390
79391         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79392         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79393         * lib/vasprintf.c: Include errno.h, limits.h.
79394         (EOVERFLOW): New fallback definition.
79395         (vasprintf): Test here whether the string length is > INT_MAX.
79396         * lib/vsnprintf.c: Include errno.h, limits.h.
79397         (EOVERFLOW): New fallback definition.
79398         (vsnprintf): Fix bug when generated string was too long for the buffer.
79399         Test here whether the string length is > INT_MAX.
79400
79401 2006-08-28  Bruno Haible  <bruno@clisp.org>
79402
79403         * lib/inttypes_.h (SCNX*): Remove definitions.
79404         Reported by Eric Blake.
79405
79406 2006-08-28  Bruno Haible  <bruno@clisp.org>
79407
79408         * lib/c-strstr.h: New file, from GNU gettext.
79409         * lib/c-strstr.c: New file, from GNU gettext.
79410
79411 2006-08-28  Bruno Haible  <bruno@clisp.org>
79412
79413         * gnulib-tool: Reorder some statements.
79414
79415 2006-08-28  Bruno Haible  <bruno@clisp.org>
79416
79417         * gnulib-tool: New option --makefile-name.
79418         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79419         $makefile_name.
79420         (func_import): Write $makefile_name to the cache file, and read it from
79421         there unless explicitly specified. Use $makefile_name as file name
79422         instead of Makefile.am. Adjust the recommendations accordingly.
79423
79424 2006-08-28  Bruno Haible  <bruno@clisp.org>
79425
79426         * gnulib-tool (func_verify_module): Check against misapplying patch.
79427
79428 2006-08-28  Bruno Haible  <bruno@clisp.org>
79429
79430         * gnulib-tool (func_relativize, func_relconcat): New functions.
79431         Give an error if --local-dir is given with --update.
79432         Remove trailing slashes from $local_gnulib_dir.
79433         (func_import): Store the relativized $local_gnulib_dir in
79434         gnulib-cache.m4, and read it from there if not specified explicitly.
79435
79436 2006-08-28  Bruno Haible  <bruno@clisp.org>
79437
79438         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79439         is the current directory. Respect also $local_gnulib_dir.
79440
79441 2006-08-28  Bruno Haible  <bruno@clisp.org>
79442             Simon Josefsson  <jas@extundo.com>
79443
79444         BeOS portability.
79445         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79446
79447 2006-08-27  Jim Meyering  <jim@meyering.net>
79448
79449         * doc/visibility.texi: Remove duplicate word: "pointer".
79450
79451 2006-08-26  Bruno Haible  <bruno@clisp.org>
79452
79453         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79454         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79455         (Makefile.am): Create inttypes.h from inttypes_.h.
79456         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79457
79458         * modules/imaxabs: New file.
79459
79460         * modules/imaxdiv: New file.
79461
79462 2006-08-26  Bruno Haible  <bruno@clisp.org>
79463
79464         * m4/inttypes.m4: New file.
79465         * m4/_inttypes_h.m4: Remove file.
79466         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79467         PRI_MACROS_BROKEN.
79468         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79469
79470         * m4/imaxabs.m4: New file.
79471
79472         * m4/imaxdiv.m4: New file.
79473
79474 2006-08-26  Bruno Haible  <bruno@clisp.org>
79475
79476         * lib/inttypes_.h: New file.
79477         * lib/inttypes.h: Remove file.
79478         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79479
79480         * lib/imaxabs.c: New file.
79481
79482         * lib/imaxdiv.c: New file.
79483
79484 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         New config-h module, so that "make" output needn't be cluttered
79487         by -DHAVE_CONFIG_H.
79488         * MODULES.html.sh (Support for building libraries and executables):
79489         Add config-h.
79490         * modules/config-h: New file.
79491         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79492         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79493         the config-h module is used.
79494
79495         New configmake module, so that "make" output needn't be cluttered
79496         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79497         * MODULES.html.sh (Support for building libraries and executables):
79498         Add configmake.
79499         * modules/configmake: New file.
79500
79501 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79502
79503         * m4/config-h.m4: New file.
79504
79505 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         * config/srclist.txt: Add elisp-comp.
79508
79509 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79510
79511         * MODULES.html.sh (Support for building libraries and executables):
79512         Add elisp-comp.
79513         * build-aux/elisp-comp: New file.
79514         * modules/elisp-comp: New file.
79515
79516 2006-08-24  Bruno Haible  <bruno@clisp.org>
79517
79518         * gnulib-tool (func_create_testdir): Use non-default values of
79519         sourcebase and m4base.
79520
79521 2006-08-24  Bruno Haible  <bruno@clisp.org>
79522
79523         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79524         HTML structure.
79525
79526 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * modules/openat (Depends-on): Add lchown.
79529
79530 2006-08-23  Bruno Haible  <bruno@clisp.org>
79531
79532         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79533         of gl_LOCK_EARLY instead of gl_LOCK.
79534
79535 2006-08-23  Bruno Haible  <bruno@clisp.org>
79536
79537         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79538         on OSF/1 to no.
79539         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79540
79541 2006-08-23  Bruno Haible  <bruno@clisp.org>
79542
79543         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79544         as unusable.
79545
79546         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79547         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79548         (gl_LOCK): New macro.
79549
79550 2006-08-22  Simon Josefsson  <jas@extundo.com>
79551
79552         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79553         to md5 module.
79554
79555 2006-08-22  Simon Josefsson  <jas@extundo.com>
79556
79557         * MODULES.html.sh: Add "Support for maintaining and release
79558         projects".
79559
79560         * build-aux/gnupload: New file, from coreutils.
79561
79562 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         Avoid the need for AC_LIBSOURCES in m4 macros.
79565         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79566         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79567         * modules/check-version (EXTRA_DIST): Add check-version.h.
79568         * modules/crc (EXTRA_DIST): Add crc.h.
79569         * modules/des (EXTRA_DIST): Add des.h.
79570         * modules/gc (EXTRA_DIST): Add gc.h.
79571         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79572         * modules/getline (EXTRA_DIST): Add getline.h.
79573         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79574         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79575         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79576         * modules/md2 (EXTRA_DIST): Add md2.h.
79577         * modules/md4 (EXTRA_DIST): Add md4.h.
79578         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79579         * modules/read-file (EXTRA_DIST): Add read-file.h.
79580         * modules/readline (EXTRA_DIST): Add readline.h.
79581         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79582         rijndael-api-fst.h.
79583
79584 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79585
79586         * m4/rijndael.m4 (gl_ARCFOUR):
79587         * m4/arctwo.m4 (gl_ARCTWO):
79588         * m4/check-version.m4 (gl_CHECK_VERSION):
79589         * m4/crc.m4 (gl_CRC):
79590         * m4/des.m4 (gl_DES):
79591         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79592         * m4/gc.m4 (gl_GC):
79593         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79594         * m4/getline.m4 (gl_FUNC_GETLINE):
79595         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79596         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79597         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79598         * m4/md2.m4 (gl_MD2):
79599         * m4/md4.m4 (gl_MD4):
79600         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79601         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79602         * m4/readline.m4 (gl_FUNC_READLINE):
79603         * m4/rijndael.m4 (gl_RIJNDAEL):
79604         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79605         to get the necessary .h files and whatnot.
79606
79607 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79608
79609         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79610         gnulib rather than the other way around.
79611         * config/srclistvars.sh (COREUTILS): Remove.
79612
79613 2006-08-22  Jim Meyering  <jim@meyering.net>
79614
79615         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79616
79617         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79618
79619 2006-08-22  Eric Blake  <ebb9@byu.net>
79620
79621         * modules/regexprops-generic: New file.
79622         * MODULES.html.sh (Support for building documentation): List it.
79623
79624 2006-08-22  Eric Blake  <ebb9@byu.net>
79625
79626         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79627         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79628         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79629         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79630
79631 2006-08-22  Bruno Haible  <bruno@clisp.org>
79632
79633         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79634         and lib_LTLIBRARIES like the other lib_* variables.
79635
79636 2006-08-22  Bruno Haible  <bruno@clisp.org>
79637
79638         * build-aux/x-to-1.in: New file, from GNU gettext.
79639
79640 2006-08-22  Bruno Haible  <bruno@clisp.org>
79641
79642         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79643         <utmpx.h> exists.
79644
79645 2006-08-22  Bruno Haible  <bruno@clisp.org>
79646
79647         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79648         <utmpx.h> exists.
79649
79650 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79651
79652         BeOS portability.
79653         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79654         exist.
79655         Problem reported by Bruno Haible.
79656
79657 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79658
79659         Avoid the need for AC_LIBSOURCES in m4 macros.
79660         * modules/acl (EXTRA_DIST): Add acl.h.
79661         * modules/argmatch (Files): Add m4/argmatch.m4.
79662         (configure.ac): Add gl_ARGMATCH.
79663         (EXTRA_DIST): Renamed from lib_SOURCES, for
79664         consistency with the other modules.  Remove argmatch.c.
79665         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79666         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79667         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79668         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79669         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79670         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79671         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79672         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79673         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79674         * modules/closeout (EXTRA_DIST): Add closeout.h.
79675         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79676         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79677         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79678         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79679         dirname.h; remove basename.c and stripslash.c.
79680         * modules/exclude (EXTRA_DIST): Add exclude.h.
79681         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79682         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79683         * modules/file-type (EXTRA_DIST): Add file-type.h.
79684         * modules/filemode (EXTRA_DIST): Add filemode.h.
79685         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79686         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79687         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79688         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79689         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79690         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79691         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79692         * modules/getdate (EXTRA_DIST): Add getdate.c.
79693         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79694         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79695         * modules/getpass (EXTRA_DIST): Add getpass.h.
79696         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79697         * modules/group-member (EXTRA_DIST): Add group-member.h.
79698         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79699         * modules/hash (EXTRA_DIST): Add hash.h.
79700         * modules/human (EXTRA_DIST): Add human.h.
79701         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79702         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79703         * modules/lchown (EXTRA_DIST): Add lchown.h.
79704         * modules/long-options (EXTRA_DIST): Add long-options.h.
79705         * modules/lstat (EXTRA_DIST): Add lstat.h.
79706         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79707         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79708         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79709         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79710         * modules/memxor (EXTRA_DIST): Add memxor.h.
79711         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79712         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79713         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79714         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79715         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79716         * modules/physmem (EXTRA_DIST): Add physmem.h.
79717         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79718         * modules/posixver (EXTRA_DIST): Add posixver.h.
79719         * modules/quote (EXTRA_DIST): Add quote.h.
79720         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79721         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79722         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79723         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79724         regex_internal.h regexec.c.
79725         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79726         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79727         * modules/same (EXTRA_DIST): Add same.h.
79728         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79729         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79730         * modules/savedir (EXTRA_DIST): Add savedir.h.
79731         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79732         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79733         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79734         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79735         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79736         * modules/strdup (EXTRA_DIST): Add strdup.h.
79737         * modules/strftime (EXTRA_DIST): Add strftime.h.
79738         * modules/strndup (EXTRA_DIST): Add strndup.h.
79739         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79740         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79741         * modules/time_r (EXTRA_DIST): Add time_r.h.
79742         * modules/timespec (EXTRA_DIST): Add timespec.h.
79743         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79744         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79745         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79746         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79747         * modules/userspec (EXTRA_DIST): Add userspec.h.
79748         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79749         * modules/utimens (EXTRA_DIST): Add utimens.h.
79750         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79751         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79752         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79753         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79754         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79755         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79756         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79757         * modules/yesno (EXTRA_DIST): Add yesno.h.
79758
79759 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79760
79761         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79762
79763         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79764         * m4/dev-ino.m4, same-inode.m4: Remove.
79765
79766         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79767         * m4/acl.m4 (AC_FUNC_ACL):
79768         * m4/backupfile.m4 (gl_BACKUPFILE):
79769         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79770         * m4/canon-host.m4 (gl_CANON_HOST):
79771         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79772         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79773         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79774         * m4/cloexec.m4 (gl_CLOEXEC):
79775         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79776         * m4/closeout.m4 (gl_CLOSEOUT):
79777         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79778         * m4/dirname.m4 (gl_DIRNAME):
79779         * m4/exclude.m4 (gl_EXCLUDE):
79780         * m4/exitfail.m4 (gl_EXITFAIL):
79781         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79782         * m4/file-type.m4 (gl_FILE_TYPE):
79783         * m4/filemode.m4 (gl_FILEMODE):
79784         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79785         * m4/fpending.m4 (gl_FUNC_FPENDING):
79786         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79787         * m4/fts.m4 (gl_FUNC_FTS):
79788         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79789         * m4/getdate.m4 (gl_GETDATE):
79790         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79791         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79792         * m4/getpass.m4 (gl_FUNC_GETPASS):
79793         * m4/gettime.m4 (gl_GETTIME):
79794         * m4/getugroups.m4 (gl_GETUGROUPS):
79795         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79796         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79797         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79798         * m4/hash.m4 (gl_HASH):
79799         * m4/idcache.m4 (gl_IDCACHE):
79800         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79801         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79802         * m4/long-options.m4 (gl_LONG_OPTIONS):
79803         * m4/lstat.m4 (gl_FUNC_LSTAT):
79804         * m4/md5.m4 (gl_MD5):
79805         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79806         * m4/memcoll.m4 (gl_MEMCOLL):
79807         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79808         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79809         * m4/memxor.m4 (gl_MEMXOR):
79810         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79811         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79812         * m4/modechange.m4 (gl_MODECHANGE):
79813         * m4/mountlist.m4 (gl_MOUNTLIST):
79814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79815         * m4/openat.m4 (gl_FUNC_OPENAT):
79816         * m4/pathmax.m4 (gl_PATHMAX):
79817         * m4/physmem.m4 (gl_PHYSMEM):
79818         * m4/posixtm.m4 (gl_POSIXTM):
79819         * m4/posixver.m4 (gl_POSIXVER):
79820         * m4/quote.m4 (gl_QUOTE):
79821         * m4/quotearg.m4 (gl_QUOTEARG):
79822         * m4/readtokens.m4 (gl_READTOKENS):
79823         * m4/readutmp.m4 (gl_READUTMP):
79824         * m4/regex.m4 (gl_REGEX):
79825         * m4/safe-read.m4 (gl_SAFE_READ):
79826         * m4/safe-write.m4 (gl_SAFE_WRITE):
79827         * m4/same.m4 (gl_SAME):
79828         * m4/save-cwd.m4 (gl_SAVE_CWD):
79829         * m4/savedir.m4 (gl_SAVEDIR):
79830         * m4/settime.m4 (gl_SETTIME):
79831         * m4/sha1.m4 (gl_SHA1):
79832         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79833         * m4/stat-macros.m4 (gl_STAT_MACROS):
79834         * m4/stat-time.m4 (gl_STAT_TIME):
79835         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79836         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79837         * m4/strdup.m4 (gl_FUNC_STRDUP):
79838         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79839         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79840         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79841         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79842         * m4/time_r.m4 (gl_TIME_R):
79843         * m4/timespec.m4 (gl_TIMESPEC):
79844         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79845         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79846         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79847         * m4/userspec.m4 (gl_USERSPEC):
79848         * m4/utimecmp.m4 (gl_UTIMECMP):
79849         * m4/utimens.m4 (gl_UTIMENS):
79850         * m4/xalloc.m4 (gl_XALLOC):
79851         * m4/xgetcwd.m4 (gl_XGETCWD):
79852         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79853         * m4/xreadlink.m4 (gl_XREADLINK):
79854         * m4/xstrtod.m4 (gl_XSTRTOD):
79855         * m4/yesno.m4 (gl_YESNO):
79856         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79857         to get the necessary .h files and whatnot.
79858
79859 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79860             Bruno Haible  <bruno@clisp.org>
79861
79862         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79863         /bin/sh understanding of '!' conditional negation.
79864
79865 2006-08-21  Jim Meyering  <jim@meyering.net>
79866
79867         * modules/openat (Depends-on): Really alphabetize.
79868
79869         * modules/acl (Depends-on): Add error and quote.
79870
79871         * check-module (find_included_lib_files): Add at-func.c to the
79872         ok-to-include-more-than-once white list.
79873
79874         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79875
79876 2006-08-21  Bruno Haible  <bruno@clisp.org>
79877
79878         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79879         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79880         Reported by Martin Lambers <marlam@marlam.de>.
79881
79882 2006-08-21  Bruno Haible  <bruno@clisp.org>
79883
79884         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79885         specify an installation location, don't emit a noinst_LIBRARIES or
79886         noinst_LTLIBRARIES assignment.
79887
79888 2006-08-21  Bruno Haible  <bruno@clisp.org>
79889
79890         BeOS portability.
79891         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79892         BeOS has mbrtowc() but no <wctype.h>.
79893
79894 2006-08-21  Bruno Haible  <bruno@clisp.org>
79895
79896         BeOS portability.
79897         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79898         exist.
79899
79900 2006-08-21  Bruno Haible  <bruno@clisp.org>
79901
79902         BeOS portability.
79903         * lib/mbchar.h: Include <wctype.h> only if it exists.
79904
79905 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79906
79907         Remove files that are no longer needed by their respective modules.
79908         * m4/obstack.m4: Remove.
79909         * m4/strerror_r.m4: Remove.
79910         * m4/uint32_t.m4: Remove.
79911         * m4/uintptr_t.m4: Remove.
79912         * m4/ullong_max.m4: Remove.
79913         * m4/xstrtoimax.m4: Remove.
79914         * m4/xstrtoumax.m4: Remove.
79915
79916         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79917         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79918         dependencies now capture this.
79919
79920         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79921         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79922         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79923         * m4/human.m4 (gl_HUMAN): Likewise.
79924         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79925         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79926
79927         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79928
79929         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79930         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79931         stdint.
79932         * m4/human.m4 (gl_HUMAN): Likewise.
79933         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79934         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79935         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79936         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79937         * m4/xstrtol (gl_XSTRTOL): Likewise.
79938
79939         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79940         AC_TYPE_LONG_LONG_INT.
79941         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79942         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79943         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79944         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79945
79946         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79947         on stdbool.
79948
79949         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79950         (gl_PREREQ_XSTRTOUL): Remove.
79951
79952         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79953
79954         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79955         mode.
79956
79957 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79958
79959         Add and change modules to make it easier for coreutils to use
79960         gnulib-tool.
79961         * modules/backupfile (Files): Remove m4/d-ino.m4.
79962         (Depends-on): Add d-ino.
79963         * modules/cycle-check (Depends-on): Add stdint.
79964         (lib_SOURCES): Add cycle-check.h.
79965         * modules/d-ino: New module.
79966         * modules/d-type: New module.
79967         * modules/error (Files): Remove m4/strerror_r.m4.
79968         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79969         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79970         m4/inttypes_h.m4, m4/uintmax_t.m4.
79971         (Depends-on): Add stdint.
79972         (lib_SOURCES): Add fsusage.h.
79973         * modules/getcwd (Files): Remove d-ino.m4.
79974         (Depends-on): Add d-ino.
79975         * modules/getndelim2 (Depends-on): Add stdint.
79976         * modules/glob (Files): Remove m4/d-type.m4.
79977         (Depends-on): Add d-type.
79978         * modules/host-os: New module.
79979         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79980         m4/inttypes_h.m4, m4/uintmax_t.m4.
79981         * Depends-on: Add stdint.
79982         (lib_SOURCES): Add human.h.
79983         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79984         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79985         m4/uintmax_t.m4, m4/ulonglong.m4.
79986         (Depends-on): Add stdint.
79987         (EXTRA_DIST): Add inttostr.h.
79988         * modules/lchmod: New module.
79989         * modules/link-follow: New module.
79990         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79991         (Depends-on): Add lchmod.
79992         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79993         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79994         (Depends-on): Add stdint.
79995         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79996         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79997         (Depends-on): Add stdint.
79998         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79999         * modules/perl: New module.
80000         * modules/regex (Depends-on): Add stdint.
80001         * modules/rmdir-errno: New module.
80002         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80003         m4/intmax_t.m4.
80004         (Depends-on): Add stdint.
80005         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80006         m4/uintmax_t.m4.
80007         (Depends-on): Add stdint.
80008         * modules/unlink-busy: New module.
80009         * modules/utimecmp (Depends-on): Add stdint.
80010         * modules/uptime: New module.
80011         * modules/winsz-ioctl: New module.
80012         * modules/winsz-termios: New module.
80013         * modules/xnanosleep (Depends-on): Add nanosleep.
80014         * modules/ullong_max: Remove.
80015         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80016         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80017         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80018         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80019         (Depends-on): Add inttypes.
80020         (lib_SOURCES): Add xstrtol.h.
80021         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80022         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80023         * MODULES.html.sh: Move 'assert' into the assert section.
80024         Move 'dummy' into the linking section.
80025         Remove ullong_max.
80026         Add section for compatibility checks for POSIX:2001 functions,
80027         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80028         winsz-ioctl, and winsz-termios into it.
80029         Add lchmod.
80030         Add top-level Misc section and put host-os, perl, and uptime
80031         into it.
80032
80033 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80034
80035         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80036         now assume the stdint module.  Do not include inttypes.h.
80037         * lib/fsusage.h: Likewise.
80038         * lib/getndelim2.c: Likewise.
80039         * lib/human.h: Likewise.
80040         * lib/inttostr.h: Likewise.
80041         * lib/obstack.c: Likewise.
80042         * lib/regex_internal.h: Likewise.
80043         * lib/tempname.c: Likewise.
80044         * lib/utimecmp.c: Likewise.
80045         * lib/xstrtol.h: Likewise.
80046
80047         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80048
80049         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80050         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80051         * lib/xtime.h: Likewise.
80052
80053 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80054
80055         * modules/openat (Files): Add lib/fchmodat.c.
80056         Fixes problem reported by Jay Youngman.
80057
80058 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80059
80060         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80061         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80062
80063 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80064             Bruno Haible  <bruno@clisp.org>
80065
80066         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80067         and is a script that invokes bison. Tighten the code. Add comments.
80068
80069 2006-08-18  Jim Meyering  <jim@meyering.net>
80070
80071         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80072         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80073         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80074         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80075
80076 2006-08-18  Bruno Haible  <bruno@clisp.org>
80077
80078         * modules/bison-i18n: New file.
80079         * MODULES.html.sh (Internationalization functions): Add it.
80080
80081 2006-08-18  Bruno Haible  <bruno@clisp.org>
80082
80083         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80084         sys/statvfs.h. When getmntinfo was found, check its declaration and
80085         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80086
80087 2006-08-18  Bruno Haible  <bruno@clisp.org>
80088
80089         * m4/bison-i18n.m4: New file, from bison.
80090
80091 2006-08-18  Bruno Haible  <bruno@clisp.org>
80092
80093         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80094         (ME_DUMMY): Treat "kernfs" as a dummy.
80095         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80096
80097 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80098
80099         Update from coreutils.
80100
80101         2006-08-15  Jim Meyering  <jim@meyering.net>
80102
80103         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80104
80105         2006-01-17  Jim Meyering  <jim@meyering.net>
80106
80107         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80108
80109         2006-01-11  Jim Meyering  <jim@meyering.net>
80110
80111         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80112         Check for the lchmod function.
80113
80114 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80115
80116         Update from coreutils.
80117
80118         * lib/__fpending.h: Add copyright notice.
80119         * lib/fprintftime.h: Likewise.
80120         * lib/savedir.c: Use (C) in copyright notice.
80121         * lib/savedir.h: Likewise.
80122
80123         2006-08-15  Jim Meyering  <jim@meyering.net>
80124
80125         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80126         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80127         in support of the EXPECTED_ERRNO macro.
80128         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80129         definitions.  Instead, define the appropriate symbols and include
80130         "at-func.c".
80131         * lib/mkdirat.c (mkdirat): Likewise.
80132         * lib/fchmodat.c (fchmodat): Likewise.
80133         (ENOSYS): Remove definition.
80134         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80135         it.  Don't include "unistd--.h" -- it wasn't ever used.
80136
80137         2006-01-17  Jim Meyering  <jim@meyering.net>
80138
80139         Rewrite fts.c not to change the current working directory,
80140         by using openat, fstatat, fdopendir, etc..
80141
80142         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80143         (HAVE_OPENAT_SUPPORT): Define.
80144         [_LIBC] (fchdir): Don't undef or define; no longer used.
80145         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80146         Now, this `function' always succeeds, and consumes its file descriptor
80147         parameter -- so callers must not close such FDs.  Update callers.
80148         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80149         (diropen): Add parameter, SP.  Adjust all callers.
80150         Implement using diropen_fd, rather than open.
80151         (fts_open): Initialize new member, fts_cwd_fd.
80152         Remove fts_rft-setting code.
80153         (fts_close): Close fts_cwd_fd, if necessary.
80154         (__opendir2): Define in terms of opendir or opendirat,
80155         depending on whether the FST_NOCHDIR flag is set.
80156         (fts_build): Since fts_safe_changedir consumes its FD, and since
80157         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80158         and close the dup'd file descriptor upon failure.
80159         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80160         (fts_safe_changedir): Tweak semantics to reflect that this function
80161         now calls cwd_advance_fd and hence consumes its FD argument.
80162         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80163         [struct FTS] (fts_rft): Remove now-unused member.
80164         [struct FTS] (fts_cycle.state): Improve comment.
80165
80166         * lib/openat.c (openat_needs_fchdir): New function.
80167         * lib/openat.h (openat_needs_fchdir): Declare it.
80168
80169 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80172         Problem and fix reported by Pádraig Brady in
80173         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80174
80175 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80176
80177         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80178
80179 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80180
80181         * lib/memcoll.c (memcoll): Optimize for the common case where the
80182         arguments are bytewise equal.
80183
80184 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80185
80186         * doc/regexprops-generic.texi: Add a copyright notice.
80187
80188 2006-08-15  Bruno Haible  <bruno@clisp.org>
80189
80190         * modules/tmpdir (License): Change to LGPL.
80191
80192 2006-08-15  Bruno Haible  <bruno@clisp.org>
80193
80194         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80195         module.
80196
80197 2006-08-14  Simon Josefsson  <jas@extundo.com>
80198
80199         * config/srclist.txt: Add gnupload.
80200
80201 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         Change copyright notice from LGPL 2 to GPL 2, since that's the
80204         standard form used in the gnulib repository.
80205         * tests/test-lock.c: Likewise.
80206         * tests/test-stdint.c: Likewise.
80207         * tests/test-tls.c: Likewise.
80208
80209         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80210         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80211         Add copyright notice.
80212
80213         * check-module: Add copyright notice.  Output a copyright
80214         notice if "--version" is specified.
80215         * modules/COPYING: New file.
80216         * tests/test-getaddrinfo.c: Add copyright notice.
80217         * tests/test-verify.c: Likewise.
80218
80219 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         Change copyright notice from LGPL 2 to GPL 2, since that's the
80222         standard form used in the gnulib repository.
80223         * lib/lock.c: LGPL -> GPL.
80224         * lib/lock.h: Likewise.
80225         * lib/strnlen1.c: Likewise.
80226         * lib/strnlen1.h: Likewise.
80227         * lib/tls.c: Likewise.
80228         * lib/tls.h: Likewise.
80229         * lib/tmpdir.c: Likewise.
80230
80231         * lib/TODO: Remove; this belongs only in coreutils.
80232
80233 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80234
80235         Add copyright notices to long-enough files that lack them, since
80236         otherwise the files aren't clearly free.  Use the same notice that
80237         getdate.texi already uses.
80238         * doc/alloca-opt.texi: Add copyright notice.
80239         * doc/alloca.texi: Likewise.
80240         * doc/ctime.texi: Likewise.
80241         * doc/functions.texi: Likewise.
80242         * doc/gcd.texi: Likewise.
80243         * doc/gnulib-tool.texi: Likewise.
80244         * doc/inet_ntoa.texi: Likewise.
80245         * doc/visibility.texi: Likewise.
80246
80247         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80248         * doc/quote.texi: Add copyright notice.
80249
80250         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80251         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80252         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80253         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80254         is now obsolete, and give a pointer to the Sun list.
80255         Add copyright notice.
80256
80257 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         * config/srclistvars.sh: Add copyright notice.
80260
80261 2006-08-14  Eric Blake  <ebb9@byu.net>
80262
80263         Import the following change from libc:
80264
80265         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80266
80267         Upstream bug 2997.
80268         * lib/misc/error.c: Add space between program name and message if file
80269         name is missing.
80270
80271 2006-08-12  Karl Berry  <karl@gnu.org>
80272
80273         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80274         remove, these originate in gnulib now.
80275
80276 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80277
80278         * doc/Makefile (standards.info standards.html standards.dvi):
80279         Also depend on make-stds.texi.
80280
80281 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80282
80283         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80284         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80285
80286         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80287         in wchar_t.  Problem reported by Eric Blake.
80288
80289         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80290         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80291         Also, help the compiler to keep LEN in a register.
80292
80293 2006-08-11  Eric Blake  <ebb9@byu.net>
80294
80295         * users.txt: Sort.  Add tar.
80296
80297 2006-08-11  Bruno Haible  <bruno@clisp.org>
80298
80299         * users.txt: New file.
80300
80301 2006-08-11  Bruno Haible  <bruno@clisp.org>
80302
80303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80304         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80305
80306 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80307
80308         * modules/snprintf (Depends-on): Remove minmax.
80309         (Maintainer): Add self and Bruno.
80310
80311 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80312
80313         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80314         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80315         (EOVERFLOW): Define if the system does not.
80316         Do not include "minmax.h"; it wasn't used.
80317         (snprintf): Don't assume size_t promotes to an unsigned type.
80318         Fix bug when generated string was too long for the buffer: the
80319         buffer's contents are supposed to be the initial prefix of the
80320         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80321         exceeds INT_MAX; do the check ourselves.
80322
80323         Import the following changes from libc:
80324
80325         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80326
80327         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80328         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80329         set wc to the byte which couldn't be converted.
80330         (re_string_reconstruct): Don't clear valid_raw_len before calling
80331         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80332         tip_context using re_string_context_at.
80333
80334         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80335
80336         * lib/posix/regex.h: g++ still cannot handled [restrict].
80337
80338         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80339
80340         * lib/posix/regex.h: Remove special handling for VMS.
80341
80342 2006-08-10  Jim Meyering  <jim@meyering.net>
80343
80344         * modules/same-inode: New module.
80345         * modules/dev-ino: New module.
80346         * modules/cycle-check: Depend on these modules, rather than simply
80347         including their .h files.
80348         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80349         required via m4/cycle-check.m4.
80350         * modules/same: Depend on new same-inode module, rather than
80351         including same-inode.h.
80352         * modules/chdir-safer: New file.
80353
80354         * modules/chown (Depends-on): Add stat-macros.
80355
80356 2006-08-10  Jim Meyering  <jim@meyering.net>
80357
80358         * m4/cycle-check.m4: New file.
80359         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80360         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80361
80362 2006-08-10  Eric Blake  <ebb9@byu.net>
80363
80364         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80365         in from original proposal.
80366
80367 2006-08-10  Eric Blake  <ebb9@byu.net>
80368         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80369
80370         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80371         namespace.
80372
80373 2006-08-10  Bruno Haible  <bruno@clisp.org>
80374
80375         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80376         as well.
80377
80378 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80379
80380         Sync from coreutils.
80381
80382         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80383
80384         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80385         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80386
80387 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80388
80389         * modules/restrict: Remove; no longer needed now that we assume
80390         Autoconf 2.59 or later.
80391         * MODULES.html.sh: Remove 'restrict'.
80392         * modules/argp (Depends-on): Remove 'restrict'.
80393         * modules/base64 (Depends-on): Likewise.
80394         * modules/gc (Depends-on): Likewise.
80395         * modules/getaddrinfo (Depends-on): Likewise.
80396         * modules/glob (Depends-on): Likewise.
80397         * modules/inet_ntop (Depends-on): Likewise.
80398         * modules/inet_pton (Depends-on): Likewise.
80399         * modules/memxor (Depends-on): Likewise.
80400         * modules/regex (Depends-on): Likewise.
80401         * modules/strtok_r (Depends-on): Likewise.
80402         * modules/time_r (Depends-on): Likewise.
80403
80404 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80405
80406         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80407         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80408         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80409         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80410         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80411         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80412         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80413         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80414
80415         Merge from coreutils.
80416         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80417         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80418         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80419         * m4/time_r.m4 (gl_TIME_R): Likewise.
80420
80421 2006-08-09  Karl Berry  <karl@gnu.org>
80422
80423         * config/srclist.txt: no more gettext-tools, per Bruno.
80424
80425 2006-08-08  Eric Blake  <ebb9@byu.net>
80426
80427         * modules/verror: New module.
80428         * MODULES.html.sh: Document it.
80429
80430 2006-08-08  Eric Blake  <ebb9@byu.net>
80431
80432         * lib/verror.h, lib/verror.c: New files.
80433
80434 2006-08-08  Eric Blake  <ebb9@byu.net>
80435
80436         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80437         verror_at_line output complies with GNU Coding Standards even when
80438         file is NULL.
80439
80440 2006-08-07  Bruno Haible  <bruno@clisp.org>
80441
80442         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80443         versions of AIX.
80444         Reported by Ralf Wildenhues.
80445
80446 2006-08-07  Bruno Haible  <bruno@clisp.org>
80447
80448         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80449         in an AC_DEFUN. Needed so that the autoconf snippets can use
80450         AC_REQUIRE.
80451
80452 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80453
80454         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80455         Initialize pkgdata_DATA.
80456         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80457         overriding it.
80458
80459 2006-08-06  Eric Blake  <ebb9@byu.net>
80460
80461         * lib/error.h: Fold in some upstream changes from glibc.
80462         * lib/error.c: Likewise.
80463
80464 2006-08-04  Bruno Haible  <bruno@clisp.org>
80465
80466         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80467         Make the mostlyclean-local rule depend on mostlyclean-generic.
80468         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80469
80470 2006-07-31  Bruno Haible  <bruno@clisp.org>
80471
80472         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80473         <stdlib.h>, <string.h>.
80474
80475 2006-07-30  Bruno Haible  <bruno@clisp.org>
80476
80477         * modules/readlink (License): Change to LGPL.
80478
80479 2006-07-30  Bruno Haible  <bruno@clisp.org>
80480
80481         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80482         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80483         set PKGDATADIR to point to it.
80484
80485 2006-07-30  Bruno Haible  <bruno@clisp.org>
80486
80487         * modules/csharpexec (configure.ac): Comment out macro invocation.
80488         * modules/javaexec (configure.ac): Likewise.
80489         * modules/javacomp-script (configure.ac): Likewise.
80490
80491         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80492
80493 2006-07-30  Bruno Haible  <bruno@clisp.org>
80494
80495         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80496         linked-list.
80497
80498 2006-07-30  Bruno Haible  <bruno@clisp.org>
80499
80500         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80501
80502 2006-07-30  Bruno Haible  <bruno@clisp.org>
80503
80504         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80505         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80506         get removed.
80507
80508 2006-07-29  Bruno Haible  <bruno@clisp.org>
80509
80510         Make it possible for gnulib-tool to work with locally modified or
80511         augmented gnulib repositories.
80512         * gnulib-tool (func_usage): Document --local-dir option.
80513         (local_gnulib_dir): New variable.
80514         Handle --local-dir option.
80515         (func_lookup_file): New function.
80516         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80517         (func_get_description, func_get_filelist, func_get_description,
80518         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80519         func_get_automake_snippet, func_get_include_directive,
80520         func_get_license, func_get_maintainer): Use func_lookup_file.
80521         (func_import, func_create_testdir): Use func_lookup_file.
80522
80523 2006-07-29  Bruno Haible  <bruno@clisp.org>
80524
80525         * modules/setenv (Depends-on): Add unistd.
80526
80527 2006-07-29  Bruno Haible  <bruno@clisp.org>
80528
80529         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80530
80531 2006-07-29  Bruno Haible  <bruno@clisp.org>
80532
80533         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80534
80535 2006-07-29  Bruno Haible  <bruno@clisp.org>
80536
80537         * gnulib-tool (import, update): If there is no Makefile.am, look at
80538         aclocal.m4, instead of bailing out.
80539
80540 2006-07-29  Bruno Haible  <bruno@clisp.org>
80541
80542         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80543         Categorize the options by when they are useful.
80544
80545 2006-07-29  Bruno Haible  <bruno@clisp.org>
80546
80547         * gnulib-tool (func_usage): Document option --no-libtool.
80548         Handle option --no-libtool.
80549         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80550         for changed semantics of $libtool variable.
80551         (func_import): Likewise. If libtool is not used, show this through
80552         an option --no-libtool.
80553         (func_create_testdir): Update.
80554
80555 2006-07-29  Bruno Haible  <bruno@clisp.org>
80556
80557         * gnulib-tool (func_import): Extend error message about missing
80558         --doc-base.
80559
80560 2006-07-29  Bruno Haible  <bruno@clisp.org>
80561
80562         * gnulib-tool (func_import): Don't create the $docbase directory if
80563         there is no file to store there.
80564
80565 2006-07-29  Bruno Haible  <bruno@clisp.org>
80566
80567         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80568         relevant, look for configure.ac there, not in the current directory.
80569         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80570
80571 2006-07-29  Bruno Haible  <bruno@clisp.org>
80572
80573         * gnulib-tool (SORT): New variable.
80574         (func_usage): Undocument --assume-autoconf option.
80575         Remove --assume-autoconf option handling.
80576         (autoconf_minversion): Determine from the contents of configure.ac.
80577         (func_import): Remove autoconf_minversion handling.
80578         Suggested by Eric Blake.
80579
80580 2006-07-29  Bruno Haible  <bruno@clisp.org>
80581
80582         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80583
80584 2006-07-29  Bruno Haible  <bruno@clisp.org>
80585
80586         * config/srclist.txt (*setenv.[ch]): Remove rules.
80587
80588 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80589
80590         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80591
80592 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80593
80594         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80595         arpa/inet.h.
80596
80597 2006-07-28  Simon Josefsson  <jas@extundo.com>
80598
80599         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80600         * modules/inet_pton (Depends-on): Likewise.
80601
80602 2006-07-28  Simon Josefsson  <jas@extundo.com>
80603
80604         * m4/netinet_in_h.m4: New file.
80605
80606 2006-07-28  Simon Josefsson  <jas@extundo.com>
80607
80608         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80609         #include's.
80610
80611 2006-07-28  Simon Josefsson  <jas@extundo.com>
80612
80613         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80614         #include's.
80615
80616 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80617
80618         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80619         setgid on directories only if they set these bits.
80620         * lib/modechange.h: Remove obsolete comment about masks.
80621
80622 2006-07-28  Eric Blake  <ebb9@byu.net>
80623
80624         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80625         macro expansion.
80626
80627 2006-07-28  Bruno Haible  <bruno@clisp.org>
80628
80629         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80630
80631 2006-07-28  Bruno Haible  <bruno@clisp.org>
80632
80633         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80634
80635 2006-07-28  Bruno Haible  <bruno@clisp.org>
80636
80637         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80638         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80639         Define fallbacks.
80640         Avoids link error on FreeBSD 4.x.
80641         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80642
80643         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80644         encoding.
80645         * lib/mbswidth.c (iswcntrl): Likewise.
80646
80647 2006-07-27  Bruno Haible  <bruno@clisp.org>
80648
80649         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80650         test.
80651
80652 2006-07-27  Bruno Haible  <bruno@clisp.org>
80653
80654         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80655         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80656         defined.
80657
80658 2006-07-26  Eric Blake  <ebb9@byu.net>
80659
80660         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80661
80662 2006-07-26  Eric Blake  <ebb9@byu.net>
80663
80664         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80665         like mingw that lack mkstemp.
80666         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80667         avoid compilation warning on mingw.
80668
80669 2006-07-26  Bruno Haible  <bruno@clisp.org>
80670
80671         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80672         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80673         INT_FAST*_MIN, INTPTR_MIN.
80674
80675 2006-07-25  Bruno Haible  <bruno@clisp.org>
80676
80677         * modules/version-etc (Depends-on): Add stdarg.
80678
80679 2006-07-25  Bruno Haible  <bruno@clisp.org>
80680
80681         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80682         complex commands.
80683
80684 2006-07-25  Bruno Haible  <bruno@clisp.org>
80685
80686         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80687         defined in <stdarg.h> or config.h.
80688
80689 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80690
80691         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80692         (gl_STDIO_SAFER): Remove.
80693
80694 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         * MODULES.html.sh (File stream based Input/Output):
80697         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80698         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80699         * modules/fopen-safer, modules/tmpfile-safer: New files.
80700         * modules/stdio-safer: Remove.
80701
80702 2006-07-24  Bruno Haible  <bruno@clisp.org>
80703
80704         * modules/tmpdir: New file.
80705         * MODULES.html.sh (File system functions): Add it.
80706
80707 2006-07-24  Bruno Haible  <bruno@clisp.org>
80708
80709         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80710         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80711
80712 2006-07-24  Bruno Haible  <bruno@clisp.org>
80713
80714         * modules/clean-temp: New file.
80715
80716 2006-07-24  Bruno Haible  <bruno@clisp.org>
80717
80718         * m4/tmpdir.m4: New file, from GNU gettext.
80719
80720 2006-07-24  Bruno Haible  <bruno@clisp.org>
80721
80722         * lib/tmpdir.h: New file, from GNU gettext.
80723         * lib/tmpdir.c: New file, from GNU gettext.
80724
80725 2006-07-24  Bruno Haible  <bruno@clisp.org>
80726
80727         * lib/clean-temp.h: New file, from GNU gettext.
80728         * lib/clean-temp.c: New file, from GNU gettext.
80729
80730 2006-07-23  Eric Blake  <ebb9@byu.net>
80731
80732         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80733         (Depends-on): Add binary-io.
80734
80735 2006-07-23  Eric Blake  <ebb9@byu.net>
80736
80737         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80738
80739 2006-07-23  Eric Blake  <ebb9@byu.net>
80740
80741         * lib/tmpfile-safer.c: New file.
80742         * lib/stdio-safer.h (fopen_safer): Add prototype.
80743         * lib/stdio--.h (tmpfile): Make safer.
80744
80745 2006-07-23  Bruno Haible  <bruno@clisp.org>
80746
80747         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80748         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80749         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80750         gl_linked_remove_at): Use it.
80751
80752 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80753         and Simon Josefsson <jas@extundo.com>
80754
80755         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80756
80757         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80758
80759 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80760
80761         * modules/close-stream: New file.
80762         * modules/closeout (Description): Make it clear that it exits
80763         with a diagnostic on error.
80764         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80765         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80766
80767 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80768
80769         * m4/close-stream.m4: New file.
80770
80771 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80772
80773         * lib/close-stream.c, lib/close-stream.h: New files.
80774
80775 2006-07-22  Bruno Haible  <bruno@clisp.org>
80776
80777         Merge from GNU gettext 0.15.
80778
80779         2006-05-01  Bruno Haible  <bruno@clisp.org>
80780
80781                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80782
80783         2006-07-22  Bruno Haible  <bruno@clisp.org>
80784
80785                 * modules/javaversion: New file.
80786                 * MODULES.html.sh (Java): Add javaversion.
80787
80788         2006-03-12  Bruno Haible  <bruno@clisp.org>
80789
80790                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80791
80792         2005-12-04  Bruno Haible  <bruno@clisp.org>
80793
80794                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80795                 (untested).
80796
80797         2006-06-21  Bruno Haible  <bruno@clisp.org>
80798
80799                 Avoid warnings from recent versions of mcs.
80800                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80801                 -o, -L, -r any more. Use options documented since mcs-1.0
80802                 instead. Similarly for -g.
80803
80804         2005-12-04  Bruno Haible  <bruno@clisp.org>
80805
80806                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80807                 .resources, not .resource.
80808
80809         2005-07-09  Bruno Haible  <bruno@clisp.org>
80810
80811                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80812                 add a .dll suffix.
80813                 Reported by Mark Junker <mjscod@gmx.de>.
80814
80815         2006-07-22  Bruno Haible  <bruno@clisp.org>
80816
80817                 * modules/gettext: Upgrade to gettext-0.15.
80818                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80819                 m4/visibility.m4.
80820                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80821
80822 2006-07-22  Bruno Haible  <bruno@clisp.org>
80823
80824         Merge from GNU gettext 0.15.
80825
80826         2006-03-25  Bruno Haible  <bruno@clisp.org>
80827
80828                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80829
80830         2006-07-21  Bruno Haible  <bruno@clisp.org>
80831
80832                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80833                 "1.1".
80834
80835         2006-05-09  Bruno Haible  <bruno@clisp.org>
80836
80837                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80838                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80839                 for the conftestver execution.
80840
80841         2006-05-01  Bruno Haible  <bruno@clisp.org>
80842
80843                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80844                 optional target-version argument. Verify that the compiler
80845                 groks source of the specified source-version, or add -source
80846                 option as necessary. Verify that the compiler produces
80847                 bytecode in the specified target-version, or add -target and
80848                 -source options as necessary. Make the result of the test
80849                 available as variable CONF_JAVAC. Also log error output in
80850                 config.log.
80851
80852         2006-03-11  Bruno Haible  <bruno@clisp.org>
80853
80854                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80855
80856         2006-05-09  Bruno Haible  <bruno@clisp.org>
80857
80858                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80859                 CLASSPATH_SEPARATOR to a semicolon.
80860
80861         2006-03-12  Bruno Haible  <bruno@clisp.org>
80862
80863                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80864                 available as variable CONF_JAVA, for subsequent autoconf
80865                 tests. Also log error output in config.log.
80866
80867         2006-07-19  Bruno Haible  <bruno@clisp.org>
80868
80869                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80870                 that getline works on glibc2 systems. Needed to avoid trouble
80871                 in relocatable.c.
80872                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80873
80874         2005-12-04  Bruno Haible  <bruno@clisp.org>
80875
80876                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80877                 launcher (untested).
80878
80879         2005-12-04  Bruno Haible  <bruno@clisp.org>
80880
80881                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80882
80883         2006-07-22  Bruno Haible  <bruno@clisp.org>
80884
80885                 * gettext.m4: Update from GNU gettext-0.15.
80886                 * nls.m4: Likewise.
80887                 * po.m4: Likewise.
80888                 * inttypes-pri.m4: Likewise.
80889                 * inttypes-h.m4: Renamed from inttypes.m4.
80890                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80891
80892 2006-07-22  Bruno Haible  <bruno@clisp.org>
80893
80894         Merge from GNU gettext 0.15.
80895
80896         2005-07-05  Bruno Haible  <bruno@clisp.org>
80897
80898                 * printf-args.c (printf_fetchargs): Work around broken
80899                 definition of wint_t on mingw.
80900
80901         2005-02-12  Bruno Haible  <bruno@clisp.org>
80902
80903                 * xallocsa.h: Add extern "C" for C++.
80904
80905         2006-05-17  Bruno Haible  <bruno@clisp.org>
80906
80907                 Cygwin portability.
80908                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80909
80910         2006-04-30  Bruno Haible  <bruno@clisp.org>
80911
80912                 * progreloc.c: Include <mach-o/dyld.h> if available.
80913                 (find_executable): Use _NSGetExecutablePath when possible.
80914
80915         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80916
80917                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80918                 function.
80919
80920         2005-12-29  Bruno Haible  <bruno@clisp.org>
80921
80922                 * progreloc.c (set_program_name_and_installdir): Fix
80923                 compilation error.
80924
80925         2005-12-04  Bruno Haible  <bruno@clisp.org>
80926
80927                 Cygwin portability.
80928                 * progreloc.c: Include <windows.h> also on Cygwin.
80929                 (find_executable): Add support for Cygwin.
80930                 (set_program_name_and_installdir): Handle also platforms with
80931                 nonempty EXEEXT.
80932
80933         2006-07-11  Bruno Haible  <bruno@clisp.org>
80934
80935                 * javacomp.c: Fix a comment.
80936                 Reported by Jim Meyering.
80937
80938         2006-04-30  Bruno Haible  <bruno@clisp.org>
80939
80940                 * javacomp.h (compile_java_class): Add source_version,
80941                 target_version arguments.
80942                 * javacomp.c: Rewritten to choose only a compiler that
80943                 respects the specified source_version and target_version.
80944
80945         2006-06-27  Bruno Haible  <bruno@clisp.org>
80946
80947                 Assume correct S_ISDIR macro.
80948                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80949
80950         2006-07-22  Bruno Haible  <bruno@clisp.org>
80951
80952                 * javaversion.h: New file, from GNU gettext.
80953                 * javaversion.c: New file, from GNU gettext.
80954                 * javaversion.java: New file, from GNU gettext.
80955                 * javaversion.class: New file, from GNU gettext.
80956
80957         2006-05-17  Bruno Haible  <bruno@clisp.org>
80958
80959                 Cygwin portability.
80960                 * javaexec.c (execute_java_class): Test for jview program
80961                 also on Cygwin.
80962
80963         2006-04-09  Bruno Haible  <bruno@clisp.org>
80964
80965                 * fatal-signal.c: Don't include string.h.
80966                 (at_fatal_signal): Use a copying loop instead of memcpy.
80967
80968         2005-12-04  Bruno Haible  <bruno@clisp.org>
80969
80970                 * csharpexec.c: Add support for 'clix' launcher (untested).
80971                 (execute_csharp_using_sscli): New function.
80972                 (execute_csharp_program): Call it.
80973
80974         2006-06-21  Bruno Haible  <bruno@clisp.org>
80975
80976                 Avoid warnings from recent versions of mcs.
80977                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80978                 -o, -L, -r any more. Use options documented since mcs-1.0
80979                 instead. Similarly for -g.
80980
80981         2005-07-09  Bruno Haible  <bruno@clisp.org>
80982
80983                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80984                 add a .dll suffix.
80985                 Reported by Mark Junker <mjscod@gmx.de>.
80986
80987         2006-06-17  Bruno Haible  <bruno@clisp.org>
80988
80989                 * config.charset: Update for NetBSD 3.0.
80990
80991         2006-05-17  Bruno Haible  <bruno@clisp.org>
80992
80993                 Cygwin portability.
80994                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80995
80996         2006-05-16  Bruno Haible  <bruno@clisp.org>
80997
80998                 * localcharset.c [CYGWIN]: Include <windows.h>.
80999                 (get_charset_aliases): For Cygwin, return the same CPxxx
81000                 aliases list as under WIN32.
81001                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81002                 the environment variables. Fall back to GetACP().
81003
81004         2006-04-05  Bruno Haible  <bruno@clisp.org>
81005
81006                 * config.charset: Update Juan Manuel Guerrero's address.
81007
81008         2005-02-12  Bruno Haible  <bruno@clisp.org>
81009
81010                 * allocsa.h: Add extern "C" for C++.
81011
81012         2005-02-10  Bruno Haible  <bruno@clisp.org>
81013
81014                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81015                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81016
81017         2006-07-22  Bruno Haible  <bruno@clisp.org>
81018
81019                 * gettext.h: Update to GNU gettext-0.15.
81020
81021 2006-07-22  Bruno Haible  <bruno@clisp.org>
81022
81023         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81024         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81025         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81026
81027 2006-07-21  Eric Blake  <ebb9@byu.net>
81028
81029         * modules/stdlib-safer: New file.
81030         * MODULES.html.sh (File stream based Input/Output): Add
81031         stdlib-safer.
81032
81033 2006-07-21  Eric Blake  <ebb9@byu.net>
81034
81035         * lib/stdlib-safer.h: New file from coreutils, required by
81036         stdlib--.h.
81037
81038 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81041
81042 2006-07-20  Bruno Haible  <bruno@clisp.org>
81043
81044         * gnulib-tool: Recognize new option --assume-autoconf.
81045         (autoconf_minversion): New variable.
81046         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81047
81048 2006-07-20  Bruno Haible  <bruno@clisp.org>
81049
81050         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81051
81052 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81053
81054         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81055         Reindent and repaginate.
81056
81057 2006-07-19  Derek Price  <derek@ximbiot.com>
81058
81059         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81060         Correct grammar.
81061
81062 2006-07-17  Bruno Haible  <bruno@clisp.org>
81063
81064         * modules/list: New file.
81065         * modules/array-list: New file.
81066         * modules/carray-list, modules/carray-list-tests: New files.
81067         * modules/linked-list, modules/linked-list-tests: New files.
81068         * modules/avltree-list, modules/avltree-list-tests: New files.
81069         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81070         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81071         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81072         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81073         * modules/oset: New file.
81074         * modules/array-oset: New file.
81075         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81076         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81077         * tests/test-carray_list.c: New file.
81078         * tests/test-linked_list.c: New file.
81079         * tests/test-avltree_list.c: New file.
81080         * tests/test-rbtree_list.c: New file.
81081         * tests/test-linkedhash_list.c: New file.
81082         * tests/test-avltreehash_list.c: New file.
81083         * tests/test-rbtreehash_list.c: New file.
81084         * tests/test-avltree_oset.c: New file.
81085         * tests/test-rbtree_oset.c: New file.
81086         * MODULES.html.sh (Container data structures): New section.
81087
81088 2006-07-17  Bruno Haible  <bruno@clisp.org>
81089
81090         * m4/gl_list.m4: New file.
81091
81092 2006-07-17  Bruno Haible  <bruno@clisp.org>
81093
81094         * lib/gl_list.h: New file.
81095         * lib/gl_list.c: New file.
81096         * lib/gl_array_list.h: New file.
81097         * lib/gl_array_list.c: New file.
81098         * lib/gl_carray_list.h: New file.
81099         * lib/gl_carray_list.c: New file.
81100         * lib/gl_linked_list.h: New file.
81101         * lib/gl_linked_list.c: New file.
81102         * lib/gl_anylinked_list1.h: New file.
81103         * lib/gl_anylinked_list2.h: New file.
81104         * lib/gl_avltree_list.h: New file.
81105         * lib/gl_avltree_list.c: New file.
81106         * lib/gl_anyavltree_list1.h: New file.
81107         * lib/gl_anyavltree_list2.h: New file.
81108         * lib/gl_rbtree_list.h: New file.
81109         * lib/gl_rbtree_list.c: New file.
81110         * lib/gl_anyrbtree_list1.h: New file.
81111         * lib/gl_anyrbtree_list2.h: New file.
81112         * lib/gl_anytree_list1.h: New file.
81113         * lib/gl_anytree_list2.h: New file.
81114         * lib/gl_linkedhash_list.h: New file.
81115         * lib/gl_linkedhash_list.c: New file.
81116         * lib/gl_anyhash_list1.h: New file.
81117         * lib/gl_anyhash_list2.h: New file.
81118         * lib/gl_avltreehash_list.h: New file.
81119         * lib/gl_avltreehash_list.c: New file.
81120         * lib/gl_rbtreehash_list.h: New file.
81121         * lib/gl_rbtreehash_list.c: New file.
81122         * lib/gl_anytreehash_list1.h: New file.
81123         * lib/gl_anytreehash_list2.h: New file.
81124
81125         * lib/gl_oset.h: New file.
81126         * lib/gl_oset.c: New file.
81127         * lib/gl_array_oset.h: New file.
81128         * lib/gl_array_oset.c: New file.
81129         * lib/gl_avltree_oset.h: New file.
81130         * lib/gl_avltree_oset.c: New file.
81131         * lib/gl_rbtree_oset.h: New file.
81132         * lib/gl_rbtree_oset.c: New file.
81133         * lib/gl_anytree_oset.h: New file.
81134
81135 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81136
81137         * m4/mkancesdirs.m4: New file.
81138         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81139         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81140         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81141         it.
81142
81143 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81144
81145         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81146         * lib/mkancesdirs.h: New files.
81147         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81148         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81149         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81150         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81151         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81152         callers changed.  Revamp internals significantly, by not
81153         attempting to create directories that are temporarily more
81154         permissive than the final results.  Do not attempt to use
81155         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81156         This removes some race conditions, fixes some bugs, and simplifies
81157         things.  Use new dirchownmod function to do owner and mode changes.
81158         * lib/mkdir-p.h: Likewise.
81159         * lib/modechange.c (octal_to_mode): New function.
81160         (struct mode_change): New member mentioned.
81161         (make_node_op_equals): New arg mentioned.  All callers changed.
81162         (mode_compile): Keep track of which mode bits the user has explicitly
81163         mentioned.
81164         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81165         New arg PMODE_BITS, to keep track of which mode bits the user
81166         mentioned; it treats S_ISUID and S_ISGID speciall.
81167         All callers changed.
81168         * lib/modechange.h: Likewise.
81169
81170 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81171
81172         * MODULES.html.sh: Add mkancestors.
81173         * modules/mkancesdirs: New module.
81174         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81175         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81176         The chdir-safer and afs files are now orphans; I'll remove them
81177         unless someone speaks up.
81178         Add lib/dirchownmod.c, lib/dirchownmod.h.
81179         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81180         Add lchown, mkancesdirs.
81181         (Maintainer): Add self.
81182
81183 2006-07-15  Karl Berry  <karl@gnu.org>
81184
81185         * gnulib-tool: help message wording/arrangement.
81186
81187 2006-07-14  Simon Josefsson  <jas@extundo.com>
81188
81189         * doc/gnulib.texi (Libtool and Windows): New section.
81190
81191 2006-07-12  Simon Josefsson  <jas@extundo.com>
81192
81193         * modules/gendocs (License): Fix license, approved by Karl.
81194
81195 2006-07-12  Eric Blake  <ebb9@byu.net>
81196
81197         * MODULES.html.sh: Add gendocs.
81198
81199 2006-07-11  Eric Blake  <ebb9@byu.net>
81200
81201         * modules/fdl: New module, to install doc/fdl.texi.
81202         * MODULES.html.sh: Add new section for documentation modules.
81203         * gnulib-tool: Avoid space-tab.
81204         (--doc-base): New option, to manage files from doc.
81205
81206 2006-07-11  Eric Blake  <ebb9@byu.net>
81207
81208         * m4/absolute-header.m4: Fix comments to match recent change.
81209
81210 2006-07-11  Eric Blake  <ebb9@byu.net>
81211
81212         * gnulib-tool: List --doc-base before --tests-base.
81213
81214 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81215
81216         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81217
81218 2006-07-11  Bruno Haible  <bruno@clisp.org>
81219
81220         * README: Mention where to put documentation.
81221
81222 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81223
81224         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81225
81226 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81227
81228         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81229         to stdint.m4.
81230
81231 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81234         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81235         "no/such/file/stdint.h" when there is no such file, so that
81236         the resulting C code can be parsed by dodgy compilers.
81237         Problems reported by Bob Proulx.
81238
81239 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81240
81241         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81242         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81243         macros into the GNU _D_EXACT_NAMLEN.
81244         * lib/savedir.c:  Likewise.
81245         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81246
81247 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81248         and Paul Eggert  <eggert@cs.ucla.edu>
81249
81250         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81251         * m4/savedir.m4:
81252         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81253         macros into the GNU _D_EXACT_NAMLEN.
81254
81255 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81256
81257         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81258         around the absolute name, to work around a problem with the HP-UX
81259         11.23 native C compiler, reported by Bob Proulx.
81260
81261 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81262
81263         * doc/maintain.texi, make-stds.texi: Sync from
81264         <http://savannah.gnu.org/projects/gnustandards>.
81265
81266 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81267
81268         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81269
81270 2006-07-09  Jim Meyering  <jim@meyering.net>
81271
81272         * m4/glob.m4: Remove a doubled word in a comment.
81273
81274 2006-07-09  Jim Meyering  <jim@meyering.net>
81275
81276         * lib/argp-pv.c: Remove a doubled word in a comment.
81277         * lib/check-version.c (check_version): Likewise.
81278         * lib/javacomp.c (compile_java_class): Likewise.
81279
81280 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81281
81282         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81283         for the benefit of people using Autoconf 2.60.  If you want to
81284         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81285         (or m4/onceonly.m4, if pre-2.57) manually.
81286
81287 2006-07-08  Jim Meyering  <jim@meyering.net>
81288
81289         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81290         comment.
81291         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81292         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81293         comment.
81294
81295 2006-07-08  Jim Meyering  <jim@meyering.net>
81296
81297         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81298
81299 2006-07-07  Simon Josefsson  <jas@extundo.com>
81300
81301         * tests/test-crc.c: Change expected crc value, the test vector
81302         were probably computed using the old broken crc.c?
81303
81304 2006-07-06  Simon Josefsson  <jas@extundo.com>
81305
81306         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81307         now the canonical place for the M4 file).
81308
81309         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81310         from the sys_socket dependency now.
81311
81312         * modules/inet_pton (Files): Ditto.
81313
81314         * modules/inet_ntop (Files): Ditto.
81315
81316 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81317
81318         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81319         not gl_PREREQ_GETUSERSHELL.
81320
81321 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81322
81323         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81324         with only one argument, for Autoconf 2.60.
81325         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81326         expand to nothing, so add a shell command to avoid syntax error.
81327         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81328
81329 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81330
81331         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81332
81333 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81336         no longer needed.  Check for isblank decl.
81337         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81338         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81339         of existence.
81340
81341 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81342
81343         * lib/getloadavg.c: Use __VMS, not VMS.
81344         * lib/getopt.c: Likewise.
81345         * lib/getpagesize.h: Likewise.
81346         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81347         and probably does not work.
81348
81349 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81350
81351         * lib/.cppi-disable: Add wcwidth.
81352         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81353         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81354         (ISGRAPH): Remove.  All uses changed to isgraph.
81355         (FOLD) [!defined _LIBC]: Remove special case.
81356         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81357         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81358         HAVE_ISBLANK.
81359         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81360         case.
81361
81362 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81363
81364         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81365         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81366         brackets.  Other minor changes to suppress some compiler
81367         warnings.
81368
81369 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81370         and Paul Eggert  <eggert@cs.ucla.edu>
81371
81372         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81373         of invoking obsolescent AC_HEADER_DIRENT macro.
81374         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81375         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81376         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81377         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81378         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81379         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81380         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81381         * m4/readdir.m4: Remove; no longer needed.
81382
81383 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81384         and Paul Eggert  <eggert@cs.ucla.edu>
81385
81386         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81387         Don't worry about this obsolete case any more.
81388         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81389         directories.
81390         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81391         worry about this obsolete case any more.
81392         * lib/fts.c: Likewise.
81393         * lib/getcwd.c: Likewise.
81394         * lib/glob.h: Likewise.
81395         * lib/savedir.c: Likewise.
81396
81397 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81398
81399         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81400         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81401         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81402         needed.
81403         All uses removed.
81404         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81405         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81406         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81407         needed.
81408         * m4/getdate.m4 (gl_GETDATE): Likewise.
81409         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81410         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81411         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81412         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81413         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81414         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81415         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81416         needed.
81417
81418 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81419
81420         * lib/memcasecmp.c: Include <limits.h>.
81421         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81422         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81423         Don't assume isdigit succeeds only on '0' through '9'.
81424
81425 2006-07-05  Eric Blake  <ebb9@byu.net>
81426
81427         * modules/getaddrinfo (Depends-on): Add snprintf.
81428
81429 2006-07-05  Eric Blake  <ebb9@byu.net>
81430
81431         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81432         to avoid 'header present but could not be compiled' on cygwin.
81433
81434 2006-07-05  Eric Blake  <ebb9@byu.net>
81435
81436         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81437         missing from netdb.h.
81438         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81439
81440 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81441
81442         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81443         no longer needed.
81444         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81445         * m4/getdate.m4 (gl_GETDATE): Likewise.
81446         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81447         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81448         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81449         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81450         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81451
81452 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81453
81454         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81455         All uses of is_space replaced by isspace.
81456         * lib/exit.h: Don't talk about STDC_HEADERS.
81457         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81458         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81459         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81460         replaced by isprint etc.
81461         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81462         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81463         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81464         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81465         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81466         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81467
81468 2006-07-05  Bruno Haible  <bruno@clisp.org>
81469
81470         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81471         the function exists, before testing against AIX.
81472         Reported by Martin Lambers <marlam@marlam.de>.
81473
81474 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81475
81476         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81477         From Mark D. Baushke.
81478
81479 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81480
81481         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81482         to the absolute name, not just one, to bypass Sun C 5.8's
81483         "warning: #include of /usr/include/... may be non-portable".
81484
81485 2006-07-04  Eric Blake  <ebb9@byu.net>
81486
81487         * modules/dirname-tests: New test module.
81488         * tests/test-dirname.c: New file, replacing dirname.c
81489         TEST_DIRNAME section that was recently deleted.
81490
81491 2006-07-04  Bruno Haible  <bruno@clisp.org>
81492
81493         Assume ANSI C header files and <ctype.h> functions.
81494         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81495         (mbsnwidth): Use isprint, iscntrl instead.
81496
81497 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81498
81499         Merge from coreutils.
81500         * MODULES.html.sh: Add xstrtold.
81501         * modules/xstrtold: New file.
81502         * modules/cycle-check (Files): Add lib/same-inode.h.
81503         * modules/dirname (Files): Add m4/double-slash-root.m4.
81504         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81505         * modules/mkdir-p (Files): Add lib/same-inode.h.
81506         * modules/same (Files): Add lib/same-inode.h.
81507
81508 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81509
81510         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81511         This is to keep the terminology clean; POSIX talks about
81512         "absolute pathnames", not "full pathnames", but the GNU
81513         Coding Standards say to use "path" for something else;
81514         so use "absolute" to keep both sides happy.
81515         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81516         Set gl_absolute_header, not gl_full_header_path.
81517         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81518         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81519         All uses changed.
81520
81521         Merge from coreutils.
81522
81523         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81524
81525         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81526         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81527         want to require the building of c-strtod.o.
81528         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81529         needs -lm directly.
81530         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81531
81532         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81533
81534         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81535         --as-needed option if available.  Problem reported by Albert Chin in
81536         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81537         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81538         cc merely issues a bunch of annoying warnings for --as-needed
81539         (this problem was reported by Bob Proulx).  Also, try linking with
81540         -lm to detect a bug in binutils 2.16 (this problem was reported
81541         by Ralf Wildenhues).
81542
81543         2006-06-18  Jim Meyering  <jim@meyering.net>
81544
81545         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81546         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81547         macro.
81548         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81549         also check for glibc-2.4's abort-inducing bug.
81550
81551         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81552         Low-probability clean-up should be to use rmdir to get rid of
81553         the just-created directory, not unlink.
81554
81555         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81556         configure fail, and request a bug report to inform us about it.
81557         Add a comment that, barring reports to the contrary, in 2007 we'll
81558         assume ftruncate is universally available.
81559
81560         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81561
81562         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81563
81564         2006-03-12  Jim Meyering  <jim@meyering.net>
81565
81566         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81567         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81568         * m4/same.m4 (gl_SAME): Likewise.
81569         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81570
81571         2006-03-11  Eric Blake  <ebb9@byu.net>
81572
81573         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81574         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81575         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81576         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81577
81578 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81579
81580         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81581         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81582         reported by Mark D. Baushke, one in
81583         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81584
81585         Merge from coreutils.
81586
81587         * lib/.cppi-disable: Add stdint_.h.
81588         * lib/.cvsignore: Add stdint.h.
81589
81590         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81591
81592         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81593         both double and long double versions.
81594         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81595         * lib/xstrtold.c: New file.
81596         * lib/xstrtod.h (xstrtold): New decl.
81597
81598         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81599
81600         * lib/filemode.c (setst): Remove.
81601         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81602         (arguably) clearer, and the generated code is a bit smaller on my
81603         Debian GNU/Linux stable x86 host.
81604
81605         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81606
81607         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81608         Assume that filemode.h includes sys/types.h and sys/stat.h.
81609         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81610         (ftypelet): Reorder to put common cases first, for efficiency.
81611         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81612         to do 'M'.
81613         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81614         of 10, for compatibility with FreeBSD.  All callers changed.
81615         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81616         types that can't be deduced solely from st_mode.  First arg is now a
81617         const pointer.
81618         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81619         (strmode): Renamed from mode_string.
81620         (filemodestring): New decl.
81621         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81622         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81623         needed.
81624         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81625
81626         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81627
81628         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81629         fsusage.h now does that.  Include fsusage.h first, to test interface.
81630         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81631         at most one method (the old code could have generated decls that
81632         didn't conform to C89, not that this was ever exercised).
81633         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81634
81635         2006-03-19  Jim Meyering  <jim@meyering.net>
81636
81637         Work even in a chroot where d_ino values for entries in "/"
81638         don't match the stat.st_ino values for the same names.
81639         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81640         number, iterate through all entries again, using lstat instead.
81641         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81642         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81643
81644         * lib/getcwd.c (__getcwd): Clarify a comment.
81645         Use memcpy in place of a call to strcpy.
81646
81647         2006-03-12  Jim Meyering  <jim@meyering.net>
81648
81649         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81650         matches that of the current directory (which we're about to chdir ".."
81651         out of), then save the dev-ino of the parent, instead.
81652
81653         * lib/same-inode.h (SAME_INODE): New file/macro.
81654         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81655         Include "same-inode.h", instead.
81656         * lib/same.c: Likewise.
81657         * lib/cycle-check.h: Include "same-inode.h".
81658         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81659         * lib/cycle-check.c (SAME_INODE): Remove definition.
81660         * lib/root-dev-ino.h: Include "same-inode.h".
81661
81662         2006-03-11  Eric Blake  <ebb9@byu.net>
81663
81664         * lib/same.c (same_name): s/base_name/last_component/
81665         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81666         * lib/filenamecat.c (file_name_concat): Likewise.
81667
81668         2006-03-11  Eric Blake  <ebb9@byu.net>,
81669                     Paul Eggert  <eggert@cs.ucla.edu>
81670
81671         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81672         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81673         drive prefix.
81674         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81675         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81676         (last_component): New method.
81677         * lib/dirname.c (dir_len): Determine when drive letters need a
81678         subsequent slash.  Preserve // when it is special.
81679         (dir_name): Don't append dot when drive letter is absolute.
81680         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81681         * lib/basename.c (base_name): New semantics - malloc the result.
81682         Preserve // when it is special.  Preserve relative files that look
81683         like drive letters.
81684         (base_len): Preserve // when it is special.
81685         (last_component): New method, similar to old base_name semantics.
81686         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81687         base_name.  Strip redundant slashes from ///.
81688
81689 2006-07-03  Jim Meyering  <jim@meyering.net>
81690
81691         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81692         macro is used before the first cycle_check call.
81693
81694 2006-07-03  Eric Blake  <ebb9@byu.net>
81695
81696         * modules/dirname (Depends-on): Add xstrndup.
81697
81698 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81699
81700         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81701         test cases, so that config.log is a bit easier to follow.
81702
81703 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81706         both are 64 bits, since this seems to be the tradition, and this
81707         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81708         we ever run into a host that prefers long long to long in this
81709         case, we'll need another configure-time test.  Problem reported by
81710         Jim Meyering.
81711
81712 2006-07-02  Eric Blake  <ebb9@byu.net>
81713
81714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81715
81716 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81717
81718         * modules/inttypes (Depends-on): No longer depends on stdint.
81719         * modules/stdint (Description): Say more about assumptions.
81720         Say that the fast types might differ.  Say macros are used.
81721         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81722         (Makefile.am): Revise list of substituted symbols to match
81723         new stdint.m4.
81724         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81725         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81726         * tests/test-stdint.c (verify_same_types)
81727         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81728         the code conforms to C99/C89.
81729         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81730         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81731
81732 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81733
81734         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81735         but fix a bug, by requiring at least 64 bits.
81736         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81737         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81738         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81739         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81740
81741         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81742         changes.  Make 2.59 a prerequisite.  Check and substitute for
81743         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81744         inttypes.h.  Do not use special include files; just use the
81745         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81746         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81747         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81748         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81749         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81750         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81751         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81752         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81753         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81754         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81755         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81756         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81757         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81758         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81759         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81760         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81761         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81762         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81763         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81764         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81765         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81766         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81767         not check for things that C99 does not require, e.g., int8_t.  If
81768         a test isn't needed unless <stdint.h> isn't working, and is
81769         unlikely to be needed for any other reason, then don't do it
81770         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81771         size_t, since we assume C89 freestanding at least.  Do not check
81772         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81773         the right thing even if the types are not defined.  Instead use:
81774         (gl_STDINT_TYPE_PROPERTIES): New macro.
81775         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81776         testing whether <sys/types.h> clashes, as Autoconf does this for
81777         us now.  All uses removed.
81778         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81779         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81780         (gl_CHECK_TYPE_SAME):
81781         Remove; no longer needed.
81782         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81783         exists, since we'll return 0 anyway in that case.
81784         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81785
81786 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81787
81788         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81789         possible collision with system files.
81790         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81791         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81792         WCHAR_MIN and WCHAR_MAX in this case.
81793         (<stddef.h>): Do not include; no longer needed.
81794         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81795         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81796         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81797         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81798         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81799         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81800         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81801         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81802         !defined(__c99))]: Include in this case too, since it's harmless
81803         now.
81804         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81805         dangerous to do so.
81806         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81807         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81808         (_STDINT_MIN, _STDINT_MAX): New macros.
81809         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81810         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81811         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81812         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81813         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81814         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81815         macros, not typedefs; this simplifies things quite a bit.
81816         Use long int for all types narrower than int64_t.
81817         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81818         Define in terms of long long int or int64_t or long int,
81819         not int64_t or int32_t.  This saves some compile-time testing.
81820         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81821         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81822         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81823         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81824         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81825         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81826         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81827         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81828         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81829         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81830         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81831         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81832         undef any previous version and define our own version, for
81833         simplicity and consistency with the new macros for types.
81834         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81835         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81836         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81837         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81838         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81839         @WINT_T_SUFFIX@ to keep things simple here.
81840         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81841         Simplify by assuming typical 8/16/32/64 host, since we're
81842         already doing that elsewhere anyway.
81843         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81844         and assume long long int is 64 bits if available.  This
81845         speeds up 'configure'.
81846
81847 2006-07-01  Eric Blake  <ebb9@byu.net>
81848
81849         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81850         Reported by Andreas Buening.
81851
81852 2006-07-01  Eric Blake  <ebb9@byu.net>
81853
81854         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81855
81856 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81857
81858         * lib/getaddrinfo.c: fixed typo
81859
81860 2006-06-29  Jim Meyering  <jim@meyering.net>
81861
81862         * modules/strftime (Maintainer): Add my name, since with the
81863         FPRINTFTIME changes strftime.c has forked from glibc.
81864
81865 2006-06-29  Eric Blake  <ebb9@byu.net>
81866
81867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81868
81869 2006-06-29  Eric Blake  <ebb9@byu.net>
81870
81871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81872
81873 2006-06-29  Eric Blake  <ebb9@byu.net>
81874
81875         * lib/stat_.h: New file.
81876
81877 2006-06-29  Eric Blake  <ebb9@byu.net>
81878
81879         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81880         unused static function.
81881
81882 2006-06-29  Eric Blake  <ebb9@byu.net>
81883
81884         * doc/functions.texi (Function Portability): Document missing lstat
81885         on mingw.
81886
81887 2006-06-29  Eric Blake  <ebb9@byu.net>
81888
81889         * MODULES.html.sh: Add sys_stat.
81890         * modules/sys_stat: New module.
81891         * modules/mkstemp (Depends-on): Add sys_stat.
81892
81893 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81894
81895         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81896
81897 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81898
81899         * m4/c-bs-a.m4: Removed.
81900
81901 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81902
81903         * lib/strftime.c: Assume strftime() exists.
81904
81905 2006-06-29  Derek Price  <derek@ximbiot.com>
81906
81907         * modules/c-bs-a: Removed - \a is C89.
81908         * MODULES.html.sh: Remove c-bs-a.
81909
81910 2006-06-29  Bruno Haible  <bruno@clisp.org>
81911
81912         * modules/wcwidth (License): Change to LGPL.
81913
81914 2006-06-28  Simon Josefsson  <jas@extundo.com>
81915
81916         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81917         on _WIN32.
81918
81919         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81920         getnameinfo.
81921
81922 2006-06-28  Simon Josefsson  <jas@extundo.com>
81923
81924         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81925
81926 2006-06-28  Simon Josefsson  <jas@extundo.com>
81927
81928         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81929         functions there.  It will succeed on Windows XP, but on Windows
81930         2000 and (presumably) earlier, it will fail, and use the internal
81931         re-implementation.
81932         (use_win32_p): New function.
81933         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81934         Support AI_NUMERICSERV to disable getservbyname.
81935         (getnameinfo): New function, only supports
81936         NI_NUMERICHOST|NI_NUMERICSERV for now.
81937
81938         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81939         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81940         getnameinfo.
81941
81942 2006-06-28  Eric Blake  <ebb9@byu.net>
81943
81944         * modules/wcwidth: New file.
81945         * modules/mbchar (Depends-on): Add wcwidth.
81946         * modules/mbswidth (Depends-on): Add wcwidth.
81947         * MODULES.html.sh: Add wcwidth.
81948
81949 2006-06-28  Eric Blake  <ebb9@byu.net>
81950
81951         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81953
81954 2006-06-28  Eric Blake  <ebb9@byu.net>
81955
81956         * lib/xvasprintf.h: Fix comments.
81957
81958 2006-06-28  Eric Blake  <ebb9@byu.net>
81959
81960         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81961         * lib/mbswidth.c (wcwidth): Move from here...
81962         * lib/wcwidth.h: ...to this new file.
81963
81964 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81965
81966         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81967
81968         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81969         it's obsolete.
81970         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81971
81972 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81973
81974         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81975         Autoconf 2.60 says this stuff was obsolete.
81976
81977 2006-06-28  Bruno Haible  <bruno@clisp.org>
81978
81979         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81980
81981 2006-06-28  Bruno Haible  <bruno@clisp.org>
81982
81983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81984         gt_TYPE_WCHAR_T.
81985
81986 2006-06-28  Bruno Haible  <bruno@clisp.org>
81987
81988         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81989         declaration for wcwidth.
81990         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81991
81992 2006-06-28  Bruno Haible  <bruno@clisp.org>
81993
81994         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81995         (mkdir): Define using _mkdir.
81996
81997 2006-06-28  Bruno Haible  <bruno@clisp.org>
81998
81999         * lib/getaddrinfo.h: Fix POSIX URL.
82000         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82001         _WIN32.
82002         (use_win32_p): Make static.
82003         (getaddrinfo): Reject service name if it is empty or does not consist
82004         solely of decimal digits, or if its value is > 65535.
82005         (getnameinfo): Remove useless casts.
82006
82007 2006-06-27  Simon Josefsson  <jas@extundo.com>
82008
82009         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82010         Eggert and Martin Lambers.
82011
82012 2006-06-27  Simon Josefsson  <jas@extundo.com>
82013
82014         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82015         Eggert and Martin Lambers.
82016
82017 2006-06-27  Bruno Haible  <bruno@clisp.org>
82018
82019         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82020         result to 0, not to empty.
82021         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82022
82023 2006-06-27  Bruno Haible  <bruno@clisp.org>
82024
82025         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82026
82027 2006-06-26  Simon Josefsson  <jas@extundo.com>
82028
82029         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82030         present.
82031
82032 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82033
82034         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82035         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82036         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82037
82038 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82039
82040         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82041
82042 2006-06-26  Bruno Haible  <bruno@clisp.org>
82043
82044         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82045
82046 2006-06-26  Bruno Haible  <bruno@clisp.org>
82047
82048         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82049
82050 2006-06-26  Bruno Haible  <bruno@clisp.org>
82051
82052         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82053         SGI C compiler in pre-C99 mode.
82054         Suggested by Mark D. Baushke and Larry Jones.
82055
82056 2006-06-26  Bruno Haible  <bruno@clisp.org>
82057
82058         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82059         WCHAR_MAX.
82060         Reported by Mark D. Baushke and Larry Jones.
82061
82062 2006-06-26  Bruno Haible  <bruno@clisp.org>
82063
82064         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82065         in pre-C99 mode.
82066         Suggested by Mark D. Baushke and Larry Jones.
82067
82068 2006-06-23  Simon Josefsson  <jas@extundo.com>
82069             Bruno Haible  <bruno@clisp.org>
82070
82071         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82072         Emit mostlyclean-local rule.
82073         (func_emit_tests_Makefile_am): Likewise.
82074         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82075
82076 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82077
82078         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82079
82080 2006-06-23  Bruno Haible  <bruno@clisp.org>
82081
82082         * tests/test-stdint.c: Update to match ISO C 99 Technical
82083         Corrigendum 1.
82084
82085 2006-06-23  Bruno Haible  <bruno@clisp.org>
82086
82087         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82088
82089 2006-06-23  Bruno Haible  <bruno@clisp.org>
82090
82091         * lib/stdint_.h: Treat IRIX like OpenBSD.
82092
82093 2006-06-23  Bruno Haible  <bruno@clisp.org>
82094
82095         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82096         ISO C 99 Technical Corrigendum 1.
82097
82098 2006-06-22  Simon Josefsson  <jas@extundo.com>
82099
82100         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82101         MinGW.
82102
82103 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82104
82105         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82106         needed.  Some compiler complained about some of them.  Problem reported
82107         by Larry Jones in
82108         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82109
82110 2006-06-21  Simon Josefsson  <jas@extundo.com>
82111
82112         * tests/test-getaddrinfo.c: New file.
82113
82114         * modules/getaddrinfo-tests: New file.
82115
82116         * MODULES.html.sh: Add inet_pton.
82117
82118         * modules/inet_pton: New file.
82119
82120 2006-06-21  Simon Josefsson  <jas@extundo.com>
82121
82122         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82123         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82124         of using the (limited) gnulib implementation on Windows XP.
82125
82126         * m4/inet_pton.m4: New file.
82127
82128 2006-06-21  Simon Josefsson  <jas@extundo.com>
82129
82130         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82131         variable.
82132
82133         * lib/socket_.h: Don't define WINVER.
82134
82135         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82136         slightly modified to work in gnulib.
82137
82138 2006-06-21  Simon Josefsson  <jas@extundo.com>
82139
82140         * doc/gnulib.texi (Windows sockets): Add.
82141
82142 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82143
82144         * lib/read-file.c (fread_file): Start with buffer allocation of
82145         0 bytes rather than 1 byte; this simplifies the code.
82146         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82147         code to free buffer and save/restore errno.
82148         (internal_read_file): Remove unused local.
82149
82150 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82151
82152         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82153         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82154         Problem reported by Denis Excoffier in
82155         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82156
82157 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82158
82159         * modules/sys_socket, modules/socklen: Include sys/types since
82160         FreeBSD 4.x's sys/socket.h needs it.
82161
82162 2006-06-19  Simon Josefsson  <jas@extundo.com>
82163
82164         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82165
82166 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82167
82168         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82169
82170 2006-06-19  Bruno Haible  <bruno@clisp.org>
82171
82172         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82173         and FULL_PATH_INTTYPES_H in angle brackets.
82174         Reported by Mark D. Baushke <mdb@gnu.org>.
82175
82176 2006-06-17  Eric Blake  <ebb9@byu.net>
82177
82178         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82179         errno.
82180
82181 2006-06-17  Bruno Haible  <bruno@clisp.org>
82182
82183         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82184         <sys/inttypes.h>.
82185
82186 2006-06-17  Bruno Haible  <bruno@clisp.org>
82187
82188         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82189         whether errno is declared. Assume <errno.h> declares errno.
82190
82191 2006-06-17  Bruno Haible  <bruno@clisp.org>
82192
82193         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82194
82195 2006-06-17  Bruno Haible  <bruno@clisp.org>
82196
82197         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82198         problem on Solaris 2.5.1.
82199
82200 2006-06-16  Eric Blake  <ebb9@byu.net>
82201
82202         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82203         * lib/unicodeio.c [!defined errno]: Likewise.
82204         * lib/strtol.c [!defined errno]: Likewise.
82205         * lib/strtod.c [!defined errno]: Likewise.
82206
82207 2006-06-15  Eric Blake  <ebb9@byu.net>
82208
82209         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82210
82211 2006-06-15  Eric Blake  <ebb9@byu.net>
82212
82213         * config/srclist.txt (ssize_t.m4): Lose sync.
82214
82215 2006-06-15  Bruno Haible  <bruno@clisp.org>
82216
82217         * modules/stdint (Files): Include m4/full-header-path.m4,
82218         m4/size_max.m4, m4/wchar_t.m4.
82219         (Makefile.am): Many more substitutions.
82220         * modules/stdint-tests: New file.
82221         * tests/test-stdint.c: New file.
82222
82223 2006-06-15  Bruno Haible  <bruno@clisp.org>
82224
82225         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82226         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82227         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82228         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82229         gl_CHECK_TYPE_SAME): New macros.
82230
82231 2006-06-15  Bruno Haible  <bruno@clisp.org>
82232
82233         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82234
82235 2006-06-15  Bruno Haible  <bruno@clisp.org>
82236
82237         * lib/stdint_.h: Rewritten to be fully auto-configured.
82238         Fixes bug on HP-UX/IA64.
82239
82240 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82241
82242         * lib/getdate.y (__attribute__): Don't define if already defined.
82243         Problem reported by Larry Jones.
82244         * lib/utimens.c (__attribute__): Likewise.
82245
82246 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82247
82248         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82249         reported by Andreas Schwab.
82250
82251 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82252             Bruno Haible  <bruno@clisp.org>
82253
82254         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82255         check for the declaration of strnlen and a run test that exposes the
82256         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82257         rpl_strndup.
82258
82259 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82260             Bruno Haible  <bruno@clisp.org>
82261
82262         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82263
82264 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82265
82266         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82267         compile test, for Tru64 4.0D.
82268
82269 2006-05-28  Karl Berry  <karl@gnu.org>
82270
82271         * config/srclist.txt (printf-args.c): lose sync.
82272
82273 2006-05-26  Martin Lambers  <marlam@marlam.de>
82274
82275         * lib/getpass.c: Updates the test for the native W32 API, and adds
82276         missing includes, thus fixing compilation warnings.
82277
82278 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82279
82280         * lib/exclude.c (exclude_fnmatch): New function.
82281         (excluded_file_name): Call exclude_fnmatch.
82282         * lib/exclude.h (excluded_file_name): New prototype
82283
82284 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82285
82286         * lib/tempname.c (small_open, large_open): New macros.
82287         (__open, __open64) [!_LIBC]: Remove.
82288         (__gen_tempname): Use small_open and large_open instead of __open
82289         and __open64.  This fixes a portability bug on HP-UX 11.11i
82290         reported by Simon Wing-Tang in
82291         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82292
82293 2006-05-24  Bruno Haible  <bruno@clisp.org>
82294
82295         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82296         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82297         Reported by Thorsten Maerz <torte@netztorte.de> via
82298         Aaron Stone <aaron@serendipity.cx>.
82299
82300 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82301
82302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82303         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82304         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82305         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82306         not really conditional on the cache.
82307         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82308
82309 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82310
82311         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82312         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82313         (my_usleep): Don't mishandle maximum value.
82314
82315 2006-05-19  Jim Meyering  <jim@meyering.net>
82316
82317         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82318
82319 2006-05-17  Bruno Haible  <bruno@clisp.org>
82320
82321         Cygwin portability.
82322         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82323
82324 2006-05-17  Bruno Haible  <bruno@clisp.org>
82325
82326         * lib/stdint_.h: Fix recognition of Cygwin.
82327
82328 2006-05-15  Bruno Haible  <bruno@clisp.org>
82329
82330         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82331         on libtool patch by Ralf Wildenhues.
82332
82333 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82334
82335         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82336         test for C99 conformance; (bool) 0.5 is an integer constant
82337         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82338         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82339
82340 2006-05-11  Simon Josefsson  <jas@extundo.com>
82341
82342         * m4/xvasprintf.m4: Fix obvious typo.
82343
82344 2006-05-11  Jim Meyering  <jim@meyering.net>
82345
82346         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82347         James Lemley.
82348
82349 2006-05-10  Simon Josefsson  <jas@extundo.com>
82350
82351         * lib/md4.c: Typo fix, update copyright years.
82352         (K1, K2): Don't use L because it turn computations into 64-bit on
82353         64-bit platforms.
82354
82355 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82356
82357         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82358         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82359         unwanted sign propagation, e.g., on hosts with 64-bit int.
82360         There still are some problems with reeelly weird theoretical hosts
82361         (e.g., 33-bit int) but it's not worth worrying about now.
82362         * lib/sha1.c (rol): Likewise.
82363         (K1, K2, K3, K4): Remove unnecessary L suffix.
82364
82365 2006-05-10  Bruno Haible  <bruno@clisp.org>
82366
82367         * lib/des.c: Cast to avoid warnings.
82368
82369 2006-05-09  Bruno Haible  <bruno@clisp.org>
82370
82371         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82372         (Depends-on): Depend also on xsize, stdarg.
82373         (configure.ac): Add gl_XVASPRINTF.
82374
82375 2006-05-09  Bruno Haible  <bruno@clisp.org>
82376
82377         * m4/xvasprintf.m4: New file.
82378
82379 2006-05-09  Bruno Haible  <bruno@clisp.org>
82380
82381         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82382         (EOVERFLOW): Define fallback value.
82383         (xstrcat): New function.
82384         (xvasprintf): Recognize the special case of a string concatenation.
82385
82386 2006-05-08  Eric Blake  <ebb9@byu.net>
82387
82388         * gnulib-tool (func_version): Base copyright year on CVS date.
82389         (func_emit_copyright_notice): New function.
82390         (func_emit_lib_Makefile_am): Use it.
82391         (func_emit_tests_Makefile_am): Likewise.
82392         (func_import): Likewise.
82393
82394 2006-05-08  Bruno Haible  <bruno@clisp.org>
82395
82396         * modules/stdarg: New file.
82397         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82398
82399 2006-05-08  Bruno Haible  <bruno@clisp.org>
82400
82401         * m4/stdarg.m4: New file, from GNU gettext.
82402
82403 2006-05-08  Bruno Haible  <bruno@clisp.org>
82404
82405         * config/srclist.txt (build-aux/config.rpath): different from latest
82406         release.
82407
82408 2006-05-08  Bruno Haible  <bruno@clisp.org>
82409
82410         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82411
82412 2006-05-05  Jim Meyering  <jim@meyering.net>
82413
82414         * m4/warning.m4: New file, derived from bison's file by the same name.
82415
82416 2006-05-03  Bruno Haible  <bruno@clisp.org>
82417
82418         * lib/stdint_.h: Shorter URL.
82419         * lib/inttypes.h: Likewise.
82420
82421 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82422
82423         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82424
82425 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82426
82427         * lib/verify.h: Document the internals better.  Most of this change
82428         was written by Bruno Haible.
82429
82430 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82431
82432         * doc/verify.texi: New file, partly based on a proposal by
82433         Bruno Haible.
82434
82435 2006-05-02  Bruno Haible  <bruno@clisp.org>
82436
82437         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82438         test from here...
82439         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82440
82441 2006-04-29  Bruno Haible  <bruno@clisp.org>
82442
82443         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82444         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82445
82446 2006-04-29  Bruno Haible  <bruno@clisp.org>
82447
82448         * gnulib-tool: Make --update option actually work.
82449
82450 2006-04-29  Bruno Haible  <bruno@clisp.org>
82451
82452         * doc/gcd.texi: New file.
82453         * doc/gnulib.texi: Include it.
82454
82455 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82456
82457         * lib/getdate.y (get_date): When adding relative date, start with the
82458         initial time, not with the result of the first mktime call.
82459
82460 2006-04-25  Bruno Haible  <bruno@clisp.org>
82461
82462         * gnulib-tool (func_import): Output the include directives in three
82463         blocks, sorted separately.
82464         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82465
82466 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82467
82468         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82469         to define main with arguments, for C++.  Reported by Eric Blake.
82470         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82471         Prefer 'int main ()' to 'int main (void)', for C++.
82472         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82473         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82474         for 'main', for C99 and C++.
82475
82476 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82477
82478         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82479         Don't assume that exit status -1 is valid.
82480         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82481         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82482         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82483         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82484         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82485         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82486         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82487         functions can be used without declaring them, or that you can
82488         exit with status -1.
82489         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82490
82491 2006-04-24  Karl Berry  <karl@gnu.org>
82492
82493         * config/srclist.txt (longdouble.m4): sync lost.
82494
82495 2006-04-24  Eric Blake  <ebb9@byu.net>
82496
82497         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82498
82499 2006-04-24  Bruno Haible  <bruno@clisp.org>
82500
82501         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82502         poll() implementation in AIX.
82503         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82504
82505 2006-04-24  Bruno Haible  <bruno@clisp.org>
82506
82507         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82508         assigned exactly once.
82509
82510 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82511             Bruno Haible  <bruno@clisp.org>
82512
82513         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82514         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82515         for AM_CPPFLAGS.
82516
82517 2006-04-23  Bruno Haible  <bruno@clisp.org>
82518
82519         * modules/copy-file: Depend on unistd.
82520         * modules/execute: Likewise.
82521         * modules/fatal-signal: Likewise.
82522         * modules/findprog: Likewise.
82523         * modules/mkdtemp : Likewise.
82524         * modules/pipe: Likewise.
82525         * modules/wait-process: Likewise.
82526
82527 2006-04-23  Bruno Haible  <bruno@clisp.org>
82528
82529         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82530         condition was already detected.
82531         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82532
82533 2006-04-23  Bruno Haible  <bruno@clisp.org>
82534
82535         * lib/copy-file.c: Include <unistd.h> unconditionally.
82536         * lib/execute.c: Likewise.
82537         * lib/fatal-signal.c: Likewise.
82538         * lib/findprog.c: Likewise.
82539         * lib/mkdtemp.c: Likewise.
82540         * lib/pipe.h: Likewise.
82541         * lib/pipe.c: Likewise.
82542         * lib/wait-process.h: Likewise.
82543
82544 2006-04-23  Bruno Haible  <bruno@clisp.org>
82545
82546         * gnulib-tool (func_usage): Fix --import description. Document
82547         --update.
82548         (func_import): Create temporary file in a temporary directory, if
82549         --dry-run is specified. Silence errors from 'grep' when there are no
82550         m4 files in $m4dir.
82551         (func_create_testdir): Silence errors from 'grep' when there are no
82552         m4 files in $m4dir.
82553         Reported by Karl Berry <karl@freefriends.org>.
82554
82555 2006-04-20  Bruno Haible  <bruno@clisp.org>
82556
82557         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82558         one argument, so that the code will be portable to Autoconf 2.60.
82559         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82560         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82561         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82562
82563 2006-04-19  Derek Price  <derek@ximbiot.com>
82564             Eric Blake  <ebb9@byu.net>
82565
82566         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82567         rather than "/full/path.h".  Update comment to match.  Shorten &
82568         generalize m4_translit call via AS_TR_CPP.
82569
82570 2006-04-19  Derek Price  <derek@ximbiot.com>
82571             Eric Blake  <ebb9@byu.net>
82572
82573         * lib/inttypes.h: Correct grammar in comment.
82574
82575 2006-04-18  Derek Price  <derek@ximbiot.com>
82576             Paul Eggert  <eggert@cs.ucla.edu>
82577
82578         * modules/inttypes: New file.
82579         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82580
82581 2006-04-18  Derek Price  <derek@ximbiot.com>
82582             Paul Eggert  <eggert@cs.ucla.edu>
82583
82584         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82585         New files.
82586
82587 2006-04-18  Derek Price  <derek@ximbiot.com>
82588             Paul Eggert  <eggert@cs.ucla.edu>
82589
82590         * lib/inttypes.h: New file.
82591         * lib/strtoimax.c: Assume <inttypes.h>.
82592
82593 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82594
82595         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82596         isn't mounted.  Problem reported by Kir Kolyshkin.
82597
82598 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82599
82600         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82601         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82602         Derek R. Price.
82603         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82604         implementation.
82605
82606 2006-04-12  Eric Blake  <ebb9@byu.net>
82607
82608         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82609         is now done automatically by the corresponding Autoconf macro.
82610
82611 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82612
82613         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82614         time_r.h.
82615
82616 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82617
82618         Merge regex changes from libc, removing some of our
82619         POSIX-conformance changes that were rejected and redoing them in a
82620         less-intrusive way.
82621
82622         * lib/regcomp.c (re_compile_internal, init_dfa):
82623         Length arg is now size_t, not Idx.  All uses changed.
82624         (peek_token): Forward decl now says internal_function.
82625         (__re_error_msgid, __re_error_msgid_idx):
82626         Now static rather than extern with attribute_hidden.
82627         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82628         For some reason libc prefers K&R style defns for external functions.
82629         (regerror) [!defined _LIBC]: Likewise.
82630         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82631         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82632         (build_range_exp, build_collating_symbol):
82633         Use K&R-style defn.
82634         (re_compile_fastmap): Use '\0' to memset, not 0.
82635         (utf8_sb_map): Make the calculations more obvious.
82636         (init_dfa, parse_bracket_exp, build_charclass_op):
82637         Call calloc and cast result, as glibc does.
82638         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82639         (build_range_exp, build_collating_symbol):
82640         Now internal functions.
82641
82642         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82643
82644         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82645         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82646         Don't depend on VMS; depend on __VMS instead, for POSIX
82647         namespace cleanness.
82648         (regoff_t): Define to ssize_t, not long int.
82649
82650         Remove the REG_ macros named below.  Instead, make the old names
82651         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82652         __USE_GNU_REGEX.
82653         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82654         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82655         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82656         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82657         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82658         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82659         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82660         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82661         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82662         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82663         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82664         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82665         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82666         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82667         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82668         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82669         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82670         (REG_NREGS):
82671         Remove.  All uses replaced by the old RE_* names.
82672         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82673         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82674         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82675         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82676         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82677         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82678         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82679         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82680         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82681         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82682         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82683         Don't bother having these macros be independent of each others'
82684         values, since they no longer exist in the POSIX name space.
82685
82686         Rename the following member names back to their old names,
82687         unless !__USE_GNU_REGEX.  All uses changed back.
82688         (buffer): Renamed from re_buffer.
82689         (allocated): Renamed from re_allocated.
82690         (used): Renamed from re_used.
82691         (syntax): Renamed from re_syntax.
82692         (fastmap): Renamed from re_fastmap.
82693         (translate): Renamed from re_translate.
82694         (can_be_null): Renamed from re_can_be_null.
82695         (regs_allocated): Renamed from re_regs_allocated.
82696         (fastmap_accurate): Renamed from re_fastmap_accurate.
82697         (no_sub): Renamed from re_no_sub.
82698         (not_bol): Renamed from re_not_bol.
82699         (not_eol): Renamed from re_not_eol.
82700         (newline_anchor): Renamed from re_newline_anchor.
82701         (num_regs): Renamed from rm_num_regs.
82702         (start): Renamed from rm_start.
82703         (end): Renamed from rm_end.
82704
82705         (free_state): Move up a bit.
82706
82707         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82708         #define to be empty.
82709         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82710         when that is what is intended.
82711         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82712         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82713         (MAX): New macro.
82714         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82715         All uses changed back to re_malloc, etc.  It's now the caller's
82716         responsibility to check for overflow; all callers changed.
82717         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82718         (re_x2nrealloc): Remove.
82719         (free_state): Remove decl.
82720
82721         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82722         (re_set_registers, re_exec):
82723         Use K&R-style defn.
82724
82725         2006-01-31  Roland McGrath  <roland@redhat.com>
82726
82727         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82728         Reported by Mike Frysinger <vapier@gentoo.org>.
82729
82730         2006-01-15  Andreas Jaeger  <aj@suse.de>
82731
82732         [BZ #1950]
82733         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82734         build_wcs_upper_buffer change.
82735         (build_wcs_upper_buffer): Change return type.
82736
82737         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82738
82739         * lib/regex_internal.h: Include <stdint.h> if available.
82740
82741         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82742
82743         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82744
82745         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82746
82747         * lib/regcomp.c: Adjust for changed secondary hash function.
82748
82749         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82750
82751         * lib/regex.h: Pretty printing.
82752         Clean up namespace a bit.
82753
82754         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82755
82756         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82757         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82758
82759         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82760                     Ulrich Drepper  <drepper@redhat.com>
82761
82762         [BZ #1302]
82763         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82764         changed.
82765         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82766
82767         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82768
82769         [BZ #281]
82770         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82771         * lib/regcomp.c: Remove unnecessary uses of
82772         unsigned RE_TRANSLATE_TYPE.
82773         * lib/regex_internal.h: Likewise.
82774         * lib/regex_internal.c: Likewise.
82775         * lib/regexec.c: Likewise.
82776         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82777
82778         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82779
82780         * lib/regexec.c (find_recover_state): Remove unnecessary
82781         initialization.
82782         (transit_state_bkref): Make DFA a const pointer.
82783         (get_subexp): Likewise.
82784         (check_arrival): Likewise.
82785         (update_cur_sifted_state): Likewise.
82786         (re_search_internal): Likewise.
82787         (prune_impossible_nodes): Likewise.
82788         (acquire_init_state_context): Likewise.
82789         (proceed_next_node): Likewise.
82790         (set_regs): Likewise.
82791         (free_fail_stack_return): Likewise.
82792         (check_arrival_expand_ecl): Mark DFA parameter as const.
82793         (check_arrival_expand_ecl_sub): Likewise.
82794         (check_subexp_limits): Likewise.
82795         (sub_epsilon_src_nodes):  Likewise.
82796         (add_epsilon_src_nodes):  Likewise.
82797         (merge_state_array): Likewise.
82798         (update_regs): Likewise.
82799         (build_trtable): Likewise.
82800         (sift_states_backward): Mark MCTX parameter as const.
82801         (build_sifted_states): Likewise.
82802         (update_cur_sifted_state): Likewise.
82803         (sift_states_mkref): Likewise.
82804         (check_arrival_expand_ecl): Mark eclosure as const.
82805         (check_dst_limits_calc_pos_1): Likewise.
82806         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82807         pointer.
82808
82809         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82810
82811         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82812         (transit_state_sb): Likewise.
82813         (transit_state_mb): Likewise.
82814         (sift_states_iter_mb): Likewise.
82815         (check_arrival_add_next_nodes): Likewise.
82816         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82817         [_LIBC] (re_search_2_stub): Use mempcpy.
82818
82819         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82820         mbrtowc for very simple UTF-8 case.
82821
82822         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82823         a pointer-to-const.
82824         (re_acquire_state_context): Likewise.
82825         * lib/regex_internal.h: Adjust prototypes.
82826
82827         * lib/regex.c: Prevent using C++ compilers.
82828
82829         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82830         (re_acquire_state_context): Likewise.
82831
82832 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82833
82834         * modules/regex (Depends-on): Add ssize_t.
82835
82836 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82837
82838         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82839         translation table.
82840
82841 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82842
82843         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82844
82845 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82846             Bruno Haible  <bruno@clisp.org>
82847
82848         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82849         <sys/types.h> and <inttypes.h>.
82850
82851 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82852
82853         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82854         `__error_t_defined', so argp.h will not typedef the former.
82855
82856 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82857
82858         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82859         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82860         glibc names.  Even if glibc is changed to conform to POSIX, the
82861         traditional names will be available anyway, since regex depends on
82862         the extensions module.  Also, fix a longstanding typo in the
82863         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82864         reported by Emanuele Giaquinta.  Also, change sense of cached
82865         variable, so that the message makes sense.
82866
82867 2006-03-24  Simon Josefsson  <jas@extundo.com>
82868
82869         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82870         including some doc fixes.
82871         (base64_encode_alloc): Fix +1 bug on allocation failures.
82872
82873 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82874
82875         * lib/base64.c (base64_encode): Do not read past end of array with
82876         unsanitized input on systems with CHAR_BIT > 8.
82877
82878 2006-03-24  Eric Blake  <ebb9@byu.net>
82879
82880         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82881
82882 2006-03-22  Karl Berry  <karl@gnu.org>
82883
82884         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82885         * config/srclistvars.sh (COREUTILS): new var.
82886
82887 2006-03-17  Jim Meyering  <jim@meyering.net>
82888
82889         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82890         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82891
82892 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82893
82894         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82895         no longer needs it.  Instead, check that regoff_t is as least
82896         as wide as ptrdiff_t.
82897
82898         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82899         so that our regex.h stays compatible with the installed regex.
82900         This is helpful for installers who configure --without-included-regex.
82901         Problem reported by Emanuele Giaquinta.
82902
82903 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82904
82905         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82906         Typedef to long int, not to off_, as POSIX will likely change
82907         in that direction.
82908
82909 2006-03-15  Eric Blake  <ebb9@byu.net>
82910
82911         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82912
82913 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82914
82915         * lib/argp-help.c (validate_uparams): Fix typo
82916         * lib/argp-parse.c (argp_default_options): Consistently begin help
82917         messages with a lowercase letter.
82918
82919 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82920
82921         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82922         overrun buffers and shouldn't be used (much as gets shouldn't be
82923         used).
82924         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82925
82926 2006-03-08  Simon Josefsson  <jas@extundo.com>
82927
82928         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82929         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82930
82931 2006-03-08  Simon Josefsson  <jas@extundo.com>
82932
82933         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82934         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82935
82936 2006-03-08  Simon Josefsson  <jas@extundo.com>
82937
82938         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82939         signal that configure disabled the device.
82940
82941 2006-03-08  Simon Josefsson  <jas@extundo.com>
82942
82943         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82944         languages.
82945
82946 2006-03-07  Simon Josefsson  <jas@extundo.com>
82947
82948         * modules/getopt (Depends-on): Add unistd.
82949
82950         * modules/unistd: New file.
82951
82952 2006-03-07  Simon Josefsson  <jas@extundo.com>
82953
82954         * modules/gc-random: New file.
82955
82956 2006-03-07  Simon Josefsson  <jas@extundo.com>
82957
82958         * m4/unistd_h.m4: New file.
82959
82960 2006-03-07  Simon Josefsson  <jas@extundo.com>
82961
82962         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82963         test to be side-effect free by storing the result in the cache
82964         variable gl_cv_lib_readline, and moving the assignment of
82965         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82966         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82967
82968 2006-03-07  Simon Josefsson  <jas@extundo.com>
82969
82970         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82971         error on missing devices (the functions will return an error).
82972
82973         * m4/gc.m4: Move random stuff to gc-random.m4
82974
82975 2006-03-07  Simon Josefsson  <jas@extundo.com>
82976
82977         * lib/unistd_.h: New file.
82978
82979 2006-03-07  Simon Josefsson  <jas@extundo.com>
82980
82981         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82982
82983 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82984
82985         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82986         Problem reported by Juan Manuel Guerrero.
82987
82988 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82989
82990         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82991         the unistd module.
82992         * lib/getlogin_r.c: Likewise.
82993         * lib/getlogin_r.h: Likewise.
82994         * lib/glob.c: Likewise.
82995         * lib/pagealign_alloc.c: Likewise.
82996         * lib/unistd_.h: Remove; no longer needed.
82997
82998 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82999
83000         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83001         Add unistd.
83002         * modules/c-stack (Depends-on): Add unistd.
83003         * modules/getlogin_r: Likewise.
83004         * modules/glob: Likewise.
83005         * modules/pagealign_alloc: Likewise.
83006         * modules/unistd (Files): Remove lib/unistd_.h.
83007         (EXTRA_DIST): Remove.
83008         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83009         need unistd_.h.
83010         (MOSTLYCLEANFILES): Remove unistd.h-t.
83011
83012 2006-03-03  Simon Josefsson  <jas@extundo.com>
83013
83014         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83015
83016 2006-03-03  Simon Josefsson  <jas@extundo.com>
83017
83018         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83019         libidn and bison.
83020
83021 2006-03-03  Simon Josefsson  <jas@extundo.com>
83022
83023         * build-aux/maint.mk: Add indent target.
83024
83025 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83026
83027         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83028         our replacement poll.h in any case, to avoid a differing
83029         declaration from a system header.  Seen on AIX.
83030
83031 2006-03-01  Simon Josefsson  <jas@extundo.com>
83032
83033         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83034         <kasal@ucw.cz>.
83035
83036 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83037
83038         * modules/gettime (Depends-on): Add extensions module.
83039         * modules/nanosleep (Depends-on): Likewise.
83040         * modules/settime (Depends-on): Likewise.
83041
83042 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83043
83044         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83045         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83046         pedantically.
83047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83048         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83049
83050         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83051         not "==".  Reported by Ralf Wildenhues.
83052
83053 2006-03-01  Karl Berry  <karl@gnu.org>
83054
83055         * doc/Copyright/request-*: new files, synced from gnuorg.
83056
83057 2006-03-01  Karl Berry  <karl@gnu.org>
83058
83059         * config/srclist.txt (Copyright/*): new entries.
83060
83061 2006-02-28  Simon Josefsson  <jas@extundo.com>
83062
83063         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83064
83065 2006-02-27  Simon Josefsson  <jas@extundo.com>
83066
83067         * lib/base64.h: Indent #define's.  From Jim Meyering
83068         <jim@meyering.net>.
83069
83070 2006-02-27  Jim Meyering  <jim@meyering.net>
83071
83072         Revert the change of 2006-02-24, so these files can continue
83073         to be sync'd from gettext.
83074         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83075         of `config.h'.
83076
83077 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83078
83079         * modules/intprops: New file.
83080         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83081         Add intprops.
83082         * modules/getloadavg (Files): Remove lib/intprops.h.
83083         (Depends-on): Add intprops.
83084         * modules/human: Likewise.
83085         * modules/inttostr: Likewise.
83086         * modules/openat: Likewise.
83087         * modules/sig2str: Likewise.
83088         * modules/userspec: Likewise.
83089         * modules/utimecmp: Likewise.
83090         * modules/xnanosleep: Likewise.
83091         * modules/xstrtol: Likewise.
83092
83093 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83094
83095         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83096         * modules/lock-tests (TESTS): Use $(EXEEXT).
83097         * modules/tls-tests: Likewise.
83098         * modules/argp-tests: Likewise.
83099         (check_PROGRAMS): New var, replacing...
83100         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83101
83102 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83103
83104         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83105         `config.h'.
83106
83107 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83108
83109         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83110
83111 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83112
83113         Sync from coreutils.
83114         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83115         gl_CHDIR_SAFER.
83116
83117 2006-02-22  Jim Meyering  <jim@meyering.net>
83118
83119         Sync from coreutils.
83120         * m4/chdir-safer.m4: New file.
83121
83122 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83123
83124         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83125         AT_FDCWD exceeds INT_MAX.
83126         * lib/openat.h (AT_FDCWD): Likewise.
83127
83128 2006-02-17  Eric Blake  <address@hidden>
83129
83130         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83131
83132 2006-02-16  Simon Josefsson  <jas@extundo.com>
83133
83134         * modules/getaddrinfo (Depends-on): Add sys_socket.
83135
83136 2006-02-15  Simon Josefsson  <jas@extundo.com>
83137
83138         * build-aux/maint.mk: Add dsyntax-check rule.
83139
83140 2006-02-15  Eric Blake  <ebb9@byu.net>
83141
83142         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83143         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83144         'present but cannot compile' warnings on cygwin.
83145         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83146         use ws2tcpip.h if sys/socket.h works.
83147         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83148         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83149
83150 2006-02-14  Simon Josefsson  <jas@extundo.com>
83151
83152         * modules/maintainer-makefile (Files): Rename.
83153
83154         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83155         and (the local) Makefile.cfg to maint-cfg.mk.
83156
83157         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83158         to the latter.
83159
83160         * modules/maintainer-makefile: New module.
83161
83162         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83163         severaly stripped to make it possible to build it up from scratch
83164         with reliable tests.
83165
83166         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83167         fixes to permit overriding the default actions when configure and
83168         makefile are not available.
83169
83170 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83171
83172         Sync from coreutils.
83173         * modules/lstat (Depends-on): Don't depend on xalloc.
83174         (License): Change from GPL to LGPL, since this is now simply a
83175         replacement for a libc function.
83176
83177 2006-02-14  Jim Meyering  <jim@meyering.net>
83178
83179         Sync from coreutils.
83180
83181         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83182         failure on deficient systems, and simplify gnulib lgpl dependencies.
83183         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83184         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83185
83186         * lib/xalloc-die.c: Remove unused definition of N_.
83187
83188 2006-02-14  Jim Meyering  <jim@meyering.net>
83189
83190         Sync from coreutils.
83191         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83192         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83193         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83194         double-quote uses of that variable, to accommodate the rare case in
83195         which getmntent is available in none of the libraries checked.  This
83196         happens at least on FreeBSD 5.0.
83197
83198 2006-02-13  Simon Josefsson  <jas@extundo.com>
83199
83200         * gnulib-tool (Usage): Fix --import, from
83201         karl@freefriends.org (Karl Berry).
83202
83203 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83204
83205         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83206
83207 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83208
83209         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83210         "autoupdate" on 2005-12-12.
83211
83212 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83213
83214         * modules/closeout (Depends-on): Remove atexit.
83215
83216 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83217
83218         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83219         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83220
83221 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83222
83223         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83224         __EXTENSIONS__ if this causes compilation to fail.  Problem
83225         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83226         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83227
83228 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83229
83230         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83231         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83232         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83233         All uses changed.
83234
83235 2006-01-26  Simon Josefsson  <jas@extundo.com>
83236
83237         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83238         prototype is visible on mingw32.
83239
83240         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83241         for mingw32.
83242
83243         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83244         mingw32).
83245
83246 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83247
83248         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83249         attempt to open for write; this always fails, at least on POSIX
83250         hosts.  This reinstates the 2006-01-09 change, which was
83251         inadvertently removed.
83252
83253 2006-01-26  Bruno Haible  <bruno@clisp.org>
83254
83255         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83256         Reported by Paul Eggert.
83257
83258 2006-01-26  Bruno Haible  <bruno@clisp.org>
83259             Paul Eggert  <eggert@cs.ucla.edu>
83260
83261         * lib/stdbool_.h (_Bool)
83262         [(! (defined __cplusplus || defined __BEOS__)
83263           && !defined __GNUC__
83264           && !(defined __HP_cc || defined __xlc__
83265                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83266                || defined __sgi))]:
83267         #define to signed char in these cases too; this simplifies
83268         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83269         etc., separately) and makes it more conservative.
83270
83271 2006-01-25  Simon Josefsson  <jas@extundo.com>
83272
83273         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83274         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83275         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83276
83277 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83278
83279         * lib/argp-namefrob.h: Bugfix. Remove stray #
83280
83281 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83282
83283         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83284         so that we test the test.
83285         Check for yet another HP-UX cc bug involving *bool |= bool.
83286
83287 2006-01-25  Karl Berry  <karl@gnu.org>
83288
83289         * config/srclist.txt (vasnprintf.c): sync lost.
83290
83291 2006-01-25  Jim Meyering  <jim@meyering.net>
83292
83293         Sync from the stable (b5) branch of coreutils:
83294
83295         * lib/fts.c (fts_children): Don't let close() clobber errno from
83296         failed fchdir().
83297
83298         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83299         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83300         a dangling symlink.  That can also happen at least for ELOOP.
83301         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83302         FYI, this bug predates the inclusion of fts.c in coreutils.
83303
83304         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83305         in their own block, so pre-c99 compilers don't object.
83306
83307         Avoid the double-free (first in fts_read, second in fts_close) that
83308         would occur when an `active' directory is made inaccessible (e.g.,
83309         via chmod a-x) during a traversal.
83310         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83311         before returning.  Reproduce this failure by
83312         mkdir -p a/b; cd a; chmod a-x . b
83313         Reported by Stavros Passas.
83314
83315 2006-01-25  Jim Meyering  <jim@meyering.net>
83316
83317         * lib/fileblocks.c: Remove more useless parentheses.
83318         * lib/readutmp.h: Likewise.
83319
83320 2006-01-25  Bruno Haible  <bruno@clisp.org>
83321
83322         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83323         warnings.
83324         Reported by Paul Eggert.
83325
83326 2006-01-25  Bruno Haible  <bruno@clisp.org>
83327
83328         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83329         rid of a trap command. For Solaris sh.
83330         Reported by Mark D. Baushke <mdb@gnu.org>.
83331
83332 2006-01-24  Simon Josefsson  <jas@extundo.com>
83333
83334         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83335         Bruno.
83336
83337 2006-01-24  Karl Berry  <karl@gnu.org>
83338
83339         * config/srclist.txt (argp-namefrob.h): sync lost.
83340
83341 2006-01-24  Jim Meyering  <jim@meyering.net>
83342
83343         * modules/openat (Files): Add lib/intprops.h.
83344         From Mark D. Baushke.
83345
83346 2006-01-24  Jim Meyering  <jim@meyering.net>
83347
83348         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83349         Reported by Mark D. Baushke.
83350
83351 2006-01-24  Jim Meyering  <jim@meyering.net>
83352
83353         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83354
83355 2006-01-24  Bruno Haible  <bruno@clisp.org>
83356
83357         * modules/strnlen (Maintainer): Change from glibc to all.
83358
83359 2006-01-24  Bruno Haible  <bruno@clisp.org>
83360
83361         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83362         Patch by Paul Eggert.
83363
83364 2006-01-24  Bruno Haible  <bruno@clisp.org>
83365
83366         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83367         already has it.
83368         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83369         2005-11-26.
83370
83371         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83372         'signed char' to avoid problems with the built-in _Bool type.
83373         Reported by Paul Eggert on 2005-11-26.
83374
83375 2006-01-24  Bruno Haible  <bruno@clisp.org>
83376
83377         * gnulib-tool (func_import): Avoid constructing complicated sed
83378         expressions inside backquote.
83379         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83380
83381 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83382
83383         These changes imported from libc.
83384         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83385         test and two separate function calls.
83386         * lib/strndup.c (__strndup): Add libc_hidden_def.
83387
83388 2006-01-23  Simon Josefsson  <jas@extundo.com>
83389
83390         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83391         Remove the test_*_SOURCES variable: automake infers it by default.
83392         * modules/tls-tests: Likewise.
83393
83394 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83395
83396         Work around porting bugs reported by Dieter in
83397         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83398         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83399         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83400         Include "getopt.h" first, to check interface.
83401         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83402         !HAVE_DECL_GETENV.
83403         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83404         (__strndup): Revert to K&R-style function dfns, the glibc style.
83405         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83406         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83407         Include strnlen.h first, to get prototype properly.
83408         (strnlen): Renamed from __strnlen.
83409         Remove weak alias.
83410
83411 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83412
83413         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83414
83415 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83416
83417         * config/srclist.txt: Adjust to reflect glibc reorganization.
83418         This affects only comments.
83419
83420 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83421
83422          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83423          Reported by Bruce Korb <bkorb@gnu.org>.
83424
83425 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83426
83427         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83428         to pacify gcc -Wswitch-default.
83429
83430 2006-01-22  Bruno Haible  <bruno@clisp.org>
83431
83432         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83433         temporary buffer for sprintf, take into account the precision also
83434         for 'd', 'i', 'u', 'o', 'x', 'X'.
83435
83436 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83437
83438         * modules/argp-tests: New module
83439         * tests/test-argp.c: New file
83440         * tests/test-argp-2.sh: New file
83441
83442 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83443
83444         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83445         (__argp_base_name): Removed
83446         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83447         typo.
83448         (__argp_base_name): Provide macro definition or extern declaration
83449         depending on the configuration
83450
83451 2006-01-20  Simon Josefsson  <jas@extundo.com>
83452
83453         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83454
83455 2006-01-20  Simon Josefsson  <jas@extundo.com>
83456
83457         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83458
83459 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83460
83461         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83462         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83463         Suggested by Bruno Haible.
83464
83465 2006-01-20  Karl Berry  <karl@gnu.org>
83466
83467         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83468         until changes propagate, I guess.
83469
83470 2006-01-19  Simon Josefsson  <jas@extundo.com>
83471
83472         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83473
83474 2006-01-19  Simon Josefsson  <jas@extundo.com>
83475
83476         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83477
83478 2006-01-19  Simon Josefsson  <jas@extundo.com>
83479
83480         * gnulib-tool: Set check_PROGRAMS.
83481
83482         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83483         modules/des-tests, modules/gc-arcfour-tests,
83484         modules/gc-arctwo-tests, modules/gc-des-tests,
83485         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83486         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83487         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83488         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83489         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83490         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83491         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83492         test_*_SOURCES.
83493
83494 2006-01-18  Simon Josefsson  <jas@extundo.com>
83495
83496         * modules/socklen (Depends-on): Depend on sys_socket.
83497
83498 2006-01-18  Simon Josefsson  <jas@extundo.com>
83499
83500         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83501         modules/des-tests, modules/gc-arcfour-tests,
83502         modules/gc-arctwo-tests, modules/gc-des-tests,
83503         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83504         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83505         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83506         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83507         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83508         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83509         $(EXEEXT) to automake TESTS variable, for mingw32.
83510
83511 2006-01-17  Simon Josefsson  <jas@extundo.com>
83512
83513         * modules/socklen (Include): Need sys/socket.h.
83514
83515 2006-01-17  Bruno Haible  <bruno@clisp.org>
83516
83517         * modules/ssize_t (Include): Add <sys/types.h>.
83518
83519 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83520
83521         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83522         it's not portable and it doesn't work with cross-compiles.
83523         Problem reported by Bruno Haible.  Fix missing-$ typo in
83524         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83525         -zignore from being used with Sun's C compiler.
83526
83527 2006-01-12  Simon Josefsson  <jas@extundo.com>
83528
83529         * lib/base64.c: Fix warning, reported by Bruno Haible
83530         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83531
83532 2006-01-12  Bruno Haible  <bruno@clisp.org>
83533
83534         * modules/ldd: New file.
83535         * build-aux/ldd.sh.in: New file.
83536         * MODULES.html.sh (Support for building libraries and executables): Add
83537         ldd.
83538
83539 2006-01-12  Bruno Haible  <bruno@clisp.org>
83540
83541         * m4/ldd.m4: New file.
83542
83543 2006-01-12  Bruno Haible  <bruno@clisp.org>
83544
83545         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83546         endless loop while replacing $auxdir with build-aux.
83547
83548 2006-01-11  Simon Josefsson  <jas@extundo.com>
83549
83550         * lib/stdint_.h (SIZE_MAX): Add missing (.
83551
83552 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83553
83554         Sync from coreutils.
83555         * lib/md5.c: Fix commentary typos.
83556         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83557         * lib/md5.h (__attribute__): Remove; unused.
83558         * lib/sha1.c: Fix commentary to match md5 better.
83559         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83560         so that we don't need to worry about alignment.  All uses changed.
83561         This merges the 2005-10-28 md5 change into sha1.
83562
83563 2006-01-11  Jim Meyering  <jim@meyering.net>
83564
83565         Sync from coreutils.
83566         * lib/md5.c (OP): Fix spacing.
83567
83568 2006-01-11  Bruno Haible  <bruno@clisp.org>
83569
83570         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83571         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83572         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83573
83574 2006-01-11  Bruno Haible  <bruno@clisp.org>
83575
83576         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83577         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83578         the "early" section as well.
83579
83580 2006-01-11  Bruno Haible  <bruno@clisp.org>
83581
83582         Avoid "ar: no archive members specified" error on MacOS X.
83583         * gnulib-tool (func_modules_add_dummy): New function.
83584         (func_import, func_create_testdir): Invoke it.
83585
83586 2006-01-11  Bruno Haible  <bruno@clisp.org>
83587
83588         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83589         with $auxdir in AC_CONFIG_FILES statements.
83590
83591 2006-01-11  Bruno Haible  <bruno@clisp.org>
83592
83593         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83594         Initialize also noinst_HEADERS to empty.
83595
83596 2006-01-11  Bruno Haible  <bruno@clisp.org>
83597
83598         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83599         variables.
83600         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83601         autoreconf.
83602
83603 2006-01-11  Bruno Haible  <bruno@clisp.org>
83604
83605         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83606         overridable by the user.
83607         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83608
83609 2006-01-10  Simon Josefsson  <jas@extundo.com>
83610
83611         * modules/sys_socket: New file.
83612
83613 2006-01-10  Simon Josefsson  <jas@extundo.com>
83614
83615         * m4/sys_socket_h.m4: New file.
83616
83617 2006-01-10  Simon Josefsson  <jas@extundo.com>
83618
83619         * lib/socket_.h: New file.
83620
83621 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83622
83623         * modules/readutmp (Maintainer): Add myself.
83624
83625 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83626
83627         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83628         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83629         People who are still concerned with buggy memcmp implementations
83630         can invoke gl_FUNC_MEMCMP themselves.
83631
83632 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83633
83634         * lib/regex_internal.h (BITSET_WORD_BITS):
83635         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83636         preprocessor mishandles large unsigned values as if they were signed.
83637         Problem reported by Claudio Fontana in
83638         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83639
83640 2006-01-10  Jim Meyering  <jim@meyering.net>
83641
83642         Avoid the double-free (first in fts_read, second in fts_close) that
83643         would occur when an `active' directory is made inaccessible (e.g.,
83644         via chmod a-x) during a traversal.
83645         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83646         before returning.  Reproduce this failure by
83647         mkdir -p a/b; cd a; chmod a-x . b
83648         Reported by Stavros Passas.
83649
83650         Sync from coreutils.
83651         * lib/sha1.c: Tweak grammar in a comment.
83652
83653 2006-01-10  Jim Meyering  <jim@meyering.net>
83654
83655         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83656         Patch by Joerg Sonnenberger.
83657
83658 2006-01-10  Bruno Haible  <bruno@clisp.org>
83659
83660         * modules/readutmp: Depend on module free.
83661         * modules/strtok_r: Depend on module restrict.
83662
83663 2006-01-10  Bruno Haible  <bruno@clisp.org>
83664
83665         * modules/gettext (configure.ac): Add an invocation of
83666         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83667
83668 2006-01-10  Bruno Haible  <bruno@clisp.org>
83669
83670         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83671         Reported by Werner Lemberg <wl@gnu.org>.
83672
83673 2006-01-10  Bruno Haible  <bruno@clisp.org>
83674
83675         * lib/localcharset.c: Update from GNU gettext.
83676
83677 2006-01-10  Bruno Haible  <bruno@clisp.org>
83678
83679         * lib/argp.h (__const): Remove macro. Use const instead.
83680         * lib/argp-fmtstream.h (__const): Likewise.
83681         * lib/glob_.h (__const): Remove macro.
83682         * lib/glob-libc.h: Use const instead of __const.
83683
83684 2006-01-10  Bruno Haible  <bruno@clisp.org>
83685
83686         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83687         variable.
83688         Needed to avoid an automake error regarding the 'gettext' module.
83689
83690 2006-01-09  Simon Josefsson  <jas@extundo.com>
83691
83692         * modules/inet_ntop (Depends-on): Add restrict.
83693
83694 2006-01-09  Simon Josefsson  <jas@extundo.com>
83695
83696         * modules/gc-rijndael-tests (License): Put under LGPL.
83697
83698         * modules/gc-des-tests (License): Likewise.
83699
83700         * modules/gc-arcfour-tests (License): Likewise.
83701
83702         * modules/gc-arctwo-tests (License): Likewise.
83703
83704         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83705
83706         * modules/gc-hmac-sha1-tests (Files): Likewise.
83707
83708         * modules/gc-hmac-md5-tests (License): Likewise.
83709
83710         * modules/gc-sha1-tests (License): Likewise.
83711
83712         * modules/gc-md5-tests (License): Likewise.
83713
83714         * modules/gc-md4-tests (License): Likewise.
83715
83716         * modules/gc-md2-tests (License): Likewise.
83717
83718         * modules/gc-tests (License): Likewise.
83719
83720         * modules/des-tests (License): Likewise.
83721
83722         * modules/md4-tests (License): Likewise.
83723
83724         * modules/md2-tests (License): Likewise.
83725
83726 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83727
83728         Sync from coreutils:
83729
83730         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83731         * modules/lib-ignore: New file.
83732         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83733         chdir-safer.m4, lchmod.m4.
83734         * modules/openat: Add mkdirat.c, openat-priv.h.
83735
83736 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83737
83738         Sync from coreutils.
83739         * m4/lib-ignore.m4: New file.
83740         * m4/lchmod.m4: New file.
83741
83742 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83743
83744         Sync from coreutils.
83745         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83746         for write access: POSIX says that must fail.
83747         * lib/fts.c (diropen): Likewise.
83748         * lib/save-cwd.c (save_cwd): Likewise.
83749         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83750         well, for minor improvements on hosts that lack O_DIRECTORY.
83751         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83752         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83753         Fall back on chown if open failed with EACCES.
83754
83755         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83756         Report an error at compile-time if only a 1-second nominal clock
83757         resolution is found.
83758
83759         * lib/lchmod.h: New file.
83760         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83761         (make_dir_parents): Use lchown rather than chown, and
83762         lchmod rather than chmod.
83763
83764         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83765         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83766         "proc" reported by n0dalus.
83767
83768         * lib/mountlist.c: Include <limits.h>.
83769         (dev_from_mount_options)
83770         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83771         New function.  It no longer assumes "dev=" has the System V meaning
83772         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83773         (read_file_system_list)
83774         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83775         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83776         dev= in that case.
83777
83778         * lib/posixtm.h (PDS_PRE_2000): New macro.
83779         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83780         allow_century.  All usages changed.  Reject dates outside the range
83781         1969-1999 if PDS_PRE_2000 is used.
83782
83783 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83784
83785         Sync from coreutils.
83786         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83787         (Time of day items): Mention the possibility of leap seconds.
83788         Problem reported by Dr. David Alan Gilbert.
83789
83790 2006-01-09  Jim Meyering  <jim@meyering.net>
83791
83792         Sync from coreutils.
83793
83794         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83795
83796         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83797
83798         * lib/modechange.c (mode_compile): Reject an invalid mode string
83799         that starts with an octal digit.  From Andreas Gruenbacher.
83800
83801         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83802         and dup to open_safer and dup_safer, respectively.
83803         (openat_permissive): Fix typo in comment.
83804
83805         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83806         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83807         (_): Remove; no longer needed.
83808         (openat): Renamed from rpl_openat; no need for rpl_openat
83809         since openat.h renames openat for us.
83810         Replace most of the body with a call to openat_permissive,
83811         to avoid duplicate code.
83812         Port to (probably hypothetical) environments were mode_t is
83813         wider than int.
83814         (openat_permissive): Require mode arg, so that we can check
83815         types better.  Put it just after flags.  Change cwd failure
83816         indicator from pointer-to-bool to pointer-to-errno-value.
83817         All callers changed.
83818         Invoke openat_save_fail and/or openat_restore_fail if
83819         cwd_errno is null, so that openat can call us.
83820         (openat_permissive, fdopendir, fstatat, unlinkat):
83821         Simplify errno handling to avoid some duplicate code,
83822         as it's OK to set errno on success.
83823         * lib/openat.h: Revamp code so that function macros depend on
83824         __OPENAT_PREFIX only, not also on AT_FDCWD.
83825         (openat_ro): Remove.  Caller changed to use openat_permissive.
83826         (openat_permissive): Now a macro, if not a function.
83827         (openat_restore_fail, openat_save_fail): Now always functions,
83828         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83829
83830         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83831         and openat.c.
83832         * lib/mkdirat.c: Include openat-priv.h.
83833         Remove definitions of macros defined therein.
83834         * lib/openat.c: Likewise.
83835
83836         * lib/mkdirat.c (mkdirat): New file and function.
83837         * lib/openat.h (mkdirat): Declare.
83838
83839         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83840
83841         * lib/openat.h (openat_permissive): Declare.
83842         (openat_ro): Define.
83843
83844         * lib/openat.c (EXPECTED_ERRNO): New macro.
83845         (openat_permissive): New function -- used in remove.c rewrite.
83846         (all functions): Set errno just before returning, only if there
83847         was an actual failure.
83848         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83849
83850         Emulate openat-family functions using Linux's procfs, if possible.
83851         Idea and some code based on Ulrich Drepper's glibc changes.
83852
83853         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83854         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83855         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83856         before falling back on save_cwd and restore_cwd.
83857         (fdopendir, fstatat, unlinkat): Likewise.
83858
83859         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83860         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83861
83862         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83863         as second argument to va_arg.  Otherwise, some versions of gcc
83864         warn that `if this code is reached, the program will abort'.
83865
83866 2006-01-09  Jim Meyering  <jim@meyering.net>
83867
83868         Sync from coreutils.
83869         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83870         Require openat-priv.h.
83871
83872 2006-01-09  Bruno Haible  <bruno@clisp.org>
83873
83874         * modules/strnlen (Include): Use strnlen.h.
83875
83876 2006-01-09  Bruno Haible  <bruno@clisp.org>
83877
83878         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83879
83880 2006-01-09  Bruno Haible  <bruno@clisp.org>
83881
83882         * lib/sysexit_.h (EX_OK): New macro.
83883         Suggested by Martin Lambers <marlam@marlam.de>.
83884
83885 2006-01-09  Bruno Haible  <bruno@clisp.org>
83886
83887         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83888         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83889
83890 2006-01-09  Bruno Haible  <bruno@clisp.org>
83891
83892         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83893         numbers.
83894
83895 2006-01-09  Bruno Haible  <bruno@clisp.org>
83896
83897         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83898         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83899         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83900         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83901
83902 2006-01-09  Bruno Haible  <bruno@clisp.org>
83903
83904         * build-aux/javacomp.sh.in: New file, moved from lib/.
83905         * modules/javacomp-script (Files): Update.
83906         (configure.ac): Add AC_CONFIG_FILES invocation.
83907         (EXTRA_DIST): Remove variable.
83908
83909         * build-aux/javaexec.sh.in: New file, moved from lib/.
83910         * modules/javaexec (Files): Update.
83911         (configure.ac): Add AC_CONFIG_FILES invocation.
83912         (EXTRA_DIST): Remove javaexec.sh.in.
83913
83914         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83915         * modules/csharpcomp-script (Files): Update.
83916         (configure.ac): Add AC_CONFIG_FILES invocation.
83917         (EXTRA_DIST): Remove variable.
83918
83919         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83920         * modules/csharpexec (Files): Update.
83921         (configure.ac): Add AC_CONFIG_FILES invocation.
83922         (EXTRA_DIST): Remove csharpexec.sh.in.
83923
83924 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83925
83926         Sync from coreutils.
83927
83928         Add POSIX ACL support
83929         * lib/acl.h (copy_acl, set_acl): Add declarations.
83930         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83931         systems other than Linux.
83932         (chmod_or_fchmod): New function: use fchmod when possible,
83933         and chmod otherwise.
83934         (file_has_acl): Add a POSIX ACL implementation, with a
83935         Linux-specific subcase.
83936         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83937         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83938         acls are unsupported.
83939         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83940         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83941         are unsupported.
83942
83943 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83944
83945         Sync from coreutils.
83946         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83947
83948 2006-01-07  Bruno Haible  <bruno@clisp.org>
83949
83950         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83951         gl_EARLY.
83952
83953 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83954
83955         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83956         Problem reported for Mingw by Mark Junker.
83957
83958 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83959
83960         * README: Gnulib normally doesn't generate a tarball.
83961
83962 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83963
83964         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83965         long int, not int, for nanosecond counts, so that people who are
83966         used to POSIX struct timespec won't be surprised.  Reported by Jim
83967         Meyering.
83968
83969 2005-12-28  Bruno Haible  <bruno@clisp.org>
83970
83971         * build-aux/config.rpath: Update from GNU gettext.
83972
83973 2005-12-16  Jim Meyering  <jim@meyering.net>
83974
83975         * modules/fprintftime: New module.
83976         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83977
83978 2005-12-16  Jim Meyering  <jim@meyering.net>
83979
83980         * m4/fprintftime.m4: New file.
83981
83982 2005-12-16  Jim Meyering  <jim@meyering.net>
83983
83984         * lib/fprintftime.c, lib/fprintftime.h: New files.
83985
83986 2005-12-15  Simon Josefsson  <jas@extundo.com>
83987
83988         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83989         new m4/socklen.m4.
83990
83991 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83992
83993         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83994         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83995
83996 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83997
83998         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83999         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84000         struct uparams is valid. Fall back to the default values if it is
84001         not.
84002
84003 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84004
84005         * modules/argp (Files): Add argp-pin.c
84006         (Depends-on): dirname
84007         (lib_SOURCES): Add argp-pin.c
84008
84009 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84010
84011         * m4/argp.m4:  Check if program_invocation_name and
84012         program_invocation_short_name are declared and define appropriate
84013         macros if they are not.
84014
84015 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84016
84017         * lib/argp-help.c (__argp_base_name): New function
84018         (__argp_short_program_name): Rewrite using __argp_base_name
84019         * lib/argp-namefrob.h: Define program_invocation_name and
84020         program_invocation_short_name if requested
84021         (__argp_base_name): Add prototype
84022         * lib/argp-parse.c (argp_def): Use gettext wrappers
84023         (argp_default_parser): Use __argp_base_name
84024         * lib/argp-pin.c: New file. Defines program_invocation_name and
84025         program_invocation_short_name on systems that lack them.
84026
84027 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84028
84029         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84030         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84031         porting problem reported by Georg Schwarz in
84032         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84033
84034 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84035
84036         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84037         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84038         porting problem reported by Georg Schwarz in
84039         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84040
84041 2005-12-05  Bruno Haible  <bruno@clisp.org>
84042
84043         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84044         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84045         Reported by Mark Junker <mjscod@gmx.de>.
84046
84047 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84048
84049         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84050         Use implementation from Albert Chin, with some
84051         comments/corrections by Stepan Kasal and myself.
84052
84053 2005-12-02  Bruno Haible  <bruno@clisp.org>
84054
84055         * gnulib-tool (func_import): Accept GPLed build tool modules when
84056         --lgpl is given.
84057         * modules/csharpcomp-script: New file.
84058         * modules/csharpcomp: Depend on it.
84059         * modules/javacomp-script: New file.
84060         * modules/javacomp: Depend on it.
84061         Suggested by Simon Josefsson.
84062
84063 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84064
84065         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84066         statement, to work around an HP-UX 10.20 compiler bug reported by
84067         Peter O'Gorman.
84068
84069 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84070
84071         * modules/savedir (Depends-on): Add openat.
84072
84073 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84074
84075         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84076         (uintmax_t) [defined uintmax_t]: Do not declare.
84077         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84078         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84079         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84080         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84081         sake of portability to weird hosts that C allows (though we don't
84082         know of any practical examples).
84083
84084         * lib/savedir.h (fdsavedir): New decl.
84085         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84086         contains most of the former guts of savedir.
84087         (savedir): Use savedirstream.
84088         Include "openat.h".
84089
84090 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84091
84092         * modules/obstack (Files): Add m4/ulonglong.m4.
84093         Problem reported by Davide Angelocola.
84094
84095 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84096
84097         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84098         coreutils no longer futzes with rounding modes.
84099
84100 2005-11-14  Jim Meyering  <jim@meyering.net>
84101
84102         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84103         replacement of mkstemp.
84104
84105 2005-11-10  Simon Josefsson  <jas@extundo.com>
84106
84107         * lib/readline.c: Remove EOL.
84108
84109 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84110
84111         * modules/gethrxtime (Depends-on): Add gettime.
84112
84113 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84114
84115         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84116         or gettimeofday; no longer needed.
84117
84118 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84119
84120         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84121         time business.
84122         (gethrxtime) [! (HAVE_NANOUPTIME
84123         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84124         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84125         our own approximation.
84126
84127 2005-11-08  Eric Blake  <ebb9@byu.net>
84128
84129         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84130
84131 2005-11-08  Eric Blake  <ebb9@byu.net>
84132
84133         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84134
84135 2005-11-04  Bruno Haible  <bruno@clisp.org>
84136
84137         * gnulib-tool: Implement --update mode.
84138
84139 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84140
84141         Fix porting problem reported by Theodoros V. Kalamatianos.
84142         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84143         Don't assume that futimes failing means we must fail.
84144
84145 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84146
84147         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84148         variables to suggest the intended function of the PATH_MAX check.
84149
84150 2005-10-30  Kean Johnston  <jkj@sco.com>
84151
84152         Trivial changes to support SCO systems.
84153         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84154         as PATH_MAX.
84155         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84156         where __ptr is null when no I/O is pending.
84157
84158 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84159
84160         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84161         leave errno alone.  Problem reported by Dmitry V. Levin.
84162
84163 2005-10-28  Simon Josefsson  <jas@extundo.com>
84164
84165         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84166         Test more.
84167
84168         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84169
84170         * modules/md2, modules/md2-tests: New files.
84171
84172 2005-10-28  Simon Josefsson  <jas@extundo.com>
84173
84174         * m4/inet_ntop.m4: More tests.
84175
84176         * m4/gc-md2.m4, md2.m4: New file.
84177
84178 2005-10-28  Simon Josefsson  <jas@extundo.com>
84179
84180         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84181         "restrict" keywords, as per POSIX.  Protect the function
84182         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84183         Don't use K&R prototypes.  Check the sprintf return values.
84184         Re-define EAFNOSUPPORT if not present.  Indent.
84185
84186         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84187         suggested by Bruno Haible <bruno@clisp.org>.
84188
84189         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84190
84191         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84192
84193         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84194         libgcrypt).
84195
84196         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84197
84198         * lib/md2.h, lib/md2.c: New files.
84199
84200 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84201
84202         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84203         errno alone.  Problem reported by Frederic Jolliton.
84204
84205 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84206
84207         * modules/verify (License): Change from GPL to LGPL.  This is a
84208         tiny module and there are apparently near-equivalents that are
84209         under the BSD license.
84210
84211 2005-10-24  Simon Josefsson  <jas@extundo.com>
84212
84213         * modules/sha1: Relicense to LGPL.
84214
84215 2005-10-24  Simon Josefsson  <jas@extundo.com>
84216
84217         * lib/md4.h: Shrink buffer size, now that we changed the type.
84218
84219 2005-10-23  Simon Josefsson  <jas@extundo.com>
84220
84221         * gnulib-tool (func_import): Fix --tests-base.
84222
84223 2005-10-22  Simon Josefsson  <jas@extundo.com>
84224
84225         * modules/arcfour (Depends-on): Need stdint.
84226
84227 2005-10-22  Simon Josefsson  <jas@extundo.com>
84228
84229         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84230         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84231
84232 2005-10-22  Simon Josefsson  <jas@extundo.com>
84233
84234         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84235         suggested by Bruno Haible <bruno@clisp.org>.
84236
84237 2005-10-22  Simon Josefsson  <jas@extundo.com>
84238
84239         * lib/crc.h: Include stddef.h, for size_t.
84240
84241 2005-10-22  Simon Josefsson  <jas@extundo.com>
84242
84243         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84244         arcfour_context struct (simplify test vector testing in GNU
84245         Shishi).
84246
84247 2005-10-21  Simon Josefsson  <jas@extundo.com>
84248
84249         * modules/des, modules/des-tests: New files.
84250
84251         * modules/gc-des, modules/gc-des-tests: New files.
84252
84253         * tests/test-des.c, tests/test-gc-des.c: New file.
84254
84255 2005-10-21  Simon Josefsson  <jas@extundo.com>
84256
84257         * modules/arctwo, modules/arctwo-tests: New files.
84258
84259         * tests/test-arctwo.c: New file.
84260
84261         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84262
84263         * tests/test-gc-arctwo.c: New file.
84264
84265 2005-10-21  Simon Josefsson  <jas@extundo.com>
84266
84267         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84268         Bruno Haible <bruno@clisp.org>.
84269
84270         * m4/gc-des.m4: New file.
84271
84272 2005-10-21  Simon Josefsson  <jas@extundo.com>
84273
84274         * m4/arctwo.m4: New file.
84275
84276         * m4/gc-arctwo.m4: New file.
84277
84278 2005-10-21  Simon Josefsson  <jas@extundo.com>
84279
84280         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84281         block.
84282
84283 2005-10-21  Simon Josefsson  <jas@extundo.com>
84284
84285         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84286         <bruno@clisp.org>.
84287
84288         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84289
84290         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84291         Bruno Haible <bruno@clisp.org>.
84292
84293         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84294         <bruno@clisp.org>.
84295
84296 2005-10-21  Simon Josefsson  <jas@extundo.com>
84297
84298         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84299
84300 2005-10-21  Simon Josefsson  <jas@extundo.com>
84301
84302         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84303
84304 2005-10-21  Simon Josefsson  <jas@extundo.com>
84305
84306         * lib/des.h, lib/des.c: New files.
84307
84308         * lib/gc-gnulib.c: Support DES.c
84309
84310 2005-10-21  Simon Josefsson  <jas@extundo.com>
84311
84312         * lib/arctwo.h, lib/arctwo.c: New files.
84313
84314         * lib/gc-gnulib.c: Support ARCTWO.
84315
84316 2005-10-21  Simon Josefsson  <jas@extundo.com>
84317
84318         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84319         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84320
84321 2005-10-21  Simon Josefsson  <jas@extundo.com>
84322
84323         * gnulib-tool (func_import, func_create_testdir): Define automake
84324         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84325         Makefile.am snippet),
84326         suggested by Bruno Haible <bruno@clisp.org>.
84327
84328         * modules/gc (Makefile.am): Use it.
84329
84330 2005-10-21  Bruno Haible  <bruno@clisp.org>
84331
84332         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84333         patch.
84334
84335 2005-10-19  Simon Josefsson  <jas@extundo.com>
84336
84337         * tests/test-gc-rijndael.c: New file.
84338
84339         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84340
84341 2005-10-19  Simon Josefsson  <jas@extundo.com>
84342
84343         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84344         interface too.
84345
84346 2005-10-19  Simon Josefsson  <jas@extundo.com>
84347
84348         * tests/test-gc-arcfour.c: New file.
84349
84350         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84351
84352 2005-10-19  Simon Josefsson  <jas@extundo.com>
84353
84354         * modules/gc-md4, modules/gc-md4-tests: New file.
84355
84356         * tests/test-gc-md4.c: New file.
84357
84358 2005-10-19  Simon Josefsson  <jas@extundo.com>
84359
84360         * m4/gc-md4.m4: New file.
84361
84362 2005-10-19  Simon Josefsson  <jas@extundo.com>
84363
84364         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84365         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84366         <kasal@ucw.cz>.
84367
84368 2005-10-19  Simon Josefsson  <jas@extundo.com>
84369
84370         * m4/gc-arcfour.m4: New file.
84371
84372         * m4/gc-rijndael.m4: New file.
84373
84374 2005-10-19  Simon Josefsson  <jas@extundo.com>
84375
84376         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84377
84378 2005-10-19  Simon Josefsson  <jas@extundo.com>
84379
84380         * lib/gc-gnulib.c: Support ARCFOUR.
84381
84382 2005-10-19  Simon Josefsson  <jas@extundo.com>
84383
84384         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84385         support.
84386
84387         * lib/gc.h: Add ECB enum type.
84388
84389         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84390
84391 2005-10-18  Simon Josefsson  <jas@extundo.com>
84392
84393         * tests/test-md5.c: New file.
84394
84395         * modules/md5-tests: New file.
84396
84397 2005-10-18  Simon Josefsson  <jas@extundo.com>
84398
84399         * tests/test-md4.c: New file.
84400
84401         * modules/md4, modules/md4-tests: New files.
84402
84403 2005-10-18  Simon Josefsson  <jas@extundo.com>
84404
84405         * m4/md4.m4: New file.
84406
84407 2005-10-18  Simon Josefsson  <jas@extundo.com>
84408
84409         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84410
84411 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84412
84413         * gnulib-tool (func_create_testdir): Omit the second check whether
84414         BUILT_SOURCES in nonempty.
84415
84416 2005-10-17  Simon Josefsson  <jas@extundo.com>
84417
84418         * tests/test-rijndael.c: New file.
84419
84420 2005-10-17  Simon Josefsson  <jas@extundo.com>
84421
84422         * modules/sha1: Depend on stdint instead of md5.
84423
84424         * modules/md5: Depend on stdint, remove uint32_t.
84425
84426 2005-10-17  Simon Josefsson  <jas@extundo.com>
84427
84428         * modules/gc-sha1-tests: New file.
84429
84430         * tests/test-gc-sha1.c: New file.
84431
84432 2005-10-17  Simon Josefsson  <jas@extundo.com>
84433
84434         * m4/md5.m4: Remove call to uint32_t.m4.
84435
84436 2005-10-17  Simon Josefsson  <jas@extundo.com>
84437
84438         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84439
84440         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84441         md5.h.
84442
84443         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84444
84445         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84446
84447 2005-10-17  Simon Josefsson  <jas@extundo.com>
84448
84449         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84450
84451 2005-10-17  Simon Josefsson  <jas@extundo.com>
84452
84453         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84454
84455 2005-10-17  Simon Josefsson  <jas@extundo.com>
84456
84457         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84458
84459         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84460
84461 2005-10-17  Bruno Haible  <bruno@clisp.org>
84462
84463         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84464         that it can also be used in a test.
84465
84466 2005-10-16  Bruno Haible  <bruno@clisp.org>
84467
84468         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84469         TESTS_ENVIRONMENT, so that individual tests can augment it.
84470
84471         * gnulib-tool (func_create_testdir): Use an intermediate target for
84472         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84473         macros, like $(ALLOCA_H), which cannot be passed through the command
84474         line.
84475
84476 2005-10-15  Simon Josefsson  <jas@extundo.com>
84477
84478         * modules/rijndael-tests: New file.
84479
84480         * modules/rijndael: New file.
84481
84482 2005-10-15  Simon Josefsson  <jas@extundo.com>
84483
84484         * m4/rijndael.m4: New file.
84485
84486 2005-10-15  Simon Josefsson  <jas@extundo.com>
84487
84488         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84489
84490         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84491
84492 2005-10-14  Simon Josefsson  <jas@extundo.com>
84493
84494         * tests/test-arcfour.c: New file.
84495
84496         * modules/arcfour, modules/arcfour-tests: New files.
84497
84498 2005-10-14  Simon Josefsson  <jas@extundo.com>
84499
84500         * m4/arcfour.m4: New file.
84501
84502 2005-10-14  Simon Josefsson  <jas@extundo.com>
84503
84504         * lib/arcfour.h, lib/arcfour.c: New files.
84505
84506 2005-10-14  Roland McGrath  <roland@redhat.com>
84507
84508         Import from libc.  [BZ #1331]
84509         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84510         macro argument.
84511         Reported by Matej Vela <vela@debian.org>.
84512
84513 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84514
84515         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84516         include <wchar.h>; no longer needed.
84517
84518 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84519
84520         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84521
84522 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84523         and  Ulrich Drepper  <drepper@redhat.com>
84524
84525         Import from libc.
84526         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84527         instead of inline stream orientation test and two separate
84528         function calls.  Pay no attention to USE_IN_LIBIO.
84529
84530 2005-10-13  Simon Josefsson  <jas@extundo.com>
84531
84532         * modules/gc-hmac-md5-tests: New file.
84533
84534         * tests/test-gc-hmac-sha1.c: New file.
84535
84536         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84537
84538         * modules/gc-hmac-md5-tests: New file.
84539
84540         * tests/test-gc-md5.c: New file.
84541
84542         * modules/gc-md5-tests: New file.
84543
84544 2005-10-13  Simon Josefsson  <jas@extundo.com>
84545
84546         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84547         Move memory allocation outside of loop.
84548
84549 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84550
84551         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84552         intermediate directory is in a read-only file system.  Problem
84553         reported by Eric Blake.
84554
84555 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84556
84557         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84558
84559 2005-10-12  Simon Josefsson  <jas@extundo.com>
84560
84561         * tests/test-hmac-sha1.c: New file.
84562
84563         * modules/hmac-sha1-tests: New file.
84564
84565         * modules/hmac-sha1: New file.
84566
84567 2005-10-12  Simon Josefsson  <jas@extundo.com>
84568
84569         * modules/gc-sha1: New file.
84570
84571 2005-10-12  Simon Josefsson  <jas@extundo.com>
84572
84573         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84574
84575         * tests/test-gc-pbkdf2-sha1.c: New file.
84576
84577 2005-10-12  Simon Josefsson  <jas@extundo.com>
84578
84579         * modules/gc-md5, modules/gc-hmac-md5: New files.
84580
84581         * modules/gc (Files): Remove md5, memxor and hmac files.
84582
84583 2005-10-12  Simon Josefsson  <jas@extundo.com>
84584
84585         * m4/gc-pbkdf2-sha1.m4: New file.
84586
84587         * m4/gc-hmac-sha1.m4: New file.
84588
84589         * m4/gc-sha1: New file.
84590
84591         * m4/hmac-sha1.m4: New file.
84592
84593 2005-10-12  Simon Josefsson  <jas@extundo.com>
84594
84595         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84596
84597         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84598
84599 2005-10-12  Simon Josefsson  <jas@extundo.com>
84600
84601         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84602         suggested by Bruno Haible <bruno@clisp.org>.
84603
84604 2005-10-12  Simon Josefsson  <jas@extundo.com>
84605
84606         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84607
84608 2005-10-12  Simon Josefsson  <jas@extundo.com>
84609
84610         * lib/gc-pbkdf2-sha1.c: New file.
84611
84612         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84613
84614 2005-10-12  Simon Josefsson  <jas@extundo.com>
84615
84616         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84617
84618         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84619
84620 2005-10-12  Simon Josefsson  <jas@extundo.com>
84621
84622         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84623         GC_USE_HMAC_MD5, respectively.
84624
84625         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84626         (gc_md5): Fix typo.
84627
84628         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84629
84630         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84631
84632         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84633
84634 2005-10-12  Bruno Haible  <bruno@clisp.org>
84635
84636         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84637         Reported by Stepan Kasal <kasal@ucw.cz>.
84638
84639 2005-10-11  Simon Josefsson  <jas@extundo.com>
84640
84641         * tests/test-crc.c: New file.
84642
84643         * modules/crc, modules/crc-tests: New files.
84644
84645 2005-10-11  Simon Josefsson  <jas@extundo.com>
84646
84647         * m4/crc.m4: New file.
84648
84649 2005-10-11  Simon Josefsson  <jas@extundo.com>
84650
84651         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84652
84653         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84654
84655         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84656
84657 2005-10-11  Simon Josefsson  <jas@extundo.com>
84658
84659         * lib/crc.h, lib/crc.c: New files.
84660
84661         * lib/gc.h (gc_hash_buffer): Add doc.
84662
84663 2005-10-11  Bruno Haible  <bruno@clisp.org>
84664
84665         * modules/c-strcasestr: New file.
84666         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84667
84668 2005-10-11  Bruno Haible  <bruno@clisp.org>
84669
84670         * modules/c-strcase: New file.
84671         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84672
84673 2005-10-11  Bruno Haible  <bruno@clisp.org>
84674
84675         * lib/strcasecmp.c: Include limits.h.
84676         (strcasecmp): Avoid integer overflow on exotic platforms.
84677         * lib/strncasecmp.c: Include limits.h.
84678         (strncasecmp): Avoid integer overflow on exotic platforms.
84679         Reported by Paul Eggert.
84680
84681 2005-10-11  Bruno Haible  <bruno@clisp.org>
84682
84683         * lib/c-strcasestr.h: New file, from GNU gettext.
84684         * lib/c-strcasestr.c: New file, from GNU gettext.
84685
84686 2005-10-11  Bruno Haible  <bruno@clisp.org>
84687
84688         * lib/c-strcase.h: New file, from GNU gettext.
84689         * lib/c-strcasecmp.c: New file, from GNU gettext.
84690         * lib/c-strncasecmp.c: New file, from GNU gettext.
84691
84692 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84693
84694         * modules/mempcpy (License): GPL -> LGPL.
84695         * modules/strchrnul (License): Likewise.
84696         * modules/sysexits (License): Likewise.
84697
84698 2005-10-08  Simon Josefsson  <jas@extundo.com>
84699
84700         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84701
84702 2005-10-07  Simon Josefsson  <jas@extundo.com>
84703
84704         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84705
84706 2005-10-06  Simon Josefsson  <jas@extundo.com>
84707
84708         * tests/test-hmac-md5.c: New file.
84709
84710         * modules/hmac-md5-tests: New file.
84711
84712         * modules/hmac-md5: New file.
84713
84714 2005-10-06  Simon Josefsson  <jas@extundo.com>
84715
84716         * m4/hmac-md5.m4: New file.
84717
84718         * m4/memxor.m4: Require gl_C_RESTRICT.
84719
84720 2005-10-06  Simon Josefsson  <jas@extundo.com>
84721
84722         * lib/memxor.c (memxor): Avoid casts and warnings.
84723
84724 2005-10-06  Simon Josefsson  <jas@extundo.com>
84725
84726         * lib/hmac-md5.c: New file.
84727
84728         * lib/hmac.h: New file.
84729
84730 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84731
84732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84733         promotes to int, not unsigned int, to catch the AIX 5.3
84734         compiler bug.
84735
84736 2005-10-05  Simon Josefsson  <jas@extundo.com>
84737
84738         * modules/memxor: New file.
84739
84740         * modules/iconv (Files): Move config.rpath to havelib, it is used
84741         there.
84742
84743         * modules/havelib (Files): Add config.rpath.
84744
84745 2005-10-05  Simon Josefsson  <jas@extundo.com>
84746
84747         * m4/memxor.m4: New file.
84748
84749 2005-10-05  Simon Josefsson  <jas@extundo.com>
84750
84751         * lib/memxor.c (memxor): Fix compiler error.
84752
84753         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84754         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84755
84756         * lib/memxor.h, lib/memxor.c: New files.
84757
84758         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84759         we assume all systems have it, suggested by Jim Meyering
84760         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84761         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84762         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84763         same reasons.
84764
84765 2005-10-05  Simon Josefsson  <jas@extundo.com>
84766
84767         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84768
84769 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84770
84771         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84772         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84773         needed, since the source code now assumes these .h files.
84774
84775 2005-10-05  Derek Price  <derek@ximbiot.com>
84776
84777         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84778
84779 2005-10-05  Bruno Haible  <bruno@clisp.org>
84780
84781         * modules/stdint (License): Change to LGPL.
84782
84783 2005-10-04  Simon Josefsson  <jas@extundo.com>
84784
84785         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84786         D. Baushke" <mdb@gnu.org>.
84787
84788 2005-10-04  Bruno Haible  <bruno@clisp.org>
84789
84790         * lib/verify.h (verify_true): Provide alternative definition for C++.
84791
84792 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84793
84794         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84795         (SSIZE_MAX): New macro, if not already defined.
84796         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84797         than 2 GiB.
84798
84799 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84800
84801         Sync from coreutils.
84802         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84803         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84804         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84805         ULLONG_MAX doesn't work with 2.7.2.1.
84806
84807 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84808
84809         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84810         From Ben Pfaff.
84811
84812         * modules/exclude (Depends-on): Depend on verify.
84813         * modules/strtoimax (Depends-on): Likewise.
84814         * modules/utimecmp (Depends-on): Likewise.
84815
84816 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84817
84818         * lib/exclude.c: Include verify.h.
84819         (verify): Remove.  All callers changed to use verify.h's version.
84820         * lib/strtoimax.c: Likewise.
84821         * lib/utimecmp.c: Likewis.e
84822
84823         Sync from coreutils.
84824         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84825         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84826         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84827         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84828         bother returning ENOSYS if settimeofday or stime fails; just let
84829         them return whatever errno they want to return.
84830         * lib/utimens.c: Include unistd.h, for dup2.
84831         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84832         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84833
84834 2005-10-02  Jim Meyering  <jim@meyering.net>
84835
84836         Sync from coreutils.
84837         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84838         from glibc-2.2.5 that fails for read-only files.
84839
84840 2005-10-02  Jim Meyering  <jim@meyering.net>
84841
84842         Sync from coreutils.
84843         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84844         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84845         `#if HAVE_CONFIG_H'.
84846         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84847         Remove AT_FDCWD test.
84848         Do not consume the fd unless successful.
84849         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84850         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84851         block, so that we don't even try to compile it if settimeofday is
84852         available.  This works around a compilation failure on OSF1 V5.1,
84853         due to stime requiring a `long int*' while tv_sec is `int'.
84854
84855 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84856
84857         Sync from coreutils.
84858         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84859         against `yes', rather than just testing for nonempty.
84860
84861 2005-10-01  Simon Josefsson  <jas@extundo.com>
84862
84863         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84864         and Darwin.
84865
84866         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84867         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84868         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84869         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84870         Check if struct addrinfo is declared.
84871
84872 2005-10-01  Simon Josefsson  <jas@extundo.com>
84873
84874         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84875         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84876         AI_* and EAI_* definitions.  Protect function declarations.
84877
84878 2005-10-01  Jim Meyering  <jim@meyering.net>
84879
84880         Sync from coreutils.
84881
84882         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84883         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84884         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84885         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84886         in the inet and nsl libraries.  Required on Solaris 5.7.
84887
84888 2005-10-01  Jim Meyering  <jim@meyering.net>
84889
84890         Sync from coreutils.
84891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84892         in the inet and nsl libraries.  Required on Solaris 5.7.
84893
84894 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84895
84896         * lib/getdelim.c (getdelim): Remove unused variables.
84897
84898 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84899
84900         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84901         so that the code works even with ancient cpp.  Portability problem
84902         with GCC 2.7.2.1 reported by Thomas M.Ott.
84903
84904 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84905
84906         * modules/regex (Depends-on): Add strcase.
84907
84908         * modules/gethostname (Licence): Change from GPL to LGPL, since
84909         gethostname.c is a trivial implementation of a standard library
84910         function.
84911         * modules/poll (License): Change from GPL to LGPL, since it's
84912         derived from LGPL code.
84913
84914 2005-09-27  Jim Meyering  <jim@meyering.net>
84915
84916         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84917         HAVE_CONFIG_H.
84918
84919         * lib/intprops.h (signed_type_or_expr__): Define.
84920         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84921         for unsigned types.
84922
84923 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84924
84925         * lib/verify.h (verify_expr): Remove, replacing with:
84926         (verify_true): New macro that returns true instead of void.
84927         (verify_type__): Remove.
84928         (verify): Use verify_true rather than verify_type__.
84929
84930 2005-09-26  Bruno Haible  <bruno@clisp.org>
84931
84932         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84933         is necessary.
84934         (lib_SOURCES): Remove mbchar.c.
84935         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84936         (Files): Add m4/mbrtowc.m4.
84937         * modules/mbiter: Likewise.
84938         * modules/mbuiter: Likewise.
84939
84940 2005-09-26  Bruno Haible  <bruno@clisp.org>
84941
84942         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84943         compile mbchar.c if they are not both present.
84944         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84945         * m4/mbiter.m4 (gl_MBITER): Likewise.
84946         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84947         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84948         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84949
84950 2005-09-25  Jim Meyering  <jim@meyering.net>
84951
84952         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84953         also uses socklen_t.
84954
84955 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84956
84957         * lib/utimens.c (ENOSYS): Define if not already defined.
84958         (futimens): Support having a null PATH if the file descriptor
84959         is nonnegative.
84960
84961         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84962         Remove.
84963         (__attribute): Define to empty unless GCC 3.1 or later.
84964         This works around a core dump on OpenBSD 3.4, which has GCC
84965         2.95.3, which dumps core when given __attribute__(()).  It also
84966         simplifies other tests, since we really don't want to bother with
84967         worrying about which ancient version of GCC supported what.
84968         Original problem reported by Yoann Vandoorselaere, with part of
84969         the fix suggested by Derek Price.
84970
84971 2005-09-24  Jim Meyering  <jim@meyering.net>
84972
84973         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84974         so we can once again use a positive bitfield width of 1 -- now we
84975         don't have to explain why we were using a bitfield width of 2.
84976
84977 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84978
84979         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84980         and similarly for the other external symbols.  Problem reported
84981         by James Gallager.
84982
84983         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84984         bug reported by Jim Meyering.
84985
84986         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84987         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84988         not needed, since socklen is a prerequisite module.
84989
84990 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84991
84992         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84993         Problem reported by Eric Blake.
84994         (getaddrinfo): Initialize se so that it's not garbage.
84995         Redo internal storage allocation so that it doesn't make unportable
84996         assumptions about alignment.
84997         Fix a memory leak.
84998
84999         * lib/utimens.c (futimens): Use futimesat if available.
85000         Prefer it to futimes since it doesn't have the futimes bug.
85001
85002         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85003         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85004         Instead, declare a function that returns a pointer to an array,
85005         and use verify_type__ to declare the size of the array.
85006         Problem and germ of a solution reported by Bruno Haible.
85007         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85008         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85009
85010 2005-09-23  Jim Meyering  <jim@meyering.net>
85011
85012         Sync from coreutils.
85013         Correct build failure (socklen_t not defined) on at least
85014         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85015         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85016
85017 2005-09-23  Jim Meyering  <jim@meyering.net>
85018
85019         * modules/getaddrinfo (Depends-on): Add socklen.
85020
85021 2005-09-23  Bruno Haible  <bruno@clisp.org>
85022
85023         * tests/test-verify.c: New file.
85024
85025 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85026
85027         Sync from coreutils.
85028
85029         * modules/argmatch (Depends-on): Add verify.
85030         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85031         unistd-safer.
85032         * modules/save-cwd (Depends-on): Likewise.
85033
85034         * modules/openat (Files): Add lib/openat-die.c.
85035         (Depends-on): Remove error, exitfail.
85036         Add dirname.
85037
85038         * modules/verify: New file.
85039         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85040         with "verify" module.
85041
85042 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85043
85044         Sync from coreutils.
85045
85046         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85047         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85048         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85049         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85050         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85051         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85052         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85053         Don't bother checking for string.h, stdlib.h, unistd.h.
85054         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85055         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85056         module's job.
85057         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85058         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85059
85060         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85061         (gl_GETDATE): Use it.
85062
85063         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85064
85065 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85066
85067         Sync from coreutils.
85068
85069         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85070         stat-time.h.
85071         * lib/argmatch.h: Include verify.h
85072         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85073         (ARGMATCH_ASSERT): Remove; unused.
85074         * lib/canonicalize.c: Assume STDC_HEADERS.
85075         * lib/exclude.c: Include "strcase.h".
85076         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85077         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85078         and stdio-safer.h.
85079         (getusershell): Call fopen, not fopen_safer.
85080         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85081         Do not include unistd-safer.h.
85082         (save_cwd): Don't call fd_safer; no longer needed
85083         now that we include fcntl--.h.
85084
85085         * lib/getdate.y (relative_time): New type.
85086         (RELATIVE_TIME_0): New constant.
85087         (parser_control): Use relative_time instead of doing it ourselves.
85088         (%union): Add new relative_time rel member.
85089         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85090         Now typeless.
85091         (relunit, relunit_snumber): Now of type rel.
85092         (zone, rel, relunit, get_date): Adjust to above changes.
85093
85094         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85095         Do not include unistd-safer.h.
85096         (getloadavg): Don't call fd_safer; no longer needed
85097         now that we include fcntl--.h.
85098
85099         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85100         (make_dir_parents): Treat ENOSYS like EEXIST.
85101
85102         Improve quality of diagnostics on restore_cwd failure.
85103         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85104         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85105         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85106         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85107         each time through the loop.  Do not diagnose restore_cwd failure;
85108         that is the caller's job (and perhaps the caller does not care).
85109
85110         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85111         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85112         If the file already exists but is not a directory, don't bother
85113         to try to make its parents.
85114         Close potential file descriptor leak if we can't chdir("/") (!).
85115         Don't always return true if chdir($PWD) fails; return true only
85116         if the requested action was done successfully (except for the
85117         chdir($PWD)).
85118         Don't log final directory unless we actually made it.
85119         Refactor to avoid duplicate code to fix up permissions.
85120         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85121
85122         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85123         to make it a bit faster and (I hope) clearer.
85124         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85125         Fix bug in formats like %2N.
85126
85127         * lib/verify.h: New file.
85128
85129 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85130
85131         Sync from coreutils.
85132         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85133
85134 2005-09-22  Jim Meyering  <jim@meyering.net>
85135
85136         Sync from coreutils.
85137
85138         * m4/lstat.m4 (gl_FUNC_LSTAT):
85139         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85140         Remove obsolete comment.
85141         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85142         * m4/xstrtod.m4: Likewise.
85143
85144         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85145
85146 2005-09-22  Jim Meyering  <jim@meyering.net>
85147
85148         Sync from coreutils.
85149
85150         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85151
85152         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85153         the .tm_year member, since otherwise gcc-4.0 would now warn about
85154         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85155
85156         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85157         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85158
85159         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85160         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85161         when run in a time zone for which daylight savings time is in effect
85162         for the starting date.
85163
85164         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85165         stop us from restricting permissions of just-created absolute-named
85166         directories.
85167         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85168         to restore initial working directory.
85169         * lib/mkdir-p.c (make_dir_parents): New parameter:
85170         different_working_dir, to tell caller if/when we change the working
85171         directory and are unable to return to the initial one.
85172         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85173         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85174         `return false'.  This fixes a bug introduced on 2004-07-30.
85175
85176         * lib/openat.c (fdopendir): Be sure to close the supplied
85177         file descriptor before returning.  This makes our replacement
85178         implementation a little closer to Solaris's, where fdopendir
85179         ties the file descriptor to the returned DIR* pointer.
85180         * lib/openat.c (unlinkat): New function.
85181         * lib/openat.h (unlinkat): Add prototype.
85182         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85183         (openat_restore_fail): Rename from openat_restore_die.
85184         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85185
85186         Provide an alternative to exiting immediately upon save_cwd or
85187         restore_cwd failure.  Now, an application can arrange e.g.,
85188         to perform a longjump in that case.
85189         * lib/openat.c: Include dirname.h.
85190         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85191         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85192         and openat_restore_die rather than calling error directly.
85193         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85194
85195         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85196         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85197         define.
85198
85199         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85200         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85201                             int utc, int nanoseconds);
85202         Background:
85203         date should not have to allocate a megabyte of virtual memory to
85204         handle a format argument like +%1048575T.  When implemented with
85205         strftime, it must allocate such a buffer, use strftime to fill it
85206         in, print it, then free it.
85207         With fprintftime, it simply prints everything and exits.
85208         With no need for memory allocation, that's one fewer way to fail.
85209         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85210         optional field width, not before, so we accept %9:z, not %:9z.
85211         (my_strftime): Be sure to use L_('x') for literals.
85212
85213         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85214         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85215         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85216         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85217         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85218         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85219         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85220         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85221         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85222         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85223         * lib/xgethostname.c, lib/xreadlink.c:
85224         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85225
85226         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85227         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85228         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85229         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85230         and don't include <sys/file.h>).
85231
85232 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85233
85234         Sync from coreutils.
85235
85236         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85237         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85238         [!LDAV_DONE]: Avoid unused variable warning.
85239
85240 2005-09-21  Bruno Haible  <bruno@clisp.org>
85241
85242         * lib/unicodeio.h (unicode_to_mb): New declaration.
85243
85244 2005-09-20  Derek Price  <derek@ximbiot.com>
85245
85246         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85247         getaddrinfo.h.
85248
85249 2005-09-20  Bruno Haible  <bruno@clisp.org>
85250
85251         * gnulib-tool: Remove trailing slashes from the values specified for
85252         --source-base, --m4-base, --tests-base, --aux-dir.
85253         Suggested by Simon Josefsson <jas@extundo.com>.
85254
85255 2005-09-20  Bruno Haible  <bruno@clisp.org>
85256
85257         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85258         func_modules_to_filelist, func_import, func_create_testdir): Make all
85259         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85260         change when gnulib-tool is invoked in a different locale.
85261
85262 2005-09-19  Simon Josefsson  <jas@extundo.com>
85263
85264         * m4/socklen.m4: Fix typo.
85265
85266 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85267
85268         Use a consistent style for including <config.h>.
85269         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85270         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85271         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85272         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85273         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85274         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85275         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85276         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85277         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85278         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85279         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85280         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85281         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85282         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85283         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85284         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85285         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85286         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85287         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85288         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85289         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85290         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85291         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85292         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85293         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85294         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85295         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85296         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85297         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85298         lib/xstrtoumax.c, lib/yesno.c:
85299         Standardize inclusion of config.h.
85300         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85301         lib/inttostr.h:  Removed inclusion of config.h from header files.
85302         * lib/inttostr.c:  Adjusted in-tree users.
85303         * lib/timespec.h: Remove superfluous warning to include config.h.
85304         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85305         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85306         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85307         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85308         config.h with HAVE_CONFIG_H.
85309
85310 2005-09-19  Jim Meyering  <jim@meyering.net>
85311
85312         * modules/pathmax (License): Change to LGPL.
85313
85314 2005-09-19  Derek Price  <derek@ximbiot.com>
85315
85316         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85317
85318 2005-09-19  Bruno Haible  <bruno@clisp.org>
85319
85320         * gnulib-tool (import): Provide default for --tests-base.
85321
85322 2005-09-19  Bruno Haible  <bruno@clisp.org>
85323
85324         * doc/quote.texi: New file, extracted from gnulib.texi.
85325         * doc/ctime.texi: New file, extracted from gnulib.texi.
85326         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85327         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85328         * doc/gnulib.texi: Include them.
85329
85330 2005-09-18  Bruno Haible  <bruno@clisp.org>
85331
85332         Portability fix.
85333         * gnulib-tool (func_readlink): New function.
85334         (func_ln_if_changed): Use it.
85335
85336 2005-09-18  Bruno Haible  <bruno@clisp.org>
85337
85338         * gnulib-tool: Support --with-tests also with --import.
85339         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85340         (func_import): Use variables $testsbase and $inctests. Emit a
85341         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85342         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85343         SUBDIRS += $testsdir.
85344         (func_create_testdir): Update.
85345
85346 2005-09-18  Bruno Haible  <bruno@clisp.org>
85347
85348         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85349         instead of $dry_run.
85350         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85351         (func_ln_if_changed): Don't handle dry-run here.
85352         (func_import): In dry-run mode, detect more precisely which actions
85353         would be performed, and don't use "...ing" verbs.
85354
85355 2005-09-18  Bruno Haible  <bruno@clisp.org>
85356
85357         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85358         (func_import): Use join on two temporary files instead of three nested
85359         loops, in order to determine which files are new or old.
85360
85361 2005-09-18  Bruno Haible  <bruno@clisp.org>
85362
85363         * gnulib-tool (func_import): Comment out code that spits out the
85364         new files with --dry-run.
85365
85366 2005-09-18  Bruno Haible  <bruno@clisp.org>
85367
85368         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85369
85370 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85371
85372         * lib/stat-time.h: New file.
85373         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85374         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85375         in a different way.
85376         (timespec_cmp): New function.
85377         * lib/utimecmp.c: Include stat-time.h.
85378         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85379         members exist, not on the obsolescent ST_MTIM_NSEC.
85380         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85381
85382 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85383
85384         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85385
85386 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85387
85388         * MODULES.html.sh (File system functions): Add stat-time.
85389         * modules/stat-time: New file.
85390         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85391         is now done in a different way, by the stat-time module.
85392         * modules/utimecmp (Depends-on): Add stat-time.
85393
85394 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85395
85396         * m4/st_mtim.m4: Remove.  Superseded by...
85397         * m4/stat-time.m4: New file.
85398         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85399         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85400
85401 2005-09-15  Derek Price  <derek@ximbiot.com>
85402
85403         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85404
85405 2005-09-15  Derek Price  <derek@ximbiot.com>
85406
85407         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85408         * lib/regex_internal.c: Ditto, using this...
85409         (__GNUC_PREREQ): ...new macro.
85410         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85411         using...
85412         (__GNUC_PREREQ): ...this new macro.
85413
85414         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85415
85416 2005-09-15  Derek Price  <derek@ximbiot.com>
85417             Paul Eggert  <eggert@cs.ucla.edu>
85418
85419         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85420         changes, consolidating in...
85421         * lib/regex_internal.h: ...this file.
85422
85423 2005-09-13  Jim Meyering  <jim@meyering.net>
85424
85425         * lib/canon-host.c: Filter through gnu indent and reword comments
85426         slightly.
85427         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85428
85429 2005-09-13  Derek Price  <derek@ximbiot.com>
85430
85431         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85432         failure.
85433         Reported by Jim Meyering  <jim@meyering.net>.
85434
85435 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85436
85437         * lib/base64.c: Typo.
85438         (base64_encode): Put b64str in initialized data section.
85439
85440 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85441
85442         Merge glibc and coreutils changes into gnulib, plus a few
85443         extra fixes.
85444         * lib/md5.c: Use #error rather than a string.
85445         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85446         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85447         (__attribute__): Define to empty for non recent-GCC.
85448         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85449         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85450         Renamed from their non-__ counterparts, with new macros replacing
85451         them if not _LIBC.  Add __THROW attribute.
85452         (rol): Remove.
85453         (struct md5_ctx): Align buffer if using GCC.
85454         * lib/sha1.h (struct sha1_ctx): Likewise.
85455         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85456         The old name was backwards.
85457         (NOTSWAP): Remove; not used.
85458         (rol): New macro, moved here from md5.h.
85459         (sha1_process_block): Remove a FIXME that doesn't make sense.
85460
85461 2005-09-12  Derek Price  <derek@ximbiot.com>
85462
85463         Return usable errors from canon-host.
85464         * lib/canon-host.h: New file.
85465         * lib/canon-host.c (canon_host): Wrap...
85466         (canon_host_r): ...this new function, which now relies exclusively on
85467         getaddrinfo.
85468         (ch_strerror): New function.
85469         (last_cherror): New global.
85470         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85471         interface.
85472         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85473         void *.
85474         (freeaddrinfo): Free ai->ai_canonname when set.
85475
85476 2005-09-12  Derek Price  <derek@ximbiot.com>
85477
85478         Make canon-host require getaddrinfo.
85479         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85480         AC_LIBSOURCE canon-host.h.  Call...
85481         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85482         gl_GETADDRINFO.
85483         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85484
85485 2005-09-12  Derek Price  <derek@ximbiot.com>
85486
85487         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85488         LGPL.
85489         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85490
85491 2005-09-12  Derek Price  <derek@ximbiot.com>
85492
85493         * lib/gai_strerror.c: Include config.h when available.  Include
85494         getaddrinfo.h before other headers to test interface.
85495         Reported by Larry Jones <lawrence.jones@ugs.com>.
85496
85497 2005-09-12  Derek Price  <derek@ximbiot.com>
85498             Paul Eggert  <eggert@cs.ucla.edu>
85499
85500         * modules/glob (Files): Add glob-libc.h.
85501
85502 2005-09-12  Derek Price  <derek@ximbiot.com>
85503             Paul Eggert  <eggert@cs.ucla.edu>
85504
85505         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85506         glob_.h, glob-libc.h.
85507         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85508
85509 2005-09-12  Derek Price  <derek@ximbiot.com>
85510             Paul Eggert  <eggert@cs.ucla.edu>
85511
85512         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85513         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85514         protecting things that should be done only in gnulib contexts.
85515         * lib/glob_.h: New file, containing only the glob things needed for
85516         gnulib.
85517         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85518         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85519         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85520         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85521         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85522         and to respect the namespace rules better.
85523
85524 2005-09-08  Simon Josefsson  <jas@extundo.com>
85525
85526         * modules/socklen: New file.
85527
85528 2005-09-08  Simon Josefsson  <jas@extundo.com>
85529
85530         * m4/socklen.m4: New file.
85531
85532 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85533
85534         * modules/utimens (Files): Add m4/utimbuf.m4, since
85535         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85536         Reported by Sergey Poznyakoff.
85537
85538 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85539
85540         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85541         definitions, since that's the preferred style in glibc.
85542         Fix a minor spacing issue, and update copyright notice to match
85543         glibc's.
85544
85545 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85546
85547         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85548
85549 2005-09-06  Simon Josefsson  <jas@extundo.com>
85550
85551         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85552         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85553
85554 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85555
85556         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85557         warning.
85558
85559 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85560
85561         * config/srclist.txt: Add glibc bug 1302.
85562
85563 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85564
85565         Change bitset word type from unsigned int to unsigned long int,
85566         as this has better performance on typical 64-bit hosts.
85567         Port bitset code to hosts with unusual word sizes.
85568         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85569         (build_collating_symbol):
85570         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85571         argument is a bitset.  This is merely a style issue, but it makes
85572         it clearer that an entire array is expected.
85573         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85574         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85575         Port to the case where bitset_word is not the same as unsigned int.
85576         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85577         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85578         Likewise.
85579         * lib/regexec.c (check_dst_limits_calc_pos_1,
85580         check_subexp_matching_top):
85581         (build_trtable, group_nodes_into_DFAstates):
85582         Likewise.
85583         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85584         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85585         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85586         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85587         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85588         * lib/regcomp.c (optimize_subexps, lower_subexp):
85589         Work even if bitset_word has holes in its bitwise representation.
85590         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85591         * lib/regexec.c (check_dst_limits_calc_pos_1,
85592         check_subexp_matching_top):
85593         Likewise.
85594         * lib/regex_internal.c (re_string_reconstruct):
85595         Don't assume UCHAR_MAX == 255.
85596         * lib/regex_internal.h (bitset_set_all): Likewise.
85597         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85598         All uses changed.
85599         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85600         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85601         All uses changed.
85602         (BITSET_WORD_MAX): New macro.
85603         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85604         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85605         (bitset_empty, bitset_copy):
85606         Prefer sizeof (bitset) to multiplying it out ourselves.
85607         (bitset_not_merge): Remove; unused.
85608         (bitset_contain): Return bool, not unsigned int with one bit on.
85609         All callers changed.
85610         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85611         alignment than re_node_set; do this by defining a new internal
85612         type struct dests_alloc and using it to allocate memory.
85613
85614 2005-09-05  Bruno Haible  <bruno@clisp.org>
85615
85616         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85617         links.
85618
85619 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85620
85621         * modules/size_max (Makefile.am): Add size_max.h
85622
85623 2005-09-04  Derek Price  <derek@ximbiot.com>
85624
85625         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85626
85627 2005-09-03  Simon Josefsson  <jas@extundo.com>
85628
85629         * gnulib-tool: Fix typo.
85630
85631 2005-09-03  Simon Josefsson  <jas@extundo.com>
85632
85633         * config/srclist.txt: Add glibc bug 1293.
85634
85635 2005-09-03  Derek Price  <derek@ximbiot.com>
85636
85637         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85638         From Larry Jones <lawrence.jones@ugs.com>.
85639
85640 2005-09-02  Simon Josefsson  <jas@extundo.com>
85641
85642         * modules/socklen: New file.
85643
85644 2005-09-02  Simon Josefsson  <jas@extundo.com>
85645
85646         * modules/havelib: New module.
85647
85648         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85649         Use havelib.
85650
85651 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85652
85653         Check for arithmetic overflow when calculating sizes, to prevent
85654         some buffer-overflow issues.  These patches are conservative, in the
85655         sense that when I couldn't determine whether an overflow was possible,
85656         I inserted a run-time check.
85657         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85658         macros.
85659         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85660         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85661         (re_xnrealloc, re_x2nrealloc): New inline functions.
85662         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85663         parse_bracket_exp):
85664         (build_equiv_class, build_charclass): Check for arithmetic overflow
85665         in size expression calculations.
85666         * lib/regex_internal.c (re_string_realloc_buffers):
85667         (build_wcs_upper_buffer, re_node_set_add_intersect):
85668         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85669         (re_dfa_add_node, register_state): Likewise.
85670         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85671         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85672         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85673         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85674
85675 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85676
85677         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85678         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85679
85680 2005-09-02  Bruno Haible  <bruno@clisp.org>
85681
85682         Support for lib vs. lib64 distinction on biarch platforms.
85683         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85684         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85685         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85686
85687 2005-09-02  Bruno Haible  <bruno@clisp.org>
85688
85689         * gnulib-tool (import): In the other first-use case, provide defaults
85690         as well.
85691
85692 2005-09-02  Bruno Haible  <bruno@clisp.org>
85693
85694         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85695         patches not yet found in the latest gettext release.
85696
85697 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85698
85699         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85700         to avoid a collision with bits/local_lim.h in glibc.
85701         All uses changed.  Problem reported by Dmitry V. Levin in
85702         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85703
85704         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85705         bugs in int versus size_t comparisons.
85706         (re_string_context_at): Fix bug where the code assumed that
85707         Idx is signed.
85708
85709         Use bool where appropriate.
85710         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85711         All callers changed.
85712         (calc_eclosure_iter): Likewise, for ROOT arg.
85713         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85714         (build_charclass_op): Likewise, for NON_MATCH arg.
85715         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85716         (re_string_construct_common): Likewise, for ICASE arg.
85717         * lib/regexec.c (re_search_2_stub, re_search_stub):
85718         Likewise, for RET_LEN arg.
85719         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85720         (set_regs): Likewise, for FL_BACKTRACK arg.
85721         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85722         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85723         (calc_eclosure_iter, parse_bracket_exp):
85724         Use bool for internal variables that are booleans.
85725         * lib/regexec.c (re_search_internal, check_matching,
85726         proceed_next_node):
85727         (set_regs, build_sifted_states, sift_states_bkref):
85728         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85729         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85730         (find_collation_sequence_value):
85731         Likewise.
85732         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85733         (re_node_set_compare):
85734         Return bool, not int. All callers changed.
85735         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85736         (build_trtable, check_node_accept): Likewise.
85737         * lib/regex_internal.h: Include stdbool.h.
85738
85739         Fix bugs uncovered when converting to bool.
85740         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85741         failure instead of charging ahead blindly.
85742         * lib/regex_internal.c (register_state): Likewise.
85743         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85744         for freeing internal storage.
85745         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85746         bitset pieces used as boolean, to avoid undefined behavior
85747         on hosts that do int overflow checking.
85748
85749 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         * config/srclist.txt: Add glibc bugs 1285-1287.
85752
85753 2005-09-01  Jim Meyering  <jim@meyering.net>
85754
85755         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85756         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85757         Require gl_STAT_MACROS, too.
85758
85759 2005-09-01  Bruno Haible  <bruno@clisp.org>
85760
85761         * gnulib-tool (import): In the first-use case, provide defaults.
85762
85763 2005-09-01  Bruno Haible  <bruno@clisp.org>
85764
85765         * gnulib-tool (func_import): Remove the .tmp files.
85766
85767 2005-09-01  Bruno Haible  <bruno@clisp.org>
85768
85769         * gnulib-tool (func_import): Fix handling of symbolic links.
85770
85771 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85772
85773         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85774         old glibc regex code mishandles strings longer than 2**31 bytes.
85775         This patch fixes this when the regex code is used in gnulib
85776         (i.e., outside glibc).
85777
85778         This patch should not affect the use of the regex code inside
85779         glibc.  No doubt this problem also needs to be handled for glibc
85780         as well, but the result will be an incompatible change to the
85781         glibc ABI, and the old ABI will have to be supported too.  That
85782         can be the the subject for another patch.
85783
85784         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85785         governing whether the rest of this patch is active.  By default,
85786         the macro is disabled and the patch has no effect.
85787         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85788         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85789         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85790         (re_match_2, re_set_registers): Use the new types.
85791         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85792         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85793         New macros.
85794         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85795         (re_string_context_at, bin_tree_t, re_dfastate_t):
85796         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85797         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85798         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85799         (re_string_char_size_at, re_string_wchar_at):
85800         (re_string_elem_size_at):
85801         Use the new types and macros to port to 64-bit hosts.
85802         Use unsigned types for internal values, so that the code
85803         mostly works even for arrays larger than SSIZE_MAX.
85804         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85805         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85806         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85807         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85808         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85809         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85810         (calc_inveclosure, parse_dup_op, build_range_exp):
85811         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85812         (fetch_number, create_token_tree, mark_opt_subexp):
85813         Likewise.
85814         * lib/regex_internal.c (re_string_construct_common,
85815         create_ci_newstate):
85816         (create_cd_newstate, re_string_allocate, re_string_construct):
85817         (re_string_realloc_buffers, build_wcs_upper_buffer):
85818         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85819         (re_string_reconstruct, re_string_peek_byte_case):
85820         (re_string_fetch_byte_case, re_string_context_at):
85821         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85822         (re_node_set_init_copy, re_node_set_add_intersect):
85823         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85824         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85825         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85826         (re_acquire_state, re_acquire_state_context, register_state):
85827         Likewise.
85828         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85829         search_cur_bkref_entry):
85830         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85831         (re_search_internal, re_search_2_stub, re_search_stub)
85832         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85833         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85834         (update_cur_sifted_state, check_dst_limits):
85835         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85836         (check_subexp_limits, sift_states_bkref, merge_state_array):
85837         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85838         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85839         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85840         (expand_bkref_cache, check_node_accept_bytes):
85841         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85842         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85843         (acquire_init_state_context, check_halt_node_context):
85844         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85845         (sift_states_backward, clean_state_log_if_needed):
85846         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85847         (find_recover_state, transit_state_sb, transit_state_mb):
85848         (transit_state_bkref, build_trtable, match_ctx_clean):
85849         Likewise.
85850         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85851         to work around an assumption that REG_MISSING is negative.
85852
85853         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85854         (seek_collating_symbol_entry) [defined _LIBC]:
85855         (lookup_collation_sequence_value) [defined _LIBC]:
85856         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85857         Use prototypes rather than old-style function definitions.
85858         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85859         (transit_state_sb) [0]:
85860         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85861
85862         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85863         rm_eo.
85864
85865         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85866         (optimize_subexps, lower_subexp):
85867         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85868         since the signed shift might overflow.  Use 1u<<31 instead.
85869         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85870         Likewise.
85871         * lib/regexec.c (check_dst_limits_calc_pos_1,
85872         check_subexp_matching_top): Likewise.
85873
85874         * lib/regcomp.c (optimize_subexps, lower_subexp):
85875         Use CHAR_BIT rather than 8, for clarity.
85876         * lib/regexec.c (check_dst_limits_calc_pos_1):
85877         (check_subexp_matching_top): Likewise.
85878         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85879         have to worry about portability issues when shifting it left.
85880         Remove no-longer-needed test for table_size > 0.
85881         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85882         in a word, as the resulting behavior is undefined.
85883         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85884         in one case, a <= should have been an <, and in another case the
85885         whole test was missing.
85886         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85887         the standard name CHAR_BIT.
85888         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85889         this is not true on one's complement and signed-magnitude hosts.
85890
85891         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85892         next_last_offset.
85893         (struct re_dfa_t): Remove unused member states_alloc.
85894         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85895
85896 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85897
85898         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85899         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85900         and large-file glibc and in 32-bit large-file Solaris.
85901
85902 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85903
85904         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85905         lengths fit in regoff_t; this isn't true if regoff_t is the same
85906         width as size_t.
85907         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85908         (= START + RANGE) instead of RANGE.  This avoids overflow
85909         problems when regoff_t is the same width as size_t.
85910         All callers changed.
85911         (re_search_2_stub): Check for overflow when adding the
85912         sizes of the two strings.
85913         (re_search_stub): Check for overflow when adding START
85914         to RANGE; if it occurs, substitute the extreme value.
85915
85916 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85917
85918         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85919
85920 2005-08-31  Jim Meyering  <jim@meyering.net>
85921
85922         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85923         a pointer-to-const.
85924         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85925         (register_state): Likewise.
85926         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85927         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85928         (group_nodes_into_DFAstates): Likewise.
85929
85930 2005-08-31  Jim Meyering  <jim@meyering.net>
85931
85932         * check-module: Add a FIXME comment.
85933
85934 2005-08-31  Eric Blake  <ebb9@byu.net>
85935
85936         * modules/unistd-safer (Files): Add unistd--.h.
85937         * modules/stdio-safer (Files): Add stdio--.h.
85938
85939 2005-08-31  Derek Price  <derek@ximbiot.com>
85940
85941         * lib/getdelim.c (getdelim): Return EOF on EOF.
85942         Reported by Larry Jones <lawrence.jones@ugs.com>.
85943
85944 2005-08-31  Bruno Haible  <bruno@clisp.org>
85945
85946         Avoid unnecessary diffs in the generated lib/Makefile.am.
85947         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85948         the generated files.
85949         (func_import): Don't set cmd.
85950
85951 2005-08-31  Bruno Haible  <bruno@clisp.org>
85952
85953         * lib/strstr.c: Include <stddef.h>, for NULL.
85954         * lib/strcasestr.c: Likewise.
85955         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85956
85957 2005-08-31  Bruno Haible  <bruno@clisp.org>
85958
85959         * gnulib-tool: New option --macro-prefix.
85960         (func_import): Use macro_prefix.
85961         (import): Handle option --macro-prefix.
85962
85963 2005-08-31  Bruno Haible  <bruno@clisp.org>
85964
85965         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85966         Also use new variables cached_lgpl, cached_libtool.
85967
85968 2005-08-31  Bruno Haible  <bruno@clisp.org>
85969
85970         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85971         always instantiating them.
85972
85973 2005-08-31  Bruno Haible  <bruno@clisp.org>
85974
85975         * gnulib-tool (func_import): Read the previous cached settings
85976         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85977         earlier added by gnulib but are now dropped. Warn when a gnulib file
85978         overwrites a non-gnulib file.
85979
85980 2005-08-31  Bruno Haible  <bruno@clisp.org>
85981
85982         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85983         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85984         projects that don't keep autogenerated files in CVS. Put into
85985         actioncmd only the specified modules, not the transitive closure.
85986
85987 2005-08-31  Bruno Haible  <bruno@clisp.org>
85988
85989         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85990         Create directories that shall be filled.
85991         (import): Don't look for gl_* macros in configure.ac. Recurse across
85992         all directories containing a gnulib-cache.m4 files, if meaningful.
85993
85994 2005-08-31  Bruno Haible  <bruno@clisp.org>
85995
85996         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85997         (import): Set seen_libtool when we see gl_LIBTOOL.
85998
85999 2005-08-31  Bruno Haible  <bruno@clisp.org>
86000
86001         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86002         declaration macro definitions from generated gnulib.m4.
86003
86004 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86005
86006         * lib/iconvme.h: Add prototype for iconv_alloc.
86007
86008 2005-08-29  Simon Josefsson  <jas@extundo.com>
86009
86010         * lib/iconvme.c: Fix errno.
86011
86012 2005-08-29  Bruno Haible  <bruno@clisp.org>
86013
86014         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86015         that it works when the directory contains spaces.
86016
86017 2005-08-29  Bruno Haible  <bruno@clisp.org>
86018
86019         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86020
86021 2005-08-29  Bruno Haible  <bruno@clisp.org>
86022
86023         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86024         Emit more advice.
86025
86026 2005-08-29  Bruno Haible  <bruno@clisp.org>
86027         and Stepan Kasal  <kasal@ucw.cz>
86028
86029         * check-module: If more parameters are given, check each of them
86030         separately; add more exceptions, as noted by Jim Meyering.
86031         (check_module): New procedure.
86032         (%exempt_header): Now contains all exceptions.
86033
86034 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86035
86036         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86037
86038 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86039
86040         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86041
86042 2005-08-28  Bruno Haible  <bruno@clisp.org>
86043
86044         * m4/gnulib-tool.m4: New file.
86045
86046 2005-08-27  Jim Meyering  <jim@meyering.net>
86047
86048         * modules/unistd-safer (Files): Add pipe-safer.c.
86049         * modules/fcntl-safer (Files): Add creat-safer.c.
86050
86051 2005-08-27  Jim Meyering  <jim@meyering.net>
86052
86053         * m4/stdlib-safer.m4: New file.  From coreutils.
86054         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86055         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86056         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86057         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86058         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86059
86060 2005-08-27  Jim Meyering  <jim@meyering.net>
86061
86062         * lib/fopen-safer.c: Merge minor changes from coreutils.
86063         * lib/dup-safer.c: Likewise.
86064         * lib/fd-safer.c: Likewise.
86065
86066         Merge from coreutils.
86067         * lib/stdio--.h: New file.
86068         * lib/stdlib--.h: New file.
86069         * lib/mkstemp-safer.c: New file.
86070
86071         GNU tar needs these.
86072         * lib/pipe-safer.c: New file.
86073         * lib/creat-safer.c: New file.
86074         * lib/fcntl--.h (creat): Define to creat_safer.
86075         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86076         * lib/unistd--.h (pipe): Define to pipe_safer.
86077         * lib/unistd-safer.h: Declare pipe_safer.
86078
86079 2005-08-26  Simon Josefsson  <jas@extundo.com>
86080
86081         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86082         Haible <bruno@clisp.org>.
86083
86084 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86085
86086         * lib/regex_internal.h: Remove all references to
86087         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86088         or better.
86089         (bitset_not, bitset_merge, bitset_not_merge):
86090         (bitset_mask, re_string_allocate, re_string_construct):
86091         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86092         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86093         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86094         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86095         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86096         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86097         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86098         (re_acquire_state_context):
86099         Remove unnecessary forward decls.
86100         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86101         Put __attribute at function definition,
86102         now that the function decl has been removed.
86103         * lib/regex_internal.c (re_string_peek_byte_case):
86104         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86105         Likewise.
86106
86107 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86108
86109         * m4/regex.m4: Add AC_PREREQ(2.50).
86110         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86111
86112 2005-08-25  Simon Josefsson  <jas@extundo.com>
86113
86114         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86115         __fsetlocking.
86116
86117 2005-08-25  Simon Josefsson  <jas@extundo.com>
86118
86119         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86120         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86121         GLIBC specific code.
86122
86123 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86124
86125         Make regex safe for g++.  This fixes one real bug (an "err"
86126         that should have been "*err").  g++ problem reported by
86127         Sam Steingold.
86128         * lib/regex_internal.h (re_calloc): New macro, consistent with
86129         re_malloc etc.  All callers of calloc changed to use re_calloc.
86130         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86131         not int.  All callers changed.
86132         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86133         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86134         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86135         (find_recover_state): Change "err" to "*err"; this fixes what
86136         appears to be a real bug.
86137         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86138         versus int.
86139
86140 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86141
86142         * modules/regex (Depends-on): Add malloc, since the code
86143         assumes that !malloc(0) means failure.
86144
86145 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86146
86147         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86148
86149         alloca modernization/simplification for regex.
86150         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86151         needs to be at the start of the file, and can be moved into
86152         regex_internal.h and simplified.
86153         * lib/regex_internal.h: Include <alloca.h>.
86154         (__libc_use_alloca) [!defined _LIBC]: New macro.
86155         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86156         now works outside glibc.
86157
86158 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86159
86160         * config/srclist.txt: Add glibc bugs 1241, 1245.
86161
86162 2005-08-25  Jim Meyering  <jim@meyering.net>
86163
86164         * lib/open-safer.c: Include <config.h>.
86165         Otherwise, we'd lose LARGEFILE support in any file using
86166         e.g. "fcntl--.h"
86167
86168 2005-08-25  Bruno Haible  <bruno@clisp.org>
86169
86170         * m4/minmax.m4: Require autoconf 2.52.
86171         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86172         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86173         alternatives of translit over the alphabet.
86174         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86175
86176 2005-08-24  Simon Josefsson  <jas@extundo.com>
86177
86178         * tests/test-getpass.c: New file.
86179
86180 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86181
86182         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86183         for GNU regex features.
86184
86185 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86186
86187         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86188         * lib/regex.h (regerror): Likewise.
86189
86190         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86191         requires this.  (The code never needed it.)
86192
86193         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86194         All uses of recently-renamed identifiers changed to use the new,
86195         POSIX-compliant names.  The code will build and run just fine
86196         without these changes, but it's better to eat our own dog food
86197         and use the standard-conforming names.
86198
86199         * lib/regex.h: Fix a multitude of POSIX name space violations.
86200         These changes have an effect only for programs that define
86201         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86202         do not change anything for programs compiled in the normal way.
86203         Also, there is no effect on the ABI.
86204
86205         (_REGEX_SOURCE): New macro.
86206         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86207         defined and _GNU_SOURCE is not; this fixes a name space violation.
86208
86209         Rename the following macros to obey POSIX requirements.
86210         The old names are still visible as macros if _REGEX_SOURCE is defined.
86211         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86212         RE_BACKSLASH_ESCAPE_IN_LISTS.
86213         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86214         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86215         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86216         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86217         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86218         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86219         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86220         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86221         (REG_INTERVALS): renamed from RE_INTERVALS.
86222         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86223         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86224         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86225         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86226         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86227         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86228         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86229         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86230         RE_UNMATCHED_RIGHT_PAREN_ORD.
86231         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86232         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86233         (REG_DEBUG): renamed from RE_DEBUG.
86234         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86235         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86236         unusual, since we can't clash with the POSIX REG_ICASE.
86237         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86238         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86239         (REG_NO_SUB): renamed from RE_NO_SUB.
86240         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86241         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86242         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86243         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86244         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86245         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86246         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86247         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86248         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86249         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86250         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86251         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86252         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86253         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86254         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86255         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86256         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86257         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86258         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86259         (REG_FIXED): Renamed from REGS_FIXED.
86260         (REG_NREGS): Renamed from RE_NREGS.
86261
86262         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86263         of other REG_* macros, since POSIX says the user is allowed to
86264         #undef these macros selectively.
86265
86266         (reg_errcode_t): Update comment stating what other tables need
86267         to be consistent.
86268
86269         Rename the following enum values to obey POSIX requirements.
86270         The old names are still visible as macros.
86271         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86272         is not defined, since GNU is supposed to be a superset of POSIX as
86273         much as possible, and since we want reg_errcode_t to be a signed
86274         type for implementation consistency.
86275         (_REG_NOERROR): Renamed from REG_NOERROR.
86276         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86277         (_REG_BADPAT): Renamed from REG_BADPAT.
86278         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86279         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86280         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86281         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86282         (_REG_EBRACK): Renamed from REG_EBRACK.
86283         (_REG_EPAREN): Renamed from REG_EPAREN.
86284         (_REG_EBRACE): Renamed from REG_EBRACE.
86285         (_REG_BADBR): Renamed from REG_BADBR.
86286         (_REG_ERANGE): Renamed from REG_ERANGE.
86287         (_REG_ESPACE): Renamed from REG_ESPACE.
86288         (_REG_BADRPT): Renamed from REG_BADRPT.
86289         (_REG_EEND): Renamed from REG_EEND.
86290         (_REG_ESIZE): Renamed from REG_ESIZE.
86291         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86292         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86293         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86294         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86295         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86296
86297         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86298         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86299         changed.  But support the old name if the new one is not defined
86300         and if _REGEX_SOURCE.
86301
86302         Change the following member names in struct re_pattern_buffer.
86303         The old names are still supported if !_REGEX_SOURCE.
86304         The new names are always supported, regardless of _REGEX_SOURCE.
86305         (re_buffer): Renamed from buffer.
86306         (re_allocated): Renamed from allocated.
86307         (re_used): Renamed from used.
86308         (re_syntax): Renamed from syntax.
86309         (re_fastmap): Renamed from fastmap.
86310         (re_translate): Renamed from translate.
86311         (re_can_be_null): Renamed from can_be_null.
86312         (re_regs_allocated): Renamed from regs_allocated.
86313         (re_fastmap_accurate): Renamed from fastmap_accurate.
86314         (re_no_sub): Renamed from no_sub.
86315         (re_not_bol): Renamed from not_bol.
86316         (re_not_eol): Renamed from not_eol.
86317         (re_newline_anchor): Renamed from newline_anchor.
86318
86319         Change the following member names in struct re_registers.
86320         The old names are still supported if !_REGEX_SOURCE.
86321         The new names are always supported, regardless of _REGEX_SOURCE.
86322         (rm_num_regs): Renamed from num_regs.
86323         (rm_start): Renamed from start.
86324         (rm_end): Renamed from end.
86325
86326         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86327         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86328         Prepend __ to parameter names.
86329
86330         Undo yesterday's changes.
86331
86332 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86333
86334         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86335         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86336         lib/regex.c.
86337
86338 2005-08-24  Jim Meyering  <jim@meyering.net>
86339
86340         Sync from coreutils.
86341         * m4/fcntl-safer.m4: New file.
86342
86343         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86344         and object files for this module.
86345
86346 2005-08-24  Jim Meyering  <jim@meyering.net>
86347
86348         Sync from coreutils.
86349         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86350
86351 2005-08-24  Jim Meyering  <jim@meyering.net>
86352
86353         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86354         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86355
86356 2005-08-24  Jim Meyering  <jim@meyering.net>
86357
86358         * modules/fcntl-safer: New module.
86359         * modules/fts (Depends-on): Add fcntl-safer.
86360         * MODULES.html.sh (File descriptor based Input/Output):
86361         Add fcntl-safer.
86362
86363 2005-08-24  Bruno Haible  <bruno@clisp.org>
86364
86365         Support for unit test modules.
86366         * modules/README: Mention tests modules.
86367         * modules/TEMPLATE-TESTS: New file.
86368         * gnulib-tool: New options --extract-tests-module, --with-tests and
86369         --tests-base (unused for the moment).
86370         (testsbase, inctests): New variables.
86371         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86372         (func_verify_module): Exclude TEMPLATE-TESTS.
86373         (func_verify_nontests_module, func_verify_tests_module): New functions.
86374         (func_get_dependencies): Add implicit dependency for tests modules.
86375         (func_get_tests_module): New function.
86376         (func_modules_transitive_closure): When --with-tests was specified,
86377         include the unit tests as well, unless explicitly avoided.
86378         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86379         (func_emit_tests_Makefile_am): New function.
86380         (func_create_testdir): When --with-tests was specified, emit a
86381         tests/ directory.
86382         * MODULES.html.sh (Future developments): Update.
86383
86384 2005-08-24  Bruno Haible  <bruno@clisp.org>
86385
86386         * modules/tls-tests: New file.
86387         * tests/test-tls.c: New file, from GNU gettext.
86388
86389 2005-08-24  Bruno Haible  <bruno@clisp.org>
86390
86391         * modules/lock-tests: New file.
86392         * tests/test-lock.c: New file, from GNU gettext.
86393
86394 2005-08-24  Bruno Haible  <bruno@clisp.org>
86395
86396         * lib/lock.h: Add multiple inclusion guard.
86397         * lib/tls.h: Add multiple inclusion guard.
86398
86399 2005-08-24  Bruno Haible  <bruno@clisp.org>
86400
86401         * gnulib-tool: Add support for the --aux-dir option to
86402         --create-testdir, --create-megatestdir, --test, --megatest.
86403         (func_create_testdir, func_create_megatestdir): Optionally emit a
86404         AC_CONFIG_AUX_DIR directive.
86405         (create-testdir, create-megatestdir, test, megatest): Provide a
86406         default value for $auxdir.
86407
86408 2005-08-24  Bruno Haible  <bruno@clisp.org>
86409
86410         * gnulib-tool (import): Use compound statement instead of subshell
86411         where possible.
86412
86413 2005-08-24  Bruno Haible  <bruno@clisp.org>
86414
86415         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86416
86417 2005-08-24  Bruno Haible  <bruno@clisp.org>
86418
86419         * gnulib-tool (func_version): Update.
86420
86421 2005-08-24  Bruno Haible  <bruno@clisp.org>
86422
86423         * gnulib-tool (func_import, func_create_testdir,
86424         func_create_megatestdir): Quote all autoconf macro arguments.
86425
86426 2005-08-24  Bruno Haible  <bruno@clisp.org>
86427
86428         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86429         option --force, because --force causes the aclocal.m4 of each
86430         subdirectory to be newer than the corresponding config.h.in.
86431
86432 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86433
86434         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86435         All contents moved to gl_REGEX.
86436         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86437         assume that it does.
86438
86439 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86440
86441         * lib/regex.h (REG_NOSYS)
86442         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86443         Define, since POSIX requires it as of 2001.
86444         (_REG_ENOSYS)
86445         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86446         New private symbol, used to keep the enum signed in all cases.
86447         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86448         Youngman in
86449         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86450
86451         * lib/regex_internal.c (re_string_skip_chars, register_state):
86452         (calc_state_hash):
86453         Remove forward decls; no longer needed now that we use prototypes.
86454         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86455         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86456         (clean_state_log_if_needed): Likewise.
86457
86458 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86459
86460         * config/srclist.txt: Add glibc bugs 1231-1233.
86461
86462 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86463
86464         Fix problems reported by Sam Steingold in
86465         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86466         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86467         assumed that reg_errcode_t is a signed type, which is not
86468         necessarily true if _XOPEN_SOURCE is not defined.
86469         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86470         since some compilers warn about it otherwise.
86471
86472 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86473
86474         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86475         (init_word_char, create_initial_state, duplicate_node_closure):
86476         (fetch_token, peek_token_bracket, build_range_exp):
86477         (build_collating_symbol): Remove forward decls; no longer needed
86478         now that we use prototypes.
86479
86480         * lib/regcomp.c:
86481         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86482         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86483         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86484         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86485         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86486         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86487         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86488         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86489         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86490         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86491         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86492         (build_charclass, build_charclass_op, fetch_number, create_tree):
86493         (create_token_tree, mark_opt_subexp, duplicate_tree):
86494         Use prototypes rather than old-style definitions.
86495
86496         * lib/regex_internal.c:
86497         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86498         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86499         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86500         (re_string_reconstruct, re_string_peek_byte_case):
86501         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86502         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86503         (re_node_set_init_copy, re_node_set_add_intersect):
86504         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86505         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86506         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86507         (re_acquire_state, re_acquire_state_context, register_state):
86508         (create_ci_newstate, create_cd_newstate, free_state):
86509         Likewise.
86510         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86511         re_search_2):
86512         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86513         (re_search_internal, prune_impossible_nodes):
86514         (acquire_init_state_context, check_matching, static):
86515         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86516         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86517         (update_regs, sift_states_backward, build_sifted_states):
86518         (clean_state_log_if_needed, merge_state_array):
86519         (update_cur_sifted_state, add_epsilon_src_nodes):
86520         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86521         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86522         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86523         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86524         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86525         (check_arrival, check_arrival_add_next_nodes):
86526         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86527         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86528         (check_node_accept_bytes, check_node_accept, extend_buffers):
86529         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86530         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86531         (sift_ctx_init):
86532         Likewise.
86533
86534         * lib/regex_internal.h:
86535         (re_string_allocate, re_string_construct, re_string_reconstruct):
86536         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86537         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86538         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86539         (re_string_context_at, re_string_peek_byte_case):
86540         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86541         is defined, since we now use prototypes always.
86542
86543         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86544         C89 or better.  All uses removed.
86545
86546 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86547
86548         * config/srclist.txt: Add glibc bugs 1220-1227.
86549
86550 2005-08-20  Jim Meyering  <jim@meyering.net>
86551
86552         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86553         of unused local, dfa.
86554
86555 2005-08-20  Bruno Haible  <bruno@clisp.org>
86556
86557         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86558
86559 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86560
86561         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86562         (re_node_set_insert_last, re_dfa_add_node):
86563         Rename local variables to avoid GCC shadowing warnings.
86564
86565 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86566
86567         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86568         [defined lint]: Suppress bogus uninitialized-variable warnings.
86569
86570         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86571         and let the caller return REG_ESPACE if out of space.  This
86572         removes an uninitialied-variable warning with GCC 4.0.1, and also
86573         avoids taking the address of a local variable.  All callers
86574         changed.
86575
86576 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86577
86578         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86579         $LIBCSRC/posix/regexec.c.
86580         Add glibc bug 1217 for regcomp.c.
86581
86582 2005-08-19  Jim Meyering  <jim@meyering.net>
86583
86584         * lib/regexec.c (proceed_next_node): Redo local variables to
86585         avoid GCC shadowing warnings.
86586
86587 2005-08-18  Bruno Haible  <bruno@clisp.org>
86588
86589         * lib/strstr.c (strstr): Fix return value in multibyte case.
86590         * lib/strcasestr.c (strcasestr): Likewise.
86591
86592 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86593
86594         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86595
86596 2005-08-17  Jim Meyering  <jim@meyering.net>
86597
86598         Make the %s format (seconds since the epoch) work for a negative
86599         number and when used with a zero-padded field width, e.g. %015s.
86600
86601         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86602         label so that it precedes the code to set `digits'.  Otherwise,
86603         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86604         print `00-22'.  Now, it prints `-0022', as it should.
86605
86606 2005-08-17  Bruno Haible  <bruno@clisp.org>
86607
86608         * modules/strstr (Files): Add m4/mbrtowc.m4.
86609         (Depends-on): Add mbuiter.
86610
86611 2005-08-17  Bruno Haible  <bruno@clisp.org>
86612
86613         * modules/strcasestr: New file.
86614         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86615         strcasestr.
86616
86617 2005-08-17  Bruno Haible  <bruno@clisp.org>
86618
86619         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86620
86621 2005-08-17  Bruno Haible  <bruno@clisp.org>
86622
86623         * modules/mbuiter: New file.
86624         * MODULES.html.sh (Extended multibyte and wide character utilities):
86625         Add mbuiter.
86626
86627 2005-08-17  Bruno Haible  <bruno@clisp.org>
86628
86629         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86630         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86631
86632 2005-08-17  Bruno Haible  <bruno@clisp.org>
86633
86634         * m4/strcasestr.m4: New file.
86635
86636 2005-08-17  Bruno Haible  <bruno@clisp.org>
86637
86638         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86639         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86640
86641 2005-08-17  Bruno Haible  <bruno@clisp.org>
86642
86643         * lib/strcasestr.h: New file.
86644         * lib/strcasestr.c: New file.
86645
86646 2005-08-17  Bruno Haible  <bruno@clisp.org>
86647
86648         * lib/strcasecmp.c: Use mbuiter.h.
86649
86650 2005-08-17  Bruno Haible  <bruno@clisp.org>
86651
86652         * lib/mbuiter.h: New file.
86653
86654 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86655
86656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86657         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86658         and gl_GETOPT are both invoked via different paths (as happens
86659         with GNU tar CVS because it uses both argp and getopt), the former
86660         wins.
86661
86662 2005-08-16  Bruno Haible  <bruno@clisp.org>
86663
86664         * modules/tls: New file.
86665         * MODULES.html.sh (Multithreading): Add tls.
86666
86667 2005-08-16  Bruno Haible  <bruno@clisp.org>
86668
86669         * modules/strnlen1: New file.
86670         * MODULES.html.sh (String handling): Add strnlen1.
86671
86672 2005-08-16  Bruno Haible  <bruno@clisp.org>
86673
86674         * modules/strcase (Files): Add m4/mbrtowc.m4.
86675         (Depends-on): Add strnlen1, mbchar.
86676
86677 2005-08-16  Bruno Haible  <bruno@clisp.org>
86678
86679         * modules/mbiter: New file.
86680         * MODULES.html.sh (Extended multibyte and wide character utilities):
86681         Add mbiter.
86682
86683 2005-08-16  Bruno Haible  <bruno@clisp.org>
86684
86685         * modules/mbfile: New file.
86686         * MODULES.html.sh (Extended multibyte and wide character utilities):
86687         Add mbfile.
86688
86689 2005-08-16  Bruno Haible  <bruno@clisp.org>
86690
86691         * modules/mbchar: New file.
86692         * MODULES.html.sh (Extended multibyte and wide character utilities):
86693         New section.
86694
86695 2005-08-16  Bruno Haible  <bruno@clisp.org>
86696
86697         * m4/tls.m4: New file, from GNU gettext.
86698
86699 2005-08-16  Bruno Haible  <bruno@clisp.org>
86700
86701         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86702         always.
86703         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86704
86705 2005-08-16  Bruno Haible  <bruno@clisp.org>
86706
86707         * m4/mbiter.m4: New file.
86708
86709 2005-08-16  Bruno Haible  <bruno@clisp.org>
86710
86711         * m4/mbfile.m4: New file.
86712
86713 2005-08-16  Bruno Haible  <bruno@clisp.org>
86714
86715         * m4/mbchar.m4: New file.
86716
86717 2005-08-16  Bruno Haible  <bruno@clisp.org>
86718
86719         * lib/tls.h: New file, from GNU gettext.
86720         * lib/tls.c: New file, from GNU gettext.
86721
86722 2005-08-16  Bruno Haible  <bruno@clisp.org>
86723
86724         * lib/strnlen1.h: New file.
86725         * lib/strnlen1.c: New file.
86726
86727 2005-08-16  Bruno Haible  <bruno@clisp.org>
86728
86729         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86730         (mbi_init): Update.
86731         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86732         NUL byte, not after it.
86733
86734 2005-08-16  Bruno Haible  <bruno@clisp.org>
86735
86736         * lib/strcase.h (strcasecmp): Add note in comments.
86737         * lib/strncasecmp.c: Use code from strcasecmp.c.
86738         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86739         (strcasecmp): Work correctly in multibyte locales.
86740
86741 2005-08-16  Bruno Haible  <bruno@clisp.org>
86742
86743         * lib/mbiter.h: New file.
86744
86745 2005-08-16  Bruno Haible  <bruno@clisp.org>
86746
86747         * lib/mbfile.h: New file.
86748
86749 2005-08-16  Bruno Haible  <bruno@clisp.org>
86750
86751         * lib/mbchar.h: New file.
86752         * lib/mbchar.c: New file.
86753
86754 2005-08-16  Bruno Haible  <bruno@clisp.org>
86755
86756         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86757         the valid ones. Makes the comparison operations transitive:
86758         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86759         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86760
86761 2005-08-15  Simon Josefsson  <jas@extundo.com>
86762
86763         * modules/ssize_t (License): Change to 'unlimited'.
86764
86765         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86766
86767 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86768
86769         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86770         Add comments for each pending glibc patch.
86771
86772 2005-08-15  Bruno Haible  <bruno@clisp.org>
86773
86774         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86775         __cplusplus is defined.
86776
86777 2005-08-14  Jim Meyering  <jim@meyering.net>
86778
86779         Sync from coreutils.
86780
86781         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86782         Use the hash-table-based cycle-detection code not just when
86783         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86784         Reported by James Youngman in
86785         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86786         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86787         FTS_TIGHT_CYCLE_CHECK.
86788         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86789         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86790         once again.
86791         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86792         * lib/fts.c (fd_safer): Remove decl.
86793         Include fcntl--.h rather than unistd-safer.h
86794         (fts_safe_changedir): Don't call fd_safer; no longer needed
86795         now that we include fcntl--.h.
86796
86797 2005-08-12  Simon Josefsson  <jas@extundo.com>
86798
86799         * modules/getndelim2: Use ssize_t module.
86800         * modules/getnline: Likewise.
86801         * modules/safe-read: Likewise.
86802         * modules/xreadlink: Likewise.
86803
86804         * modules/ssize_t: New file.
86805
86806 2005-08-12  Simon Josefsson  <jas@extundo.com>
86807
86808         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86809
86810 2005-08-12  Simon Josefsson  <jas@extundo.com>
86811
86812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86813         ssize_t.
86814
86815 2005-08-12  Simon Josefsson  <jas@extundo.com>
86816
86817         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86818         readline, getdelim and check_version.
86819         (Support for systems lacking ISO C 99: Sizes of integer types):
86820         Add size_max.
86821
86822 2005-08-12  Bruno Haible  <bruno@clisp.org>
86823
86824         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86825
86826 2005-08-11  Simon Josefsson  <jas@extundo.com>
86827
86828         * modules/readline: New file.
86829
86830         * modules/strnlen (Files): Add strnlen.h.
86831
86832 2005-08-11  Simon Josefsson  <jas@extundo.com>
86833
86834         * m4/readline.m4: New file.
86835
86836 2005-08-11  Simon Josefsson  <jas@extundo.com>
86837
86838         * lib/readline.h, readline.c: New file.
86839
86840 2005-08-11  Simon Josefsson  <jas@extundo.com>
86841
86842         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86843         gl_AVOID.
86844
86845 2005-08-11  Bruno Haible  <bruno@clisp.org>
86846
86847         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86848
86849 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86850
86851         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86852
86853 2005-08-10  Simon Josefsson  <jas@extundo.com>
86854
86855         * tests/test-iconvme.c: New file.
86856
86857 2005-08-10  Simon Josefsson  <jas@extundo.com>
86858
86859         * m4/strnlen.m4: New file.
86860
86861         * m4/strndup.m4: Don't check for strnlen declaration, done in
86862         strnlen.m4.
86863
86864 2005-08-10  Simon Josefsson  <jas@extundo.com>
86865
86866         * lib/strndup.c: Use strnlen.h.
86867
86868         * lib/strnlen.h: New file.
86869
86870 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86871
86872         * README: Typos.
86873
86874 2005-08-02  Simon Josefsson  <jas@extundo.com>
86875
86876         * modules/readline: New file.
86877
86878 2005-08-02  Simon Josefsson  <jas@extundo.com>
86879
86880         * modules/getdelim: New file.
86881
86882         * modules/getline: Rewrite, don't use getndelim2.
86883
86884 2005-08-02  Simon Josefsson  <jas@extundo.com>
86885
86886         * m4/getline.m4: Separate out getdelim stuff into separate module.
86887
86888         * m4/getdelim.m4: New file.
86889
86890 2005-08-02  Simon Josefsson  <jas@extundo.com>
86891
86892         * lib/getline.h, getline.c: Rewrite.
86893
86894         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86895
86896 2005-07-31  Bruno Haible  <bruno@clisp.org>
86897
86898         * lib/lock.h (gl_lock_initializer): New macro.
86899         (gl_lock_define_initialized): Use it.
86900         (gl_rwlock_initializer): New macro.
86901         (gl_rwlock_define_initialized): Use it.
86902         (gl_recursive_lock_initializer): New macro.
86903         (gl_recursive_lock_define_initialized): Use it.
86904
86905 2005-07-30  Karl Berry  <karl@gnu.org>
86906
86907         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86908         Report from Ben Pfaff, regarding getopt.
86909
86910 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86911
86912         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86913         normal way.
86914         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86915         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86916         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86917         (gl_GETOPT): Use the new macros.  Most of the implementation
86918         is moved to the new macros.  This is for programs like Emacs
86919         that don't want all the functionality of gl_GETOPT.
86920
86921 2005-07-26  Bruno Haible  <bruno@clisp.org>
86922
86923         * m4/lock.m4: Update from GNU gettext.
86924
86925 2005-07-26  Bruno Haible  <bruno@clisp.org>
86926
86927         * lib/lock.h: Update from GNU gettext.
86928         * lib/lock.c: Update from GNU gettext.
86929
86930 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86931
86932         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86933         obsolescent AC_TRY_RUN.  Include the default includes files, for
86934         'exit'.
86935
86936 2005-07-24  Bruno Haible  <bruno@clisp.org>
86937
86938         * modules/visibility: New file.
86939         * MODULES.html.sh (Misc): Add visibility.
86940
86941 2005-07-24  Bruno Haible  <bruno@clisp.org>
86942
86943         * m4/visibility.m4: New file.
86944
86945 2005-07-24  Bruno Haible  <bruno@clisp.org>
86946
86947         * doc/visibility.texi: New file.
86948
86949 2005-07-22  Bruno Haible  <bruno@clisp.org>
86950
86951         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86952         $(ALLOCA_H), redundant through BUILT_SOURCES.
86953         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86954         redundant through BUILT_SOURCES.
86955         * modules/byteswap (Makefile.am): Remove explicit dependency on
86956         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86957         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86958         $(FNMATCH_H), redundant through BUILT_SOURCES.
86959         * modules/getopt (Makefile.am): Remove explicit dependency on
86960         $(GETOPT_H), redundant through BUILT_SOURCES.
86961         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86962         redundant through BUILT_SOURCES.
86963         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86964         redundant through BUILT_SOURCES.
86965         * modules/stdbool (Makefile.am): Remove explicit dependency on
86966         $(STDBOOL_H), redundant through BUILT_SOURCES.
86967         * modules/stdint (Makefile.am): Remove explicit dependency on
86968         $(STDINT_H), redundant through BUILT_SOURCES.
86969         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86970         Remove explicit dependency on $(SYSEXITS_H).
86971         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86972
86973 2005-07-18  Simon Josefsson  <jas@extundo.com>
86974
86975         * lib/check-version.c (check_version): Accept identical versions too.
86976
86977 2005-07-18  Bruno Haible  <bruno@clisp.org>
86978
86979         * modules/lock: New file.
86980         * MODULES.html.sh (Multithreading): New section.
86981
86982 2005-07-18  Bruno Haible  <bruno@clisp.org>
86983
86984         * m4/lock.m4: New file, from GNU gettext.
86985
86986 2005-07-18  Bruno Haible  <bruno@clisp.org>
86987
86988         * lib/lock.h: New file, from GNU gettext.
86989         * lib/lock.c: New file, from GNU gettext.
86990
86991 2005-07-18  Bruno Haible  <bruno@clisp.org>
86992
86993         * lib/lock.h (gl_once_t): New type.
86994         (gl_once_define, gl_once): New macros.
86995         * lib/lock.c (fresh_once): New variable.
86996         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86997         functions.
86998
86999 2005-07-16  Simon Josefsson  <jas@extundo.com>
87000
87001         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87002         workaround, suggested by Bruno.
87003
87004 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87005
87006         * modules/xalloc (Depends-on): Add xalloc-die.
87007         * modules/xvasprintf (Depends-on): Add xalloc-die.
87008
87009 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87010
87011         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87012         with a minor change.
87013
87014 2005-07-15  Bruno Haible  <bruno@clisp.org>
87015
87016         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87017         When using lib/poll.c, define poll as rpl_poll.
87018
87019 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87020
87021         * modules/argp (Depends-on): Remove unlocked-io.
87022
87023 2005-07-14  Derek Price  <derek@ximbiot.com>
87024
87025         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87026         for glob symlink bug.
87027
87028 2005-07-14  Bruno Haible  <bruno@clisp.org>
87029
87030         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87031         Instead, test for *_unlocked function declarations directly.
87032
87033 2005-07-11  Simon Josefsson  <jas@extundo.com>
87034
87035         * modules/size_max: New file.
87036
87037         * modules/xsize: Depend on size_max module for size_max.m4.
87038
87039 2005-07-11  Simon Josefsson  <jas@extundo.com>
87040
87041         * lib/size_max.h: New file.
87042
87043 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87044
87045         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87046         copyright symbol and the year.
87047         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87048         (version_etc_va): Use parameterized copyright notice.
87049         Reword to conform to the current GNU coding standards.
87050
87051 2005-07-11  Karl Berry  <karl@gnu.org>
87052
87053         * doc/gnulib.texi (Quoting): new node.
87054         (Initial import): more info, from Patrice.
87055
87056 2005-07-11  Bruno Haible  <bruno@clisp.org>
87057
87058         * gnulib-tool (func_usage): Document option --avoid.
87059         (Command line options): Handle --avoid.
87060         (func_acceptable): New function.
87061         (func_modules_transitive_closure): Use it.
87062
87063 2005-07-11  Bruno Haible  <bruno@clisp.org>
87064
87065         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87066         Reported by Jim Meyering.
87067
87068 2005-07-10  Bruno Haible  <bruno@clisp.org>
87069
87070         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87071         Needed when size_t is smaller than 'unsigned int'.
87072         Reported by Paul Eggert.
87073
87074 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87075
87076         * modules/argp (Depends-on): Add unlocked-io
87077
87078 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87079
87080         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87081         block of defines.
87082
87083 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87084
87085         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87086         fix now.
87087
87088 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87089         and Paul Eggert  <eggert@cs.ucla.edu>
87090
87091         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87092         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87093
87094 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87095
87096         * modules/regex (Files): Add lib/regex_internal.c,
87097         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87098         (Depends-on): Add extensions.
87099         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87100
87101 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87102
87103         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87104         pathconf.
87105         * m4/same.m4 (gl_SAME): Likewise.
87106         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87107
87108         * m4/regex.m4: Adjust to new libc regex implementation.
87109         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87110         all the .c and .h parts of (the new) regex.
87111         Quote the m4 stuff better.
87112         Check for RE_ICASE bug of old gnulib.
87113         Check for REG_STARTEND of recent libc.
87114         Rename local variables from jm_* to gl_*.
87115         Quote operand of "test -f".
87116         Say "recent enough" version of libc, not "version 2".
87117         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87118         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87119         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87120         Remove check for btowc, isascii.
87121         Require AM_LANGINFO_CODESET.
87122
87123 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87124
87125         * lib/regex.c, regex.h: Sync from libc.
87126         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87127         * lib/regexec.c:
87128         New files, synced from libc, except that regex_internal.h
87129         currently has a small porting fix.
87130
87131 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87132
87133         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87134         regex_internal.c, regexec.c.
87135         Add regex_internal.h too, but as a comment, since the libc version
87136         is currently broken in gnulib mode.
87137
87138 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87139
87140         Support programs like Emacs that use gnulib but not gettext.
87141         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87142         * modules/gettext-h: New file.
87143         * modules/gettext (Files): Remove lib/gettext.h.
87144         (Depends-on): Add gettext-h.
87145         (Makefile.am): Remove lib_SOURCES.
87146         * modules/argmatch, modules/c-stack, modules/closeout:
87147         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87148         * modules/execute, modules/file-type, modules/getaddrinfo:
87149         * modules/getopt, modules/human, modules/javacomp:
87150         * modules/javaexec, modules/mkdir-p, modules/obstack:
87151         * modules/openat, modules/pagealign_alloc, modules/pipe:
87152         * modules/quotearg, modules/regex, modules/rpmatch:
87153         * modules/unicodeio, modules/userspec, modules/version-etc:
87154         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87155         * modules/xsetenv:
87156         Depend on gettext-h, not gettext.
87157
87158 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87159
87160         * gnulib-tool (func_import): Add support for 'public domain' license.
87161         * modules/alloca, modules/atexit, modules/memmove:
87162         Now public domain, not GPL.
87163         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87164         * modules/realloc, modules/strerror, modules/strtod:
87165         Now LGPL, not GPL.
87166
87167 2005-07-05  Bruno Haible  <bruno@clisp.org>
87168
87169         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87170         autoconf CVS. Needed for mingw.
87171
87172 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87173
87174         Remove the dependency of the strftime module on the tzset module.
87175         * modules/strftime (Depends-on): Remove dependency on tzset.
87176
87177 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87178
87179         Remove the dependency of the strftime module on the tzset module.
87180         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87181         gl_FUNC_TZSET_CLOBBER.
87182
87183 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87184
87185         Remove the dependency of the strftime module on the tzset module.
87186         * lib/strftime.c (my_strftime)
87187         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87188         Copy the input structure, to work around some of the bug with
87189         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87190         Solaris releases, you should also use the tzset module, but we won't
87191         require it as a dependency any more since we don't want LGPLed code
87192         to depend on GPLed code.
87193
87194 2005-07-02  Jim Meyering  <jim@meyering.net>
87195
87196         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87197         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87198         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87199         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87200
87201 2005-07-02  Jim Meyering  <jim@meyering.net>
87202
87203         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87204
87205 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87206
87207         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87208         declares only 'struct timespec;' (!).
87209
87210 2005-07-01  Jim Meyering  <jim@meyering.net>
87211
87212         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87213         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87214         * lib/save-cwd.c, tempname.c:
87215         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87216         and don't include <sys/file.h>).
87217
87218 2005-06-29  Jim Meyering  <jim@meyering.net>
87219
87220         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87221         type name.  Use the variable name instead.
87222         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87223         Likewise.
87224
87225 2005-06-28  Simon Josefsson  <jas@extundo.com>
87226
87227         * modules/check-version (Files): Add check-version.m4.
87228
87229 2005-06-28  Simon Josefsson  <jas@extundo.com>
87230
87231         * m4/check-version.m4: New file, suggested by Jim Meyering
87232         <jim@meyering.net>.
87233
87234 2005-06-28  Simon Josefsson  <jas@extundo.com>
87235
87236         * lib/check-version.h, lib/check-version.c: New files.
87237
87238 2005-06-28  Simon Josefsson  <jas@extundo.com>
87239
87240         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87241         collision with global variable.  Better indentation.  Don't
87242         increment buffer pointer beyond buffer end.  Based on comments
87243         from Paul Eggert <eggert@cs.ucla.edu>.
87244
87245         * lib/base64.h: Indent.
87246
87247 2005-06-28  Simon Josefsson  <jas@extundo.com>
87248
87249         * doc/gnulib.texi (Library version handling): New section.
87250
87251 2005-06-28  Jim Meyering  <jim@meyering.net>
87252
87253         * check-module (find_included_lib_files): Hard-code another
87254         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87255         but modules/fts-lgpl (correctly) does not list those files.
87256
87257         * modules/canonicalize (Files): Add lib/pathmax.h.
87258
87259 2005-06-25  Simon Josefsson  <jas@extundo.com>
87260
87261         * modules/check-version: New file.
87262
87263 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87264
87265         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87266         initializer of struct addrinfo, as an indication that we don't
87267         care how many members the structure has.
87268
87269 2005-06-24  Derek Price  <derek@ximbiot.com>
87270         and Bruno Haible  <bruno@clisp.org>
87271
87272         Remove stat module & update lstat.
87273         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87274         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87275         * m4/stat.m4: Remove this file.
87276
87277 2005-06-24  Derek Price  <derek@ximbiot.com>
87278         and Bruno Haible  <bruno@clisp.org>
87279
87280         Remove stat module & update lstat.
87281         * lib/stat.c: Remove this file...
87282         (slash_aware_lstat): ...moving this content and its support...
87283         * lib/lstat.c (rpl_lstat): ...into here.
87284         * lib/lstat.h: New file.
87285
87286 2005-06-24  Derek Price  <derek@ximbiot.com>
87287         and Bruno Haible  <bruno@clisp.org>
87288
87289         Remove stat module & update lstat.
87290         * config/srclist.txt (libc sources): Remove stat.
87291
87292 2005-06-24  Derek Price  <derek@ximbiot.com>
87293         and Bruno Haible  <bruno@clisp.org>
87294
87295         Remove stat module & update lstat.
87296         * MODULES.html.sh (stat): Remove.
87297         * MODULES.html: Regenerated.
87298         * modules/lstat (Description): Correct function name.
87299         (Files): Add "lstat.h".
87300         (Depends-on): Remove stat, add xalloc, stat-macros.
87301         * modules/stat: Remove this file.
87302         (Include): Add "lstat.h", remove <sys/stat.h>.
87303
87304 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87305
87306         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87307         (ranged_convert): Don't save conversion in a temporary struct.
87308         This causes a warning with GCC 4.0.0, and anyway in the typical
87309         case it's not worth the extra 100 bytes or so of code.
87310         (ranged_convert, __mktime_internal): When calling a function via a
87311         pointer P, use P () rather than (*P) (), as we now assume C89 or
87312         better.
87313
87314 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87315
87316         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87317         "who -r" failed to give output.  Problem reported by Tim Waugh.
87318
87319         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87320         (xcalloc): Use it to avoid needless tests.
87321         Problem reported by Jim Meyering.
87322
87323 2005-06-20  Derek Price  <derek@ximbiot.com>
87324
87325         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87326         unnecessary for Autoconfs > 2.59c.
87327
87328 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87329
87330         * lib/argp.h (__option_is_short): Check upper limit of
87331         __key. Isprint() requires its argument to have the value
87332         of an unsigned char or EOF.
87333
87334 2005-06-16  Jim Meyering  <jim@meyering.net>
87335
87336         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87337         when either N or S is zero.
87338
87339 2005-06-16  Derek Price  <derek@ximbiot.com>
87340
87341         * m4/bison.m4: Declare YACC & YFLAGS precious.
87342
87343 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87344
87345         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87346         multibyte string or pattern, fall back on unibyte matching.
87347         Problem reported by James Youngman.
87348
87349 2005-06-08  Bruno Haible  <bruno@clisp.org>
87350
87351         * modules/csharpcomp: New file.
87352         * MODULES.html.sh (C#): Add csharpcomp.
87353
87354 2005-06-08  Bruno Haible  <bruno@clisp.org>
87355
87356         * m4/csharpcomp.m4: New file, from GNU gettext.
87357
87358 2005-06-08  Bruno Haible  <bruno@clisp.org>
87359
87360         * lib/csharpcomp.h: New file, from GNU gettext.
87361         * lib/csharpcomp.c: New file, from GNU gettext.
87362         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87363
87364 2005-06-08  Bruno Haible  <bruno@clisp.org>
87365
87366         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87367         warning on mingw.
87368
87369 2005-06-07  Derek Price  <derek@ximbiot.com>
87370
87371         Sync from CVS.
87372         * lib/glob_.h: Indent nested #ifdef.
87373
87374 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87375
87376         Sync from coreutils.
87377         Use "file name" when talking about file names, instead of "filename"
87378         or "path", as per the GNU coding standards.
87379         * lib/mkdir-p.c: Renamed from makepath.c.
87380         (make_dir_parents): Renamed from make_path.  All callers changed.
87381         * lib/mkdir-p.h: Likewise.  All includers changed.
87382         * lib/filenamecat.c: Renamed from path-concat.c.
87383         (file_name_concat): Renamed from path_concat.  All callers changed.
87384         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87385         * lib/filenamecat.h: Likewise.  All includers changed.
87386         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87387         in comments or local variable names.
87388         * lib/basename.c: Likewise.
87389         * lib/canonicalize.c, canonicalize.h: Likewise.
87390         * lib/dirname.c, dirname.h: Likewise.
87391         * lib/euidaccess.c: Likewise.
87392         * lib/exclude.c: Likewise
87393         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87394         * lib/fsusage.c, fsuage.h: Likewise.
87395         * lib/fts.c, fts_.h: Likewise.
87396         * lib/getcwd.c: Likewise.
87397         * lib/getloadavg.c: Likewise.
87398         * lib/mkstemp.c: Likewise.
87399         * lib/mountlist.c, mountlist.h: Likewise.
87400         * lib/openat.c, openat.h: Likewise.
87401         * lib/readlink-stub.c: Likewise.
87402         * lib/readutmp.c, readutmp.h: Likewise.
87403         * lib/rename.c: Likewise.
87404         * lib/rmdir.c: Likewise.
87405         * lib/same.c: Likewise.
87406         * lib/savedir.c: Likewise.
87407         * lib/stripslash.c: Likewise.
87408         * lib/tempname.c: Likewise.
87409         * lib/xreadlink.c: Likewise.
87410         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87411         All uses changed.
87412         * lib/exclude.h: Likewise.
87413
87414         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87415         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87416         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87417         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87418         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87419         files have been getting away with it for years (MORE/BSD 4.3
87420         is extinct now).
87421         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87422         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87423
87424         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87425         Define to 256, not 255, as per modern POSIX.
87426
87427 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87428
87429         Sync from coreutils.
87430         Use "file name" when talking about file names, instead of "filename"
87431         or "path", as per the GNU coding standards.
87432         * MODULES.html.sh: mkdir-p renamed from makepath.
87433         filenamecat renamed from path-concat.
87434         * modules/filenamecat: Renamed from modules/path-concat.
87435         (Files): filenamecat.h and filenamecat.c renamed from
87436         path-concat.h and path-concat.c.
87437         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87438         (Include): filenamecat.h, not path-concat.h.
87439         * modules/mkdir-p: Renamed from modules/makepath.
87440         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87441         makepath.c.
87442         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87443         (Include): mkdir-p.h, not makepath.h.
87444
87445 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87446
87447         Sync from coreutils.
87448         * m4/mkdir-p.m4: Renamed from makepath.m4.
87449         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87450         Rename files from makepath.c to mkdir-p.c, and from
87451         makepath.h to mkdir-p.h.
87452         * m4/filenamecat.m4: Renamed from path-concat.m4.
87453         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87454         Rename files from path-concat.c to filenamecat.c,
87455         and from path-concat.h to filenamecat.h.
87456         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87457         "file name" in local variables or comments.
87458         * m4/rename.m4: Likewise.
87459
87460 2005-06-01  Bruno Haible  <bruno@clisp.org>
87461
87462         * modules/csharpexec: New file.
87463         * MODULES.html.sh (C#): New section.
87464
87465 2005-06-01  Bruno Haible  <bruno@clisp.org>
87466
87467         * m4/csharp.m4: New file, from GNU gettext.
87468         * m4/csharpexec.m4: New file, from GNU gettext.
87469
87470 2005-06-01  Bruno Haible  <bruno@clisp.org>
87471
87472         * lib/csharpexec.h: New file, from GNU gettext.
87473         * lib/csharpexec.c: New file, from GNU gettext.
87474         * lib/csharpexec.sh.in: New file, from GNU gettext.
87475
87476 2005-05-31  Derek Price  <derek@ximbiot.com>
87477             Paul Eggert  <eggert@cs.ucla.edu>
87478
87479         Sync from cvs.
87480         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87481
87482 2005-05-31  Derek Price  <derek@ximbiot.com>
87483             Paul Eggert  <eggert@cs.ucla.edu>
87484
87485         Sync from cvs.
87486         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87487
87488 2005-05-29  Derek Price  <derek@ximbiot.com>
87489
87490         * config/srclist.txt (glob_.h, glob.c): Add these files.
87491
87492 2005-05-29  Derek Price  <derek@ximbiot.com>
87493
87494         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87495         * modules/glob: New file.
87496         * modules/getlogin_r: Add link to POSIX spec in description.
87497
87498 2005-05-29  Derek Price  <derek@ximbiot.com>
87499             Paul Eggert  <eggert@cs.ucla.edu>
87500
87501         * m4/glob.m4: New file.
87502
87503 2005-05-29  Derek Price  <derek@ximbiot.com>
87504             Paul Eggert  <eggert@cs.ucla.edu>
87505
87506         * lib/glob_.h, lib/glob.c: New files.
87507
87508 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87509
87510         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87511         * modules/fts-lgpl (Depends-on): Remove gettext.
87512
87513 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87514
87515         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87516         and don't require gt_INTTYPES_PRI.
87517
87518 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87519
87520         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87521
87522         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87523         the configuration hassle isn't worth it.
87524         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87525         (LONGEST_MODIFIER, PRIuMAX): Remove.
87526
87527 2005-05-27  Bruno Haible  <bruno@clisp.org>
87528
87529         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87530
87531 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87532
87533         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87534         _POSIX_PTHREAD_SEMANTICS for Solaris.
87535
87536 2005-05-25  Derek Price  <derek@ximbiot.com>
87537
87538         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87539
87540 2005-05-25  Derek Price  <derek@ximbiot.com>
87541             Paul Eggert  <eggert@cs.ucla.edu>
87542
87543         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87544         * lib/getlogin_r.c, getlogin_r.h: New files.
87545
87546 2005-05-25  Bruno Haible  <bruno@clisp.org>
87547             Derek Price  <derek@ximbiot.com>
87548
87549         * lib/getlogin_r.h: Simplify API documentation.
87550
87551 2005-05-23  Derek Price  <derek@ximbiot.com>
87552
87553         * modules/minmax (Files): Add m4/minmax.m4.
87554         (configure.ac): Add gl_MINMAX.
87555
87556 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87557
87558         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87559         so that unistd-safer.h (GPL'ed code) need not be included.
87560
87561 2005-05-22  Bruno Haible  <bruno@clisp.org>
87562
87563         * m4/minmax.m4: New file.
87564         Based on a patch by Derek Price <derek@ximbiot.com>.
87565
87566 2005-05-22  Bruno Haible  <bruno@clisp.org>
87567
87568         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87569         (INT64_MIN): Fix definition.
87570         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87571
87572         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87573         NEED_SIGNED_INT_TYPES.
87574
87575         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87576         HAVE_SYSTEM_INTTYPES.
87577
87578 2005-05-22  Bruno Haible  <bruno@clisp.org>
87579
87580         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87581         Also include <sys/param.h> if it defines MIN, MAX.
87582         Based on a patch by Derek Price <derek@ximbiot.com>.
87583
87584 2005-05-21  Jim Meyering  <jim@meyering.net>
87585
87586         * modules/fts (Files): Add m4/inttypes-pri.m4.
87587         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87588
87589 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87590
87591         New fts module.
87592         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87593         (setup_dir, free_dir): New functions.
87594         (enter_dir, leave_dir): Define trivial
87595         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87596         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87597         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87598         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87599         Move to fts-cycle.c.
87600         (fts_open): Use setup_dir.
87601         (fts_close): Use free_dir.
87602         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87603         This adds a label and some gotos, but the alternatives were messier.
87604         Check for memory allocation failure when entering a dir.
87605         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87606         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87607         (FTS): New member fts_cycle, that is a union that contains the
87608         old active_dir_ht and cycle_state.  All uses changed to mention
87609         fts_cycle.ht and fts_cycle.state.
87610         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87611         fts.c, with the following changes:
87612         (setup_dir, free_dir): New functions.
87613         (enter_dir): Now returns bool.  Return true if successful, false
87614         if memory exhausted.  All callers changed.
87615         Do not bother partly cleaning up on
87616         memory allocation failure; that is free_dir's job.
87617         However, free ad if hash_insert fails, to avoid memory leak.
87618         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87619         fts->fts_options to see which union member to use.
87620
87621 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87622
87623         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87624         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87625
87626 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87627
87628         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87629
87630 2005-05-20  Jim Meyering  <jim@meyering.net>
87631
87632         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87633         Now a macro, to pacify GCC.
87634
87635 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87636
87637         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87638         of -1.
87639
87640 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87641
87642         * lib/chown.c (rpl_chown): Return -1 on failure.
87643
87644 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87645
87646         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87647         Don't check for stddef.h.
87648         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87649         don't use its results.
87650         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87651         since we include them unconditionally.  Don't require
87652         AM_STDBOOL_H, since stdbool is a prerequisite.
87653         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87654         since we assume C89 or better.
87655         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87656         as we don't use their results.
87657         Don't check for fchdir, memmove, memset, strrchr, as we use
87658         them unconditionally.
87659         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87660         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87661
87662 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87663
87664         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87665         Include <stddef.h> unconditionally, since we assume C89 now.
87666         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87667         * lib/fts.c: Include fts_.h first, to check interface.
87668         Do not include intprops.h; no longer needed.
87669         Include cycle-check.h and hash.h, since fts_.h no longer does.
87670         Remove unnecessary casts of closedir to void.
87671         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87672         decide whether to decrement nlinks.
87673         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87674         (FTS): Use struct hash_table * instead of Hash_table, so that
87675         we no longer need to include hash.h here.
87676
87677 2005-05-18  Jim Meyering  <jim@meyering.net>
87678
87679         * modules/dirfd (License): Change to LGPL.  Most of the code
87680         is already in the public domain.
87681
87682 2005-05-18  Jim Meyering  <jim@meyering.net>
87683
87684         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87685         Reported by Yoann Vandoorselaere.
87686
87687 2005-05-17  Jim Meyering  <jim@meyering.net>
87688
87689         * m4/fts.m4: New file, from coreutils.
87690
87691 2005-05-17  Jim Meyering  <jim@meyering.net>
87692
87693         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87694
87695 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87696
87697         Sync from coreutils.
87698         * m4/unlinkdir.m4: New file.
87699
87700 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87701
87702         Sync from coreutils.
87703         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87704         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87705         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87706         White space changes only.
87707         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87708         special.
87709         * lib/yesno.c: Include getline.h, not ctype.h.
87710         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87711         Use getline to remove arbitrary restriction on response length.
87712
87713 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87714
87715         * config/srclist-update: Spell out "Street" in FSF postal
87716         mail address; this is the style the FSF seems to prefer.
87717
87718         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87719         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87720         this updates FSF postal mail address.
87721
87722         Sync from coreutils.
87723         * modules/unlinkdir: New file.
87724         * modules/yesno (Depends-on): Add getline.
87725         * MODULES.html.sh (File system functions): Add unlinkdir.
87726
87727 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87728
87729         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87730         lib/strsep.h:
87731         Change the initial comment to refer to GPL, not LGPL.
87732         gnulib-tool will change it to LGPL as needed.
87733
87734         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87735         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87736         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87737         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87738         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87739         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87740         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87741         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87742         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87743         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87744         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87745         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87746         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87747         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87748         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87749         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87750         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87751         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87752         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87753         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87754         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87755         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87756         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87757         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87758         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87759         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87760         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87761         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87762         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87763         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87764         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87765         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87766         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87767         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87768         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87769         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87770         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87771         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87772         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87773         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87774         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87775         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87776         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87777         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87778         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87779         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87780         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87781         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87782         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87783         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87784         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87785         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87786         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87787         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87788         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87789         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87790         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87791         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87792         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87793         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87794         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87795         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87796         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87797         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87798         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87799         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87800         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87801         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87802         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87803         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87804         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87805         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87806         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87807         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87808         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87809         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87810         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87811         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87812         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87813         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87814         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87815         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87816         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87817         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87818         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87819         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87820         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87821         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87822         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87823         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87824         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87825         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87826         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87827         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87828         lib/yesno.c, lib/yesno.h:
87829         Update FSF postal mail address.
87830
87831 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87832
87833         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87834         tests/test-memmem.c, tests/test-stpncpy.c:
87835         Update FSF postal mail address.
87836
87837 2005-05-13  Bruno Haible  <bruno@clisp.org>
87838
87839         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87840         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87841         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87842         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87843         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87844         Add support for 64-bit integers in the MSVC compiler.
87845
87846 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87847
87848         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87849
87850 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87851
87852         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87853
87854 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87855
87856         * doc/getdate.texi (General date syntax): Don't say that date
87857         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87858         Problem reported by Nic Ferrier.
87859
87860 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87861
87862         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87863         specified in ai_socktype. Fix invalid ai_protocol
87864         check. ai_protocol is usually set to 0 or depending on
87865         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87866         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87867         ai_socktype / ai_protocol in the returned addrinfo structure.
87868
87869 2005-05-10  Simon Josefsson  <jas@extundo.com>
87870
87871         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87872         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87873
87874 2005-05-10  Karl Berry  <karl@gnu.org>
87875
87876         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87877         (from http://www.gnu.org/licenses).
87878         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87879         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87880         fdl.texi suffices.
87881
87882 2005-05-10  Karl Berry  <karl@gnu.org>
87883
87884         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87885         (COPYING.DOC): remove.
87886
87887         * config/srclist-update: new FSF address.
87888
87889 2005-05-10  Derek Price  <derek@ximbiot.com>
87890
87891         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87892         possible.
87893
87894 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87895             Bruno Haible  <bruno@clisp.org>
87896
87897         * modules/inet_ntop: New file.
87898         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87899         inet_ntop.
87900
87901 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87902             Bruno Haible  <bruno@clisp.org>
87903
87904         * m4/inet_ntop.m4: New file.
87905
87906 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87907             Bruno Haible  <bruno@clisp.org>
87908
87909         * lib/inet_ntop.h: New file.
87910         * lib/inet_ntop.c: New file, from glibc with modifications.
87911
87912 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87913
87914         * modules/time_r (License): Change to LGPL.
87915         * modules/extensions (License): Change to LGPL.  Actually,
87916         the license is more permissive than that, but currently gnulib-tool
87917         doesn't know how to handle more-permissive licenses.
87918
87919         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87920         Problem reported by Dave Love.
87921
87922 2005-05-08  Jim Meyering  <jim@meyering.net>
87923
87924         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87925         blank.
87926
87927 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87928
87929         * modules/argmatch (Depends-on): Add stdbool.
87930         * modules/backupfile (Depends-on): Likewise.
87931         * modules/chdir-long (Depends-on): Likewise.
87932         * modules/closeout (Depends-on): Likewise.
87933         * modules/cycle-check (Depends-on): Likewise.
87934         * modules/dirname (Depends-on): Likewise.
87935         * modules/fnmatch (Depends-on): Likewise.
87936         * modules/fsusage (Depends-on): Likewise.
87937         * modules/fwriteerror (Depends-on): Likewise.
87938         * modules/getcwd (Depends-on): Likewise.
87939         * modules/getloadavg (Depends-on): Likewise.
87940         * modules/hard-locale (Depends-on): Likewise.
87941         * modules/makepath (Depends-on): Likewise.
87942         * modules/mountlist (Depends-on): Likewise.
87943         * modules/nanosleep (Depends-on): Likewise.
87944         * modules/posixtm (Depends-on): Likewise.
87945         * modules/quotearg (Depends-on): Likewise.
87946         * modules/readtokens (Depends-on): Likewise.
87947         * modules/readtokens0 (Depends-on): Likewise.
87948         * modules/readutmp (Depends-on): Likewise.
87949         * modules/save-cwd (Depends-on): Likewise.
87950         * modules/strftime (Depends-on): Likewise.
87951         * modules/userspec (Depends-on): Likewise.
87952         * modules/utimecmp (Depends-on): Likewise.
87953         * modules/xgetcwd (Depends-on): Likewise.
87954         * modules/xnanosleep (Depends-on): Likewise.
87955         * modules/xstrtod (Depends-on): Likewise.
87956         * modules/yesno (Depends-on): Likewise.
87957
87958 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87959
87960         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87961         needless checks.
87962
87963 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87964
87965         Merge from coreutils.  Among other things,
87966         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87967         * lib/fd-safer.c: New file.
87968         * lib/fcntl-safer.h, open-safer.c: Remove.
87969         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87970         * lib/dup-safer.c: Include unistd-safer.h first.
87971         Don't include errno.h.
87972         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87973         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87974         * lib/file-type.c: Rely on file-type.h change.
87975         * lib/getloadavg.c: Include unistd-safer.h.
87976         (getloadavg): Use safer open.
87977         * lib/getusershell.c: Include "stdio-safer.h".
87978         (getusershell): Use safer fopen.
87979         * lib/long-options.c (long_options): Use NULL rather than 0.
87980         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87981         'free'.
87982         * lib/modechange.c: Likewise.
87983         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87984         (MODE_DONE): New constant.
87985         (struct mode_change): Remove 'next' member.
87986         (make_node_op_equals): New function; like the old one of the
87987         same name, except it allocates an array.
87988         (mode_compile, mode_create_from_ref): Use it.
87989         (mode_compile): Allocate result as an array, not a linked list.
87990         Parse octal string ourself, so that we catch mistakes like "+0".
87991         (mode_adjust): Arg is an array, not a linked list.
87992         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87993         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87994         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87995         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87996         Remove.  This is now stat-macros.h's job.
87997         (talloc): Remove.  All callers replaced by xalloc, so that
87998         our invokers don't have to worry about reporting memory failures.
87999         (make_node_op_equals): Remove.
88000         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88001         New constants.
88002         (struct mode_change): Moved here from modechange.h.
88003         (mode_append_entry): Remove.
88004         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88005         apps to have incorrect behavior.  Use simpler algorithm for head
88006         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88007         Detect more invalid usages rather than having somewhat-random behavior.
88008         Don't insert an "a=" action, as that leads to incorrect behavior.
88009         (mode_compile, mode_create_from_ref): Return NULL on error instead
88010         of an enum, since now there's only one way to have an error.  All
88011         callers changed.
88012         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88013         at the correct time.  Simplify calculation of "+u" and its ilk.
88014         Don't mishandle "+X".
88015         (mode_free): Remove "register" and localize decls.
88016         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88017         (struct mode_change): Move to modechange.c; callers don't
88018         need to see this stuff.
88019         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88020         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88021         (mode_change, mode_adjust): Reflect the new signatures noted above.
88022         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88023         that might redefine system include files.
88024         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88025         (my_usleep): Use NULL rather than (void *) 0.
88026         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88027         Use siginterrupt to specify that system calls should be interrupted.
88028         (rpl_nanosleep): Move initialization of suspended closer to call of
88029         my_usleep.
88030         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88031         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88032         (desirable_utmp_entry): New function.
88033         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88034         using x2nrealloc, to simplify logic.
88035         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88036         size calculation.  Do not assume utmp file is a regular file.
88037         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88038         (READ_UTMP_CHECK_PIDS): New constant.
88039         * lib/save-cwd.c: Include unistd-safer.h.
88040         (save_cwd): Use fd_safer.
88041         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88042         [!_LIBC] Include "stat-macros.h" instead.
88043         * lib/unistd-safer.h (fd_safer): New decl.
88044
88045 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88046
88047         * modules/getloadavg (Depends-on): Add unistd-safer.
88048         * modules/getusershell (Depends-on): Add stdio-safer.
88049         * modules/lstat (Depends-on): Remove xalloc.
88050         * modules/mkstemp (Depends-on): Add stat-macros.
88051         * modules/modechange (Depends-on): Remove xstrtol.
88052         Add stat-macros, xalloc.
88053         * modules/save-cwd (Depends-on): Add unistd-safer.
88054         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88055         * modules/unistd-safer (Files): Add lib/fd-safer.c
88056         (Makefile.am): Remove lib_SOURCES.
88057
88058         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88059         Remove fcntl-safer; unistd-safer supersedes it.
88060
88061 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88062
88063         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88064         AC_HEADER_STAT.
88065         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88066         (gl_PREREQ_CHOWN): Remove.
88067         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88068         it.  Don't require AC_HEADER_STAT.
88069         (gl_PREREQ_LSTAT): Remove.
88070         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88071         Don't require AC_HEADER_STAT.
88072         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88073         (gl_PREREQ_RMDIR): Remove.
88074         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88075         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88076         the stat-macros module a prerequisite.
88077         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88078         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88079         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88080         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88081         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88082         variable names.
88083         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88084         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88085         variable prefixes.
88086         * m4/fcntl-safer.m4: Remove.
88087         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88088         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88089         Invoke gl_PREREQ_FD_SAFER.
88090         (gl_PREREQ_FD_SAFER): New macro.
88091         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88092         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88093         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88094         Remove duplicate call to AC_LIBOBJ(readutmp).
88095         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88096
88097         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88098         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88099
88100 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88101
88102         * MODULES.html.sh (Misc): Add byteswap.
88103
88104 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88105
88106         * modules/getcwd (Depends-on): Add extensions.
88107         * modules/openat (Depends-on): Likewise.
88108
88109 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88110
88111         * modules/byteswap: New file.
88112
88113 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88114
88115         * m4/byteswap.m4: New file.
88116
88117 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88118
88119         * lib/byteswap_.h: New file.
88120
88121 2005-04-25  Karl Berry  <karl@gnu.org>
88122
88123         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88124
88125 2005-04-25  Albert Chin  <china@thewrittenword.com>
88126
88127         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88128         Toolkit C bug.
88129
88130 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88131
88132         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88133         (func_ln_if_changed): Remove forcibly for no error message
88134         in case file does not exist.
88135
88136 2005-04-19  Simon Josefsson  <jas@extundo.com>
88137
88138         * gnulib-tool (Options): Make --symlink mean --symbolic.
88139
88140 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88141
88142         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88143
88144 2005-04-16  Simon Josefsson  <jas@extundo.com>
88145
88146         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88147
88148 2005-04-15  Simon Josefsson  <jas@extundo.com>
88149
88150         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88151
88152 2005-04-15  Simon Josefsson  <jas@extundo.com>
88153
88154         * gnulib-tool: Rename --symlink to --symbolic.
88155
88156 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88157
88158         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88159         symbolic links to files instead of copying/moving.  Add --aux-dir,
88160         specifying directory relative --dir where auxiliary build tools
88161         are placed.
88162
88163 2005-04-14  Bruno Haible  <bruno@clisp.org>
88164
88165         * modules/allocsa (License): Change to LGPL.
88166         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88167
88168 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88169
88170         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88171         that "UTC +1 second" continues to work.  Problem reported
88172         by Dmitry V. Levin.
88173         (relunit_snumber): New rule.
88174         (relunit): Use it.
88175
88176 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88177
88178         * lib/getdate.y (universal_time_zone_table): New constant.
88179         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88180         universal_time_zone_table.
88181         (lookup_zone): Prefer universal_time_zone_table to
88182         local_time_zone_table, so that "GMT" time stamps are allowed in
88183         London during the summer.  Problem reported by Ian Abbott.
88184
88185 2005-04-12  Jim Meyering  <jim@meyering.net>
88186
88187         * lib/human.c (humblock): Set *options even when returning due to
88188         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88189         warning from gcc-4.
88190
88191 2005-04-09  Jim Meyering  <jim@meyering.net>
88192
88193         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88194         -Wuninitialized: initialize tm0.tm_year.
88195
88196 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88197
88198         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88199         count, since there's no maximum.  All uses changed.
88200         Add member dsts_seen.
88201         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88202         not being INT_MAX.
88203         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88204         Use pc_rels_seen to decide whether a date is absolute.
88205
88206         * lib/getdate.y (number): Don't overwrite year.
88207         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88208         check.
88209
88210 2005-04-02  Simon Josefsson  <jas@extundo.com>
88211
88212         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88213         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88214
88215 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88216
88217         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88218         where no absolute path name can be longer than PATH_MAX.
88219
88220 2005-03-27  Jim Meyering  <jim@meyering.net>
88221
88222         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88223
88224 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88225
88226         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88227         "one's complement" -> "ones' complement" in comment, as per Knuth.
88228         "value of type" -> "type or expression" in comment.
88229         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88230
88231 2005-03-26  Jim Meyering  <jim@meyering.net>
88232
88233         Comment nits.
88234         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88235         Correct typos: s/or/of/.
88236
88237 2005-03-26  Jim Meyering  <jim@meyering.net>
88238
88239         * modules/check-include-files: Move to ../ and rename to...
88240         * check-module: ...this.
88241
88242 2005-03-25  Jim Meyering  <jim@meyering.net>
88243
88244         * modules/xvasprintf (Files): Add xalloc.h.
88245
88246 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88247
88248         * modules/gettext (Files): config/config.rpath ->
88249         build-aux/config.rpath
88250         * modules/iconv (Files): Likewise.
88251         Problem reported by Oskar Liljeblad.
88252
88253 2005-03-23  Jim Meyering  <jim@meyering.net>
88254
88255         * modules/check-include-files: New script to check for
88256         missing dependencies, multiple includes, etc.
88257
88258         * modules/c-strtold (Depends-on): Add xalloc.
88259         * modules/c-strtod (Depends-on): Add xalloc.
88260         * modules/hash (Depends-on): Add xalloc.
88261         (Files): Remove lib/xalloc.h.
88262
88263         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88264         * modules/userspec (Files): Add lib/inttostr.h.
88265
88266 2005-03-23  Jim Meyering  <jim@meyering.net>
88267
88268         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88269
88270 2005-03-22  Jim Meyering  <jim@meyering.net>
88271
88272         * modules/stat-macros: New module.
88273         * modules/canonicalize, modules/euidaccess, modules/file-type,
88274         * modules/filemode, modules/lchown, modules/makepath,
88275         * modules/rmdir, modules/stat: Depend on new stat-macros module
88276         rather than listing lib/stat-macros.h manually.
88277         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88278
88279 2005-03-22  Jim Meyering  <jim@meyering.net>
88280
88281         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88282
88283 2005-03-22  Bruno Haible  <bruno@clisp.org>
88284
88285         * config/srclist.txt: Replace target directory 'config' with
88286         'build-aux'.
88287         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88288         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88289         ../build-aux/.
88290
88291 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88292
88293         * modules/chdir-long (Depends-on): Add mempcpy.
88294
88295         * modules/acl, modules/backupfile, modules/c-strtod,
88296         modules/c-strtold, modules/canon-host, modules/canonicalize,
88297         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88298         modules/exclude, modules/exitfail, modules/file-type,
88299         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88300         modules/getdate, modules/getline, modules/getpagesize,
88301         modules/getpass, modules/getugroups, modules/group-member,
88302         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88303         modules/inttostr, modules/long-options, modules/makepath,
88304         modules/md5, modules/memcasecmp, modules/memcoll,
88305         modules/modechange, modules/mountlist, modules/path-concat,
88306         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88307         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88308         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88309         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88310         modules/strftime, modules/strndup, modules/strverscmp,
88311         modules/timespec, modules/unlocked-io, modules/userspec,
88312         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88313         modules/yesno:
88314         Remove lib_SOURCES line from Makefile.am section, as this is now
88315         done automatically by the corresponding Autoconf macro.
88316
88317 2005-03-21  Jim Meyering  <jim@meyering.net>
88318
88319         Changes imported from coreutils.
88320
88321         * lib/cycle-check.c: Don't include xalloc.h.
88322
88323         * lib/path-concat.c: Don't include assert.h.
88324         (path_concat): Remove assertion that would have triggered
88325         for ABASE starting with more than one slash.
88326         Reported by Andreas Schwab.
88327
88328         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88329         properly when ABASE is an absolute file name.
88330         Correct the description of this function.
88331         Include <assert.h>.
88332         Add an assertion and a test driver.
88333         This fixes a bug introduced on 2004-07-02.
88334         Andreas Schwab reported the resulting failure of cp --parents:
88335         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88336
88337 2005-03-21  Jim Meyering  <jim@meyering.net>
88338
88339         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88340         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88341
88342 2005-03-21  Jim Meyering  <jim@meyering.net>
88343         and  Paul Eggert  <eggert@cs.ucla.edu>
88344
88345         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88346         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88347         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88348         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88349         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88350         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88351         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88352         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88353         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88354         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88355         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88356         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88357         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88358         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88359         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88360         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88361         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88362         for these modules.
88363
88364 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88365
88366         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88367         (which shouldn't happen), generate nothing instead of returning 0
88368         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88369
88370 2005-03-16  Bruno Haible  <bruno@clisp.org>
88371
88372         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88373         HAVE_LONGLONG_64BIT.
88374
88375 2005-03-16  Bruno Haible  <bruno@clisp.org>
88376
88377         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88378         HAVE_LONGLONG_64BIT.
88379
88380 2005-03-16  Bruno Haible  <bruno@clisp.org>
88381
88382         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88383         HAVE_LONGLONG_64BIT.
88384
88385 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88386
88387         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88388         reliably distinguish strftime failure from empty output on POSIX
88389         hosts.
88390
88391 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88392
88393         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88394         (iconv_string): Don't guess a size-zero buffer, as that might cause
88395         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88396         result would be 'too large', where 'too large' is (heuristically)
88397         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88398         overflow concerns.  This will prevent some unwanted malloc failures
88399         when the inputs are very large.
88400
88401 2005-03-15  Karl Berry  <karl@gnu.org>
88402
88403         * config/srclist.txt (config.rpath): from gettext.
88404         * config/config.rpath: update.
88405
88406 2005-03-15  Bruno Haible  <bruno@clisp.org>
88407
88408         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88409         to 'negate'.
88410
88411         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88412         variable.
88413
88414         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88415         results.
88416
88417 2005-03-14  Simon Josefsson  <jas@extundo.com>
88418
88419         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88420         <fx@gnu.org>.
88421
88422 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88423
88424         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88425         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88426         intprops.h.
88427         * lib/strtol.c: Likewise.
88428
88429 2005-03-14  Jim Meyering  <jim@meyering.net>
88430
88431         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88432         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88433         to be nonzero so that we (and caller) can detect the difference
88434         between a valid zero-length expansion and an error return, even
88435         when the underlying strftime fails before writing anything into
88436         that location.
88437
88438 2005-03-14  Bruno Haible  <bruno@clisp.org>
88439
88440         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88441         Update from GNU gettext 0.14.3.
88442
88443 2005-03-10  Jim Meyering  <jim@meyering.net>
88444
88445         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88446
88447 2005-03-10  Jim Meyering  <jim@meyering.net>
88448
88449         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88450         so that this module works on systems without fchdir.
88451
88452 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88453
88454         Factor int-properties macros into a single file, except for
88455         glibc-related files.
88456         * lib/intprops.h: New file.
88457         * lib/getloadavg.c: Include it instead of limits.h.
88458         (INT_STRLEN_BOUND): Remove.
88459         * lib/human.c: Include intprops.h.
88460         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88461         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88462         302/1000.
88463         * lib/inttostr.h: Include intprops.h instead of limits.h.
88464         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88465         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88466         for consistency with intprops.h.
88467         (time_t_is_integer, twos_complement_arithmetic): Use them.
88468         * lib/sig2str.h: Include <signal.h>, intprops.h.
88469         (INT_STRLEN_BOUND): Remove.
88470         * lib/strftime.c (TYPE_SIGNED): Remove.
88471         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88472         * lib/strtol.c: Adjust comments to match intprops.h.
88473         * lib/userspec.c: Include intprops.h.
88474         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88475         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88476         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88477         instead of rolling our own expressions.
88478         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88479
88480         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88481         instead of int.
88482         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88483         the right thing even if adding 1900 would overflow.  Similarly
88484         for tm_mon + 1 and tm_yday + 1.
88485         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88486         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88487         (DO_SIGNED_NUMBER): New macro.
88488         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88489
88490 2005-03-07  Bruno Haible  <bruno@clisp.org>
88491
88492         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88493
88494 2005-03-07  Bruno Haible  <bruno@clisp.org>
88495
88496         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88497
88498 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88499
88500         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88501         (func_import): Only replace files via --import when they have actually
88502         changed.
88503
88504 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88505
88506         * m4/mmap-anon.m4: New file.
88507         * m4/pagealign_alloc.m4: New file.
88508
88509 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88510             Bruno Haible  <bruno@clisp.org>
88511
88512         * modules/pagealign_alloc: New file.
88513         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88514
88515 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88516             Bruno Haible  <bruno@clisp.org>
88517
88518         * lib/pagealign_alloc.h: New file.
88519         * lib/pagealign_alloc.c: New file.
88520
88521 2005-03-03  Bruno Haible  <bruno@clisp.org>
88522
88523         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88524         Use an all-permissive copyright notice, recommended by RMS.
88525
88526 2005-03-02  Bruno Haible  <bruno@clisp.org>
88527
88528         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88529         of AIX, the replacement has to be done only after <string.h> is
88530         included, therefore not in config.h. stpncpy.h does the replacement,
88531         and stpncpy.c uses it.
88532
88533 2005-03-02  Bruno Haible  <bruno@clisp.org>
88534
88535         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88536         stpncpy.c uses it.
88537
88538 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88539
88540         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88541         The workaround isn't strictly needed for POSIX conformance, and
88542         it's too much of a pain to configure and maintain.  We'll ask
88543         people to fix their kernels instead.
88544         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88545         (NANOSLEEP_BUG_WORKAROUND): Remove.
88546         (xnanosleep): Remove the workaround.
88547
88548 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88549
88550         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88551         Reported by Derek Price.
88552         (Include): Add "timespec.h".
88553
88554         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88555
88556 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88557
88558         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88559         to detect nanosleep bug.
88560
88561 2005-03-01  Bruno Haible  <bruno@clisp.org>
88562
88563         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88564
88565 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88566
88567         * modules/gethrxtime: New file.
88568         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88569         (Depends-on): Add gethrxtime.
88570         (configure.ac): Add gl_XNANOSLEEP.
88571         (Makefile.am): Remove lib_SOURCES line.
88572
88573 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88574
88575         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88576         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88577
88578 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88579
88580         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88581         * lib/timespec.h (gettime): Return void, since it always
88582         succeeds now.  All uses changed.
88583         * lib/gettime.c (gettime): Likewise.
88584         [HAVE_NANOTIME]: Prefer nanotime.
88585         Assume gettimeofday succeeds, as POSIX requires.
88586         Assime time () succeeds, since other code already does.
88587         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88588         (timespec_subtract): Remove.
88589         (NANOSLEEP_BUG_WORKAROUND): New constant.
88590         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88591         things considerably.  Use it only on GNU/Linux hosts, since the
88592         workaround shouldn't be needed elsewhere.
88593
88594 2005-02-24  Bruno Haible  <bruno@clisp.org>
88595
88596         * modules/gettext (Files): Add m4/glibc2.m4.
88597
88598 2005-02-24  Bruno Haible  <bruno@clisp.org>
88599
88600         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88601         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88602         * m4/progtest.m4:
88603         Update from GNU gettext 0.14.2.
88604         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88605
88606 2005-02-24  Bruno Haible  <bruno@clisp.org>
88607
88608         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88609         * lib/config.charset: Update from GNU gettext 0.14.2.
88610
88611 2005-02-24  Bruno Haible  <bruno@clisp.org>
88612
88613         * lib/gettext.h: Update from GNU gettext 0.14.2.
88614
88615 2005-02-23  Simon Josefsson  <jas@extundo.com>
88616
88617         * m4/iconvme.m4: New file.
88618
88619 2005-02-23  Jim Meyering  <jim@meyering.net>
88620
88621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88622         change.
88623         Thanks to Bruno Haible for catching it.
88624
88625 2005-02-22  Simon Josefsson  <jas@extundo.com>
88626
88627         * modules/iconvme: New file.
88628
88629         * MODULES.html.sh: Add iconvme.
88630
88631 2005-02-22  Simon Josefsson  <jas@extundo.com>
88632
88633         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88634
88635 2005-02-22  Simon Josefsson  <jas@extundo.com>
88636
88637         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88638
88639 2005-02-22  Jim Meyering  <jim@meyering.net>
88640
88641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88642         s/ifndef/ifdef/.
88643
88644 2005-02-20  Neil Conway  <neilc@samurai.com>
88645
88646         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88647         returned by OSX/Darwin if the specified buffer is not large
88648         enough for the hostname.
88649
88650 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88651
88652         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88653         pass it to _help, otherwise the latter coredumps trying to
88654         dereference state.root_argp.
88655
88656 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88657
88658         * modules/chdir-long (Depends-on): Add memrchr.
88659         * modules/memrchr (Files): Add lib/memrchr.h.
88660         (Include): "memrchr.h".
88661
88662 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88663
88664         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88665
88666 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88667
88668         * lib/memrchr.h: New file.
88669         * lib/chdir-long.c: Include it.
88670         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88671         Don't bother including stddef.h.
88672
88673 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88674
88675         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88676         inclusion.
88677         Include <sys/types.h>, for dev_t.
88678         (ME_DUMMY, ME_REMOTE): Move from here....
88679         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88680         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88681         Dmitry V. Levin.
88682         Include mountlist.h first, to test the interface.
88683
88684 2005-01-29  Bruno Haible  <bruno@clisp.org>
88685
88686         * lib/progname.c (program_name): Initialize.
88687         Needed when linking statically on MacOS X.
88688
88689 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88690
88691         Sync from coreutils.
88692         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88693         (Depends-on): Add c-strtod.
88694         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88695
88696 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88697
88698         Sync from coreutils.
88699         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88700
88701         Remove files that are specific to coreutils.
88702         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88703
88704 2005-01-28  Bruno Haible  <bruno@clisp.org>
88705
88706         * modules/javacomp: New file.
88707         * MODULES.html.sh (Java): Add javacomp.
88708
88709 2005-01-28  Bruno Haible  <bruno@clisp.org>
88710
88711         * m4/javacomp.m4: New file, from GNU gettext.
88712
88713 2005-01-28  Bruno Haible  <bruno@clisp.org>
88714
88715         * lib/javacomp.sh.in: New file, from GNU gettext.
88716         * lib/javacomp.h: New file, from GNU gettext.
88717         * lib/javacomp.c: New file, from GNU gettext.
88718
88719 2005-01-26  Simon Josefsson  <jas@extundo.com>
88720
88721         * lib/gai_strerror.c: Use GPL in header.
88722
88723 2005-01-26  Bruno Haible  <bruno@clisp.org>
88724
88725         * modules/javaexec: New file.
88726         * MODULES.html.sh (Java): Add javaexec.
88727
88728 2005-01-26  Bruno Haible  <bruno@clisp.org>
88729
88730         * m4/javaexec.m4: New file, from GNU gettext.
88731
88732 2005-01-26  Bruno Haible  <bruno@clisp.org>
88733
88734         * lib/javaexec.sh.in: New file, from GNU gettext.
88735         * lib/javaexec.h: New file, from GNU gettext.
88736         * lib/javaexec.c: New file, from GNU gettext.
88737
88738 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88739
88740         * modules/lchown (Depends-on): Remove lchown.h
88741
88742 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88743
88744         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88745         must be defined if the header file was not found, in order
88746         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88747
88748 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88749
88750         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88751         initializers for struct pentry_state.
88752         (__argp_error): Check return value of __asprintf
88753         (__argp_failure): Translate error message
88754
88755         * lib/argp-parse.c: Removed braces around the expansion of N_()
88756
88757 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88758
88759         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88760         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88761         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88762         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88763         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88764         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88765         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88766         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88767         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88768         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88769         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88770         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88771         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88772         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88773         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88774         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88775         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88776         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88777         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88778         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88779         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88780         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88781         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88782         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88783         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88784         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88785         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88786         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88787         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88788         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88789         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88790         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88791         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88792         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88793         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88794         Use an all-permissive copyright notice, recommended by RMS.
88795
88796 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88797
88798         * modules/chdir-long (Depends-on): Remove mempcpy.
88799
88800 2005-01-21  Jim Meyering  <jim@meyering.net>
88801
88802         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88803         same value as for Solaris 9.
88804
88805         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88806         component length.  This included changing the parameter to be
88807         of type `char *' rather than `char const *'.
88808         * lib/chdir-long.h (chdir_long): Update prototype.
88809
88810         * lib/openat.c (fdopendir, fstatat): New functions.
88811         * lib/openat.h: Include headers required for use of DIR and struct
88812         stat.
88813         [AT_SYMLINK_NOFOLLOW]: Define.
88814         (fdopendir, fstatat): Add prototypes.
88815
88816 2005-01-21  Bruno Haible  <bruno@clisp.org>
88817
88818         * modules/classpath: New file.
88819         * MODULES.html.sh (Java): Add classpath.
88820
88821 2005-01-21  Bruno Haible  <bruno@clisp.org>
88822
88823         * lib/classpath.h: New file, from GNU gettext.
88824         * lib/classpath.c: New file, from GNU gettext.
88825
88826 2005-01-20  Simon Josefsson  <jas@extundo.com>
88827
88828         * modules/version-etc-fsf: New file.
88829
88830 2005-01-20  Simon Josefsson  <jas@extundo.com>
88831
88832         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88833         * lib/version-etc.c: Remove version_etc_copyright.
88834         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88835         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88836
88837 2005-01-20  Simon Josefsson  <jas@extundo.com>
88838
88839         * lib/base64.h (isbase64): Add.
88840
88841         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88842         using a unsigned prototype, don't inline.
88843         (base64_decode): Use it.
88844
88845 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88846
88847         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88848         it.
88849
88850 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88851
88852         * lib/save-cwd.c (save_cwd): Remove code to support the case
88853         where fchdir is missing or flaky.
88854
88855 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88856
88857         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88858
88859 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88860
88861         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88862         AC_LIBSOURCES now does this.
88863         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88864         with new ullong_max module.
88865
88866 2005-01-19  Bruno Haible  <bruno@clisp.org>
88867
88868         * modules/sh-quote: New file.
88869         * MODULES.html.sh (Executing programs): Add sh-quote.
88870
88871 2005-01-19  Bruno Haible  <bruno@clisp.org>
88872
88873         * lib/sh-quote.h: New file, from GNU gettext.
88874         * lib/sh-quote.c: New file, from GNU gettext.
88875
88876 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88877
88878         Merge from coreutils.
88879         * m4/ullong_max.m4: New file.
88880         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88881         (gl_MACROS): Assume localeconv exists.
88882
88883 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88884
88885         Merge changes from coreutils, as described below in several
88886         changelogs dated today.
88887
88888         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88889         (O_DIRECTORY): Remove; not needed here, since "." must be
88890         a directory.  All uses removed.
88891         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88892         universal on Suns, and we also need to test for IRIX.
88893         Revamp code to use 'if' rather than '#if'.
88894         Avoid unnecessary comparison of cwd->desc to 0.
88895
88896         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88897         for known valid error numbers rather than observed invalid ones.
88898
88899 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88900
88901         * modules/ullong_max: New file.
88902
88903         * modules/chdir-long, modules/openat: New files.
88904         * modules/save-cwd (Depends-on): Depend on chdir-long.
88905         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88906
88907 2005-01-18  Jim Meyering  <jim@meyering.net>
88908
88909         Merge from coreutils.
88910         * m4/chdir-long.m4, m4/openat.m4: New files.
88911         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88912         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88913         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88914         is sane and DOES follow symlinks.  Besides, testing 20 different
88915         systems found no broken chown implementations.
88916         Prompted by a change in rsync's copy of this macro.
88917         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88918
88919         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88920
88921         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88922         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88923         NULL-means-set-to-current-time semantics.
88924         Remove temporary file immediately, rather than waiting
88925         for configure's at-exit trap code to do it.
88926
88927 2005-01-18  Jim Meyering  <jim@meyering.net>
88928
88929         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88930
88931         * lib/utimens.c (futimens): Account for the fact that futimes
88932         can also fail with errno == ENOSYS or errno == ENOENT.
88933         Patch from Dmitry V. Levin.
88934
88935         Change the name of the robust chdir function from chdir to chdir_long.
88936         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88937         (restore_cwd): Use chdir_long, not chdir.
88938         * lib/chdir-long.c: Renamed from chdir.c.
88939         * lib/chdir-long.h: Renamed from chdir.h.
88940         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88941         Hurd.
88942
88943 2005-01-18  Bruno Haible  <bruno@clisp.org>
88944
88945         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88946         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88947         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88948         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88949         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88950         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88951         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88952         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88953         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88954         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88955         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88956         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88957         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88958         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88959         Use an all-permissive copyright notice, recommended by RMS.
88960
88961 2005-01-18  Bob Proulx  <bob@proulx.com>
88962
88963         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88964         simplify offsetof() macro construct to avoid compile failure with
88965         native HP-UX 11.0 ANSI C compiler.
88966
88967 2005-01-17  Bruno Haible  <bruno@clisp.org>
88968
88969         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88970         redundant because stpncpy.m4 takes care of it.
88971
88972 2005-01-17  Bruno Haible  <bruno@clisp.org>
88973
88974         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88975
88976 2005-01-17  Bruno Haible  <bruno@clisp.org>
88977
88978         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88979         used.
88980
88981 2005-01-17  Bruno Haible  <bruno@clisp.org>
88982
88983         * lib/fwriteerror.h (fwriteerror): Change specification to include
88984         fclose.
88985         * lib/fwriteerror.c: Include <stdbool.h>.
88986         (fwriteerror): At the end, close the file stream. Record whether
88987         stdout was already closed.
88988
88989 2005-01-17  Bruno Haible  <bruno@clisp.org>
88990
88991         * lib/execute.c (environ): Declare if needed.
88992         * lib/pipe.c (environ): Likewise.
88993         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88994
88995 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88996
88997         * modules/argp: Depend on vsnprintf
88998
88999 2005-01-10  Jim Meyering  <jim@meyering.net>
89000
89001         * modules/closeout (Depends-on): Add atexit.
89002
89003 2005-01-06  Bruno Haible  <bruno@clisp.org>
89004
89005         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89006
89007 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89008
89009         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89010         definitions to be after all include files, to avoid collisions.
89011         Problem reported by Bob Proulx.
89012
89013 2005-01-04  Jim Meyering  <jim@meyering.net>
89014
89015         Changes imported from coreutils.
89016         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89017         as the mkstemp template, use a temporary directory and an
89018         8.3-friendly template to avoid trouble on systems like DJGPP.
89019         Reported by Juan M. Guerrero via Stepan Kasal.
89020         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89021         close. Remove the temporary directory right away, rather than waiting
89022         for configure's at-exit trap code to do it.
89023         Suggestion from Stepan Kasal.
89024
89025 2005-01-01  Simon Josefsson  <jas@extundo.com>
89026
89027         * gnulib-tool: Print #include directives when --import'ing.
89028
89029 2004-12-28  Simon Josefsson  <jas@extundo.com>
89030
89031         * tests/test-base64.c: Include required header files.  Remove
89032         unused variables.
89033
89034 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89035
89036         * modules/error (Depends-on): Remove gettext.
89037
89038 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89039
89040         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89041         not needed.  This removes a dependency on the gettext module.
89042         [defined _LIBC]: Do not include <libintl.h>; not needed.
89043
89044 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89045
89046         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89047         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89048
89049 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89050
89051         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89052         HAVE_DECL_STRTOLD.
89053
89054 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89055
89056         * modules/getdate (Depends-on): Remove alloca-opt.
89057
89058 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89059
89060         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89061
89062 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89063
89064         * lib/argp-parse.c: Include <stddef.h>.
89065         (alignof, alignto): New macros.
89066         (parser_init): Don't assume that void * is aligned sufficiently
89067         for struct option.
89068
89069         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89070         need to extend the stack.
89071         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89072         large.
89073
89074 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89075
89076         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89077
89078 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89079
89080         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89081         (2004-10-24) change.  Apparently this was a false alarm.
89082
89083         * modules/getdate: Depend on alloca-opt, not alloca.
89084
89085 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89086
89087         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89088         Remove now-obsolete comment about AIX.
89089         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89090         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89091         (YYMAXDEPTH): New macro.
89092
89093 2004-12-18  Simon Josefsson  <jas@extundo.com>
89094
89095         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89096
89097 2004-12-18  Bruno Haible  <bruno@clisp.org>
89098
89099         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89100
89101 2004-12-18  Bruno Haible  <bruno@clisp.org>
89102
89103         * lib/fatal-signal.c (fatal_signals): Make non-const.
89104         (init_fatal_signals): New function.
89105         (uninstall_handlers, install_handlers): Ignore signals that were set to
89106         SIG_IGN.
89107         (at_fatal_signal): Call init_fatal_signals.
89108         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89109         SIG_IGN.
89110         Reported by Paul Eggert.
89111
89112 2004-12-18  Bruno Haible  <bruno@clisp.org>
89113
89114         * doc/alloca.texi: New file.
89115         * doc/alloca-opt.texi: New file.
89116
89117 2004-12-17  Jim Meyering  <jim@meyering.net>
89118
89119         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89120         Otherwise, install-sh could exit with improper exit status when
89121         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89122
89123 2004-12-16  Simon Josefsson  <jas@extundo.com>
89124
89125         * tests/test-base64.c: Add license.
89126
89127 2004-12-15  Stepan Kasal  <address@hidden>
89128
89129         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89130
89131 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89132
89133         * modules/getcwd (Files): Add m4/d-ino.m4.
89134         Suggested by Mark D. Baushke.
89135
89136 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89137
89138         * lib/getdate.y (textint): New member "negative".
89139         (time_zone_hhmm): New function.
89140         Expect 14 shift-reduce conflicts, not 13.
89141         (o_colon_minutes): New rule.
89142         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89143         (yylex): Set the "negative" member of signed numbers.
89144
89145 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89146
89147         * doc/getdate.texi (Time of day items, Time zone items):
89148         Describe new formats +00:00, UTC+00:00.
89149
89150 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89151
89152         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89153         spurious "-l"s.  Problem reported by Stepan Kasal.
89154
89155 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89156
89157         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89158         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89159
89160 2004-12-04  Simon Josefsson  <jas@extundo.com>
89161
89162         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89163         Vandoorselaere <yoann@prelude-ids.org>.
89164
89165 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89166
89167         Changes imported from coreutils.
89168         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89169         exist.
89170         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89171
89172 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89173
89174         Changes imported from coreutils.
89175         * lib/hard-locale.c: Assume <locale.h> exists.
89176         Include "strdup.h".
89177         (GLIBC_VERSION): New macro.
89178         (hard_locale): Assume setlocale exists.
89179         Rewrite to avoid #ifdef.
89180         Use strdup rather than malloc + strcpy.
89181         * lib/human.c: Assume <locale.h> exists.
89182         (human_readable): Assume localeconv exists.
89183
89184 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89185
89186         * modules/hard-locale (Depends-on): Add strdup.
89187
89188 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89189
89190         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89191         convert T2, not T.  (Imported from libc.)
89192
89193 2004-11-30  Simon Josefsson  <jas@extundo.com>
89194
89195         * modules/restrict (License): Change to LGPL.
89196
89197 2004-11-30  Simon Josefsson  <jas@extundo.com>
89198
89199         * m4/restrict.m4: Add copyright and copying conditions.
89200
89201 2004-11-30  Simon Josefsson  <jas@extundo.com>
89202
89203         * m4/base64.m4: New file.
89204
89205 2004-11-30  Simon Josefsson  <jas@extundo.com>
89206
89207         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89208         base64.
89209
89210         * tests/test-base64.c: New file.
89211
89212         * modules/base64: New file.
89213
89214 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89215
89216         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89217         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89218
89219         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89220
89221 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89222
89223         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89224         (__getcwd.c): Don't restore errno; glibc doesn't.
89225         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89226         first, falling back to our code only if its results look suspicious.
89227         Ensure that the resulting buffer is only as large as necessary.
89228
89229         * lib/readutmp.c: Include readutmp.h first.
89230         Include <errno.h>, since readutmp.h no longer does that.
89231         * lib/readutmp.h: Don't include <errno.h>,
89232         <sys/param.h>, <time.h>; not needed to establish interface.
89233         (errno): Remove decl.
89234         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89235         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89236         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89237
89238 2004-11-28  Simon Josefsson  <jas@extundo.com>
89239
89240         * lib/base64.h, base64.c: New file.
89241
89242 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89243
89244         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89245
89246 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89247
89248         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89249         (Depends-on): Remove pathmax, same.  Add mempcpy.
89250         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89251         (Makefile.am): Append getcwd.h to lib_SOURCES.
89252         (Include): Add getcwd.h.
89253         (Maintainer): Change from Jim Meyering to "all, glibc",
89254         since getdate now uses intended-for-glibc code.
89255         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89256         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89257
89258 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89259
89260         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89261         HP's ANSI C compiler.
89262         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89263         Declaring int functions causes warnings on some modern systems and
89264         shouldn't be needed to compile on ancient ones.
89265         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89266         defined.
89267
89268         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89269         with the following changes.
89270         (__set_errno): Parenthesize properly.
89271         Include <stdbool.h>.
89272         (MIN, MAX, MATCHING_INO): New macros.
89273         (__getcwd): Define with prototype, not K&R form.
89274         Use heuristics to allocate default buffer on stack if possible.
89275         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89276         behavior, and to avoid the PATH_MAX limit when computing
89277         ../../../../...
89278         Use MATCHING_INO to compare inode number to file.
89279         Check for arithmetic overflow in size calculations.
89280         Fix bug in reallocation of dot array that caused getcwd to fail
89281         on directories nested deeper than 75.
89282         Be more careful about saving errno on error.
89283         Do not use realloc; use only free+malloc, as this is a bit
89284         more flexible and avoids a needless copy operation.
89285         Do not inspect st_dev and st_ino for symbolic links; POSIX
89286         doesn't specify the latter.
89287         Check for closedir errors.
89288         Avoid needless casts.
89289         Use "#ifdef weak_alias" around weak_alias, to be like other
89290         glibc code.
89291         The following changes to getcwd.c have effect only when used in
89292         gnulib; they have no effect inside glibc proper.
89293         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89294         as alloca isn't used.
89295         (alloca, __alloca): Likewise.
89296         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89297         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89298         unconditionally, as gnulib assumes C89 or better.
89299         Do not include <sys/param.h>.
89300         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89301         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89302         better.
89303         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89304         Include <dirent.h> in a way that is compatible with modern Autoconf.
89305         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89306         New macros, if not already defined.
89307         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89308         Use "_LIBC", not "defined _LIBC", for consistency.
89309         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89310         a mempcpy module.
89311         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89312         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89313         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89314         credit only to Jim Meyering and adjust the copyright dates.
89315         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89316         <stdlib.h>, <unistd.h>, "pathmax.h".
89317         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89318         (INITIAL_BUFFER_SIZE): Remove.
89319         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89320
89321 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89322
89323         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89324         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89325         Use the _ONCE methods, for efficiency.
89326         Check for fcntl.h.  In test program, include <errno.h>
89327         and <fcntl.h> if available.  Remove old K&R cruft from
89328         test program.  Check for common errors in GNU/Linux,
89329         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89330         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89331         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89332         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89333         name accordingly.
89334         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89335         accommodate new getcwd.c.
89336         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89337         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89338         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89339         that's all we need now.
89340
89341 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89342
89343         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89344         argp-parse.c depends on getopt internals, that means we should
89345         always use our getopt, to be on the safe side.
89346         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89347         order not to spoil the result of an eventual previous invocation
89348         of gl_GETOPT_SUBSTITUTE.
89349
89350 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89351
89352         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89353         redefinition warnings. To avoid them, include the defines
89354         in `#if !defined __need_getopt ... #endif'. The only place
89355         where __getopt_argv_const is used is in definitions
89356         of getopt_long and getopt_long_only below, which are as well
89357         protected by `#ifndef __need_getopt'.
89358         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89359         __need_getopt after including <stdio.h> and <unistd.h> These
89360         headers might have defined it.
89361
89362 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89363
89364         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89365
89366 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89367
89368         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89369         (futimens): New function, which uses futimes if available.
89370         (futimens, utimens): Support timespec==NULL, with same semantics
89371         as utime and utimens.
89372         * lib/utimens.h (futimens): New decl.
89373
89374 2004-11-23  Jim Meyering  <jim@meyering.net>
89375
89376         * lib/getopt_.h: Remove trailing blanks.
89377
89378 2004-11-23  Jim Meyering  <jim@meyering.net>
89379
89380         * lib/__fpending.c: Add comment.
89381
89382 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89383
89384         * modules/canonicalize (Depends-on): Add xreadlink.
89385         Problem reported by James Youngman.
89386
89387 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89388
89389         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89390         New macros.
89391         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89392         optopt): Use them instead of invoking ## directly; otherwise, the
89393         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89394
89395 2004-11-19  Bruno Haible  <bruno@clisp.org>
89396
89397         * lib/strtok_r.c: Move comments from here...
89398         * lib/strtok_r.h: ... to here.
89399
89400 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89401
89402         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89403         implementations that mishandle size_t overflow.
89404
89405 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89406
89407         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89408         might fail.  Problem reported by Yoann Vandoorselaere.
89409         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89410         implementations that mishandle size_t overflow.
89411
89412 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89413
89414         * modules/canon-host (Depends-on): Add strdup.
89415
89416 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89417
89418         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89419
89420 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89421
89422         * lib/canon-host.c: Include "strdup.h".
89423         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89424         Use strdup instead of malloc/strcpy to duplicate strings.
89425
89426         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89427         (human_space_before_unit): New constant.
89428         * lib/human.c (human_readable): Support it.
89429
89430         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89431         (xgetcwd): Set errno correctly when failing.
89432         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89433         the failure is actually due to a PATH_MAX problem.
89434
89435         Further getopt changes to make it more likely that glibc will
89436         buy the changes back.
89437         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89438         (getopt): Use it, so to preserve glibc semantic
89439         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89440         when compiling for libc.
89441         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89442         (getopt_long, getopt_long_only): Use it.
89443
89444         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89445         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89446         (getopt): Argv is now char * const *, as per standard.
89447         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89448         not char *__getopt_argv_const *.
89449         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89450         _getopt_long_only_r): Likewise.
89451         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89452         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89453         _getopt_long_r, _getopt_long_only_r): Likewise.
89454         * lib/getopt_.h (__getopt_argv_const): Remove.
89455         (getopt): Argv is now char * const *, as per standard.
89456
89457         * lib/getdate.y (tORDINAL): New token.
89458         (day, relunit): Allow it for relative times.
89459         (relative_time_table): Use tORDINAL for ordinals.
89460
89461 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89462
89463         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89464         Document that "second" isn't allowed as an ordinal number.
89465
89466 2004-11-16  Jim Meyering  <jim@meyering.net>
89467
89468         * modules/closeout (Depends-on): Add fpending.
89469
89470 2004-11-15  Jim Meyering  <jim@meyering.net>
89471
89472         * lib/closeout.c: Include "__fpending.h" once again.
89473         Include <stdbool.h>.
89474         (close_stdout): Don't fail just because stdout was closed initially,
89475         since some programs don't write to stdout in the normal course of
89476         operation (other than --version and --help), and we don't want this
89477         function to make e.g. `touch file >&-' fail.
89478         But do fail if it was closed and someone has tried to write to it.
89479         E.g., `printf foo >&-' must fail.
89480
89481 2004-11-13  Jim Meyering  <jim@meyering.net>
89482
89483         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89484
89485 2004-11-12  Simon Josefsson  <jas@extundo.com>
89486
89487         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89488         small doc fix is still pending.
89489
89490 2004-11-11  Simon Josefsson  <jas@extundo.com>
89491
89492         * modules/strtok_r: New file.
89493
89494         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89495         strtok_r.
89496
89497 2004-11-11  Simon Josefsson  <jas@extundo.com>
89498
89499         * m4/strtok_r.m4: New file.
89500
89501         * m4/getopt.m4: Replace opterr.
89502
89503 2004-11-11  Simon Josefsson  <jas@extundo.com>
89504
89505         * lib/strtok_r.h, strtok_r.c: New file.
89506
89507 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89508
89509         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89510         of replacing opterr, getopt, etc.  This should handle the
89511         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89512
89513 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89514
89515         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89516         we can stop lying to compilers about the constness of argv when we
89517         are compiled outside glibc.
89518         (getopt, getopt_long, getopt_long_only): Use it.
89519         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89520         _getopt_internal, getopt): Likewise.
89521         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89522         _getopt_long_only_r): Likewise.
89523         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89524         _getopt_long_r, _getopt_long_only_r): Likewise.
89525
89526         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89527         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89528         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89529         the other external symbols.
89530         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89531         declaration, since the above renaming now works around collisions.
89532
89533 2004-11-11  Jim Meyering  <jim@meyering.net>
89534
89535         * lib/linebreak.c: Remove trailing blanks.
89536         * lib/alloca_.h: Likewise.
89537         * lib/acosl.c: Likewise.
89538         * lib/euidaccess.c: Likewise.
89539         * lib/allocsa.h: Likewise.
89540
89541 2004-11-10  Simon Josefsson  <jas@extundo.com>
89542
89543         * m4/getaddrinfo.m4: New file.
89544
89545 2004-11-10  Simon Josefsson  <jas@extundo.com>
89546
89547         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89548
89549 2004-11-10  Simon Josefsson  <jas@extundo.com>
89550
89551         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89552         getaddrinfo.
89553
89554         * modules/getaddrinfo: New file.
89555
89556 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89557
89558         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89559
89560 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89561
89562         * lib/mktime.c (SHR): New macro, which is a portable
89563         substitute for >> that should work even on Crays.
89564         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89565         Problem reported by Mark D. Baushke in
89566         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89567         * lib/getdate.y (SHR): Likewise.
89568         (tm_diff): Use it.
89569         * lib/strftime.c (SHR): Likewise.
89570         (tm_diff): Use it.
89571         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89572         quote_these_too, so that right shifts are well defined.  All uses
89573         changed.
89574
89575 2004-11-10  Jim Meyering  <jim@meyering.net>
89576
89577         Ensure that no close failure goes unreported.
89578         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89579         return early when it seems there's nothing to flush.
89580         Don't include __fpending.h.
89581
89582 2004-11-10  Jim Meyering  <jim@meyering.net>
89583
89584         * modules/closeout (Depends-on): Remove fpending.
89585
89586 2004-11-10  Jim Meyering  <jim@meyering.net>
89587
89588         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89589
89590 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89591
89592         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89593         gl_FUNC_STRFTIME.
89594         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89595         and AC_REQUIRE when possible, to avoid duplicate checks.
89596         Check for <wchar.h>.
89597
89598 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89599
89600         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89601
89602 2004-11-09  Bruno Haible  <bruno@clisp.org>
89603
89604         * m4/sockpfaf.m4: New file.
89605
89606 2004-11-05  Bruno Haible  <bruno@clisp.org>
89607
89608         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89609         Reported by Mark D. Baushke <mdb@cvshome.org>.
89610
89611 2004-11-04  Bruno Haible  <bruno@clisp.org>
89612
89613         2004-09-11  Bruno Haible  <bruno@clisp.org>
89614                 * allocsa.valgrind: New file.
89615         2004-02-06  Bruno Haible  <bruno@clisp.org>
89616                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89617                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89618                 Reported by Christopher Seip <chris.seip@hp.com>.
89619
89620 2004-11-04  Bruno Haible  <bruno@clisp.org>
89621
89622         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89623         (Makefile.am): Distribute it.
89624
89625 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89626
89627         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89628         with errno == ERANGE if the buffer is too small.
89629         Problem reported by Mark D. Baushke.
89630
89631 2004-11-03  Albert Chin  <china@thewrittenword.com>
89632             Paul Eggert  <eggert@cs.ucla.edu>
89633
89634         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89635         equivalent, substitute $ac_type for equivalent type rather than
89636         blindly using uint32_t *always* which won't work if uint32_t is not
89637         available.  Define _UINT32_T to work around typedef of uint32_t if
89638         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89639         2.5.1.
89640
89641 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89642
89643         * m4/jm-macros.m4: Sync from coreutils.
89644         (gl_MACROS): Check for mbrlen, for pathchk.
89645         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89646
89647 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89648
89649         * lib/xreadlink.c (MAXSIZE): New macro.
89650         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89651         size does not exceed MAXSIZE.  Avoid cast.
89652         As suggested by Mark D. Baushke in
89653         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89654         if readlink fails with buffer size just under MAXSIZE, try again
89655         with MAXSIZE.
89656
89657 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89658
89659         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89660
89661 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89662         and  Paul Eggert  <eggert@cs.ucla.edu>
89663
89664         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89665         (get_date): Overparenthesize to avoid GCC warning.
89666
89667 2004-11-02  Bruno Haible  <bruno@clisp.org>
89668
89669         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89670         returns void.
89671
89672 2004-11-02  Bruno Haible  <bruno@clisp.org>
89673
89674         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89675         function returns void.
89676
89677 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89678
89679         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89680         fflush_unlocked, flockfile, funlockfile, funlockfile,
89681         fputs_unlocked, putc_unlocked.
89682
89683 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89684
89685         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89686         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89687         already declared.
89688
89689 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89690
89691         * modules/getdate (Files): Add doc/getdate.texi.
89692         (Depends-on): Add setenv, xalloc.
89693
89694 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89695
89696         * lib/getdate.y: Add support for TZ="foo" within a date string.
89697         Fix some bugs near time_t boundaries.  Reject dates with
89698         out-of-range components, e.g., "Sept 31".
89699         Include <stdlib.h>, "setenv.h", "xalloc.h".
89700         (ISDIGIT_LOCALE): Remove; unused.
89701         Note that the TZ and time functions used here are not reentrant.
89702         (mktime_ok, get_tz): New functions.
89703         (TZBUFSIZE): New constant.
89704         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89705         This requires that we sometimes generate our own TZ="XXX..." setting.
89706
89707 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89708
89709         * doc/getdate.texi: New file, from coreutils with modifications for
89710         the new TZ parsing.
89711
89712 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89713
89714         * lib/mktime.c (not_equal_tm): Remove redundant check.
89715
89716 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89717
89718         * modules/regex (lib_SOURCES): Add regex.c.
89719         Reported by James Youngman in
89720         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89721
89722 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89723
89724         * lib/getdate.y: Use Bison 1.875 features, and some minor
89725         code cleanups.  This change does not affect semantics.
89726         Don't include <stdlib.h>; no longer needed.
89727         Don't include unlocked-io.h; only the "#if TEST" code uses
89728         stdio, and performance isn't crucial there.
89729         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89730         Bison 1.875 features as described below.
89731         All uses of "PC." replaced by "pc->".
89732         (YYSTYPE): Add a forward declaration.
89733         (yylex, yyerror): Use full prototypes in forward decls.
89734         Use "%pure-parser" rather than obsolescent "%pure_parser".
89735         Use %parse-param and %lex-param instead of obsolescent
89736         YYPARSE_PARAM and YYLEX_PARAM.
89737         (meridian_table, month_and_day_table, time_units_table,
89738         relative_time_table, time_zone_table, military_table,
89739         lookup_zone, lookup_word, get_date):
89740         Use NULL instead of 0 where appropriate.
89741         (to_hour): Avoid abort (), to avoid a dependency on
89742         stdlib.h.
89743         (yyerror, yylex): Now accepts parser_control * arg.
89744         (main) [TEST]: Use '\0' rather than 0 for char.
89745
89746 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89747
89748         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89749
89750 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89751
89752         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89753         It's now the caller's responsibility to handle the case where
89754         !HAVE_GETPAGESIZE && !defined getpagesize.
89755
89756         * lib/mktime.c (leapyear): Arg is long int, not int.
89757
89758 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89759
89760         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89761
89762 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89763
89764         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89765         missing.  Problem reported by James Youngman.
89766
89767 2004-10-16  Simon Josefsson  <jas@extundo.com>
89768
89769         * gnulib-tool: Fix comments.  Fix parse problem.
89770         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89771
89772 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89773
89774         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89775         implementation of getopt_long.  Problem reported by Alexander Taler in:
89776         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89777
89778 2004-10-15  Bruno Haible  <bruno@clisp.org>
89779
89780         * gnulib-tool: Untabify. Initialize supplied_libname.
89781         (func_usage): More homogenous output.
89782         (func_modules_transitive_closure, func_modules_to_filelist,
89783         func_emit_lib_Makefile_am): New functions.
89784         (func_import): New function, extracted from big case statement. Use
89785         func_get_license, func_modules_transitive_closure,
89786         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89787         opt_lgpl. Don't use test -a, as it's not portable.
89788         (func_create_testdir): Use func_modules_transitive_closure,
89789         func_modules_to_filelist, func_emit_lib_Makefile_am.
89790
89791 2004-10-15  Bruno Haible  <bruno@clisp.org>
89792
89793         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89794
89795 2004-10-15  Bruno Haible  <bruno@clisp.org>
89796
89797         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89798         the portions belonging to each module.
89799         Suggested by Derek Robert Price <derek@ximbiot.com>.
89800
89801 2004-10-12  Simon Josefsson  <jas@extundo.com>
89802
89803         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89804         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89805         to real functions.
89806
89807 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89808
89809         * modules/vsnprintf: New file.
89810
89811 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89812
89813         * m4/vsnprintf.m4: New file.
89814
89815 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89816
89817         * lib/vsnprintf.h: New file.
89818         * lib/vsnprintf.c: New file.
89819
89820 2004-10-11  Bruno Haible  <bruno@clisp.org>
89821
89822         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89823         vsnprintf.
89824
89825 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89826
89827         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89828
89829 2004-10-07  Bruno Haible  <bruno@clisp.org>
89830
89831         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89832         fits into the provided buffer.
89833
89834 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89835
89836         * lib/diacrit.c, diacrit.h: Add GPL notice.
89837
89838         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89839         notice.
89840         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89841         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89842         This avoids a potential constant-folding bug.
89843
89844 2004-10-05  Bruno Haible  <bruno@clisp.org>
89845
89846         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89847         for the declaration of strsep.
89848
89849 2004-10-05  Bruno Haible  <bruno@clisp.org>
89850
89851         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89852
89853 2004-10-04  Simon Josefsson  <jas@extundo.com>
89854
89855         * modules/memmem: New file.
89856         * tests/test-memmem.c: New file.
89857         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89858
89859 2004-10-04  Simon Josefsson  <jas@extundo.com>
89860
89861         * m4/memmem.m4: New file.
89862
89863 2004-10-04  Simon Josefsson  <jas@extundo.com>
89864
89865         * lib/memmem.h: New file.
89866         * lib/memmem.c: New file, taken from glibc.
89867
89868 2004-10-04  Simon Josefsson  <jas@extundo.com>
89869
89870         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89871         '#ifdef USE_UNLOCKED_IO'.
89872
89873 2004-10-04  Simon Josefsson  <jas@extundo.com>
89874
89875         * config/srclist.txt: Add memmem from glibc.
89876
89877 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89878
89879         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89880
89881         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89882         modules/exclude, modules/getdate, modules/getline,
89883         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89884         modules/getusershell, modules/linebuffer, modules/md5,
89885         modules/mountlist, modules/posixtm, modules/readtokens,
89886         modules/readutmp, modules/regex, modules/sha1,
89887         modules/version-etc, modules/yesno:
89888         Remove dependency on unlocked-io.
89889
89890 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89891
89892         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89893
89894         * m4/unlocked-io.m4: Add copyright notice.
89895         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89896
89897 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89898
89899         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89900         * lib/xmalloc.c (xmemdup): Likewise.
89901         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89902         XFREE): Remove these long-obsolescent macros.
89903         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89904         * lib/xstrdup.c: Remove.
89905
89906         * lib/regex.c (re_comp): Cast gettext return value to char *,
89907         Problem reported by Martin Neitzel via Mark D. Baushke.
89908
89909 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89910
89911         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89912         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89913         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89914         regex.c, sha1.c, version-etc.c, yesno.c:
89915         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89916         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89917         the includer's responsibility.
89918
89919         Sync from coreutils.
89920
89921         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89922         points to the start of a string, as the C Standard says the
89923         resulting behavior is undefined.
89924
89925         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89926         simple -> simple_backups, numbered_existing ->
89927         numbered_existing_backups, numbered -> numbered_backups
89928         to avoid shadowing problems.  All uses changed.
89929         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89930         * lib/backupfile.c (check_extension, numbered_backup):
89931         Rename locals to avoid shadowing 'basename'.
89932         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89933         once.
89934
89935         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89936         * lib/.cvsignore: Add getopt.h.
89937
89938 2004-10-04  Bruno Haible  <bruno@clisp.org>
89939
89940         * modules/README: New file.
89941         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89942         not a module.
89943
89944 2004-10-02  Jim Meyering  <jim@meyering.net>
89945
89946         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89947
89948 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89949
89950         * modules/strsep: New file.
89951
89952 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89953
89954         * m4/strsep.m4: New file.
89955
89956 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89957
89958         * lib/strsep.h: New file.
89959         * lib/strsep.c: New file.
89960
89961 2004-10-01  Simon Josefsson  <jas@extundo.com>
89962
89963         * lib/snprintf.c (snprintf): Handle size==0.
89964
89965 2004-10-01  Simon Josefsson  <jas@extundo.com>
89966             Bruno Haible  <bruno@clisp.org>
89967
89968         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89969         (snprintf): Declare 'args'.
89970
89971 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89972
89973         * lib/snprintf.c: Remove comments as to why each header is needed.
89974
89975 2004-10-01  Bruno Haible  <bruno@clisp.org>
89976
89977         * MODULES.html.sh: Add strsep.
89978
89979 2004-09-30  Simon Josefsson  <jas@extundo.com>
89980
89981         * modules/snprintf: New file.
89982
89983 2004-09-30  Simon Josefsson  <jas@extundo.com>
89984
89985         * m4/snprintf.m4: New file.
89986
89987 2004-09-30  Simon Josefsson  <jas@extundo.com>
89988
89989         * lib/snprintf.h, lib/snprintf.c: New files.
89990
89991 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89992
89993         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89994         (hol_entry_help): Never translate an empty string.
89995         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89996         * lib/argp.h (OPTION_NO_TRANS): New option.
89997
89998 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89999
90000         * modules/argp (Maintainer): Replace Simon Josefsson
90001         by Sergey Poznyakoff.
90002
90003 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90004
90005         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90006         changes merged back into glibc.
90007
90008 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90009
90010         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90011
90012 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90013
90014         * lib/xvasprintf.c: Include xalloc.h.
90015         (xvasprintf): Use xalloc_die, not xmalloc_die.
90016
90017 2004-09-29  Bruno Haible  <bruno@clisp.org>
90018
90019         * modules/alloca-opt: New file, derived from modules/alloca.
90020         * modules/allocsa: Depend on alloca-opt instead of alloca.
90021         * modules/setenv: Likewise.
90022         * modules/vasnprintf: Likewise.
90023         * MODULES.html.sh: Add alloca-opt.
90024
90025 2004-09-28  Simon Josefsson  <jas@extundo.com>
90026
90027         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90028         LGPL, and to replace license template from GPL to LGPL.
90029
90030 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90031
90032         * modules/dummy: Change license to LGPL.
90033
90034 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90035
90036         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90037
90038 2004-09-24  Simon Josefsson  <jas@extundo.com>
90039
90040         * modules/minmax (License): Change from GPL to LGPL.
90041
90042 2004-09-23  Simon Josefsson  <jas@extundo.com>
90043
90044         * gnulib-tool (--import): Typo.
90045
90046 2004-09-23  Simon Josefsson  <jas@extundo.com>
90047
90048         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90049
90050 2004-09-22  Bruno Haible  <bruno@clisp.org>
90051
90052         * modules/*: Add 'License' field.
90053         * gnulib-tool: Accept --extract-license option.
90054         (func_get_license): New function.
90055
90056 2004-09-21  Bruno Haible  <bruno@clisp.org>
90057
90058         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90059         Reported by Simon Josefsson.
90060
90061 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90062
90063         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90064         gl_AC_TYPE_LONG_LONG.
90065
90066 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90067
90068         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90069
90070 2004-09-18  Simon Josefsson  <jas@extundo.com>
90071         and  Paul Eggert  <eggert@cs.ucla.edu>
90072
90073         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90074         calls with autoreconf.  Define GL_LIB.
90075
90076 2004-09-14  Karl Berry  <karl@gnu.org>
90077
90078         * config/srclist.txt: unsync setenv.c, sigh.
90079
90080 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90081
90082         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90083         Problem reported by Bruno Haible in:
90084         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90085
90086 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90087
90088         * config/srclist.txt: Comment out argp-pvh.c.
90089
90090 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90091
90092         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90093         in case some system header has #define'd it.  Problem reported by
90094         Soeren D. Schulze in
90095         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90096
90097 2004-09-09  Karl Berry  <karl@gnu.org>
90098
90099         * regex.[ch]: delete from the root.  These were supposed to be
90100                 synced with emacs cvs, but this has not happened for about
90101                 a year, and anyway nothing else uses emacs regex.[ch].
90102                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90103                 lib/regex[.ch] is untouched.
90104
90105 2004-09-09  Bruno Haible  <bruno@clisp.org>
90106
90107         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90108
90109 2004-09-09  Bruno Haible  <bruno@clisp.org>
90110
90111         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90112         modifications.
90113         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90114
90115 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90116
90117         * modules/xvasprintf: New file.
90118         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90119
90120 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90121
90122         * lib/xvasprintf.h: New file.
90123         * lib/xvasprintf.c: New file.
90124         * lib/xasprintf.c: New file.
90125
90126 2004-09-08  Bruno Haible  <bruno@clisp.org>
90127
90128         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90129
90130 2004-09-08  Bruno Haible  <bruno@clisp.org>
90131
90132         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90133         length is > INT_MAX.
90134         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90135         more.
90136
90137 2004-09-08  Bruno Haible  <bruno@clisp.org>
90138
90139         * lib/stdint_.h: New file, taken from GNU clisp.
90140
90141 2004-09-08  Bruno Haible  <bruno@clisp.org>
90142             Oskar Liljeblad  <oskar@osk.mine.nu>
90143
90144         * modules/stdint: New file.
90145         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90146
90147 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90148
90149         Import from coreutils.
90150         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90151         strings on unbounded length.  alloca's performance benefits aren't
90152         that important here.
90153         (V_STRDUP): Remove.
90154         (parse_with_separator): New function, with most of the internals
90155         of the old parse_user_spec.  Allow user to omit both user and group,
90156         for compatibility with FreeBSD.
90157         Clone only the user name, not the entire spec.
90158         Do not set *uid, *gid unless entirely successful.
90159         Avoid memory leak in some failing cases.
90160         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90161         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90162         (parse_user_spec): Rewrite to use parse_with_separator.
90163
90164 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90165
90166         * modules/userspec: Don't depend on alloca.
90167
90168 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90169
90170         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90171
90172 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90173
90174         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90175         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90176         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90177
90178 2004-08-16  Simon Josefsson  <jas@extundo.com>
90179
90180         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90181         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90182         Add --dry-run for --import.
90183         Let user provided command line parameters override configure.ac
90184         settings.
90185
90186 2004-08-12  Simon Josefsson  <jas@extundo.com>
90187
90188         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90189         as discussed with Paul Eggert in threads rooted at
90190         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90191         and
90192         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90193         Before, the test was empty, and relied on ELIDE_CODE in source
90194         code.)
90195         (gl_PREREQ_GETOPT): New macro.
90196         (gl_GETOPT): Use them.
90197
90198 2004-08-12  Simon Josefsson  <jas@extundo.com>
90199
90200         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90201         * lib/getopt_.h: Renamed from getopt.h.
90202
90203 2004-08-12  Simon Josefsson  <jas@extundo.com>
90204
90205         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90206         Change default library name from libfoo to libgnu.
90207         Now, if you have a configure.ac that says:
90208                 gl_SOURCE_BASE(gl)
90209                 gl_M4_BASE(gl/m4)
90210                 gl_MODULES(error getopt etcetera)
90211                 gl_INIT
90212         you can import all you need by running:
90213                 ../gnulib/gnulib-tool --import
90214
90215         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90216         (Makefile.am): Rewrite, use logic from argz.
90217         (Include): Use <getopt.h> instead of "getopt.h".
90218
90219 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90220
90221         * modules/argp (Files): Add m4/unlocked-io.m4.
90222         (Depends-on): Add extensions.
90223
90224 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90225
90226         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90227         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90228         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90229         Check for program_invocation_name, program_invocation_short_name,
90230         flockfile, funlockfile, features.h, _getopt_long_only_r.
90231
90232 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90233
90234         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90235         its complicated substitute.
90236         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90237         and program_invocation_name.
90238         (__argp_basename) [!_LIBC]: Remove; the only use was
90239         replaced by its body.
90240         (__argp_short_program_name): Change condition from
90241         !defined __argp_short_program_name to
90242         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90243         to match argp-namefrob.h.
90244         (__argp_failure): Don't assume strerror_r returns char *.
90245         * lib/argp-parse.c (N_): Define unconditionally.
90246         (argp_default_options): Fill out initializers with 0 to avoid
90247         gcc warnings.
90248
90249 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90250
90251         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90252         getopt1.c.
90253
90254 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90255
90256         Merge from coreutils.
90257
90258         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90259
90260         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90261         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90262
90263 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90264
90265         Merge from coreutils.
90266
90267         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90268         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90269         for Reliant Unix 5.43.
90270
90271         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90272         (union fooround): Use uintmax_t, not long int.
90273         The rest is a merge from libc:
90274         [defined _LIBC]: Include <shlib-compat.h>.
90275         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90276
90277         * lib/settime.c (settime): Recode to avoid warning with
90278         Sun Forte C 6U2.
90279
90280         * lib/strverscmp.c: Convert to UTF-8.
90281
90282 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90283
90284         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90285         m4/uintmax_t.m4.
90286
90287 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90288
90289         * modules/xalloc-die: New file.
90290         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90291
90292         * modules/md5 (Files): Add m4/uint32_t.m4.
90293         * modules/sha1: Renamed from modules/sha.
90294         (Files):
90295         Rename lib/sha.h to lib/sha1.h.
90296         Rename lib/sha.c to lib/sha1.c.
90297         Rename m4/sha.m4 to m4/sha1.m4.
90298         (lib_SOURCES): Likewise.
90299         (configure.ac): Rename gl_SHA to gl_SHA1.
90300         (Include): sha.h -> sha1.h.
90301
90302 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90303
90304         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90305         * m4/sha1.m4: Renamed from sha.m4.
90306         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90307
90308 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90309
90310         * lib/obstack.h (obstack_empty_p):
90311         Don't assume that chunk->contents is suitably aligned.
90312         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90313         Likewise. Problem reported by Benno in
90314         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90315
90316         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90317         readable.  This could be improved further but it'd take some work.
90318
90319 2004-08-08  Simon Josefsson  <jas@extundo.com>
90320
90321         * modules/xgethostname (Depends-on): Remove exit and error (not
90322         used).
90323
90324         * modules/getpass-gnu: Add getpass.h.
90325         (Depends-on): Add stdbool.
90326         * modules/getpass: Add getpass.h.
90327
90328 2004-08-08  Simon Josefsson  <jas@extundo.com>
90329
90330         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90331         Check getpass declaration.
90332
90333 2004-08-08  Simon Josefsson  <jas@extundo.com>
90334
90335         * lib/xgethostname.c: Don't include error.h (not used).
90336
90337         * lib/getpass.h: Add.
90338         * lib/getpass.c: Include getpass.h first.
90339
90340 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90341
90342         * lib/xalloc-die.c: New file.
90343         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90344         All uses removed.
90345         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90346         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90347         xalloc-die.c.
90348         (_, N_, xalloc_die): Move to xalloc-die.c.
90349         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90350         so that we needn't mess with xalloc_msg_memory_exhausted.
90351
90352         * lib/sha1.h: Renamed from sha.h.
90353         (SHA1_H): Renamed from _SHA_H.
90354         (sha1_ctx): Renamed from sha_ctx.
90355         (sha1_init_ctx): Renamed from sha_init_ctx.
90356         (sha1_process_block): Renamed from sha_process_block.
90357         (sha1_process_bytes): Renamed from sha_process_bytes.
90358         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90359         (sha1_read_ctx): Renamed from sha_read_ctx.
90360         (sha1_stream): Renamed from sha_stream.
90361         (sha1_buffer): Renamed from sha_buffer.
90362         * lib/sha1.c: Likewise; renamed from sha.c.
90363         Do not include <sys/types.h>.
90364         Include <stddef.h> rather than <stdlib.h>.
90365
90366 2004-08-08  Bruno Haible  <bruno@clisp.org>
90367
90368         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90369         FILESYSTEM_PREFIX_LEN.
90370         * lib/progreloc.c: Likewise.
90371         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90372
90373 2004-08-06  Simon Josefsson  <jas@extundo.com>
90374
90375         * modules/progname (Depends-on): Don't depend on stdbool.
90376
90377 2004-08-06  Simon Josefsson  <jas@extundo.com>
90378
90379         * modules/getsubopt: New file.
90380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90381         getsubopt.
90382
90383 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90384
90385         More merge from coreutils.
90386
90387         * m4/utimens.m4, m4/utimecmp.m4: New files.
90388         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90389         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90390         prereq.m4, sha.m4: Import changes from coreutils.
90391
90392 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90393
90394         More merge from coreutils.
90395         * modules/raise, modules/readtokens0, modules/utimens:
90396         * modules/utimecmp, module/xnanosleep: New files.
90397         * modules/strftime: Add lib/strftime.h.
90398         Change include from <time.h> to "strftime.h".
90399         * modules/yesno: Add lib/yesno.h.
90400         * modules/backupfile: Remove lib/addext.c.
90401         * modules/euidaccess: Add stat-macros.h.
90402         * modules/canonicalize, modules/euidaccess,
90403         modules/filemode, modules/lchown, modules/makepath,
90404         modules/rmdir, modules/stat: Likewise.
90405
90406 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90407
90408         Merge from tar.
90409         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90410         SIZE_MAX is a valid preprocessor constant.
90411         (__argp_basename): Change from "#ifndef _LIBC"
90412         to "#ifndef __argp_short_program_name", so that
90413         we don't compile these functions for tar.
90414
90415         More merges from coreutils.
90416         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90417         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90418         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90419         * lib/addext.c: Remove; no longer needed.
90420         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90421         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90422         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90423         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90424         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90425         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90426         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90427         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90428         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90429         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90430         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90431         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90432         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90433         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90434         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90435         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90436         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90437         Import changes from coreutils.
90438
90439 2004-08-05  Simon Josefsson  <jas@extundo.com>
90440
90441         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90442
90443 2004-08-05  Simon Josefsson  <jas@extundo.com>
90444
90445         * m4/getsubopt.m4: New file.
90446
90447 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90448
90449         Merge from coreutils.
90450
90451         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90452         * m4/getcwd-path-max.m4: New files.
90453
90454         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90455         FILESYSTEM_PREFIX_LEN ->
90456         FILE_SYSTEM_PREFIX_LEN.
90457         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90458         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90459         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90460         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90461
90462         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90463         prerequisite modules now handle the DOS stuff.
90464         Don't check for unistd.h.
90465
90466 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90467
90468         Merge from coreutils.
90469
90470         * lib/.gdb-history: Remove; this doesn't belong here.
90471
90472         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90473         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90474         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90475         * lib/getcwd.c: New files.
90476
90477         * lib/dirname.h: Include <stdbool.h>.
90478         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90479         for consistency with POSIX terminology.  All uses changed.
90480         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90481         (strip_trailing_slashes): Use bool for booleans.
90482         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90483
90484         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90485         sometimes returns a positive errno value even when it succeeds.
90486         (print_errno_message) [!LIBC]: Fall back on strerror if
90487         __strerror_r fails.
90488
90489         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90490         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90491         (longest_relative_suffix): New function.
90492         (path_concat): Use it.  Assume first argument is not NULL.
90493         Port to DOS.  Omit redundant separators.
90494         Report an error instead of returning NULL.
90495         Use mempcpy instead of memcpy.
90496         (xpath_concat): Remove: not declared or used.
90497
90498         * lib/same.h: Include <stdbool.h>
90499         (same_name): Return bool, not int.
90500         * lib/same.c (same_name): Likewise.
90501         (errno): Don't declare; we assume C89 or better now.
90502
90503         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90504         if not already defined.
90505
90506         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90507         * lib/dup-safer.c (errno): Likewise.
90508
90509 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90510
90511         Merge from coreutils.
90512         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90513         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90514         * modules/path-concat: Don't depend on strdup.
90515
90516 2004-08-03  Simon Josefsson  <jas@extundo.com>
90517
90518         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90519         * lib/progname.h: Don't include stdbool.h.
90520
90521 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90522
90523         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90524         * MODULES.html.sh (func_all_modules): Remove fatal.
90525
90526 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90527
90528         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90529
90530 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90531
90532         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90533         working.
90534
90535 2004-08-02  Simon Josefsson  <jas@extundo.com>
90536
90537         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90538         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90539         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90540
90541 2004-08-01  Simon Josefsson  <jas@extundo.com>
90542
90543         * lib/xgetdomainname.c: Include stdlib.h, for free().
90544
90545 2004-07-19  Bruno Haible  <bruno@clisp.org>
90546
90547         * MODULES.html.sh (func_all_modules): Add dummy.
90548
90549 2004-07-16  Simon Josefsson  <jas@extundo.com>
90550
90551         * modules/dummy: New file.
90552
90553 2004-07-16  Simon Josefsson  <jas@extundo.com>
90554
90555         * lib/dummy.c: New file.
90556
90557 2004-07-16  Bruno Haible  <bruno@clisp.org>
90558
90559         * lib/backupfile.h: Add extern "C" for C++.
90560         * lib/closeout.h: Likewise.
90561         * lib/copy-file.h: Likewise.
90562         * lib/findprog.h: Likewise.
90563         * lib/full-write.h: Likewise.
90564         * lib/pathname.h: Likewise.
90565         * lib/progname.h: Likewise.
90566         * lib/stpcpy.h: Likewise.
90567         * lib/stpncpy.h: Likewise.
90568         * lib/strcase.h: Likewise.
90569         * lib/strstr.h: Likewise.
90570         * lib/xalloc.h: Likewise.
90571
90572         * lib/mbswidth.h: Add extern "C" for C++.
90573         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90574
90575 2004-07-13  Robert Millan  <robertmh@gnu.org>
90576
90577         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90578
90579 2004-07-09  Simon Josefsson  <jas@extundo.com>
90580
90581         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90582         failed without this.)
90583
90584 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90585
90586         * modules/chown (Files): Add lib/fchown-stub.c, since
90587         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90588
90589 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90590
90591         * lib/fchown-stub.c: New file.
90592
90593 2004-06-24  Jim Meyering  <jim@meyering.net>
90594
90595         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90596
90597 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90598
90599         * modules/argz: Omit "#include".
90600
90601         * MODULES.html.sh (func_all_modules): Add calloc, to match
90602         2004-06-01 addition of calloc module.
90603
90604 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90605
90606         * m4/argz.m4: New file, which is autoupdated from libtool.
90607
90608 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90609
90610         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90611         libtool.
90612
90613 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90614
90615         * config/srclist-update: Don't insist on "USA." before the
90616         close-comment, as libtool omits the period and puts the */ on a
90617         separate line.
90618         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90619         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90620
90621 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90622
90623         * modules/argz: New file.
90624         * MODULES.html.sh (func_all_modules): Add argz.
90625
90626 2004-06-12  Jim Meyering  <jim@meyering.net>
90627         and  Paul Eggert  <eggert@cs.ucla.edu>
90628
90629         * modules/hash (Files): Add lib/xalloc.h.
90630         * modules/pipe (Depends-on): Add wait-process.
90631         * modules/stat (Depends-on): Add xalloc.
90632         * modules/userspec (Files): Add lib/userspec.h.
90633         * modules/xstrto
90634
90635         Upgrade from gettext-0.13.
90636         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90637         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90638         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90639
90640 2004-06-10  Jim Meyering  <jim@meyering.net>
90641
90642         * lib/calloc.c: New file.
90643
90644 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90645
90646         * lib/getdate.y (yylex): Allow space between sign and number.
90647         Problem reported by Dan Jacobson.
90648
90649 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90650
90651         Merge from coreutils CVS.
90652
90653         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90654         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90655         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90656         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90657         xstrtol.m4: Fix copyright date and/or serial number.
90658
90659         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90660         See if we need an fchown replacement.
90661         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90662         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90663         and use the replacement function if we detect either defect.
90664
90665         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90666         gl_UTIMECMP.
90667
90668 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90669         and  Jim Meyering  <jim@meyering.net>
90670
90671         Merge from coreutils CVS.
90672
90673         * lib/stat-macros.h: New file, with contents from file-type.h
90674         and coreutils' system.h.
90675         * lib/file-type.c: Include "stat-macros.h".
90676         * lib/file-type.h (file_type): Move all macro definitions to new file,
90677         stat-macros.h.
90678
90679         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90680         Wrap old code with this conditional.
90681         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90682         function that does not dereference symlinks.
90683         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90684
90685         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90686         dependency problems.
90687         (xreadlink): Accept new arg SIZE, for efficiency.
90688         All decls and uses changed.
90689         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90690
90691         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90692         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90693
90694         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90695         sysexits.h.
90696
90697 2004-06-01  Jim Meyering  <jim@meyering.net>
90698
90699         * m4/calloc.m4: New file.
90700
90701 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90702
90703         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90704         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90705         Also, fix a typo in a diagnostic.
90706
90707 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90708
90709         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90710         or AC_FUNC_REALLOC.
90711
90712 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90713
90714         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90715         macros to be defined.
90716         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90717         the allocator returns NULL because the requested size is zero.
90718
90719 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90720
90721         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90722         var.  Add comment explaining why libc still defines it.  This
90723         merges the following patch from glibc:
90724         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90725
90726 2004-05-20  Andreas Schwab  <schwab@suse.de>
90727
90728         * m4/free.m4: Replace free if it not known to work, not the other
90729         way round.
90730
90731 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90732
90733         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90734         present in glibc since revision 1.1 of this file.
90735         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90736         obstack_alignment_mask, obstack_alloc, obstack_base,
90737         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90738         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90739         obstack_grow0, obstack_init, obstack_int_grow,
90740         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90741         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90742         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90743         nonexistent functions.
90744
90745 2004-05-18  Karl Berry  <karl@gnu.org>
90746
90747         * config/srclist.txt: break link for vasnprintf.c.
90748
90749 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90750
90751         Port obstack to the AS/400, where pointers are 16 bytes wide and
90752         you cannot cast an integer to a valid pointer.  This patch is
90753         currently waiting to be integrated into glibc; see
90754         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90755
90756         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90757         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90758         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90759         (struct obstack): temp member is now a union of a pointer and
90760         an integer, instead of an integer.  All integer uses changed.
90761         This does not affect the physical layout of struct obstack,
90762         except on hosts (like the AS/400) where the size or alignment of
90763         void * is greater than that of ptrdiff_t.
90764         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90765         __STDC__)]: Store temporary in pointer member of union, not
90766         integer member.
90767         * lib/obstack.c: Include <stddef.h>, for offsetof.
90768         (struct fooalign): Remove; it doesn't need a name.
90769         (union fooround): Change double to long double, and add void *.
90770         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90771         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90772         not a macro.  Hence the values are always int; so remove all
90773         casts-to-int in uses.
90774
90775 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90776
90777         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90778         we can get this patch merged into glibc.
90779
90780 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90781             Paul Eggert  <eggert@cs.ucla.edu>
90782
90783         * m4/argp: Depend on alloca.
90784
90785 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90786             Paul Eggert  <eggert@cs.ucla.edu>
90787
90788         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90789         freecoding.
90790
90791 2004-05-17  Bruno Haible  <bruno@clisp.org>
90792
90793         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90794         precision that consists of a '.' followed by an empty digit string.
90795         Patch by Tor Lillqvist <tml@iki.fi>.
90796
90797 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90798
90799         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90800         for backward compatibility with older code.  We need our own
90801         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90802         it under some other name, and our alloca.h will define it.
90803
90804 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90805             Derek Price  <derek@ximbiot.com>
90806
90807         * lib/alloca.c: Include <alloca.h>, to get our interface.
90808         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90809         include <alloca.h> first.  Use C89 prototype for alloca; this
90810         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90811         Use #elif for simplicity, since we can assume C89 now.
90812         Don't try to source the system alloca.h since it will not be found
90813         and to prevent recursively including its replacement.
90814         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90815         * lib/regex.c: Likewise.
90816
90817 2004-05-16  Derek Price  <derek@ximbiot.com>
90818             Paul Eggert  <eggert@cs.ucla.edu>
90819
90820         getline cleanup.  This changes the getndelim2 API: both order of
90821         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90822         no delimiter).
90823
90824         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90825         interface does that.
90826         (getline): Always use getdelim, so that we don't have two
90827         copies of this code.
90828         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90829         if available.
90830         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90831         (GETNDELIM2_MAXIMUM): New macro.
90832         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90833         instead of the old practice of delim2==0.  All callers changed.
90834         Return -1 on overflow, instead of returning junk.
90835         Do not set *linesize unless allocation succeeds.
90836         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90837         that we include sys/types.h.
90838         * lib/getnline.h: Likewise.
90839         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90840         (getndelim2): Reorder arguments.
90841         * lib/getnline.c (getnline, getndelim):
90842         Don't discard the NMAX argument.
90843         (getnline): Invoke getndelim, to avoid code duplication.
90844         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90845         of (size_t) -1 by callers of the getnline family.
90846
90847 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90848
90849         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90850         Check for gettimeofday.
90851         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90852         Check for settimeofday, stime.
90853
90854 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90855
90856         * lib/nanosleep.c (suspended): Change its type from int to
90857         sig_atomic_t volatile.
90858         (first_call): Make it private to rpl_nanosleep, and have it
90859         be zero initially as that's a bit faster.
90860         (my_usleep): Round up fractional times instead of truncating them,
90861         as this is the usual meaning for 'sleep'.
90862
90863         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90864         doesn't work.
90865         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90866         (ENOSYS): Define if not defined.
90867         (settime): Fall back on stime if it exists and settimeofday fails.
90868         But don't bother with fallbacks if a method fails with errno == EPERM.
90869
90870 2004-05-11  Jim Meyering  <jim@meyering.net>
90871
90872         Prior to this change, the save_cwd caller required read access to the
90873         current directory on most systems (ones with the fchdir function).
90874
90875         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90876         fails, try write-only, and finally, resort to using xgetcwd.
90877
90878 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90879
90880         * lib/obstack.c, obstack.h: Import changes from libc.
90881
90882 2004-04-28  Bruno Haible  <bruno@clisp.org>
90883
90884         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90885         also implicitly appends .exe to executables.
90886         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90887         accepts Windows pathnames.
90888         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90889         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90890         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90891         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90892         Reported by Derek Robert Price <derek@ximbiot.com>.
90893
90894 2004-04-21  Karl Berry  <karl@gnu.org>
90895
90896         * config/srclist.txt (localcharset.c): break sync.
90897
90898 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90899
90900         * m4/host-os.m4: Add a copyright notice.
90901
90902 2004-04-20  Jim Meyering  <jim@meyering.net>
90903
90904         Change UTILS_ to gl_ in AC_DEFINE'd names.
90905         Change utils_- and jm_-prefixed variables, too.
90906         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90907         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90908         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90909
90910         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90911         Don't emit trailing blanks.
90912         Also rename jm_-prefixed variables to have gl_ prefix.
90913
90914         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90915         Also rename jm_-prefixed variables to have gl_ prefix.
90916
90917         * m4/jm-macros.m4: Reflect the renamings.
90918         * m4/prereq.m4: Likewise.
90919
90920 2004-04-20  Jim Meyering  <jim@meyering.net>
90921
90922         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90923         memory.
90924
90925 2004-04-20  Jim Meyering  <jim@meyering.net>
90926             Bruno Haible  <bruno@clisp.org>
90927
90928         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90929         memory when realloc fails.
90930
90931 2004-04-19  Jim Meyering  <jim@meyering.net>
90932
90933         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90934         now that readutmp.c may call `free (0)'.
90935
90936 2004-04-19  Bruno Haible  <bruno@clisp.org>
90937
90938         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90939         * m4/inttypes_h.m4: Likewise.
90940         * m4/stdint_h.m4: Likewise.
90941         * m4/intmax_t.m4: Likewise.
90942         * m4/uintmax_t.m4: Likewise.
90943
90944 2004-04-18  Jim Meyering  <jim@meyering.net>
90945
90946         * m4/prereq.m4: Don't forbid jm_ prefix.
90947
90948         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90949         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90950         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90951         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90952         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90953         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90954         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90955         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90956         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90957         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90958         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90959         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90960         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90961         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90962         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90963         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90964         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90965         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90966         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90967
90968 2004-04-18  Jim Meyering  <jim@meyering.net>
90969
90970         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90971         failure, don't leak memory and do call END_UTMP_ENT.
90972
90973 2004-04-16  Jim Meyering  <jim@meyering.net>
90974
90975         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90976         coreutils' stat program.
90977         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90978
90979 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90980
90981         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90982         C89.
90983         (CHAR_BIT): Remove, since we assume C89.
90984         Include <stdint.h> if available, as per current Autoconf CVS advice.
90985
90986 2004-03-31  Jim Meyering  <jim@meyering.net>
90987
90988         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90989         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90990         * m4/xalloc.m4: Likewise.
90991
90992 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90993
90994         Merge from coreutils.
90995
90996         * m4/inttostr.m4: New file.
90997         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90998         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90999         Require gl_CLOCK_TIME.
91000         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91001
91002 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91003
91004         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91005         not bool, to be more consistent with Unix conventions.
91006         Suggested by Bruno Haible.
91007
91008         Merge from coreutils.
91009
91010         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91011         * lib/umaxtostr.c: New files.
91012
91013         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91014         the usual <time.h> dance.
91015         (get_date): Change signature to support fractional time stamps.
91016         All callers changed.
91017         * lib/getdate.y: Include "getdate.h" first, as we can now
91018         assume C89 and don't need to worry about 'const'.
91019         Similarly, include "unlocked-io.h" near start, not in middle.
91020         Include <limits.h>.
91021         (textint.value): Use long int rather than int.
91022         (textint.digits): Use size_t rather than int.
91023         (BILLION, LOG10_BILLION): New constants.
91024         (parser_control): New member rel_ns.  Members day_ordinal,
91025         time_zone, month, day, hour, minutes, rel_year, rel_month,
91026         rel_day, rel_hour, rel_minutes, rel_seconds
91027         are now long int, not int.  Member seconds is now struct timespec,
91028         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91029         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91030         not int.
91031         (%union.intval): Now long int, not int.
91032         New member timespec.
91033         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91034         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91035         (spec): Now is a timespec or an item list.
91036         (timespec, items): New nonterminals.
91037         (time, rel, relunit, number, get_date):
91038         Add support for fractional seconds.
91039         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91040         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91041         (to_hour): First arg is now long int, not int.
91042         (to_year): Returns long int, not int.
91043         Don't treat year -70 like 70.
91044         (tm_diff): Returns long int, not int.
91045         (lookup_word): Use bool instead of int when appropriate.
91046         (yylex): Use size_t for count, not int.
91047         Detect overflow when parsing large integer constants.
91048         Add support for fractions.
91049         (get_date): Make pointers 'const' if possible.
91050         Use more-portable code to detect integer overflow.
91051         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91052         Don't use ctime; it's not reliable if the year has >4 digits.
91053
91054         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91055         This is for compatibility with BSD.
91056
91057         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91058         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91059         From coreutils' system.h.
91060
91061         * lib/userspec.c: Don't include "posixver.h".
91062         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91063         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91064         compatible extension.  Simplify code by removing a boolean int
91065         that was always nonzero if a string was nonnull.
91066
91067 2004-03-30  Jim Meyering  <jim@meyering.net>
91068
91069         Merge from coreutils.
91070
91071         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91072         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91073         on some systems one must include <grp.h> before it.
91074         Reported by Christian Krackowizer.
91075
91076 2004-03-30  Jim Meyering  <jim@meyering.net>
91077
91078         Merge from coreutils.
91079
91080         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91081
91082         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91083         an empty input stream.
91084
91085         * lib/readtokens.c: Include <stdbool.h>.
91086         (readtoken): Use `size_t' rather than int/long.
91087         All callers adjusted.
91088         Use `bool' rather than `int' where appropriate.
91089         Use memset rather than an explicit loop.
91090         Use x2nrealloc rather than xrealloc.
91091         Allow the use of `\0' as a delimiter.
91092         (readtokens): Likewise.
91093         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91094
91095 2004-03-30  Jim Meyering  <jim@meyering.net>
91096
91097         * m4/realloc.m4: Remove file, since now it does no more than
91098         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91099         the `configure.ac' section of module/realloc.
91100         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91101
91102 2004-03-30  Bruno Haible  <bruno@clisp.org>
91103
91104         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91105         nonnull.
91106
91107 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91108
91109         Merge changes to getloadavg.c from coreutils and Emacs.
91110
91111         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91112         Define to an expression, not to the empty string.
91113         Include cloexec.h and xalloc.h.
91114         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91115         Use set_cloexec_flag rather than rolling our own.
91116         * lib/cloexec.c, lib/cloexec.h: New files.
91117
91118 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91119
91120         * m4/cloexec.m4: New file.
91121
91122 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91123
91124         * lib/getopt.h: Sync with libc CVS.
91125
91126 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91127             Bruno Haible  <bruno@clisp.org>
91128
91129         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91130         mbswidth.
91131
91132 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91133             Bruno Haible  <bruno@clisp.org>
91134
91135         * lib/mbswidth.h: Include <wchar.h> only if
91136         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91137         <wchar.h>.
91138         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91139
91140 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91141
91142         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91143         Sync with libc CVS.
91144         * lib/getopt_int.h: New file, also synced from libc.
91145
91146 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91147
91148         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91149         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91150         Bring back getopt.c, getopt.h, getopt1.c.
91151
91152 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91153
91154         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91155         All uses changed.  Check for sa_sigaction member; this fixes
91156         a bug first reported by Jason Andrade in
91157         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91158
91159 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91160
91161         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91162         '#if' expressions.  Unlike the code it replaces, it does not
91163         depend on (defined _SC_PAGESIZE).  However, it does depend on
91164         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91165         first reported by Jason Andrade in
91166         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91167
91168 2004-02-25  Simon Josefsson  <jas@extundo.com>
91169
91170         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91171
91172 2004-02-25  Simon Josefsson  <jas@extundo.com>
91173
91174         * lib/strdup.h: New file.
91175         * lib/strdup.c: Include it.
91176         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91177         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91178
91179 2004-02-23  Karl Berry  <karl@gnu.org>
91180
91181         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91182         (from fencepost.gnu.org:/gd/gnuorg).
91183
91184 2004-02-23  Karl Berry  <karl@gnu.org>
91185
91186         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91187         * config/srclist.txt: add maintain/standards documents.
91188
91189 2004-02-18  Bruno Haible  <bruno@clisp.org>
91190
91191         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91192         Reported by Derek Robert Price <derek@ximbiot.com>.
91193
91194 2004-02-16  Karl Berry  <karl@gnu.org>
91195
91196         * config/mkinstalldirs, install-sh: update from automake.
91197
91198 2004-02-06  Karl Berry  <karl@gnu.org>
91199
91200         * m4/po.m4: update from gettext 0.14.1.
91201
91202 2004-02-06  Karl Berry  <karl@gnu.org>
91203
91204         * lib/config.charset: update from gettext 0.14.1.
91205
91206 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91207
91208         Add comments and code, prompted by suggestions from Bruno Haible
91209         for sh-quote.
91210         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91211         describing the enum quoting_style values.
91212         * lib/quotearg.c (quotearg_alloc): New function.
91213         (quotearg_buffer_restyled): Treat lone { and } as special.
91214         Treat = as special.  Work around bug with older shells
91215         that "see" a '\' that is really the 2nd byte of a multibyte char.
91216         Quote empty string with shell_quoting_style.
91217
91218 2004-02-03  Bruno Haible  <bruno@clisp.org>
91219
91220         * m4/pipe.m4: New file, from GNU gettext.
91221
91222 2004-02-03  Bruno Haible  <bruno@clisp.org>
91223
91224         * lib/pipe.h: New file, from GNU gettext.
91225         * lib/pipe.c: New file, from GNU gettext.
91226
91227 2004-01-27  Bruno Haible  <bruno@clisp.org>
91228
91229         * m4/execute.m4: New file, from GNU gettext.
91230
91231 2004-01-27  Bruno Haible  <bruno@clisp.org>
91232
91233         * lib/execute.h: New file, from GNU gettext.
91234         * lib/execute.c: New file, from GNU gettext.
91235         * lib/w32spawn.h: New file, from GNU gettext.
91236
91237 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91238
91239         Merge from diffutils.
91240
91241         * lib/file-type.c (file_type): Add typed memory objects.
91242         * lib/file-type.h (S_TYPEISTMO): New macro.
91243
91244         * lib/c-stack.h (c_stack_action): Remove argv argument.
91245         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91246         (die): Don't calculate message unless segv_action returns.
91247         (get_stack_location, min_address_from_argv, max_address_from_argv,
91248         volatile stack_base, volatile_stack_size): Remove.
91249         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91250         that every segmentation violation is a stack overflow.  (Ouch!)
91251         See Debian bug 136249 (still outstanding) for more info about why
91252         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91253
91254 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91255
91256         Exit-status fix from coreutils.
91257
91258         Use exit_failure consistently in place of EXIT_FAILURE,
91259         so that program exit statuses are consistent on failure.
91260
91261         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91262         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91263         * lib/argmatch.h: Comment fix to match the above.
91264         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91265         Now a macro referring to exit_failure, instead of a separate
91266         variable.  Include "exitfail.h" to get it.
91267         * lib/xstrtol.h: Include "exitfail.h".
91268         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91269
91270         * lib/long-options.c (parse_long_options): Use prototype
91271         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91272         for clarity.
91273
91274 2004-01-21  Jim Meyering  <jim@meyering.net>
91275
91276         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91277         so as not to conflict with a different-sized __mktime_internal
91278         function in GNU libc.
91279         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91280         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91281
91282 2004-01-20  Karl Berry  <karl@gnu.org>
91283
91284         * config/config.guess: update from config.
91285
91286         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91287
91288 2004-01-20  Bruno Haible  <bruno@clisp.org>
91289
91290         Safer stack allocation.
91291         * lib/setenv.c: Include allocsa.h.
91292         (alloca): Remove fallback definition.
91293         (freea): Remove macro.
91294         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91295         instead of freea.
91296
91297 2004-01-20  Bruno Haible  <bruno@clisp.org>
91298
91299         * m4/eealloc.m4: New file, from GNU gettext.
91300
91301 2004-01-20  Bruno Haible  <bruno@clisp.org>
91302
91303         * m4/allocsa.m4: New file, from GNU gettext.
91304
91305 2004-01-20  Bruno Haible  <bruno@clisp.org>
91306
91307         * lib/xallocsa.h: New file, from GNU gettext.
91308         * lib/xallocsa.c: New file, from GNU gettext.
91309
91310 2004-01-20  Bruno Haible  <bruno@clisp.org>
91311
91312         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91313
91314 2004-01-20  Bruno Haible  <bruno@clisp.org>
91315
91316         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91317         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91318         specially.
91319
91320 2004-01-20  Bruno Haible  <bruno@clisp.org>
91321
91322         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91323         patch.
91324
91325 2004-01-20  Bruno Haible  <bruno@clisp.org>
91326
91327         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91328
91329 2004-01-20  Bruno Haible  <bruno@clisp.org>
91330
91331         * lib/eealloc.h: New file.
91332
91333 2004-01-20  Bruno Haible  <bruno@clisp.org>
91334
91335         * lib/binary-io.h: Avoid warnings on Cygwin.
91336
91337 2004-01-20  Bruno Haible  <bruno@clisp.org>
91338
91339         * lib/allocsa.h: New file, from GNU gettext.
91340         * lib/allocsa.c: New file, from GNU gettext.
91341
91342 2004-01-18  Karl Berry  <karl@gnu.org>
91343
91344         * doc/gpl.texi, doc/lgpl.texi: new files.
91345
91346 2004-01-18  Karl Berry  <karl@gnu.org>
91347
91348         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91349         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91350
91351 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91352
91353         Merge from coreutils.
91354
91355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91356         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91357         (gl_DEFAULT_POSIX2_VERSION): Move
91358         the documentation from 'configure' into 'config.hin',
91359         so that 'configure --help' isn't burdened by it and
91360         we don't have to worry about its formatting there.
91361         Reword the documentation so that it's more succinct
91362         and can be run together into a single paragraph.
91363         * m4/same.m4 (gl_SAME): Check for pathconf.
91364
91365 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91366
91367         Merge from coreutils.
91368
91369         * lib/posixver.c: Include posixver.h.
91370
91371         * lib/same.c: Include <stdbool.h>, <limits.h>.
91372         (_POSIX_NAME_MAX): Define if not defined.
91373         (MIN): New macro.
91374         (same_name): If file names are silently truncated, report
91375         that the file names are the same if they are the same after
91376         the silent truncation.
91377
91378         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91379         conversion function.
91380         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91381         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91382         longer needed.
91383
91384 2004-01-15  Jim Meyering  <jim@meyering.net>
91385
91386         Merge from coreutils.
91387
91388         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91389         if no library is required.
91390         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91391         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91392         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91393         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91394         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91395         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91396         value, $ac_cv_search_crypt, if it's "none required".
91397         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91398         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91399         not gl_FUNC_GETLOADAVG.
91400         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91401         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91402
91403 2004-01-15  Jim Meyering  <jim@meyering.net>
91404
91405         Merge from coreutils.
91406
91407         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91408         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91409         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91410
91411         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91412         optional configure-time default.
91413
91414         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91415
91416         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91417
91418 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91419
91420         Merge from coreutils.
91421
91422         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91423         value, $ac_cv_search_nanosleep, if it's "none required".
91424
91425 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91426
91427         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91428         with like-named macro in fnmatch.c.
91429         (EXT): Use an internal constant instead.
91430
91431         Merge fnmatch patches from glibc.
91432         * lib/fnmatch.c (mbsinit): Remove define.
91433         Add libc_hidden_ver (__fnmatch, fnmatch).
91434         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91435         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91436
91437 2004-01-14  Karl Berry  <karl@gnu.org>
91438
91439         * config/install-sh: update from automake.
91440
91441 2004-01-13  Karl Berry  <karl@gnu.org>
91442
91443         * config/install-sh: update from automake.
91444
91445 2004-01-09  Karl Berry  <karl@gnu.org>
91446
91447         * config/install-sh: update from automake.
91448
91449 2004-01-05  Karl Berry  <karl@gnu.org>
91450
91451         * config/config.{sub,guess}: update from config.
91452
91453 2003-12-31  Karl Berry  <karl@gnu.org>
91454
91455         * config/depcomp: update from automake.
91456
91457 2003-12-14  Karl Berry  <karl@gnu.org>
91458
91459         * lib/config.charset: update from gettext-runtime.
91460
91461 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91462
91463         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91464         Bug reported by Alfred M. Szmidt.
91465
91466 2003-12-03  Bruno Haible  <bruno@clisp.org>
91467
91468         * m4/gettext.m4: Upgrade from gettext-0.13.
91469         * m4/po.m4: Upgrade from gettext-0.13.
91470         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91471         * m4/intmax.m4: New file, from gettext-0.13.
91472         * m4/printf-posix.m4: New file, from gettext-0.13.
91473
91474 2003-11-29  Karl Berry  <karl@gnu.org>
91475
91476         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91477
91478 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91479             Bruno Haible  <bruno@clisp.org>
91480
91481         * lib/printf-parse.h: Don't include sys/types.h.
91482         (ARG_NONE): New macro.
91483         (char_directive): Change type of *arg_index fields to size_t.
91484         * lib/printf-parse.c: Don't include sys/types.h.
91485         (SSIZE_MAX): Remove macro.
91486         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91487         Remove unnecessary overflow check.
91488         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91489         fields.
91490
91491 2003-11-25  Bruno Haible  <bruno@clisp.org>
91492
91493         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91494
91495 2003-11-25  Bruno Haible  <bruno@clisp.org>
91496
91497         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91498         gt_TYPE_SSIZE_T.
91499
91500 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91501
91502         * modules/alloca: Remove dependency on xalloc.
91503
91504 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91505
91506         * lib/alloca.c: Remove dependency on xalloc module.
91507         (xalloc_die): Remove.
91508         (memory_full) [!defined emacs]: New macro.
91509         [!defined emacs]: Don't include xalloc.h.
91510         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91511         address arithmetic overflows.  Change datatypes a bit to avoid
91512         unnecessary casts.
91513
91514 2003-11-22  Jim Meyering  <jim@meyering.net>
91515
91516         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91517         s/size/size_t/.
91518
91519 2003-11-21  Karl Berry  <karl@gnu.org>
91520
91521         * config/config.{sub,guess}: update from config.
91522
91523 2003-11-18  Karl Berry  <karl@gnu.org>
91524
91525         * config/config.{sub,guess}: update from config.
91526
91527         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91528
91529 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91530
91531         * README: Mention that S+T cannot overflow if S is the size of
91532         an existing object and T is sufficiently small.
91533
91534 2003-11-17  Jim Meyering  <jim@meyering.net>
91535
91536         On systems without utime and without a utimes function capable of
91537         dealing with a NULL struct utimbuf* argument, this utime replacement
91538         could -- in unusual circumstances -- leak a file descriptor.
91539         * lib/utime.c: Include <unistd.h> and <errno.h>.
91540         (utime_null): Be sure to close `fd' and to preserve errno.
91541         Reported by Geoff Collyer via Arnold Robbins.
91542
91543 2003-11-17  Bruno Haible  <bruno@clisp.org>
91544
91545         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91546         (Depends-on): Add xsize.
91547
91548 2003-11-17  Bruno Haible  <bruno@clisp.org>
91549
91550         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91551
91552 2003-11-17  Bruno Haible  <bruno@clisp.org>
91553
91554         * lib/vasnprintf.c (alloca): Remove fallback definition.
91555         (freea): Remove definition.
91556         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91557         Reported by Paul Eggert.
91558
91559 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91560             Bruno Haible  <bruno@clisp.org>
91561
91562         Protect against address arithmetic overflow.
91563         * lib/printf-args.h: Include stddef.h.
91564         (arguments): Change type of field 'count' to size_t.
91565         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91566         'unsigned int' where appropriate.
91567         * lib/printf-parse.h: Include sys/types.h.
91568         (char_directive): Change type of *arg_index fields to ssize_t.
91569         (char_directives): Change type of fields 'count', max_*_length to
91570         size_t.
91571         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91572         (SSIZE_MAX): Define fallback value.
91573         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91574         instead of 'int' where appropriate. Check a_allocated, d_allocated
91575         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91576         * lib/vasnprintf.c: Include xsize.h.
91577         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91578         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91579         overflow. Avoid wraparound when converting a width or precision from
91580         decimal to binary.
91581
91582 2003-11-16  Bruno Haible  <bruno@clisp.org>
91583
91584         Update from GNU gettext.
91585         * lib/printf-parse.c: Generalize to it can be compiled for wide
91586         strings.
91587         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91588         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91589         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91590         SNPRINTF): New macros.
91591         Don't include <alloca.h> if the file is used inside libintl.
91592         (local_wcslen): New function, for Solaris 2.5.1.
91593         (VASNPRINTF): Use it instead of wcslen.
91594
91595 2003-11-16  Bruno Haible  <bruno@clisp.org>
91596
91597         * lib/xsize.h (xmax): New function.
91598         (xsum, xsum3, xsum4): Declare as "pure" functions.
91599
91600 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91601
91602         * modules/xalloc (Files): Undo latest change, since xalloc.h
91603         no longer needs SIZE_MAX or PTRDIFF_MAX.
91604
91605 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91606
91607         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91608         gl_PTRDIFF_MAX.
91609
91610 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91611
91612         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91613         "return", to pacify some unknown compiler.  Problem reported
91614         by Joerg Schilling.
91615
91616 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91617
91618         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91619         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91620         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91621         heuristic is just as accurate as far as we know, and it removes a
91622         dependency on size_max.m4 and ptrdiff_max.m4.
91623
91624 2003-11-11  Bruno Haible  <bruno@clisp.org>
91625
91626         * modules/xsize (Files): Add m4/size_max.m4.
91627         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91628
91629 2003-11-11  Bruno Haible  <bruno@clisp.org>
91630
91631         * m4/size_max.m4: New file.
91632         * m4/ptrdiff_max.m4: New file.
91633         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91634         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91635         (gl_XALLOC): Invoke it.
91636
91637 2003-11-11  Bruno Haible  <bruno@clisp.org>
91638
91639         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91640         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91641         defined.
91642
91643 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91644
91645         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91646         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91647         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91648         From Bruno Haible.
91649         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91650         not (size_t) -1, since it's defined here.
91651
91652 2003-11-09  Karl Berry  <karl@gnu.org>
91653
91654         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91655
91656 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91657
91658         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91659         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91660         Reject sizes of exactly SIZE_MAX bytes.
91661         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91662         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91663
91664 2003-11-05  Bruno Haible  <bruno@clisp.org>
91665
91666         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91667         SIZE_MAX defined in <limits.h> on Solaris.
91668
91669 2003-11-04  Jim Meyering  <jim@meyering.net>
91670
91671         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91672         variable names, rather than @VAR@.
91673         * modules/poll: Likewise.
91674
91675 2003-11-04  Bruno Haible  <bruno@clisp.org>
91676
91677         * modules/xsize: New file.
91678         * modules/linebreak: Depend on xsize.
91679         * MODULES.html.sh (func_all_modules): Add xsize.
91680
91681 2003-11-04  Bruno Haible  <bruno@clisp.org>
91682
91683         * m4/xsize.m4: New file.
91684
91685 2003-11-04  Bruno Haible  <bruno@clisp.org>
91686
91687         * lib/xsize.h: New file.
91688         * lib/linebreak.c: Include xsize.h.
91689         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91690         argument for overflow.
91691         Suggested by Paul Eggert.
91692
91693 2003-11-03  Karl Berry  <karl@gnu.org>
91694
91695         * config/config.{guess,sub}: update from config.
91696
91697 2003-11-03  Jim Meyering  <jim@meyering.net>
91698
91699         * modules/userspec (lib_SOURCES): Add userspec.h.
91700         (Include): Add "userspec.h".
91701         Improve description.
91702
91703 2003-11-03  Jim Meyering  <jim@meyering.net>
91704
91705         * lib/userspec.c: Include "userspec.h".
91706         * lib/userspec.h: New file.
91707
91708 2003-11-03  Bruno Haible  <bruno@clisp.org>
91709
91710         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91711
91712 2003-11-03  Bruno Haible  <bruno@clisp.org>
91713
91714         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91715         available, to avoid (extremely rare) race condition.
91716         Suggested by Paul Eggert.
91717
91718 2003-11-02  Karl Berry  <karl@gnu.org>
91719
91720         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91721
91722 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91723
91724         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91725         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91726         (read_filesystem_list): Set and use me_type_malloced.
91727         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91728         whatever the type happens to be), for brevity and consistency.
91729         Check for size calculation overflow on Alphas running OSF/1.
91730
91731 2003-10-31  Jim Meyering  <jim@meyering.net>
91732
91733         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91734
91735         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91736
91737 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91738             Bruno Haible  <bruno@clisp.org>
91739
91740         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91741         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91742
91743 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91744
91745         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91746         netbsd*-gnu*.  Suggested by Robert Millan.
91747
91748 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91749
91750         * modules/group-member: Depend on stdbool.
91751
91752 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91753
91754         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91755
91756 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91757
91758         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91759         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91760         after the 'gnu' in these cases.  This fixes some bugs in the
91761         previous change, and is based on suggestions by Robert Millan.
91762
91763 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91764
91765         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91766         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91767         no longer needed.
91768         * lib/quotearg.c (quotearg_n_options): Use it.
91769         * lib/group-member.c: Include <stdbool.h>.
91770         (free_group_info): Arg is now const *; don't free arg.
91771         (get_group_info): Now returns bool and accepts struct group_info *,
91772         rather than returning a malloc'ed struct group_info *.
91773         All uses changed.  Check for overflow in internal size calculation.
91774
91775         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91776         rather than xmalloc/xrealloc.
91777         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91778         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91779         conformance bug: the old code used a pointer after freeing the
91780         storage that it addressed.
91781         * lib/hash.c (hash_initialize): Simplify the code by using
91782         xalloc_oversized rather than doing it by hand.
91783         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91784         the buffer preserved.  Use free and xmalloc instead.
91785         * lib/quotearg.c (quotearg_n_options): Likewise.
91786         Use a simpler test for size overflow.  Don't use xalloc_oversized
91787         because unsigned int might be wider than size_t (!); this suggests
91788         that we should switch from unsigned int to size_t for slot numbers.
91789
91790 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91791
91792         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91793         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91794         NetBSD kernels.  Requested by Richard Stallman.
91795
91796 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91797
91798         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91799         to allocate the returned structure.  Do not allocate a subarray,
91800         as x2nrealloc will do that.
91801         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91802         instead of xnrealloc.
91803         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91804
91805 2003-10-27  Bruno Haible  <bruno@clisp.org>
91806
91807         * lib/stdbool_.h: Better support for BeOS.
91808
91809 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91810
91811         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91812         now uses inline.
91813
91814 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91815
91816         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91817         callers that want to do their own size-overflow checking.  Include
91818         <stdbool.h>, since xalloc_oversized returns bool.
91819         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91820         to use xalloc_oversized.
91821
91822         Add two functions x2realloc, x2nrealloc, for programs that grow
91823         arrays dynamically by doubling their sizes.
91824         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91825         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91826         New functions.
91827
91828         Port to C99 semantics for 'inline' of external functions.
91829         Bug reported by Bruno Haible.
91830         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91831         with the old contents of xnmalloc.
91832         (xnmalloc, xmalloc): Use it.
91833         (xnrealloc_inline): New static inline function,
91834         with the old contents of xnrealloc.
91835         (xnrealloc, xrealloc): Use it.
91836
91837         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91838         that.
91839
91840 2003-10-26  Karl Berry  <karl@gnu.org>
91841
91842         * config/srclist.txt (COPYING.DOC): no longer available from
91843         /gd/gnuorg; don't know where the ultimate source is.
91844
91845 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91846
91847         Fix several address-calculation bugs in the hash modules,
91848         plus some minor code cleanup.
91849
91850         * lib/hash.h: Include <stdbool.h>, for bool.
91851         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91852         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91853         hash_get_n_entries, hash_get_max_bucket_length,
91854         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91855         hash_rehash): Use size_t rather than unsigned.
91856         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91857         hash_get_n_buckets_used, hash_get_n_entries,
91858         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91859         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91860         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91861         Likewise.
91862         (SIZE_MAX): Define if not defined.
91863         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91864         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91865         hash_print):
91866         Use const * when possible.
91867         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91868         (check_tuning): Fix bug: if tuning parameters were very close to
91869         0 or 1, rounding errors could have caused subscript violations.
91870         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91871         (hash_initialize): Add 'fail:' label
91872         to free table and return NULL, and use it to simplify code.
91873         Use calloc rather than clearing the storage ourself.
91874         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91875         buffer size calculations.
91876         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91877         Include <stddef.h>, for size_t.
91878         * lib/hash-pjw.c (hash_pjw): Likewise.
91879         Switch to method described by Bruno Haible.
91880         Include <limits.h>, for CHAR_BIT.
91881         (SIZE_BITS): New macro.
91882
91883 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91884
91885         * m4/getline.m4 (AM_FUNC_GETLINE):
91886         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91887         hosts.  Problem reported by Derek Robert Price in
91888         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91889         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91890         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91891
91892 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91893
91894         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91895         ceiling the allocation at NMAX bytes rather than silently
91896         discarding input bytes before NMAX is reached.  This makes
91897         a difference only if NMAX exceeds SIZE_MAX / 2.
91898
91899         * lib/obstack.c: Merge from glibc.
91900         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91901         Add libc_hidden_def (_obstack_newchunk).
91902         (_obstack_free) [! defined _LIBC]: Remove.
91903         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91904         a clone of the function body.
91905         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91906         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91907
91908         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91909         glibc.
91910         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91911         arg to memcpy.
91912
91913         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91914         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91915         Don't use lvalue casts, as GCC plans to remove support for them
91916         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91917         was also present in the non-GCC version, indicating that this
91918         code had always been buggy and had never been widely used.
91919         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91920         Use the fast variant of each macro, rather than copying the
91921         definiens of the fast variant; that way, we'll be more likely to
91922         catch future bugs in the fast variants.
91923
91924 2003-10-20  Bruno Haible  <bruno@clisp.org>
91925
91926         * modules/wait-process: New file.
91927         * MODULES.html.sh (func_all_modules): Add wait-process.
91928
91929 2003-10-20  Bruno Haible  <bruno@clisp.org>
91930
91931         * m4/wait-process.m4: New file.
91932
91933 2003-10-20  Bruno Haible  <bruno@clisp.org>
91934
91935         * lib/wait-process.h: New file, from GNU gettext.
91936         * lib/wait-process.c: New file, from GNU gettext.
91937
91938 2003-10-19  Jim Meyering  <jim@meyering.net>
91939
91940         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91941         HPUX 10.20.
91942
91943 2003-10-18  Karl Berry  <karl@gnu.org>
91944
91945         * config/config.guess: update from config.
91946
91947 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91948
91949         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91950         (getgroups): First arg is int, not size_t.
91951         Don't let 'free' mangle errno.
91952
91953 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91954
91955         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91956
91957 2003-10-16  Karl Berry  <karl@gnu.org>
91958
91959         * config/config.{guess,sub}: update from config.
91960
91961 2003-10-16  Jim Meyering  <jim@meyering.net>
91962
91963         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91964         memcpy.
91965
91966 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91967
91968         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91969         (SIZE_MAX): Remove.
91970         (new_exclude, add_exclude_file): Initial size no longer needs to
91971         be a power of 2.
91972         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91973         our own address arithmetic overflow checking.
91974
91975         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91976         (fnmatch): Do not alloca more than 2000 wide characters;
91977         instead, use malloc for large buffers.
91978         Check for address arithmetic overflow, and return -1
91979         with errno set to ENOMEM in that case.
91980         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91981         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91982         instead, return -1.  Check for address arithmetic overflow.
91983
91984 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91985
91986         Handle invalid suffixes and overflow independently, so that
91987         callers can treat them independently as needed.  Fix some bugs in
91988         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91989         suffix for a human-readable blocksize.  The major caller-visible
91990         change is the addition of a new
91991         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91992         that both overflow and suffix chars were found.
91993
91994         * lib/human.c (humblock): Don't check separately for invalid suffix
91995         char; that is xstrtoumax's job (now that its bug is fixed).
91996         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91997         INTMAX_MAX]: New macros.
91998         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91999         TYPE_MAXIMUM): New macros.
92000         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92001         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92002         if overflow occurs, as it's what __strtol does and it's more useful
92003         in practice.
92004         (__xstrtol): If __strtol reports some error other than ERANGE,
92005         reflect it to the caller as LONGINT_INVALID.  If it reports
92006         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92007         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92008         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92009         value.
92010         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92011         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92012         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92013         [defined UINTMAX_MAX]: New macros.
92014
92015 2003-10-14  Bruno Haible  <bruno@clisp.org>
92016
92017         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92018
92019 2003-10-14  Bruno Haible  <bruno@clisp.org>
92020
92021         * m4/sig_atomic_t: New file, from GNU gettext.
92022         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92023
92024 2003-10-14  Bruno Haible  <bruno@clisp.org>
92025
92026         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92027         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92028         Also use volatile where needed.
92029
92030 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92031
92032         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92033         Change maintainer from Bruno Haible to 'all'.
92034
92035 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92036
92037         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92038
92039 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92040
92041         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92042         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92043         and define in terms of the other primitives.
92044         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92045         (SIZE_MAX): Define if not already defined.
92046         (array_size_overflow): New function.
92047         (xalloc_die): Abort instead of exiting if 'error' returns.
92048         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92049         (xmalloc, xrealloc): Use them.
92050         (xcalloc): Check for address arithmetic overflow.
92051         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92052         a bit faster than strcpy.
92053
92054 2003-10-10  Simon Josefsson  <jas@extundo.com>
92055
92056         * modules/argp (Depends-on): Add restrict and strcase.
92057
92058 2003-10-10  Simon Josefsson  <jas@extundo.com>
92059
92060         * m4/argp.m4: Add AC_C_INLINE.
92061
92062 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92063
92064         Merge getpass from libc, plus a few fixes.
92065
92066         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92067         Include <stdbool.h>.
92068         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92069         __fsetlocking to empty.
92070         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92071         do include <bits/libc-lock.h>.
92072         Do not include <fcntl.h>; not needed.
92073         [_LIBC]: Include <wchar.h>.
92074         (NOTCANCEL_MODE): New macro.
92075         (flockfile, funlockfile) [_LIBC]: New macros.
92076         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92077         [!_LIBC]: New macros.
92078         (call_fclose): New function.
92079         (getpass): Use it.  Save tty stream separately; this simplifies the
92080         code and makes it more reliable if stdin happens to equal stdout.
92081         Invoke __fsetlocking on tty.
92082         Handle thread cancellation if needed.
92083         Namespace cleanup (use __tcgetattr, __getline).
92084         Use bool for Booleans.
92085         [USE_IN_LIBIO]: Handle wide streams.
92086         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92087         stream might go where.
92088
92089         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92090         doesn't have to include <stdio.h> before us.
92091         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92092         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92093         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92094         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92095         if not declared, so that we can use getpass.c code from libc without
92096         rewriting it.
92097         (flockfile, ftrylockfile, funlockfile): New macros.
92098
92099 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92100
92101         * modules/getpass: Depend on stdbool.
92102
92103 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92104
92105         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92106
92107 2003-10-07  Karl Berry  <karl@gnu.org>
92108
92109         * config/config.{guess,sub}: update from config.
92110
92111 2003-10-06  Jim Meyering  <jim@meyering.net>
92112             Bruno Haible  <bruno@clisp.org>
92113
92114         This lets translators provide better translations for the
92115         "Written by ..." part of --version output.
92116         * lib/version-etc.h: Include stdarg.h.
92117         (version_etc_copyright): Declare as readonly.
92118         (version_etc): Make this function variadic with a NULL-terminated list
92119         of author name strings.
92120         (version_etc_va): New declaration.
92121         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92122         (version_etc_copyright): Declare as readonly.
92123         (version_etc_va): New function. Provide a different translatable string
92124         for each possible number of authors < 10. Abbreviate when there are 10
92125         authors or more.
92126         (version_etc): Make this function variadic. Call version_etc_va.
92127         Suggestion from Gary V. Vaughan.
92128
92129         * lib/long-options.h (parse_long_options): Change prototype: the
92130         authors string is moved to the end and becomes variadic.
92131         * lib/long-options.c: Include stdarg.h.
92132         (parse_long_options): Make this function variadic, too.
92133         Call version_etc_va, not version_etc.
92134
92135 2003-10-06  Bruno Haible  <bruno@clisp.org>
92136
92137         * modules/version-etc-2: Remove file.
92138         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92139
92140 2003-10-06  Bruno Haible  <bruno@clisp.org>
92141
92142         * modules/fatal-signal: New file.
92143         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92144
92145 2003-10-06  Bruno Haible  <bruno@clisp.org>
92146
92147         * m4/fatal-signal.m4: New file.
92148         * m4/signalblocking.m4: New file, from GNU gettext.
92149
92150 2003-10-06  Bruno Haible  <bruno@clisp.org>
92151
92152         * lib/version-etc-2.h: Remove file.
92153         * lib/version-etc-2.c: Remove file.
92154
92155 2003-10-06  Bruno Haible  <bruno@clisp.org>
92156
92157         * lib/fatal-signal.h: New file, from GNU gettext.
92158         * lib/fatal-signal.c: New file, from GNU gettext.
92159
92160 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92161
92162         * README: Rework advice for preventing empty .o files.
92163         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92164         not <sys/types.h>.
92165
92166 2003-10-04  Karl Berry  <karl@gnu.org>
92167
92168         * lib/argp*: update from libc.
92169
92170 2003-10-04  Karl Berry  <karl@gnu.org>
92171
92172         * config/config.{guess,sub}: update from config.
92173
92174 2003-10-02  Bruno Haible  <bruno@clisp.org>
92175
92176         * modules/lchown (Include): Add lchown.h.
92177         * modules/time_r (Include): Use "..." syntax.
92178         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92179
92180 2003-10-01  Simon Josefsson  <jas@extundo.com>
92181
92182         * MODULES.html.sh (func_all_modules): Move gethostname from section
92183         'based on' to section 'lacking' POSIX:2001.
92184
92185 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92186
92187         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92188         to output mode on the same stream.
92189
92190 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92191
92192         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92193         Fix arg typo in previous patch.
92194
92195 2003-09-28  Jim Meyering  <jim@meyering.net>
92196
92197         * lib/error.c: Correct cpp indentation.
92198
92199 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92200
92201         * modules/free: New file.
92202
92203 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92204
92205         * m4/free.m4: New file.
92206
92207 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92208
92209         * lib/minmax.h (MIN, MAX)
92210         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92211         Omit the special code that used __typeof__, since we worry that
92212         it could be more trouble than it's worth.  See:
92213         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92214         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92215
92216         * lib/free.c: New file.
92217
92218 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92219
92220         Trivial fixes to Makefile.am parts of module listings.
92221         * modules/strstr: Append strstr.h to lib_SOURCES.
92222         * modules/strcase: Likewise, for strcase.h.
92223
92224 2003-09-27  Karl Berry  <karl@gnu.org>
92225
92226         * config/mkinstalldirs: update from automake.
92227
92228 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92229
92230         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92231         (error_tail): Do not loop, reallocating temporary buffer, since
92232         the output cannot contain more wide characters than the input
92233         contains bytes, the size must be big enough already.  This avoids
92234         one potential size overflow calculation.  Check for size overflow
92235         when calculating temporary buffer size.  Free temporary buffer
92236         when done, if it was allocated with malloc; this plugs a memory
92237         leak.  Remove casts from void * to pointers, that are no longer
92238         needed now that we're assuming C89 or better.
92239
92240         Merge error changes from glibc.
92241
92242         * lib/error.c, error.h: Update copyright notice header to match glibc.
92243         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92244         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92245         Disable cancellation while printing error.
92246         * lib/error.h: Prepend __ to parameter names.
92247
92248 2003-09-26  Jim Meyering  <jim@meyering.net>
92249
92250         * lib/error.c (error_tail): Move some declarations
92251         into inner scope where the local variables are used.
92252
92253 2003-09-26  Bruno Haible  <bruno@clisp.org>
92254
92255         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92256         stpncpy().
92257         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92258
92259 2003-09-26  Bruno Haible  <bruno@clisp.org>
92260
92261         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92262         (stpncpy): Define as alias for gnu_stpncpy.
92263         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92264
92265 2003-09-25  Simon Josefsson  <jas@extundo.com>
92266
92267         * lib/xgetdomainname.h: New file.
92268         * lib/xgetdomainname.c: New file.
92269
92270 2003-09-25  Simon Josefsson  <jas@extundo.com>
92271             Bruno Haible  <bruno@clisp.org>
92272
92273         * modules/getdomainname: New file.
92274         * modules/xgetdomainname: New file.
92275         * MODULES.html.sh (func_all_modules): Add getdomainname,
92276         xgetdomainname.
92277
92278 2003-09-25  Simon Josefsson  <jas@extundo.com>
92279             Bruno Haible  <bruno@clisp.org>
92280
92281         * m4/getdomainname.m4: New file.
92282
92283 2003-09-25  Simon Josefsson  <jas@extundo.com>
92284             Bruno Haible  <bruno@clisp.org>
92285
92286         * lib/getdomainname.h: New file.
92287         * lib/getdomainname.c: New file.
92288
92289 2003-09-25  Karl Berry  <karl@gnu.org>
92290
92291         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92292
92293 2003-09-25  Karl Berry  <karl@gnu.org>
92294
92295         * config/install-sh: update from automake.
92296
92297 2003-09-25  Bruno Haible  <bruno@clisp.org>
92298
92299         * modules/version-etc-2: New file, from modules/version-etc with
92300         modifications.
92301         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92302
92303 2003-09-25  Bruno Haible  <bruno@clisp.org>
92304
92305         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92306         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92307
92308 2003-09-24  Simon Josefsson  <jas@extundo.com>
92309
92310         * modules/xgethostname: Add xgethostname.h.
92311
92312 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92313
92314         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92315         the buffer associated with the argument.  Bug reported by
92316         Simon Josefsson.
92317
92318 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92319
92320         * README: Document assumptions that 'int' is at least 32 bits
92321         wide, that integer arithmetic is 2's complement without overflow,
92322         that there are no holes in integer values, that adding sizes of
92323         two nonoverlapping objects can't overflow, and that all-bits-zero
92324         yields scalar zero.  Fix spelling and capitalization typos.
92325
92326 2003-09-19  Karl Berry  <karl@gnu.org>
92327
92328         * lib/argp.h: update from libc.
92329
92330 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92331
92332         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92333         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92334         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92335
92336 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92337
92338         * gnulib-tool: Use "test -h", not "test -L", for portability
92339         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92340         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92341         (sed_extract_prog): Issue s commands one-by-one, rather than
92342         using \| in one s command.
92343
92344 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92345
92346         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92347         input error, instead of returning NULL the next time we are called
92348         (and therefore losing track of errno).
92349
92350 2003-09-16  Bruno Haible  <bruno@clisp.org>
92351
92352         * gnulib-tool (func_create_testdir): Warn about duplicated
92353         dependencies.
92354
92355 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92356
92357         * modules/argmatch, modules/fatal, modules/obstack,
92358         modules/xalloc, modules/xgethostname: Sort dependencies by
92359         importance, not alphabetically.
92360
92361 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92362
92363         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92364         fails, so that the caller gets the proper errno.
92365
92366         * lib/readutmp.c (read_utmp): Likewise.
92367         Check for fstat error.  Close stream and free storage
92368         when failing.
92369
92370 2003-09-14  Karl Berry  <karl@gnu.org>
92371
92372         * config/srclist.txt (strdup.c): disable for c89 changes.
92373
92374 2003-09-14  Jim Meyering  <jim@meyering.net>
92375
92376         * lib/getloadavg.c: Correct cpp indentation.
92377         * lib/strdup.c: Likewise.
92378         * lib/vasnprintf.c: Likewise.
92379
92380 2003-09-14  Bruno Haible  <bruno@clisp.org>
92381
92382         * modules/fwriteerror: New file.
92383         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92384
92385 2003-09-14  Bruno Haible  <bruno@clisp.org>
92386
92387         * lib/fwriteerror.h: New file.
92388         * lib/fwriteerror.c: New file.
92389
92390 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92391
92392         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92393         modules/xgethostname, modules/xalloc: Depend on exit.
92394
92395 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92396
92397         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92398
92399         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92400         and AC_MINIX, too, so that their extensions are available.
92401
92402         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92403         This macro has been superseded by gl_BACKUPFILE.
92404
92405         More patches to assume C89 or better.
92406
92407         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92408
92409         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92410         unconditionally.
92411         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92412         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92413         Include <string.h>, <stdlib.h> unconditionally.
92414         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92415         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92416         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92417         headers or for string.h.
92418         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92419         or strtoul.
92420
92421         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92422         headers.
92423         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92424         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92425         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92426         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92427         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92428         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92429         memcpy, memset.
92430         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92431         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92432         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92433         strtol.
92434         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92435         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92436         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92437         strtoul.
92438
92439 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92440
92441         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92442         * lib/obstack.c [!defined _LIBC]: Likewise.
92443         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92444         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92445         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92446
92447         More changes to assume C89 or better.
92448
92449         * lib/error.c (error_tail): Assume vprintf.
92450
92451         * lib/argmatch.c (getenv): Remove decl.
92452         * lib/progreloc.c (get_full_program_name): Define via prototype.
92453         * lib/setenv.c (clearenv): Likewise.
92454         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92455         needed.
92456         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92457         (malloc, memcpy): Remove decls.
92458         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92459         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92460         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92461         (memcpy): Remove macro.
92462         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92463         (__P): Remove.  All uses removed.
92464         (PTR): Remove.  All uses changed to void *.
92465         (CHAR_BIT, NULL): Remove.
92466         (spaces, zeros, memset_space, memset_zero)
92467         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92468         Remove.
92469         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92470         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92471         Define with prototype.
92472         Remove now-unnecessary prototype decl.
92473         (extra_args_spec): Assume ANSI C.  All uses changed.
92474         (extra_args_spec_iso): Remove.
92475         (my_strftime, emacs_strftimeu): Define via prototype.
92476         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92477         unconditionally.
92478         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92479         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92480         (strtoul, strtol): Remove decls.
92481         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92482         LONG_MAX): Remove.
92483         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92484         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92485         (LOCALE_PARAM_PROTO): New macro.
92486         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92487         (INTERNAL (strtol), strtol): Define with a prototype.
92488         (PARAMS): Remove.  All uses removed.
92489         * lib/tempname.c: Include <string.h> unconditionally.
92490         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92491         * lib/xgethostname.c (main): Define with a prototype.
92492         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92493         Include <stdlib.h> unconditionally.
92494         (calloc, malloc, realloc, free): Remove decls.
92495         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92496         Include <stdlib.h> unconditionally.  Sort include file names.
92497         (strtod): Remove.
92498         (xstrtod): Define with a prototype.
92499         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92500         (strtol, strtoul): Remove decls.
92501
92502 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92503
92504         More patches to assume C89 or better.
92505         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92506         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92507         string.h, memchr, STDC_HEADERS.
92508
92509 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92510
92511         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92512         Include <stdlib.h>, <string.h> unconditionally.
92513         Remove now-unnecessary cast to char *.
92514         * lib/strnlen.c: Include <string.h> unconditionally.
92515         * lib/yesno.c (yesno): Define with a prototype.
92516
92517 2003-09-11  Bruno Haible  <bruno@clisp.org>
92518
92519         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92520
92521 2003-09-10  Jim Meyering  <jim@meyering.net>
92522
92523         * lib/error.c: Correct indentation of cpp directives.
92524
92525 2003-09-10  Bruno Haible  <bruno@clisp.org>
92526
92527         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92528         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92529         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92530         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92531         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92532         <stdlib.h> and <string.h> checks.
92533         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92534         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92535
92536 2003-09-10  Bruno Haible  <bruno@clisp.org>
92537
92538         * lib/strcspn.c: Include <string.h> unconditionally.
92539         * lib/strpbrk.c: Include <string.h> unconditionally.
92540         * lib/strstr.c: Include <string.h> unconditionally.
92541         * lib/unicodeio.c: Include <string.h> unconditionally.
92542         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92543         * lib/unsetenv.c: Likewise.
92544         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92545         * lib/yesno.c: Include <stdlib.h> unconditionally.
92546         (rpmatch): Add prototype.
92547
92548 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92549
92550         More patches to assume C89 or better.
92551         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92552         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92553         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92554         or for string.h.
92555         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92556         stdlib.h.
92557         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92558         C headers.
92559         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92560         string.h.
92561         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92562         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92563         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92564         or for string.h.
92565         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92566         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92567         C headers.
92568         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92569         memcpy.
92570         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92571         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92572         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92573         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92574         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92575         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92576         string.h, free.
92577         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92578         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92579         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92580         C headers, or for string.h.
92581         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92582         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92583         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92584         headers, memory.h, stdlib.h, string.h, strings.h.
92585         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92586         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92587         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92588         strchr.
92589         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92590         headers, memory.h, string.h.
92591         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92592         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92593         free.
92594         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92595         headers.
92596         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92597         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92598         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92599         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92600         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92601
92602 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92603
92604         More K&R removal.
92605
92606         * lib/acosl.c (main): Use a prototype.
92607         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92608         tanl.c: Likewise.
92609
92610         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92611
92612         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92613         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92614         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92615         with a prototype.
92616         * lib/getopt.c (const): Remove macro.
92617         Include <string.h> unconditionally.
92618         (my_index): Remove; all uses changed to strchr.
92619         (strlen): Remove decl.
92620         (exchange): Remove forward decl; no longer needed.
92621         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92622         Define with prototype.
92623         * lib/getopt1.c (const): Remove macro.
92624         (getopt_long, getopt_long_only, main): Define with prototype.
92625
92626         * lib/getugroups.c: Include <string.h> unconditionally.
92627
92628         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92629         (getusershell, setusershell, endusershell, readname, main):
92630         Define with prototypes.
92631
92632         * lib/group-member.c: Include group-member.h first.
92633         Include <stdlib.h> unconditionally.
92634
92635         * lib/hard-locale.c: Include hard-locale.h first.
92636         Include <stdlib.h>, <string.h> unconditionally.
92637
92638         * lib/hash.c (free, malloc): Remove decls.
92639         Include <stdlib.h> unconditionally.
92640
92641         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92642         (getenv): Do not declare.
92643
92644         * lib/idcache.c: Include <string.h> unconditionally.
92645
92646         * lib/long-options.c: Include long-options.h first, to test interface.
92647         Include <stdlib.h> unconditionally.
92648
92649         * lib/makepath.c: Include makepath.h first, to test interface.
92650         Include <stdlib.h> and <string.h> unconditionally.
92651
92652         * lib/linebuffer.c: Include <stdlib.h>.
92653         (free): Remove decl.
92654
92655         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92656         stddef.h. rpl_malloc returns void *, not char *.
92657         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92658         prototype.
92659
92660         * lib/md5.h: Include <limits.h> unconditionally.
92661         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92662         (__P): Remove; all uses removed.
92663         * lib/md5.c: Include "md5.h" first.
92664         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92665         md5_buffer, md5_process_bytes, md5_process_block):
92666         Define with prototypes.
92667         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92668         * lib/sha.c: Include "sha.h" first.
92669         Include <stdlib.h>, <string.h> unconditionally.
92670
92671         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92672         * lib/memcmp.c (__ptr_t): Likewise.
92673         * lib/memrchr.c (__ptr_t): Likewise.
92674         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92675         Include <string.h> unconditionally.
92676         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92677         * lib/memchr.c: Include <stdlib.h> unconditionally.
92678         * lib/memchr.c (LONG_MAX): Remove.
92679         * lib/memrchr.c (LONG_MAX): Likewise.
92680         * lib/memchr.c (__memchr): Define via a prototype.
92681         * lib/memrchr.c (__memrchr): Likewise.
92682         * lib/memcmp.c (__P): Remove, and remove all uses.
92683         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92684         Remove forward decls; no longer needed.
92685         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92686         Use types required by C89 in prototype.
92687
92688         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92689         * lib/savedir.c: Likewise.
92690         * lib/mkdir.c (free): Remove decl.
92691         * lib/rmdir.c (rmdir): Define with a prototype.
92692         * lib/savedir.c: Include savedir.h first, to test interface.
92693
92694         * lib/mktime.c (STDC_HEADERS): Remove.
92695         Include <stdlib.h>, <string.h> unconditionally.
92696
92697         * lib/modechange.c: Include <stdlib.h> unconditionally.
92698         (malloc): Remove decl.
92699
92700         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92701         (free): Remove decl.
92702
92703         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92704         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92705         (This type really should be intptr_t, but that's a C99ism.)
92706         (_obstack_memcpy): Remove: all uses changed to memcpy.
92707         Include <string.h> unconditionally.
92708         (struct obstack): Assume __STDC__ for types of members
92709         chunkfun, freefun, extra_arg.
92710         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92711         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92712         obstack_begin, obstack_specify_allocation,
92713         obstack_specify_allocation_with_arg, obstack_chunkfun,
92714         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92715         Remove unprototyped decls and the macros that use them.
92716         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92717         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92718         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92719         (defined __STDC__ && __STDC__)]:
92720         Remove nonprototyped code.
92721         Include <stdlib.h> unconditionally.
92722         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92723         _obstack_allocated_p, _obstack_free, obstack_free,
92724         _obstack_memory_used, print_and_abort):
92725         Define using prototypes.
92726         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92727         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92728         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92729         obstack_next_free, obstack_object_size, obstack_room) [0]:
92730         Remove unused, unprototyped code.
92731
92732         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92733
92734         * lib/physmem.c (physmem_total, physmem_available, main): Define
92735         with prototypes.
92736
92737         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92738         (main): Define with a prototype.
92739
92740         * lib/posixver.c (getenv): Remove decl.
92741
92742         * lib/putenv.c (malloc): Returns void *, not char *.
92743         Include <string.h> unconditionally.
92744         (strchr, memcpy, NULL): Do not define.
92745
92746         * lib/readtokens.c: Include readtokens.h first, to test interface.
92747         Include <stdlib.h>, <string.h> unconditionally.
92748         (init_tokenbuffer): Define with a prototype.
92749
92750         * lib/regex.c (PARAMS): Remove.  All uses removed.
92751         All uses of _RE_ARGS removed, too.
92752         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92753         unconditionally.
92754         (bzero): Assume memset exists.
92755         (memcmp, memcpy, NULL): Remove.
92756         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92757         char, or assignments to local vars of type signed char.
92758         (init_syntax_once, PREFIX(extract_number_and_incr),
92759         PREFIX(print_partial_compiled_pattern),
92760         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92761         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92762         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92763         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92764         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92765         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92766         wcs_compile_range, byte_compile_range, truncate_wchar,
92767         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92768         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92769         count_mbs_length, wcs_re_match_2_internal,
92770         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92771         PREFIX(alt_match_null_string_p),
92772         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92773         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92774         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92775         now-unnecessary declaration, if any.
92776         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92777         regcomp, regexec):
92778         Remove now-unnecessary casts among pointer types.
92779         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92780
92781         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92782         (free): Remove decl.
92783
92784         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92785
92786         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92787         (free): Remove decl.
92788
92789         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92790         * lib/xgetcwd.c: Likewise.
92791
92792         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92793         (free): Remove decl.
92794
92795         * lib/strchrnul.c (strchrnul): Define with a prototype.
92796         Fix bug: c_in was not converted to char before searching.
92797
92798         The following changes are not K&R related:
92799
92800         * lib/group-member.h: Include <sys/types.h>, so that this file is
92801         self-contained.
92802         * lib/makepath.h: Likewise.
92803
92804         * lib/getusershell.c (readname, default_index, line_size, readname):
92805         Use size_t, not int, for sizes.
92806         (readname): If the size overflows, report an error instead of
92807         looping forever.
92808
92809 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92810
92811         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92812         libc.
92813
92814 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92815
92816         * README: New section: portability guidelines.
92817
92818 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92819
92820         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92821         C89 spec.
92822
92823 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92824
92825         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92826
92827 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92828
92829         Assume C89 or better; remove K&R cruft.
92830         A few of these changes were first proposed by Derek Robert Price
92831         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92832
92833         * lib/addext.c: Include <string.h> unconditionally.
92834         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92835         Don't declare getenv or malloc.
92836
92837         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92838         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92839         (NULL): Remove.
92840         (find_stack_direction, alloca): Use prototypes.
92841
92842         * lib/atexit.c (atexit): Define using a prototype.
92843
92844         * lib/basename.c, dirname.c, stripslash.c:
92845         Include <string.h> unconditionally.
92846
92847         * lib/bcopy.c: Include <stddef.h>.
92848         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92849
92850         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92851
92852         * lib/error.h (error, error_at_line, error_print_progname)
92853         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92854         * lib/error.c: Include error.h first, to check interface.
92855         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92856         (VA_START): Remove; all uses changeed to va_start.
92857         (exit, strerror): Remove decls.
92858         (error_print_progname): Prototype uncondionally.
92859         Don't include <errno.h>; no longer needed.
92860         (private_strerror): Remove.
92861         (error_tail): Always define.
92862         (error, error_at_line): Assume C89 or better; always use prototypes.
92863         * lib/fatal.c: Include "fatal.h" first, to test interface.
92864         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92865         (VA_START): Remove; all uses changed to va_start.
92866         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92867         this case.
92868         (exit): Remove decl.
92869         (fatal): Prototype unconditionally.  Assume va_start works.
92870         Abort at end, to pacify gcc.
92871
92872         * lib/euidaccess.c (main): Define with a prototype.
92873
92874         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92875
92876         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92877
92878         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92879         prototypes.
92880         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92881         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92882         (getenv): Remove decl.
92883         (fnmatch): Define using a prototype.
92884         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92885         (FCT): Define using a prototype.
92886
92887         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92888
92889         * lib/gethostname.c: Include <stddef.h>.
92890         (gethostname): Define with prototype.  Length is size_t, not int.
92891
92892 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92893
92894         Assume C89 or better; remove K&R cruft.
92895         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92896         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92897         string.h, getenv, malloc.
92898         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92899         headers.
92900         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92901         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92902         do not check for strerror.
92903         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92904         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92905         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92906         do not check for doprnt or vprintf.
92907         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92908         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92909
92910 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92911
92912         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92913         getversion.c should have been removed then, but was accidentally
92914         preserved.
92915
92916         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92917         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92918
92919 2003-09-08  Karl Berry  <karl@gnu.org>
92920
92921         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92922                 config, forget about prep.
92923
92924         * config/depcomp, missing: update from automake.
92925
92926 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92927
92928         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92929         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92930
92931 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92932
92933         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92934         copy_tm_result.  Bug reported by Simon Josefsson in
92935         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92936
92937 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92938
92939         * m4/time_r.m4: New file.
92940         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92941         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92942         is. Check for timegm declaration.
92943         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92944         Do not check for gmtime_r.
92945         Replace mktime if __mktime_internal does not exist and if mktime
92946         hasn't been replaced already.
92947
92948 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92949
92950         * lib/time_r.c, lib/time_r.h: New files.
92951
92952         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92953         __localtime_r.
92954         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92955         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92956
92957         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92958         __gmtime_r.
92959         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92960         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92961         Include <time_r.h>.
92962
92963         * lib/timegm.c: Switch to glibc implementation, with the following
92964         changes:
92965         [defined HAVE_CONFIG_H]: Include <config.h>.
92966         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92967         (__mktime_internal) [!defined _LIBC]: New decl.
92968         (__gmtime_r) [!defined _LIBC]: New macro and function.
92969         (timegm): Use a prototype, since gnulib assumes C89.
92970         Do not bother declaring tmp to be const, as it's not really usefu.
92971         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92972         (timegm): Declare only if HAVE_DECL_TIMEGM.
92973
92974 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92975
92976         * MODULES.html.sh (func_all_modules): Add time_r.
92977         * modules/time_r: New file.
92978         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92979         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92980
92981 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92982
92983         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92984         Bug reported by Lute Kamstra in
92985         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92986
92987         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92988         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92989         course with correspondingly smaller numbers for tomorrow and
92990         yesterday.  From Tadayoshi Funaba.  Originally installed into
92991         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92992         coreutils merge?).
92993
92994 2003-08-31  Simon Josefsson  <jas@extundo.com>
92995
92996         * modules/timegm: New file.
92997         * MODULES.html.sh (func_all_modules): Add timegm.
92998
92999 2003-08-31  Simon Josefsson  <jas@extundo.com>
93000
93001         * m4/timegm.m4: New file.
93002
93003 2003-08-31  Simon Josefsson  <jas@extundo.com>
93004
93005         * lib/timegm.h: New file.
93006         * lib/timegm.c: New file.  Based on
93007         wget-1.8.2/src/http.c:mktime_from_utc.
93008
93009 2003-08-31  Karl Berry  <karl@gnu.org>
93010
93011         * lib/argp.h: update from libc.
93012
93013 2003-08-28  Bruno Haible  <bruno@clisp.org>
93014
93015         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93016         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93017         followed by '#define fnmatch fnmatch_posix' gives an error.
93018
93019 2003-08-28  Bruno Haible  <bruno@clisp.org>
93020
93021         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93022         warning on QNX, which defines O_BINARY to 000000.
93023
93024 2003-08-27  Jim Meyering  <jim@meyering.net>
93025
93026         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93027         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93028         would fail after 32.  Reported by Danny Levinson.  Details here:
93029         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93030
93031 2003-08-24  Bruno Haible  <bruno@clisp.org>
93032
93033         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93034         MSVC7 <stdio.h> is included later.
93035
93036 2003-08-22  Simon Josefsson  <jas@extundo.com>
93037
93038         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93039
93040 2003-08-20  Karl Berry  <karl@gnu.org>
93041
93042         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93043
93044 2003-08-20  Bruno Haible  <bruno@clisp.org>
93045
93046         * modules/progname: New file.
93047         * MODULES.html.sh (func_all_modules): Add progname.
93048
93049 2003-08-20  Bruno Haible  <bruno@clisp.org>
93050
93051         * lib/progname.h: New file, from GNU gettext.
93052         * lib/progname.c: New file, from GNU gettext.
93053         * lib/progreloc.c: New file, from GNU gettext.
93054
93055 2003-08-19  Jim Meyering  <jim@meyering.net>
93056
93057         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93058         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93059
93060 2003-08-19  Bruno Haible  <bruno@clisp.org>
93061
93062         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93063         more.
93064
93065 2003-08-19  Bruno Haible  <bruno@clisp.org>
93066
93067         * lib/xstrdup.c: Assume <string.h> exists.
93068
93069 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93070
93071         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93072         in makefile rules.
93073
93074 2003-08-18  Jim Meyering  <jim@meyering.net>
93075
93076         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93077         * m4/lib-ld.m4: Likewise.
93078
93079 2003-08-18  Jim Meyering  <jim@meyering.net>
93080
93081         * lib/setenv.h: Indent nested cpp directive.
93082         * lib/vasnprintf.c: Remove trailing blanks.
93083
93084 2003-08-17  Simon Josefsson  <jas@extundo.com>
93085
93086         * modules/xstrndup: New file.
93087         * MODULES.html.sh (func_all_modules): Add xstrndup.
93088
93089 2003-08-17  Simon Josefsson  <jas@extundo.com>
93090
93091         * modules/argp: Fix autoconf macro name. Add more dependencies.
93092
93093 2003-08-17  Simon Josefsson  <jas@extundo.com>
93094
93095         * m4/xstrndup.m4: New file.
93096
93097 2003-08-17  Simon Josefsson  <jas@extundo.com>
93098
93099         * m4/argp.m4: New file.
93100
93101 2003-08-17  Simon Josefsson  <jas@extundo.com>
93102             Bruno Haible  <bruno@clisp.org>
93103
93104         * lib/xstrndup.h: New file.
93105         * lib/xstrndup.c: New file.
93106
93107 2003-08-17  Bruno Haible  <bruno@clisp.org>
93108
93109         * modules/strndup (Files, Include): Add lib/strndup.h.
93110
93111 2003-08-17  Bruno Haible  <bruno@clisp.org>
93112
93113         * modules/euidaccess (Files): Add lib/euidaccess.h.
93114
93115 2003-08-17  Bruno Haible  <bruno@clisp.org>
93116
93117         * lib/strndup.h: New file.
93118
93119 2003-08-17  Bruno Haible  <bruno@clisp.org>
93120
93121         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93122         like AC_GNU_SOURCE.
93123         * modules/extensions (configure.ac): Comment out the invocation of
93124         gl_USE_SYSTEM_EXTENSIONS.
93125
93126 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93127
93128         Merges from coreutils, etc.
93129         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93130         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93131         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93132         fixing a typo.
93133         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93134         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93135
93136 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93137
93138         Document merge from coreutils.
93139         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93140         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93141         * modules/utime: Add m4/utimes-null.m4.
93142
93143 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93144
93145         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93146         space, undoing this 2003-08-12 change:
93147         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93148
93149 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93150
93151         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93152         strtoul.c from libc, undoing this 2003-08-12 change:
93153         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93154
93155 2003-08-16  Jim Meyering  <jim@meyering.net>
93156
93157         Merges from coreutils.
93158         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93159         prefix.  Adjust cache variables similarly.  Create 500 rather than
93160         just 300 files, to exercise bug on Darwin6.5, too.
93161         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93162         $missing_dir.
93163         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93164         AM_SYS_POSIX_TERMIOS.
93165         Reported by mkc@mathdogs.com.
93166         Also change use of $am_cv_sys_posix_termios
93167         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93168         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93169         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93170         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93171         in /proc/mounts until it finds one with matching device number.  This
93172         is unnecessary when the FILE argument *is* a mount point.  No stat call
93173         is necessary in that case.  So, disable the statvfs-testing code on
93174         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93175         as RedHat bug# 84846.
93176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93177         to 1MB, so as not to render systems with no stack size limit (e.g.,
93178         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93179         Include <unistd.h>.  On some systems,
93180         it is required for the definition of _SC_PAGESIZE.
93181
93182 2003-08-16  Jim Meyering  <jim@meyering.net>
93183
93184         Merge from coreutils.
93185         * lib/xstrtoimax.c: #else #if -> #elif.
93186         * lib/xstrtoumax.c: Likewise.
93187
93188 2003-08-16  Jim Meyering  <jim@meyering.net>
93189
93190         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93191         * m4/utimes.m4: Removed.
93192         * m4/utimes-null.m4: Renamed from utimes.m4.
93193
93194         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93195         to 1MB, so as not to render systems with no stack size limit (e.g.,
93196         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93197         Include <unistd.h>.  On some systems,
93198         it is required for the definition of _SC_PAGESIZE.
93199
93200 2003-08-16  Jim Meyering  <jim@meyering.net>
93201         and Paul Eggert  <eggert@cs.ucla.edu>
93202
93203         Merges from coreutils, etc.
93204
93205         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93206         using the latest version from cvs.  This avoids problems with #line
93207         directives using a vendor (Sun) compiler.
93208         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93209         Don't set GETGROUPS_LIB here; now it's
93210         done via getgroups.m4's wrapper function.
93211         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93212         rather than just in sh-util/configure.in, so that the
93213         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93214         same.
93215         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93216         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93217         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93218         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93219         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93220         Remove code that is now done by the newly-required macros.
93221         Append $(EXEEXT) to DF_PROG.
93222         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93223         Do not invoke or require the following here,
93224         since prereq.m4 or some gnulib .m4 now does this for us:
93225         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93226         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93227         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93228         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93229         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93230         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93231         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93232         AC_FUNC_OBSTACK.
93233         Do not replace the following functions, as this is now the job
93234         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93235         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93236         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93237         atexit getpass, strdup, getpagesize.
93238         Replace 'raise'.
93239         Do not check for the following functions, as this is now the job
93240         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93241         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93242         setregid.
93243         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93244         Check for sys/sysctl.h.
93245         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93246         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93247         of checking for ssize_t ourselves.
93248
93249         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93250         Require every macro that gnulib/modules/* suggests for us.
93251         (jm_PREREQ_ADDEXT): New macro.
93252         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93253         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93254
93255         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93256         (gl_PHYSMEM): Use it.
93257         Also check for `table' function.
93258         Check for new headers and functions.
93259         Add check for sys/sysmp.h.
93260         With suggestions from Kaveh Ghazi.
93261         Ignore headers that are present but cannot be compiled.  This
93262         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93263         C 5.4.
93264
93265 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93266
93267         Document merge from coreutils.
93268         * modules/userspec: Depend on posixver.
93269         * modules/strftime: Depend on tzset.
93270
93271 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93272
93273         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93274         rather than tab, after '#' in shell-script copyright notices.
93275         Suggested by Bruno Haible.
93276
93277 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93278
93279         * config/srclist-update: Use three spaces, rather than tab, after '#'
93280         in shell-script copyright notices.  Suggested by Bruno Haible.
93281         Remove unnecessary parenthesization in regular expression.
93282
93283 2003-08-15  Jim Meyering  <jim@meyering.net>
93284
93285         Merge from coreutils.
93286         * lib/xgethostname.c: Include <stdlib.h>.
93287         (xghostname): Don't exit for anything other than memory-related
93288         failure; just return NULL.
93289         * lib/userspec.c: Include "posixver.h".
93290         (parse_user_spec): Accept `.' as a separator only
93291         in pre-POSIX-200112 mode.
93292         * lib/strtoimax.c: Use #elif rather than #else #if.
93293         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93294         Remove function, now that we can rely on a working tzset function.
93295         [!_LIBC]: Ensure that the required autoconf test has been run.
93296         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93297         Use underlying_strftime for %r.
93298         * lib/sha.c: Merge in some clean-up and optimization changes from
93299         glibc.
93300         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93301         Ensure that it is a multiple of 64.
93302         Rearrange loop exit tests so as to avoid performing an
93303         additional fread after encountering an error or EOF.
93304         * lib/realloc.c: Update copyright date.
93305
93306 2003-08-15  Jim Meyering  <jim@meyering.net>
93307         and Paul Eggert  <eggert@twinsun.com>
93308
93309         Merge from coreutils.
93310         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93311         member but strut utmpx does not.  Needed for AIX 4.3.3.
93312         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93313
93314 2003-08-15  Jim Meyering  <jim@meyering.net>
93315         and Paul Eggert  <eggert@cs.ucla.edu>
93316
93317         Merges from coreutils, etc.
93318         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93319         Require gl_FUNC_TZSET_CLOBBER.
93320         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93321         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93322         members.
93323
93324 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93325
93326         Help the merge from coreutils.
93327         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93328         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93329         * m4/tzset.m4: Use it too.
93330
93331 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93332
93333         * modules/tzset: New file.
93334
93335 2003-08-14  Jim Meyering  <jim@meyering.net>
93336
93337         Merges from coreutils.
93338         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93339         variable names, rather than @FNMATCH_H@.
93340         * modules/alloca: Likewise for $(ALLOCA_H).
93341
93342         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93343         the three copies of the literal target, `fnmatch.h'.
93344         * modules/alloca (alloca.h): Likewise.
93345
93346 2003-08-14  Jim Meyering  <jim@meyering.net>
93347
93348         Merge from coreutils.
93349         * m4/tzset.m4: New file.
93350         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93351         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93352         otherwise, AIX 5.1 systems would end up using the latter.
93353         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93354         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93355         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93356         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93357
93358 2003-08-14  Jim Meyering  <jim@meyering.net>
93359
93360         Merge from coreutils.
93361         * lib/obstack.h: Whitespace changes.
93362         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93363         and xcalloc return values.
93364         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93365         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93366         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93367         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93368         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93369         error from mntctl.
93370         Use mntctl's return value to drive the entry-processing loop, since
93371         we can't rely on the value of the vmt_length member in the last
93372         entry.  On some systems doing so could result in exhausting
93373         virtual memory.  Based in part on a patch from Mike Jetzer.
93374
93375 2003-08-14  Jim Meyering  <jim@meyering.net>
93376         and Paul Eggert  <eggert@twinsun.com>
93377
93378         Merges from coreutils, plus other fixes.
93379         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93380         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93381         for credits and details.  Thanks to Kaveh Ghazi for helping
93382         to keep these files in sync.
93383         (ARRAY_SIZE): Define it.
93384         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93385         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93386         (memcasecmp): Don't assume size_t fits in unsigned int.
93387         Remove casts and duplicate code.
93388         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93389         (memcpy): Remove definition.
93390         Merge in some clean-up and optimization changes from glibc.
93391         [BLOCKSIZE]: Move definition to top of file.
93392         Ensure that it is a multiple of 64.
93393         Rearrange loop exit tests so as to avoid performing an
93394         additional fread after encountering an error or EOF.
93395         * lib/md5.h (md5_uintptr): Define.
93396         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93397         return to the initial working directory.  Preserve errno
93398         for caller.
93399         * lib/idcache.c: Include "xalloc.h".
93400         (xmalloc, xrealloc): Remove decls.
93401         (getuser): Remove casts no longer required in C89.
93402         * lib/human.c: Include stdio.h, for sprintf.
93403         * lib/group-member.c: Include "xalloc.h".
93404         (xmalloc, xrealloc): Remove decls.
93405         (get_group_info): Remove casts no longer required in C89.
93406         * lib/getusershell.c (readname): Remove casts no longer required in
93407         C89.
93408         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93409         * lib/getline.c: Whitespace fix, from coreutils.
93410
93411 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93412
93413         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93414         Check for isascii.
93415
93416         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93417         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93418         Undo previous (whitespace-only) change.
93419
93420 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93421
93422         * lib/exclude.c: Include <ctype.h>
93423         (IN_CTYPE_DOMAIN): New macro.
93424         (is_space): New fn.
93425         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93426         and empty lines.
93427
93428         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93429         Undo previous (whitespace-only) change.
93430
93431 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93432
93433         * config/srclist-update: Change update back to the old behavior,
93434         leaving whitespace alone.  Use one 'sed' command rather than a
93435         pipeline.
93436         (fixlicense): Now a variable, not a function.
93437         (remove_trailing_blanks): Remove.
93438         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93439         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93440         Undo previous (whitespace-only) change.
93441
93442 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93443
93444         Merge from coreutils.
93445         * modules/euidaccess: Add lib_SOURCES, include for new
93446         file euidaccess.h
93447
93448 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93449
93450         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93451         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93452         Normalize leading white space and remove trailing white space.
93453
93454         Merge from coreutils
93455         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93456
93457         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93458         0.12.1.  These files are now being upgraded automatically by
93459         ../config/srclist-update.
93460
93461 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93462
93463         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93464         Normalize leading white space and remove trailing white space.
93465         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93466         notice, as per ../config/srclist-update.
93467
93468         Merge from coreutils.
93469         * lib/euidaccess.h: New file.
93470         * lib/euidaccess.c: Include it.
93471         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93472         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93473         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93474
93475 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93476
93477         * config/srclist-update: Add copyright notice.
93478         (remove_id_lines, remove_trailing_blanks): New constants.
93479         (fixfile): Use them to normalize spacing a bit in copied files.
93480         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93481         Normalize leading white space and remove trailing white space.
93482
93483         * config/texinfo.tex: Sync with texinfo.
93484
93485         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93486         strtoul.c from libc, to merge coreutils whitespace changes.
93487
93488         * config/srclist.txt: Get the following m4 files from gettext:
93489         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93490         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93491         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93492         wint_t.m4.
93493
93494 2003-08-12  Karl Berry  <karl@gnu.org>
93495
93496         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93497         been made.
93498
93499 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93500
93501         * modules/gnu-source, m4/gnu-source.m4:
93502         Remove; we're assuming Autoconf 2.54 or later now.
93503         Suggested by Bruno Haible.
93504         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93505
93506 2003-08-11  Bruno Haible  <bruno@clisp.org>
93507
93508         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93509
93510 2003-08-11  Bruno Haible  <bruno@clisp.org>
93511
93512         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93513         (vasnprintf): Use it instead of wcslen.
93514
93515 2003-08-11  Bruno Haible  <bruno@clisp.org>
93516
93517         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93518         value to ensure that _Bool promotes to int. Use #define for _Bool when
93519         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93520
93521 2003-08-10  Karl Berry  <karl@gnu.org>
93522
93523         * lib/regex.h: update from libc (whitespace fix).
93524
93525 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93526
93527         Merge some files from coreutils.  These changes were
93528         originally made by Jim Meyering.
93529         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93530         many older Unixes require this.
93531         * lib/alloca.c (alloca): Remove cast to argument of free;
93532         no longer needed in C89.
93533         * lib/alloca_.h, regex.h: Fix white space to match
93534         what GNU indent does.
93535
93536 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93537
93538         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93539         apparently Emacs's Unicode mode got confused before my 2003-08-05
93540         checkin.
93541
93542 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93543
93544         * m4/extensions.m4: New file.
93545         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93546         Require gl_USE_SYSTEM_EXTENSIONS.
93547         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93548         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93549
93550 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93551
93552         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93553         * modules/extensions, modules/gnu-source: New files.
93554         * modules/timespec, modules/unlocked-io: Depend on extensions.
93555
93556 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93557
93558         * modules/restrict: New file.
93559         * MODULES.html.sh (func_all_modules): Add restrict.
93560         * modules/regex: Depend on restrict.
93561
93562 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93563
93564         * m4/restrict.m4: New file.
93565         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93566
93567 2003-08-07  Bruno Haible  <bruno@clisp.org>
93568
93569         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93570         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93571
93572 2003-08-07  Bruno Haible  <bruno@clisp.org>
93573
93574         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93575         makes the module 'getndelim2' compatible with the module 'getline'.
93576
93577 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93578
93579         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93580         byte with "\201" to avoid glitches when editing that source file
93581         with multi-gnome-terminal.
93582
93583 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93584
93585         * lib/bumpalloc.h: Remove.
93586
93587 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93588
93589         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93590         * modules/bumpalloc: Remove.
93591
93592 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93593
93594         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93595         GNU coding style.
93596
93597         Merge from coreutils.
93598         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93599         1. From glibc.
93600         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93601         from Karl Berry, implemented by Jim Meyering.
93602         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93603         from Dmitry V. Levin.
93604         Remove anachronistic cast of xrealloc.
93605         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93606         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93607         type. Otherwise, it wouldn't compile with at least /bin/cc on
93608         ymp-cray-unicos9.0.2.X.
93609         Combine two mostly-identical uses of alloca into one.
93610         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93611
93612 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93613
93614         [From Emacs.]
93615
93616         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93617         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93618         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93619         obsolete NLIST_NAME_UNION.
93620         [__GNU__]: Undef BSD and FSCALE.
93621         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93622
93623 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93624
93625         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93626         an enum type, so that it's guaranteed to promote to int.  See:
93627         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93628
93629 2003-08-03  Karl Berry  <karl@gnu.org>
93630
93631         * config/depcomp: update from automake.
93632
93633 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93634
93635         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93636         (strerror): Don't assume that a printable int fits in 14 bytes.
93637
93638 2003-07-31  Bruno Haible  <bruno@clisp.org>
93639
93640         * modules/getpass-gnu: New file.
93641         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93642
93643 2003-07-31  Bruno Haible  <bruno@clisp.org>
93644
93645         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93646
93647 2003-07-24  Karl Berry  <karl@gnu.org>
93648
93649         * config/missing: update from automake.
93650
93651 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93652             Bruno Haible  <bruno@clisp.org>
93653
93654         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93655         * lib/getline.c (getline, getdelim): Likewise.
93656         Remove _GNU_SOURCE define; now it's defined in config.h through
93657         m4/getline.m4.
93658
93659 2003-07-23  Karl Berry  <karl@gnu.org>
93660
93661         * config/config.sub: update from prep.
93662
93663 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93664
93665         * modules/xalloc (Depends-on): Add exitfail.
93666         * modules/xmemcoll: Likewise.
93667
93668 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93669
93670         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93671         over-parenthesization in macros.
93672
93673         Sync with coreutils.
93674
93675         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93676         required by C99.
93677
93678         Use `exit_failure' for xalloc and xmemcoll instead of their own
93679         private exit-failure variables.
93680         * lib/xalloc.h (xalloc_exit_failure): Remove.
93681         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93682         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93683         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93684         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93685         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93686
93687 2003-07-20  Jim Meyering  <jim@meyering.net>
93688
93689         * modules/closeout (Depends-on): Add exitfail.
93690         Suggestion from Bruno Haible.
93691
93692 2003-07-19  Karl Berry  <karl@gnu.org>
93693
93694         * config/config.sub: update from prep.
93695
93696 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93697
93698         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93699         Remove.
93700         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93701         to test that it can stand by itself.  Include "exitfail.h".
93702         Clients should set exit_failure instead.
93703         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93704
93705 2003-07-18  Bruno Haible  <bruno@clisp.org>
93706
93707         * modules/getndelim2: New file.
93708         * modules/getline: Share files with module getndelim2.
93709         * modules/getnline: Depend on getndelim2 instead of sharing files with
93710         it. Add getnline.c to lib_SOURCES.
93711         * MODULES.html.sh (func_all_modules): Add getndelim2.
93712
93713 2003-07-18  Bruno Haible  <bruno@clisp.org>
93714
93715         * m4/getndelim2.m4: New file.
93716         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93717         invoke gl_PREREQ_GETNDELIM2.
93718         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93719         gl_PREREQ_GETNDELIM2.
93720         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93721         gl_GETNDELIM2.
93722
93723 2003-07-18  Bruno Haible  <bruno@clisp.org>
93724
93725         * lib/getndelim2.h: New file.
93726         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93727         getndelim2.h.
93728         (getndelim2): Make non-static. Change return type to ssize_t.
93729         * lib/getline.h: Change argument names.
93730         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93731         * lib/getnline.c: Include getndelim2.h.
93732
93733 2003-07-18  Andreas Schwab  <schwab@suse.de>
93734
93735         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93736
93737 2003-07-17  Karl Berry  <karl@gnu.org>
93738
93739         * config/config.sub: update from prep.
93740
93741 2003-07-17  Bruno Haible  <bruno@clisp.org>
93742
93743         * modules/getnline: New file.
93744         * modules/getline: Add lib/getndelim2.c to source file list.
93745         * MODULES.html.sh (func_all_modules): Add getnline.
93746
93747 2003-07-17  Bruno Haible  <bruno@clisp.org>
93748
93749         * m4/getnline.m4: New file.
93750
93751 2003-07-17  Bruno Haible  <bruno@clisp.org>
93752
93753         * m4/Makefile.am.in: Remove file.
93754         * m4/Makefile.am: Remove file.
93755         * m4/Makefile.in: Remove file.
93756
93757 2003-07-17  Bruno Haible  <bruno@clisp.org>
93758
93759         * lib/getnline.h: New file.
93760         * lib/getnline.c: New file.
93761         * lib/getndelim2.c: New file, extracted from getline.c.
93762         (getndelim2): Renamed from getdelim2, with added nmax argument.
93763         * lib/getline.c: Include getndelim2.c.
93764         (getdelim2): Moved out to getndelim2.c.
93765         (getline, getdelim): Update.
93766
93767 2003-07-17  Bruno Haible  <bruno@clisp.org>
93768
93769         * lib/Makefile.am: Remove file.
93770         * lib/Makefile.in: Remove file.
93771
93772 2003-07-17  Bruno Haible  <bruno@clisp.org>
93773
93774         * configure.in: Remove file.
93775         * Makefile.in: Remove file.
93776
93777 2003-07-17  Bruno Haible  <bruno@clisp.org>
93778
93779         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93780
93781 2003-07-16  Karl Berry  <karl@gnu.org>
93782
93783         * config/srclist-update: was running fixlicense twice, which caused
93784                 texinfo.tex to be nullified for some reason.  Simplify,
93785                 $gplsrc is no longer needed as far as I can see?
93786
93787 2003-07-16  Jim Meyering  <jim@meyering.net>
93788
93789         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93790
93791 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93792
93793         * config/srclist.txt: Get the following files from gettext-runtime/intl
93794         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93795         ref-del.sin.  From Bruno Haible.
93796         * config/srclist-update (fixfile): Change grep pattern again, since the
93797         previous fix didn't work (there was another trailing $).  Use
93798         '[$]' to escape the $s.
93799
93800 2003-07-15  Karl Berry  <karl@gnu.org>
93801
93802         * lib/vasnprintf.c: update from gettext.
93803
93804 2003-07-15  Karl Berry  <karl@gnu.org>
93805
93806         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93807         gets expanded when surrounded by '$'.
93808
93809 2003-07-15  Jim Meyering  <jim@meyering.net>
93810
93811         * modules/save-cwd: Don't depend on error.  From Derek Price.
93812
93813 2003-07-15  Jim Meyering  <jim@meyering.net>
93814
93815         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93816
93817 2003-07-14  Simon Josefsson  <jas@extundo.com>
93818
93819         * modules/mempcpy: New file.
93820         * MODULES.html.sh (func_all_modules): Add mempcpy.
93821
93822 2003-07-14  Simon Josefsson  <jas@extundo.com>
93823
93824         * m4/mempcpy.m4: New file.
93825
93826 2003-07-14  Simon Josefsson  <jas@extundo.com>
93827
93828         * lib/mempcpy.h: New file.
93829         * lib/mempcpy.c: New file.
93830
93831 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93832
93833         * modules/getdate, modules/posixtm: Depend on mktime.
93834
93835 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93836
93837         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93838         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93839         unicodeio.c, unicodeio.h, unlocked-io.h:
93840         Switch from LGPL to GPL.
93841
93842 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93843
93844         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93845         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93846         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93847         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93848         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93849         updated automatically by ../config/srclist-update.  This changes
93850         their license from LPGL to GPL.
93851
93852 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93853
93854         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93855         assumed to refer to the root of the most recent stable gettext version.
93856         * config/srclistvars.sh: Add defaults for eggert.
93857         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93858         Match "This program" as well as "The program".  This is needed
93859         for gettext.
93860
93861 2003-07-14  Jim Meyering  <jim@meyering.net>
93862
93863         Don't emit diagnostics.  Let callers do that.
93864         * lib/save-cwd.c: Don't include "error.h".
93865         (save_cwd): Don't call error.  Ensure that errno is valid
93866         when returning nonzero.
93867
93868         * lib/save-cwd.h (restore_cwd): Update prototype.
93869         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93870         Simplify.  Don't call error upon failure.  Let callers do that.
93871         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93872         when auditing is enabled.  But don't bother updating the #if.
93873
93874 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93875
93876         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93877         it breaks C++ compilation.
93878         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93879
93880 2003-07-10  Simon Josefsson  <jas@extundo.com>
93881
93882         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93883
93884 2003-07-10  Jim Meyering  <jim@meyering.net>
93885
93886         * m4/clock_time.m4: Remove trailing blank.
93887         * m4/intmax_t.m4: Likewise.
93888
93889 2003-07-10  Jim Meyering  <jim@meyering.net>
93890
93891         * lib/vasnprintf.c: Remove trailing blanks.
93892         Make cpp indentation consistent.
93893
93894 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93895
93896         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93897         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93898         Switch from LGPL to GPL.
93899
93900 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93901
93902         * config/srclist.txt: Sort sublists.  Add
93903         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93904         that differ from gnulib for one reason or another; we'd like this list
93905         to be smaller but for now let's document what we have.
93906
93907 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93908
93909         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93910         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93911         and sweeter "eval x=$x".
93912         * config/srclist.txt: Get lib/argp* from glibc.
93913
93914 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93915
93916         * lib/mktime.c: Fix some boundary cases and remove need for floating
93917         point.
93918
93919         Issue a compile-time diagnostic if time_t is floating point, or if
93920         two's complement arithmetic is not in effect, or if arithmetic
93921         right shift does not propagate the sign.  These assumptions were
93922         all in the original code but they weren't checked.
93923
93924         (TIME_T_MIDPOINT, verify): New macros.
93925         (__isleap): Remove; it has integer overflow problems.
93926         (leapyear): New function, without those problems.
93927         (ydhms_tm_diff): Remove; splitting into two parts.
93928         (ydhms_diff): New function, containing the arithmetic part of
93929         the old ydhms_tm_diff function.  Issue a compile-time
93930         diagnostic if we are not using C99 integer division.
93931         Avoid casts when possible.
93932         (guess_time_tm): New function, containing the checking part of
93933         the old ydhms_tm_diff function.  Return the new value, rather than
93934         the difference between it and the old.  Accept a new argument T
93935         so that *T specifies the old value.  Check for overflow in the result.
93936
93937         (__mktime_internal): Use a time_t offset, not a long int offset.
93938         This undoes the 2003-06-04 change, which is no longer needed now
93939         that we have better overflow checking.
93940         (localtime_offset): Likewise.
93941
93942         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93943         and long are 64-bit but int is only 32-bit.
93944         (ydhms_diff): Use long int to store year1 and yday1.
93945         Issue a compile-time diagnostic if long int is not wide enough.
93946
93947         (__mktime_internal): Use long int to store adjusted year and yday.
93948         Use plain C rather than preprocessor commands, if that doesn't
93949         affect efficiency.
93950         Check for overflow (and try to repair) after each probe
93951         rather than checking only at the very end.  This avoids some bugs
93952         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93953         does not equal GMT offset at maximum time).
93954         Use integer to check for overflow rather than floating point; this
93955         is more portable to non-IEEE hosts, and is a tad faster.
93956         When we detect that we are oscillating between two values,
93957         don't check whether tm_isdst has the requested value, since
93958         we already know the answer.  When tm_isdst has the wrong value,
93959         use a different heuristic to find the right one, based on the
93960         extreme values actually observed in practice in tz2003a,
93961         rather than the (overly optimistic) "previous 3 calendar quarters".
93962
93963         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93964         "T const" to accommodate glibc style.
93965         (check_result): Use less-confusing report format.  "long" -> "long int.
93966         (main): Likewise.
93967         Don't loop if the iteration overflows time_t.
93968         Allow a negative step in the iteration.
93969
93970 2003-07-06  Karl Berry  <karl@gnu.org>
93971
93972         * config/depcomp: update from automake.
93973         * config/config.sub: update from prep.
93974
93975 2003-07-03  Karl Berry  <karl@gnu.org>
93976
93977         * config/config.guess: update from prep.
93978
93979 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93980
93981         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93982         xreadlink.c now includes it unconditionally.
93983
93984 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93985
93986         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93987         having it depend on HAVE_SYS_TYPES_H.
93988
93989 2003-07-01  Bruno Haible  <bruno@clisp.org>
93990
93991         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93992         <sys/types.h> should be sufficient.
93993         Reported by Paul Eggert.
93994
93995 2003-06-26  Karl Berry  <karl@gnu.org>
93996
93997         * config/depcomp: update from automake.
93998
93999 2003-06-26  Bruno Haible  <bruno@clisp.org>
94000
94001         * modules/human: Depend on module stdbool.
94002
94003 2003-06-25  Bruno Haible  <bruno@clisp.org>
94004
94005         * modules/readlink: New file.
94006         * modules/xreadlink: Depend on it.
94007         * MODULES.html.sh (func_all_modules): Add readlink.
94008
94009 2003-06-25  Bruno Haible  <bruno@clisp.org>
94010
94011         * m4/readlink.m4: New file.
94012
94013 2003-06-25  Bruno Haible  <bruno@clisp.org>
94014
94015         * lib/readlink.c: New file.
94016
94017 2003-06-22  Karl Berry  <karl@gnu.org>
94018
94019         * config/srclist.txt: update mkinstalldirs from automake.
94020         * config/mkinstalldirs: update.
94021
94022 2003-06-22  Bruno Haible  <bruno@clisp.org>
94023
94024         Portability to mingw32.
94025         * m4/ssize_t.m4: New file, from GNU gettext.
94026         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94027         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94028
94029 2003-06-22  Bruno Haible  <bruno@clisp.org>
94030
94031         * modules/safe-read: Add m4/ssize_t.m4.
94032         * modules/xreadlink: Add m4/ssize_t.m4.
94033
94034 2003-06-20  Bruno Haible  <bruno@clisp.org>
94035
94036         Assume C89, so PARAMS isn't needed.
94037         * lib/unicodeio.h (PARAMS): Remove.
94038         * lib/unicodeio.c: Don't use PARAMS.
94039
94040 2003-06-18  Karl Berry  <karl@gnu.org>
94041
94042         * config/config.{guess,sub}: update from prep.
94043
94044 2003-06-18  Jim Meyering  <jim@meyering.net>
94045
94046         Merge changes from coreutils.
94047         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94048         Remove explicit declarations of xmalloc and realloc.
94049         Include xalloc.h.
94050         (read_utmp): Remove anachronistic cast of xmalloc.
94051
94052 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94053
94054         Assume C89, so PARAMS isn't needed.
94055         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94056         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94057         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94058         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94059         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94060         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94061         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94062         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94063         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94064         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94065         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94066         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94067         no longer needed. Anyway, config.h should always be included before any
94068         other file.
94069
94070 2003-06-11  Simon Josefsson  <jas@extundo.com>
94071
94072         * modules/sysexits: New file.
94073         * MODULES.html.sh (func_all_modules): Add sysexits.
94074
94075 2003-06-11  Simon Josefsson  <jas@extundo.com>
94076
94077         * lib/sysexit_.h: New file.
94078
94079 2003-06-11  Derek Price  <derek@ximbiot.com>
94080
94081         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94082         necessary.
94083
94084 2003-06-11  Bruno Haible  <bruno@clisp.org>
94085
94086         * m4/sysexits.m4: New file.
94087
94088 2003-06-10  Simon Josefsson  <jas@extundo.com>
94089
94090         * lib/argp.h: New file, from glibc.
94091         * lib/argp-ba.c: New file, from glibc.
94092         * lib/argp-eexst.c: New file, from glibc.
94093         * lib/argp-fmtstream.c: New file, from glibc.
94094         * lib/argp-fmtstream.h: New file, from glibc.
94095         * lib/argp-fs-xinl.c: New file, from glibc.
94096         * lib/argp-help.c: New file, from glibc.
94097         * lib/argp-namefrob.h: New file, from glibc.
94098         * lib/argp-parse.c: New file, from glibc.
94099         * lib/argp-pv.c: New file, from glibc.
94100         * lib/argp-pvh.c: New file, from glibc.
94101         * lib/argp-xinl.c: New file, from glibc.
94102
94103 2003-06-10  Simon Josefsson  <jas@extundo.com>
94104
94105         * modules/strchrnul: New file.
94106
94107 2003-06-10  Simon Josefsson  <jas@extundo.com>
94108
94109         * modules/argp: New file.
94110
94111 2003-06-10  Simon Josefsson  <jas@extundo.com>
94112
94113         * m4/strchrnul.m4: New file.
94114
94115 2003-06-10  Simon Josefsson  <jas@extundo.com>
94116
94117         * lib/strchrnul.h: New file.
94118         * lib/strchrnul.c: New file.
94119
94120 2003-06-10  Bruno Haible  <bruno@clisp.org>
94121
94122         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94123
94124 2003-06-07  Karl Berry  <karl@gnu.org>
94125
94126         * config/config.{guess,sub}: update from prep.
94127
94128 2003-06-07  Jim Meyering  <jim@meyering.net>
94129
94130         * modules/strtod: Use $(...) notation, not @...@ for
94131         AC_REPLACE'd variables.
94132         * modules/localcharset: Likewise.
94133
94134 2003-06-07  Jim Meyering  <jim@meyering.net>
94135
94136         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94137         in place of my name in the copyright comment.
94138         Remove definition and uses of __P.
94139
94140         From coreutils.
94141         * lib/stat.c: Don't declare xmalloc explicitly.
94142         Instead, include "xalloc.h".
94143         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94144         xrealloc, and xcalloc return values.
94145         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94146         Improve comment.
94147         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94148
94149 2003-06-07  Bruno Haible  <bruno@clisp.org>
94150
94151         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94152         avoid AC_CONFIG_LINKS.
94153         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94154         fnmatch.h, to avoid AC_CONFIG_LINKS.
94155         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94156
94157 2003-06-07  Bruno Haible  <bruno@clisp.org>
94158
94159         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94160         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94161         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94162         directory.
94163         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94164         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94165         directory.
94166
94167 2003-06-06  Jim Meyering  <jim@meyering.net>
94168
94169         Merge from coreutils.
94170         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94171         Consolidate declarations and initializations of *_base* locals.
94172
94173         Merge from coreutils.
94174         This avoids a core dump on systems without GNU putenv,
94175         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94176         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94177         (unsetenv): New static function, from GNU libc.
94178         (rpl_putenv): Use it.
94179
94180         * lib/modechange.c: Remove trailing blanks.
94181
94182         Merge from coreutils.
94183         * lib/fsusage.c: Remove declaration of statfs.
94184         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94185
94186         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94187
94188 2003-06-06  Jim Meyering  <jim@meyering.net>
94189
94190         * lib/stdbool_.h: Renamed from stdbool.h.in.
94191
94192 2003-06-06  Jim Meyering  <jim@meyering.net>
94193             Bruno Haible  <bruno@clisp.org>
94194
94195         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94196         Adjust Makefile.am snippet not to redirect directly to target.
94197         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94198
94199 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94200
94201         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94202         mismatch, look in future quarters as well as past.  This fixes a
94203         bug when processing fall-backwards gaps immediately after a long
94204         period of daylight-saving time.
94205
94206         * lib/mktime.c: Assume freestanding C89 or better.
94207         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94208         (__P): Remove; not used.
94209         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94210         (mktime, not_equal_tm, print_tm, check_result,
94211         main): Use prototypes.  Use const * where appropriate.
94212         (main): Fix typo in testing code that uncovered by above changes.
94213         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94214
94215 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94216
94217         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94218         locale.h, localeconv.  This merges changes from coreutils.
94219
94220         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94221         It can be removed after the next Autoconf is released.
94222         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94223         needed.
94224
94225 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94226
94227         * lib/mktime.c: Fix Debian bug 177940
94228         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94229         (localtime_offset): Now long int, not time_t, because we want it
94230         to be guaranteed to be signed.  All uses changed.
94231         (__mktime_internal): If overflow would occur when adding offset,
94232         don't add it.
94233
94234         Merge 'human' changes from coreutils.  Rewrite to support
94235         locale-specific notations like thousands separators.
94236         * lib/human.c: Simplify authorship notice.
94237         Include human.h immediately after config.h.
94238         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94239         <limits.h>: Do not include, since human.h does.
94240         (SIZE_MAX, UINTMAX_MAX): New macros.
94241         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94242         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94243         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94244         (power_letter): Renamed from suffixes.
94245         (generate_suffix_backwards): Remove.
94246         (adjust_value): Now takes int style (because of human.h changes)
94247         and long double value (for greater precision on some platforms).
94248         (group_number): New function.
94249         (human_readable): Use it.  Use integer options, not enum.
94250         Put the options before the sizes in the arg list.
94251         Support all the new options.
94252         The old human_readable function has been removed;
94253         use inttostr.h instead.
94254         (human_readable, default_block_size, humblock):
94255         Use uintmax_t, not int, for block sizes.
94256         (human_readable_inexact, block_size_types): Remove.
94257         (block_size_opts): New constant.
94258         (human_options): Renamed from human_block_size, with new signature
94259         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94260         * lib/human.h: Add copyright and authorship notice.
94261         Include <limits.h> and <stdbool.h> unconditionally.
94262         (PARAMS): Remove.  All uses removed.
94263         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94264         (enum human_inexact_style): Remove tag; now a nameless enum.
94265         (human_floor, human_ceiling, human_round_to_even): Now have
94266         values 2, 0, 1 rather than -1, 1, 0.
94267         (human_group_digits, human_suppress_point_zero, human_autoscale,
94268         human_base_1024, human_SI, human_B): New constants.
94269         (human_readable_inexact, human_block_size): Remove.
94270         (human_readable): Size args are now uintmax_t, not int.
94271         (human_options): New decl.
94272
94273         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94274         unnecessary now that we assume C89 or better.  This change
94275         imported from coreutils.
94276
94277         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94278         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94279         in the 2003-05-30 sync from glibc.
94280
94281         .h files should stand alone, but we shouldn't include <sys/types.h>
94282         if we can get away with just <stddef.h>.
94283
94284         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94285         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94286         rather than <sys/types.h>, as we merely need size_t.
94287         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94288         to get size_t.
94289         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94290         Include <stdio.h>, to get FILE.
94291         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94292         memcasecmp.h has included <stddef.h> and all we need is size_t.
94293         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94294         our interface, instead of including <sys/types.h>
94295
94296 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94297
94298         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94299         now, as glibc mktime is buggy on non-glibc systems.
94300
94301 2003-06-03  Karl Berry  <karl@gnu.org>
94302
94303         * config/config.sub: update from prep.
94304
94305 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94306
94307         [from coreutils]
94308         Fix some minor time-related bugs with POSIX time arguments.
94309         Some valid time stamps were being rejected (notably -1, and
94310         time stamps before 1900 on 64-bit hosts).  And some invalid
94311         time stamps were being accepted, e.g. September 31.
94312
94313         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94314         that we can return (time_t) -1 successfully.
94315         * lib/posixtm.c: Likewise.
94316         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94317         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94318         (t): Remove static var.
94319         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94320         of static var.  All uses changed.
94321         (year): Do not reject years before 1900; they can occur with
94322         64-bit time_t.
94323         (posix_time_parse): Do not check for out-of-range components;
94324         that is now the caller's responsibility, since our checks were
94325         only approximations.
94326         (posixtime): Use mktime to check for out-of-range components,
94327         since it knows them exactly.
94328         If mktime returns (time_t) -1, check whether an error actually occurred
94329         by invoking localtime on -1.
94330         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94331         posixtime failures better.
94332         Improve the test data (in comments only).
94333
94334 2003-06-02  Karl Berry  <karl@gnu.org>
94335
94336         * config/mkinstalldirs (version): new variable.
94337         (--version): new option.
94338         (usage): improve message.
94339
94340 2003-05-30  Karl Berry  <karl@gnu.org>
94341
94342         * lib/mktime.c: update from libc.
94343
94344 2003-05-30  Bruno Haible  <bruno@clisp.org>
94345
94346         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94347         * config/config.rpath: Upgrade to gettext-0.12.1.
94348
94349 2003-05-30  Bruno Haible  <bruno@clisp.org>
94350
94351         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94352         * m4/nls.m4: New file, from gettext-0.12.1.
94353         * m4/po.m4: New file, from gettext-0.12.1.
94354         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94355
94356 2003-05-30  Bruno Haible  <bruno@clisp.org>
94357
94358         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94359         * lib/localcharset.h: Likewise.
94360         * lib/localcharset.c: Likewise.
94361
94362 2003-05-29  Karl Berry  <karl@gnu.org>
94363
94364         * config/config.rpath: update from gettext.
94365
94366 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94367
94368         Assume the headers required for C89 freestanding compilers.
94369         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94370         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94371         * m4/human.m4 (gl_HUMAN): Likewise.
94372         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94373         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94374         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94375         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94376         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94377         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94378
94379 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94380
94381         Assume the headers required for C89 freestanding compilers.
94382         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94383         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94384         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94385         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94386         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94387         define, since <limits.h> is guaranteed to do that.
94388         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94389         * lib/exclude.c: Include <stdbool.h> unconditionally.
94390         * lib/tempname.c: Include <stddef.h> unconditionally.
94391         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94392         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94393         <stddef.h> does that.
94394         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94395         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94396         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94397         needed.
94398         * lib/xstrtol.c: Likewise.
94399         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94400         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94401
94402         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94403         warnings on some platforms.
94404
94405         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94406         arbitrarily.
94407
94408 2003-05-26  Jim Meyering  <jim@meyering.net>
94409
94410         Merge in a change from coreutils:
94411         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94412         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94413         that condition, rather than `-1' which is slightly misleading.
94414         Change the name of the cache variable to have the gl_ prefix.
94415         Prompted by a patch from Richard Dawe for DJGPP.
94416
94417 2003-05-24  Karl Berry  <karl@gnu.org>
94418
94419         * config/config.guess: update from prep.
94420
94421 2003-05-22  Karl Berry  <karl@gnu.org>
94422
94423         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94424
94425 2003-05-20  Karl Berry  <karl@gnu.org>
94426
94427         * config/config.guess: update from prep.
94428
94429 2003-05-18  Karl Berry  <karl@gnu.org>
94430
94431         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94432         might actually be set by the user.
94433
94434         * config/depcomp, install-sh, mdate-sh: update from automake.
94435
94436 2003-05-17  Bruno Haible  <bruno@clisp.org>
94437
94438         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94439         invalid expansion for AC_EGREP_CPP.
94440         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94441         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94442         Suggested by Akim Demaille <akim@epita.fr> in
94443         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94444
94445 2003-05-12  Jim Meyering  <jim@meyering.net>
94446
94447         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94448         the space-padded-by-default conversion specifiers, %e, %k, %l.
94449
94450 2003-05-12  Bruno Haible  <bruno@clisp.org>
94451
94452         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94453         the string is longer than 4 KB.
94454
94455 2003-05-11  Karl Berry  <karl@gnu.org>
94456
94457         * config/config.{guess,sub}: update from prep.
94458
94459 2003-05-09  Bruno Haible  <bruno@clisp.org>
94460
94461         * modules/error: Add m4/strerror_r.m4 to file list.
94462
94463 2003-05-03  Bruno Haible  <bruno@clisp.org>
94464
94465         Upgrade to Unicode-4.0.
94466         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94467         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94468         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94469         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94470         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94471         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94472         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94473         Change width of U+E0100..U+E01EF from 1 to 0.
94474
94475 2003-04-25  Jim Meyering  <jim@meyering.net>
94476
94477         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94478         of type size_t, not int.
94479
94480 2003-04-25  Bruno Haible  <bruno@clisp.org>
94481
94482         * lib/copy-file.c: Include <stddef.h>, for size_t.
94483
94484 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94485
94486         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94487         code which expansion is under static control.  Patch imported from
94488         Akim Demaille's patch to Bison; see
94489         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94490
94491 2003-04-14  Bruno Haible  <bruno@clisp.org>
94492
94493         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94494
94495 2003-04-11  Jim Meyering  <jim@meyering.net>
94496
94497         Merge changes from Coreutils.
94498
94499         2003-03-22  Jim Meyering  <jim@meyering.net>
94500
94501         * lib/strftime.c (widen): Cast alloca return value to proper type.
94502
94503         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94504
94505         From GNU libc.
94506         * lib/strftime.c (my_strftime): Handle very large width
94507         specifications for numeric values correctly.  Improve checks for
94508         overflow.
94509
94510         2003-01-19  Jim Meyering  <jim@meyering.net>
94511
94512         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94513         definitions.
94514         (nl_get_alt_digit) [! defined my_strftime]: Define.
94515         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94516         _nl_get_alt_digit and _nl_get_walt_digit.
94517
94518         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94519         libc. These changes have no effect outside of _LIBC.
94520
94521 2003-04-10  Bruno Haible  <bruno@clisp.org>
94522
94523         * modules/findprog: New file.
94524         * MODULES.html.sh (func_all_modules): Add it.
94525
94526 2003-04-10  Bruno Haible  <bruno@clisp.org>
94527
94528         * m4/findprog.m4: New file.
94529         * m4/eaccess.m4: New file.
94530
94531 2003-04-10  Bruno Haible  <bruno@clisp.org>
94532
94533         * lib/findprog.h: New file, from GNU gettext.
94534         * lib/findprog.c: New file, from GNU gettext.
94535
94536 2003-04-05  Jim Meyering  <jim@meyering.net>
94537
94538         Merge changes from Coreutils.
94539
94540         * lib/exclude.h (PARAMS): Remove definition and uses.
94541         * lib/exclude.c: Remove uses of `PARAMS'.
94542
94543         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94544         Add test-cases for DOS filenames. Declare program_name.
94545         (main): Set up program_name.  Patch by Rich Dawe.
94546
94547         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94548         error from mntctl.
94549         Use mntctl's return value to drive the entry-processing loop, since
94550         we can't rely on the value of the vmt_length member in the last
94551         entry.  On some systems doing so could result in exhausting
94552         virtual memory.  Based in part on a patch from Mike Jetzer.
94553
94554 2003-04-04  Bruno Haible  <bruno@clisp.org>
94555
94556         * modules/linebreak: New file.
94557         * MODULES.html.sh (func_all_modules): Add it.
94558
94559 2003-04-04  Bruno Haible  <bruno@clisp.org>
94560
94561         * m4/linebreak.m4: New file.
94562
94563 2003-04-04  Bruno Haible  <bruno@clisp.org>
94564
94565         * lib/linebreak.h: New file, from GNU gettext.
94566         * lib/linebreak.c: New file, from GNU gettext with slight
94567         modifications.
94568         * lib/lbrkprop.h: New file, from GNU gettext.
94569
94570 2003-04-03  Bruno Haible  <bruno@clisp.org>
94571
94572         * modules/utf8-ucs4: New file.
94573         * modules/utf16-ucs4: New file.
94574         * modules/ucs4-utf8: New file.
94575         * modules/ucs4-utf16: New file.
94576         * MODULES.html.sh (func_all_modules): Add them.
94577
94578 2003-04-03  Bruno Haible  <bruno@clisp.org>
94579
94580         * m4/utf-ucs4.m4: New file.
94581         * m4/ucs4-utf.m4: New file.
94582
94583 2003-04-03  Bruno Haible  <bruno@clisp.org>
94584
94585         * lib/utf8-ucs4.h: New file, from GNU gettext.
94586         * lib/utf16-ucs4.h: New file, from GNU gettext.
94587         * lib/ucs4-utf8.h: New file, from GNU gettext.
94588         * lib/ucs4-utf16.h: New file, from GNU gettext.
94589
94590 2003-04-02  Bruno Haible  <bruno@clisp.org>
94591
94592         * modules/binary-io: New file.
94593         * MODULES.html.sh (func_all_modules): Add it.
94594
94595 2003-04-02  Bruno Haible  <bruno@clisp.org>
94596
94597         * lib/binary-io.h: New file, from GNU gettext.
94598
94599 2003-04-01  Bruno Haible  <bruno@clisp.org>
94600
94601         * modules/pathname: New file.
94602         * MODULES.html.sh (func_all_modules): Add it.
94603
94604 2003-04-01  Bruno Haible  <bruno@clisp.org>
94605
94606         * lib/pathname.h: New file, from GNU gettext.
94607         * lib/concatpath.c: New file, from GNU gettext.
94608
94609 2003-03-30  Bruno Haible  <bruno@clisp.org>
94610
94611         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94612
94613 2003-03-30  Bruno Haible  <bruno@clisp.org>
94614
94615         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94616         function chown() doesn't exist.
94617
94618 2003-03-28  Bruno Haible  <bruno@clisp.org>
94619
94620         * modules/copy-file: New file.
94621         * MODULES.html.sh (func_all_modules): Add it.
94622
94623 2003-03-28  Bruno Haible  <bruno@clisp.org>
94624
94625         * m4/copy-file.m4: New file.
94626
94627 2003-03-28  Bruno Haible  <bruno@clisp.org>
94628
94629         * lib/copy-file.h: New file, from GNU gettext.
94630         * lib/copy-file.c: New file, from GNU gettext.
94631
94632 2003-03-18  Jim Meyering  <jim@meyering.net>
94633
94634         * lib/quote.c (quote_n): Fix typo in comment.
94635
94636 2003-03-18  Bruno Haible  <bruno@clisp.org>
94637
94638         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94639         checking.
94640         * m4/onceonly_2_57.m4: Likewise.
94641
94642 2003-03-17  Bruno Haible  <bruno@clisp.org>
94643
94644         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94645         (m4_quote): Remove macro.
94646         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94647
94648 2003-03-14  Jim Meyering  <jim@meyering.net>
94649
94650         Merge changes from Coreutils.
94651         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94652         to be const, in order to avoid warnings.
94653         (obstack_room): Likewise.
94654         (obstack_empty_p): Likewise.
94655
94656 2003-03-14  Bruno Haible  <bruno@clisp.org>
94657
94658         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94659         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94660
94661 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94662
94663         Merge changes from Bison.
94664         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94665         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94666         when compiling Bison 1.875's `bitset bset = obstack_alloc
94667         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94668         * lib/hash.c: Include <stdbool.h> unconditionally.
94669
94670 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94671
94672         * m4/onceonly.m4 (m4_quote): New macro.
94673         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94674         Quote AC_FOREACH variable-expansions properly.
94675
94676 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94677
94678         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94679
94680 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94681
94682         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94683         Reported by Bruce Becker; see:
94684         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94685
94686 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94687             Bruno Haible  <bruno@clisp.org>
94688
94689         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94690         Reported by John Hughes, see
94691         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94692
94693 2003-02-20  Bruno Haible  <bruno@clisp.org>
94694
94695         * MODULES.html.sh (func_all_modules): Add poll.
94696
94697 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94698
94699         * modules/poll: New file.
94700
94701 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94702
94703         * lib/poll_.h: New file.
94704         * lib/poll.c: New file.
94705
94706 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94707
94708         * m4/poll.m4: New file.
94709
94710 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94711
94712         * modules/mathl: New file.
94713
94714 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94715
94716         * lib/mathl.h: New file.
94717         * lib/acosl.c: New file.
94718         * lib/asinl.c: New file.
94719         * lib/atanl.c: New file.
94720         * lib/ceill.c: New file.
94721         * lib/cosl.c: New file.
94722         * lib/expl.c: New file.
94723         * lib/floorl.c: New file.
94724         * lib/frexpl.c: New file.
94725         * lib/ldexpl.c: New file.
94726         * lib/logl.c: New file.
94727         * lib/sincosl.c: New file.
94728         * lib/sinl.c: New file.
94729         * lib/sqrtl.c: New file.
94730         * lib/tanl.c: New file.
94731         * lib/trigl.c: New file.
94732         * lib/trigl.h: New file.
94733
94734 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94735
94736         * m4/mathl.m4: New file.
94737
94738 2003-02-18  Bruno Haible  <bruno@clisp.org>
94739
94740         * MODULES.html.sh (func_all_modules): Add mathl.
94741
94742 2003-02-17  Bruno Haible  <bruno@clisp.org>
94743
94744         * modules/mkdtemp: New module.
94745         * MODULES.html.sh (func_all_modules): Add it.
94746
94747 2003-02-17  Bruno Haible  <bruno@clisp.org>
94748
94749         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94750
94751 2003-02-17  Bruno Haible  <bruno@clisp.org>
94752
94753         * lib/mkdtemp.h: New file, from GNU gettext.
94754         * lib/mkdtemp.c: New file, from GNU gettext.
94755
94756 2003-02-02  Jim Meyering  <jim@meyering.net>
94757
94758         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94759         e.g. glibc-2.2.93.
94760
94761 2003-01-31  Bruno Haible  <bruno@clisp.org>
94762
94763         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94764         'rpl_rename'.
94765         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94766         'rpl_strnlen'.
94767         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94768         'rpl_strtod'.
94769         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94770         'rpl_utime'.
94771
94772 2003-01-31  Bruno Haible  <bruno@clisp.org>
94773
94774         * lib/rename.c: #undef rename before defining rpl_rename.
94775         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94776
94777 2003-01-30  Bruno Haible  <bruno@clisp.org>
94778
94779         * modules/vasnprintf, modules/vasprintf: New modules.
94780         * MODULES.html.sh (func_all_modules): Add them.
94781
94782 2003-01-30  Bruno Haible  <bruno@clisp.org>
94783
94784         * m4/signed.m4: New file, from GNU gettext.
94785         * m4/longdouble.m4: New file, from GNU gettext.
94786         * m4/wchar_t.m4: New file, from GNU gettext.
94787         * m4/wint_t.m4: New file, from GNU gettext.
94788         * m4/vasnprintf.m4: New file.
94789         * m4/vasprintf.m4: New file.
94790
94791 2003-01-30  Bruno Haible  <bruno@clisp.org>
94792
94793         * lib/printf-args.h: New file, from GNU gettext.
94794         * lib/printf-args.c: New file, from GNU gettext.
94795         * lib/printf-parse.h: New file, from GNU gettext.
94796         * lib/printf-parse.c: New file, from GNU gettext.
94797         * lib/vasnprintf.h: New file, from GNU gettext.
94798         * lib/vasnprintf.c: New file, from GNU gettext.
94799         * lib/asnprintf.c: New file, from GNU gettext.
94800         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94801         * lib/vasprintf.c: New file, from GNU gettext.
94802         * lib/asprintf.c: New file, from GNU gettext.
94803
94804 2003-01-29  Bruno Haible  <bruno@clisp.org>
94805
94806         * modules/stpncpy: New module.
94807         * MODULES.html.sh (func_all_modules): Add it.
94808
94809 2003-01-29  Bruno Haible  <bruno@clisp.org>
94810
94811         * m4/stpncpy.m4: New file.
94812
94813 2003-01-29  Bruno Haible  <bruno@clisp.org>
94814
94815         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94816         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94817
94818 2003-01-28  Bruno Haible  <bruno@clisp.org>
94819
94820         * modules/c-ctype: New module.
94821         * MODULES.html.sh (func_all_modules): Add it.
94822
94823 2003-01-28  Bruno Haible  <bruno@clisp.org>
94824
94825         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94826         Paul Eggert.
94827         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94828         Paul Eggert.
94829
94830 2003-01-27  Bruno Haible  <bruno@clisp.org>
94831
94832         * modules/xsetenv: New module.
94833         * MODULES.html.sh (func_all_modules): Add it.
94834
94835 2003-01-27  Bruno Haible  <bruno@clisp.org>
94836
94837         * lib/xsetenv.h: New file, from GNU gettext.
94838         * lib/xsetenv.c: New file, from GNU gettext.
94839
94840 2003-01-23  Jim Meyering  <jim@meyering.net>
94841
94842         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94843         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94844
94845 2003-01-23  Bruno Haible  <bruno@clisp.org>
94846
94847         * modules/minmax: New module.
94848         * MODULES.html.sh (func_all_modules): Add it.
94849
94850 2003-01-23  Bruno Haible  <bruno@clisp.org>
94851
94852         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94853         Eggert.
94854
94855 2003-01-22  Bruno Haible  <bruno@clisp.org>
94856
94857         * modules/exit: New module.
94858         * MODULES.html.sh (func_all_modules): Add it.
94859
94860 2003-01-22  Bruno Haible  <bruno@clisp.org>
94861
94862         * lib/exit.h: New file, from GNU gettext.
94863
94864 2003-01-19  Bruno Haible  <bruno@clisp.org>
94865
94866         * gnulib-tool: Recognize option --extract-maintainer.
94867         (func_get_maintainer): New function.
94868         * modules/*: Add Maintainer entry.
94869
94870 2003-01-16  Jim Meyering  <jim@meyering.net>
94871
94872         * m4/regex.m4: The `regex' struct is both input and output.
94873         Initialize it before each use.  Patch by Tim Waugh.
94874
94875 2003-01-16  Bruno Haible  <bruno@clisp.org>
94876
94877         * MODULES.html.sh: Add a table of contents. Add the module name as
94878         leftmost column. Add hyperlinks.
94879
94880 2003-01-15  Bruno Haible  <bruno@clisp.org>
94881
94882         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94883
94884 2003-01-15  Bruno Haible  <bruno@clisp.org>
94885
94886         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94887         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94888         suffix.
94889
94890 2003-01-15  Bruno Haible  <bruno@clisp.org>
94891
94892         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94893
94894 2003-01-15  Bruno Haible  <bruno@clisp.org>
94895
94896         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94897         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94898
94899 2003-01-14  Jim Meyering  <jim@meyering.net>
94900
94901         * lib/same.c (same_name): Tweak a comment.
94902
94903 2003-01-14  Bruno Haible  <bruno@clisp.org>
94904
94905         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94906         when a string comparison is sufficient.
94907
94908 2003-01-14  Bruno Haible  <bruno@clisp.org>
94909
94910         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94911         'unsigned int'.
94912
94913 2003-01-14  Bruno Haible  <bruno@clisp.org>
94914
94915         * lib/hash-pjw.c: Add comment about low quality of this function.
94916
94917 2003-01-13  Bruno Haible  <bruno@clisp.org>
94918
94919         * modules/stpcpy: Distribute lib/stpcpy.h.
94920         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94921
94922 2003-01-13  Bruno Haible  <bruno@clisp.org>
94923
94924         * modules/*: Add a description.
94925         * modules/strpbrk: Fix Makefile.am snippet.
94926         * modules/strtoimax: Fix dependencies.
94927         * modules/strtoumax: Likewise.
94928
94929 2003-01-13  Bruno Haible  <bruno@clisp.org>
94930
94931         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94932         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94933         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94934
94935 2003-01-13  Bruno Haible  <bruno@clisp.org>
94936
94937         * gnulib-tool (func_create_testdir): Store config/* files in the main
94938         directory.
94939         * config.rpath: Move to ...
94940         * config/config.rpath: ... here.
94941         * modules/gettext: Contains config/config.rpath, not config.rpath.
94942         * modules/iconv: Likewise.
94943
94944 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94945
94946         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94947         to avoid collisions with libcurses and libreadline.
94948
94949         * m4/getstr.m4: Remove.
94950         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94951
94952 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94953
94954         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94955         to avoid collisions with libcurses and libreadline.
94956
94957         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94958         * lib/getstr.h, getstr.c: Remove.
94959         * lib/getline.c: Include "getline.h", to check interface.
94960         Move body of old getstr.c here: this defines MIN_CHUNK and
94961         declares getdelim2, which is renamed from getstr.
94962         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94963
94964         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94965         All uses changed.
94966         * lib/linebuffer.h: Likewise.
94967         (readline): Remove backward-compatibility macro.
94968
94969 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94970
94971         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94972         to avoid collisions with libcurses and libreadline.
94973         * getstr: Remove.
94974         * MODULES.html.sh: Remove getstr.
94975         * modules/getline: Depend on unlocked-io, not getstr.
94976
94977 2003-01-12  Jim Meyering  <jim@meyering.net>
94978
94979         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94980
94981 2003-01-10  Bruno Haible  <bruno@clisp.org>
94982
94983         * modules/alloca: Change Makefile.am requirements. Simplify Include
94984         requirements. Add lib/alloca_.h to file list.
94985
94986 2003-01-10  Bruno Haible  <bruno@clisp.org>
94987
94988         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94989
94990 2003-01-10  Bruno Haible  <bruno@clisp.org>
94991
94992         * lib/alloca_.h: New file.
94993         * lib/getdate.y: Unconditionally include alloca.h.
94994         * lib/makepath.c: Likewise.
94995         * lib/setenv.c: Likewise.
94996         * lib/userspec.c: Likewise.
94997
94998 2003-01-09  Karl Berry  <karl@gnu.org>
94999
95000         * MODULES.html.sh: include `dirname $0` in PATH, to find
95001         gnulib-tool.
95002
95003 2003-01-09  Bruno Haible  <bruno@clisp.org>
95004
95005         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95006         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95007
95008 2003-01-09  Bruno Haible  <bruno@clisp.org>
95009
95010         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95011
95012 2003-01-09  Bruno Haible  <bruno@clisp.org>
95013
95014         * lib/stdbool.h.in: New file.
95015
95016 2003-01-09  Bruno Haible  <bruno@clisp.org>
95017
95018         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95019         * MODULES.html.sh: Likewise.
95020
95021 2003-01-08  Jim Meyering  <jim@meyering.net>
95022
95023         * lib/full-write.c: Undefine and define-away `const' after inclusion
95024         of errno.h, not before.  Suggestion from Bruno Haible.
95025
95026 2003-01-08  Bruno Haible  <bruno@clisp.org>
95027
95028         * modules/full-read: Depend on full-write.
95029
95030 2003-01-08  Bruno Haible  <bruno@clisp.org>
95031
95032         * lib/safe-read.c: Include specification header first, to ensure its
95033         selfcontainedness.
95034         * lib/full-write.c: Likewise.
95035
95036 2003-01-07  Jim Meyering  <jim@meyering.net>
95037
95038         * lib/full-write.c: Rework so that it may serve to define full_read,
95039         too.
95040         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95041
95042 2003-01-07  Bruno Haible  <bruno@clisp.org>
95043
95044         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95045         <inttypes.h>.
95046         * lib/xstrtol.h: Likewise.
95047         * lib/xstrtoimax.c: Likewise.
95048         * lib/xstrtoumax.c: Likewise.
95049         * lib/human.h: Likewise.
95050
95051         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95052         on systems that have <inttypes.h> but not <stdint.h>.
95053
95054 2003-01-07  Bruno Haible  <bruno@clisp.org>
95055
95056         * MODULES.html.sh: Add copyright notice.
95057         (missed_files): Omit CVS directory entries.
95058         (func_module): Make it work with sed-3.02.
95059         * MODULES.txt: Remove file.
95060
95061 2003-01-06  Jim Meyering  <jim@meyering.net>
95062
95063         * lib/version-etc.c: Update year in translatable copyright string.
95064
95065 2003-01-03  Karl Berry  <karl@gnu.org>
95066
95067         * config/config.{guess,sub}: update from prep.
95068
95069 2003-01-02  Karl Berry  <karl@gnu.org>
95070
95071         * doc/COPYING.DOC: belatedly updated to 1.2.
95072
95073 2003-01-01  Karl Berry  <karl@gnu.org>
95074
95075         * gnulib-tool (func_verify_module): report module name $module in
95076         error message, not $1.
95077         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95078         be created, only if it doesn't exist.
95079         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95080
95081 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95082
95083         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95084
95085 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95086
95087         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95088         memcmp if strcoll doesn't work.
95089
95090 2002-12-31  Bruno Haible  <bruno@clisp.org>
95091
95092         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95093         nonempty.
95094
95095 2002-12-31  Bruno Haible  <bruno@clisp.org>
95096
95097         * lib/memcoll.c (STRCOLL): New macro.
95098         (memcoll): Use it.
95099
95100 2002-12-31  Bruno Haible  <bruno@clisp.org>
95101
95102         * lib/localcharset.h: New file.
95103         * lib/localcharset.c: Include it.
95104         * lib/unicodeio.c: Likewise.
95105
95106 2002-12-31  Bruno Haible  <bruno@clisp.org>
95107
95108         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95109         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95110
95111 2002-12-31  Bruno Haible  <bruno@clisp.org>
95112
95113         * lib/getline.h: Include <stddef.h>, for size_t.
95114
95115         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95116         * lib/unicodeio.c: Don't include <stddef.h>.
95117
95118 2002-12-31  Bruno Haible  <bruno@clisp.org>
95119
95120         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95121         HAVE_TM_ZONE.
95122
95123 2002-12-24  Karl Berry  <karl@gnu.org>
95124
95125         * config/config.guess: update from prep.
95126
95127 2002-12-24  Bruno Haible  <bruno@clisp.org>
95128
95129         General infrasructure.
95130         * m4/README: Rewritten.
95131         * m4/onceonly.m4: New file.
95132         * m4/onceonly_2_57.m4: New file.
95133
95134         Module atexit.
95135         * m4/atexit.m4: New file.
95136
95137         Module strtod.
95138         * m4/strtod.m4: New file.
95139
95140         Module strtol.
95141         * m4/strtol.m4: New file.
95142
95143         Module strtoul.
95144         * m4/strtoul.m4: New file.
95145
95146         Module memchr.
95147         * m4/memchr.m4: New file.
95148
95149         Module memcmp.
95150         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95151         (jm_FUNC_MEMCMP): Invoke it.
95152
95153         Module memcpy.
95154         * m4/memcpy.m4: New file.
95155
95156         Module memmove.
95157         * m4/memmove.m4: New file.
95158
95159         Module memset.
95160         * m4/memset.m4: New file.
95161
95162         Module strcspn.
95163         * m4/strcspn.m4: New file.
95164
95165         Module strpbrk.
95166         * m4/strpbrk.m4: New file.
95167
95168         Module strstr.
95169         * m4/strstr.m4: New file.
95170
95171         Module strerror.
95172         * m4/strerror.m4: New file.
95173
95174         Module mktime.
95175         * m4/mktime.m4: Renamed from jm-mktime.m4.
95176         (gl_PREREQ_MKTIME): New macro.
95177         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95178
95179         Module malloc.
95180         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95181         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95182         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95183
95184         Module realloc.
95185         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95186         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95187         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95188
95189         Module strftime.
95190         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95191         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95192         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95193         gl_TM_GMTOFF.
95194         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95195
95196         Module xalloc.
95197         * m4/xalloc.m4: New file.
95198
95199         Module alloca.
95200         * m4/alloca.m4: New file.
95201
95202         Module putenv.
95203         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95204         (jm_FUNC_PUTENV): Invoke it.
95205
95206         Module setenv.
95207         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95208         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95209         when invoked twice.
95210         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95211         gt_FUNC_SETENV.
95212
95213         Module memrchr.
95214         * m4/memrchr.m4: New file.
95215
95216         Module stpcpy.
95217         * m4/stpcpy.m4: New file.
95218
95219         Module strcase.
95220         * m4/strcase.m4: New file.
95221
95222         Module strdup.
95223         * m4/strdup.m4: New file.
95224
95225         Module strnlen.
95226         * m4/strnlen.m4: New file.
95227
95228         Module strndup.
95229         * m4/strndup.m4: New file.
95230
95231         Module xstrtod.
95232         * m4/xstrtod.m4: New file.
95233
95234         Module xstrtol.
95235         * m4/xstrtol.m4: New file.
95236
95237         Module getdate.
95238         * m4/getdate.m4: New file.
95239
95240         Module unlocked-io.
95241         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95242         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95243         * m4/jm-glibc-io.m4n: Remove file.
95244
95245         Module long-options.
95246         * m4/long-options.m4: New file.
95247
95248         Module md5.
95249         * m4/md5.m4: New file.
95250
95251         Module sha.
95252         * m4/sha.m4: New file.
95253
95254         Module getstr.
95255         * m4/getstr.m4: New file.
95256
95257         Module getline.
95258         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95259         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95260         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95261         simply getline. Infoke gl_PREREQ_GETLINE.
95262
95263         Module obstack.
95264         * m4/obstack.m4: New file.
95265
95266         Module hash.
95267         * m4/hash.m4: New file.
95268
95269         Module readtokens.
95270         * m4/readtokens.m4: New file.
95271
95272         Module strverscmp.
95273         * m4/strverscmp.m4: New file.
95274
95275         Module stdbool.
95276         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95277         OSF/1.
95278
95279         Module strtoll.
95280         * m4/strtoll.m4: New file.
95281
95282         Module strtoull.
95283         * m4/strtoull.m4: New file.
95284
95285         Module strtoimax.
95286         * m4/strtoimax.m4: New file.
95287
95288         Module strtoumax.
95289         * m4/strtoumax.m4: New file.
95290
95291         Module xstrtoimax.
95292         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95293         jm_AC_PREREQ_XSTRTOIMAX.
95294         Moved the strtol prerequisites to strtol.m4.
95295         Moved the strtoll prerequisites to strtoll.m4.
95296         Moved the strtoimax prerequisites to strtoimax.m4.
95297
95298         Module xstrtoumax.
95299         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95300         jm_AC_PREREQ_XSTRTOUMAX.
95301         Moved the strtoul prerequisites to strtoul.m4.
95302         Moved the strtoull prerequisites to strtoull.m4.
95303         Moved the strtoumax prerequisites to strtoumax.m4.
95304
95305         Module chown.
95306         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95307         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95308
95309         Module dup2.
95310         * m4/dup2.m4: New file.
95311
95312         Module ftruncate.
95313         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95314         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95315
95316         Module getgroups.
95317         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95318         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95319
95320         Module gettimeofday.
95321         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95322         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95323         gl_PREREQ_GETTIMEOFDAY.
95324
95325         Module mkdir.
95326         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95327         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95328
95329         Module mkstemp.
95330         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95331         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95332         jm_AC_TYPE_UINTMAX_T.
95333         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95334
95335         Module stat.
95336         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95337         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95338
95339         Module lstat.
95340         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95341         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95342
95343         Module timespec.
95344         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95345         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95346         * m4/st_mtim.m4: Indentation.
95347
95348         Module nanosleep.
95349         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95350         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95351         gl_PREREQ_NANOSLEEP.
95352
95353         Module regex.
95354         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95355         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95356         (gl_REGEX): New macro.
95357
95358         Module rename.
95359         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95360         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95361
95362         Module rmdir.
95363         * m4/rmdir.m4: New file.
95364
95365         Module utime.
95366         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95367         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95368         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95369
95370         Module dirname.
95371         * m4/dirname.m4: New file.
95372
95373         Module getopt.
95374         * m4/getopt.m4: New file.
95375
95376         Module unistd-safer.
95377         * m4/unistd-safer.m4: New file.
95378
95379         Module fnmatch.
95380         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95381         declaration.
95382         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95383         (gl_FUNC_FNMATCH_POSIX): New macro.
95384         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95385         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95386         simply fnmatch.
95387
95388         Module exclude.
95389         * m4/exclude.m4: New file.
95390
95391         Module human.
95392         * m4/human.m4: New file.
95393
95394         Module acl.
95395         * m4/acl.m4: Nop.
95396
95397         Module backupfile.
95398         * m4/backupfile.m4: New file.
95399         * m4/d-ino.m4: Indentation.
95400
95401         Module fsusage.
95402         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95403         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95404         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95405
95406         Module dirfd.
95407         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95408         requirements.
95409
95410         Module euidaccess.
95411         * m4/euidaccess.m4: New file.
95412
95413         Module file-type.
95414         * m4/file-type.m4: New file.
95415
95416         Module fileblocks.
95417         * m4/fileblocks.m4: New file.
95418
95419         Module filemode.
95420         * m4/filemode.m4: New file.
95421
95422         Module isdir.
95423         * m4/isdir.m4: New file.
95424
95425         Module lchown.
95426         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95427         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95428
95429         Module makepath.
95430         * m4/makepath.m4: New file.
95431
95432         Module modechange.
95433         * m4/modechange.m4: New file.
95434
95435         Module mountlist.
95436         * m4/mountlist.m4: New file.
95437         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95438         Indentation.
95439
95440         Module path-concat.
95441         * m4/path-concat.m4: New file.
95442
95443         Module pathmax.
95444         * m4/pathmax.m4: New file.
95445
95446         Module same.
95447         * m4/same.m4: New file.
95448
95449         Module save-cwd.
95450         * m4/save-cwd.m4: New file.
95451
95452         Module savedir.
95453         * m4/savedir.m4: New file.
95454
95455         Module xgetcwd.
95456         * m4/xgetcwd.m4: New file.
95457         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95458
95459         Module xreadlink.
95460         * m4/xreadlink.m4: New file.
95461
95462         Module safe-read.
95463         * m4/safe-read.m4: New file.
95464
95465         Module safe-write.
95466         * m4/safe-write.m4: New file.
95467
95468         Module closeout.
95469         * m4/closeout.m4: New file.
95470
95471         Module stdio-safer.
95472         * m4/stdio-safer.m4: New file.
95473
95474         Module getpass.
95475         * m4/getpass.m4: New file.
95476
95477         Module getugroups.
95478         * m4/getugroups.m4: New file.
95479
95480         Module group-member.
95481         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95482         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95483
95484         Module idcache.
95485         * m4/idcache.m4: New file.
95486
95487         Module userspec.
95488         * m4/userspec.m4: New file.
95489
95490         Module gettime.
95491         * m4/clock_time.m4: New file.
95492         * m4/gettime.m4: New file.
95493
95494         Module settime.
95495         * m4/settime.m4: New file.
95496
95497         Module posixtm.
95498         * m4/posixtm.m4: New file.
95499
95500         Module gethostname.
95501         * m4/gethostname.m4: New file.
95502
95503         Module canon-host.
95504         * m4/canon-host.m4: New file.
95505
95506         Module gettext.
95507         * m4/codeset.m4: New file, from gettext-0.11.5.
95508         * m4/gettext.m4: New file, from gettext-0.11.5.
95509         * m4/glibc21.m4: New file, from gettext-0.11.5.
95510         * m4/iconv.m4: New file, from gettext-0.11.5.
95511         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95512         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95513         * m4/inttypes.m4: New file, from gettext-0.11.5.
95514         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95515         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95516         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95517         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95518         * m4/lib-link.m4: New file, from gettext-0.11.5.
95519         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95520         * m4/progtest.m4: New file, from gettext-0.11.5.
95521         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95522         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95523         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95524
95525         Module localcharset.
95526         * m4/localcharset.m4: New file.
95527
95528         Module hard-locale.
95529         * m4/hard-locale.m4: New file.
95530
95531         Module mbswidth.
95532         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95533         onceonly macros.
95534         * m4/mbrtowc.m4: Add comment.
95535
95536         Module memcasecmp.
95537         * m4/memcasecmp.m4: New file.
95538
95539         Module memcoll.
95540         * m4/memcoll.m4: New file.
95541
95542         Module unicodeio.
95543         * m4/unicodeio.m4: New file.
95544
95545         Module rpmatch.
95546         * m4/rpmatch.m4: New file.
95547
95548         Module yesno.
95549         * m4/yesno.m4: New file.
95550
95551         Module exitfail.
95552         * m4/exitfail.m4: New file.
95553
95554         Module c-stack.
95555         * m4/c-stack.m4 (gl_C_STACK): New macro.
95556         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95557
95558         Module error.
95559         * m4/error.m4 (gl_ERROR): New macro.
95560         (jm_PREREQ_ERROR): Use onceonly macros.
95561
95562         Module fatal.
95563         * m4/fatal.m4: New file.
95564
95565         Module getloadavg.
95566         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95567         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95568
95569         Module getpagesize.
95570         * m4/getpagesize.m4: New file.
95571
95572         Module getusershell.
95573         * m4/getusershell.m4: New file.
95574
95575         Module physmem.
95576         * m4/physmem.m4: New file.
95577
95578         Module posixver.
95579         * m4/posixver.m4: New file.
95580
95581         Module quotearg.
95582         * m4/quotearg.m4: New file.
95583
95584         Module quote.
95585         * m4/quote.m4: New file.
95586
95587         Module readutmp.
95588         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95589
95590         Module sig2str.
95591         * m4/sig2str.m4: New file.
95592
95593         Other.
95594         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95595         ulonglong.m4.
95596         * m4/intmax_t.m4: New file.
95597         * m4/d-type.m4: Indentation.
95598         * m4/jm-macros.m4: Update.
95599         * m4/prereq.m4 (jm_PREREQ): Update.
95600         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95601         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95602         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95603         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95604         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95605         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95606         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95607         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95608         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95609         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95610         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95611         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95612         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95613         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95614         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95615         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95616         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95617         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95618         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95619
95620 2002-12-24  Bruno Haible  <bruno@clisp.org>
95621
95622         * MODULES.txt: Update according to m4/ changes.
95623
95624         Module gettext.
95625         * config.rpath: New file, from gettext-0.11.5.
95626
95627         * modules/*: New module descriptions.
95628         * gnulib-tool: New file.
95629         * MODULES.html.sh: New file.
95630
95631 2002-12-21  Karl Berry  <karl@gnu.org>
95632
95633         * doc/fdl.texi: update to version 1.2.
95634
95635 2002-12-19  Karl Berry  <karl@gnu.org>
95636
95637         * config/config.guess: update from prep.
95638
95639 2002-12-18  Bruno Haible  <bruno@clisp.org>
95640
95641         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95642         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95643
95644 2002-12-17  Bruno Haible  <bruno@clisp.org>
95645
95646         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95647         stdlib.h, string.h.
95648
95649 2002-12-17  Bruno Haible  <bruno@clisp.org>
95650
95651         * lib/canon-host.c (strdup): Remove unused declaration.
95652
95653         * lib/fsusage.c: Include full_read.h.
95654         (get_fs_usage): Use full_read instead of safe_read.
95655
95656         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95657
95658 2002-12-12  Karl Berry  <karl@gnu.org>
95659
95660         * config/config.guess: update from prep.
95661
95662 2002-12-11  Bruno Haible  <bruno@clisp.org>
95663
95664         * m4/setenv.m4: New file, from gettext-0.11.5.
95665
95666 2002-12-11  Bruno Haible  <bruno@clisp.org>
95667
95668         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95669         not unsetenv().
95670         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95671         modifications:
95672
95673         2002-12-11  Bruno Haible  <bruno@clisp.org>
95674
95675                 * setenv.c (alloca): Fall back to malloc.
95676                 (freea): New macro.
95677                 (setenv): Use freea() to free memory allocated with alloca().
95678
95679         2002-11-13  Bruno Haible  <bruno@clisp.org>
95680
95681                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95682                 function declarations.
95683                 * unsetenv.c (unsetenv): Likewise.
95684
95685         2002-03-04  Bruno Haible  <bruno@clisp.org>
95686
95687                 Portability to AIX 4.3.3.
95688                 * unsetenv.c: New file, extracted from setenv.c.
95689                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95690
95691         2001-12-20  Bruno Haible  <bruno@clisp.org>
95692
95693                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95694                 use malloc instead. For SunOS 4.
95695
95696         2001-12-11  Bruno Haible  <bruno@clisp.org>
95697
95698                 * setenv.c: Declare alloca.
95699                 (compar_fn_t): New typedef.
95700                 (KNOWN_VALUE, STORE_VALUE): Use it.
95701
95702         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95703         setenv.h.
95704
95705 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95706
95707         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95708         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95709         Choose values that are less likely to collide with system fnmatch
95710         options.
95711         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95712         defined (e.g., a pure POSIX system).
95713         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95714         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95715
95716 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95717
95718         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95719         a pain in practice to deal with generated m4 files.  This change
95720         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95721
95722         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95723         and jm-glibc-io.m4, as they are no longer a special case.
95724         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95725         kludge and the auto-generation stuff.  Check only whether the
95726         functions are declared, not whether they exist, since older hosts
95727         that don't declare the functions can't use the optimization anyway.
95728
95729 2002-12-06  Jim Meyering  <jim@meyering.net>
95730
95731         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95732
95733         Merge in changes from libc's misc/error.c, in preparation
95734         for the merge of gnulib's changes back into libc.
95735
95736         * lib/error.c (_): Define only if not already defined.
95737         Move definition to follow all #include directives.
95738         Include unlocked-io.h only if !_LIBC.
95739         [_LIBC]: Include <libio/libioP.h>.
95740         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95741         (fflush): Tweak definition to use INTUSE.
95742         (putc): Define.
95743
95744 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95745
95746         * lib/alloca.c [defined emacs]: Include "lisp.h".
95747         (xalloc_die) [defined emacs]: New macro.
95748         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95749         [! defined emacs]: Include <xalloc.h>.
95750         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95751         (pointer): Typedef to POINTER_TYPE *.
95752         (malloc): Remove decl; we now always use xmalloc.
95753         (alloca): Use old-style definition, since Emacs needs this.
95754         Check for arithmetic overflow when computing combined size.
95755
95756 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95757
95758         Do not generate unlocked-io.h automatically, since it's easier to
95759         maintain it by hand.
95760
95761         * lib/unlocked-io.h: New file, from GNU diffutils,
95762         but with proper copyright notice and attribution.
95763         * lib/gen-uio: Remove.
95764         * lib/Makefile.am: Add copyright notice.
95765         (libfetish_a_SOURCES): Add unlocked-io.h.
95766         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95767         (DISTCLEANFILES, io_functions): Remove macros.
95768         (EXTRA_DIST): Remove gen_uio.
95769         (unlocked-io.h): Remove rule.
95770
95771 2002-12-04  Jim Meyering  <jim@meyering.net>
95772
95773         Reflect the fact that stat.c and lstat.c are no longer generated.
95774         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95775         (DISTCLEANFILES): Likewise.
95776         (EXTRA_DIST): Likewise.
95777         (all_local): Don't depend on stat.c or lstat.c.
95778         (stat.c, lstat.c): Remove rules.
95779         (EXTRA_DIST): Remove xstat.in.
95780
95781         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95782         * lib/stat.c: New file.  Contents mostly from xstat.in.
95783         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95784         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95785
95786         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95787         too.
95788         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95789
95790 2002-12-03  Jim Meyering  <jim@meyering.net>
95791
95792         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95793         but not semantics, to minimize the differences between these two files.
95794         (safe_read): Change comment to mention SAFE_READ_ERROR.
95795
95796         * lib/safe-read.c (IS_EINTR): Define.
95797         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95798
95799 2002-12-02  Jim Meyering  <jim@meyering.net>
95800
95801         * lib/safe-read.c (EINTR): Define.
95802         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95803         (INT_MAX): Provide fallback.
95804         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95805
95806         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95807
95808 2002-12-02  Bruno Haible  <bruno@clisp.org>
95809
95810         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95811         Define, taken from safe-read.c.
95812         (INT_MAX): Provide fallback.
95813         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95814         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95815
95816         * lib/safe-read.c (EINTR): Remove definition.
95817         (safe_read): Don't use EINTR if it is absent.
95818
95819 2002-12-01  Jim Meyering  <jim@meyering.net>
95820
95821         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95822         zero.
95823         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95824
95825 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95826
95827         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95828         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95829         with `if (! (value < limit)) abort ();', for readability.
95830
95831 2002-11-26  Karl Berry  <karl@gnu.org>
95832
95833         * lib/strdup.c: copy from libc again, with jim's ok.
95834         * lib/.cppi-disable: re-add strdup.c
95835
95836 2002-11-25  Karl Berry  <karl@gnu.org>
95837
95838         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95839         instead of "strtol.c".
95840
95841 2002-11-25  Karl Berry  <karl@gnu.org>
95842
95843         * config/install-sh: update from automake for variable quoting, $0 in
95844         error msgs, etc.
95845
95846         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95847         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95848         entry.
95849
95850 2002-11-25  Jim Meyering  <jim@meyering.net>
95851
95852         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95853
95854 2002-11-24  Karl Berry  <karl@gnu.org>
95855
95856         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95857         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95858
95859 2002-11-24  Jim Meyering  <jim@meyering.net>
95860
95861         Update from coreutils:
95862
95863         * lib/mktime.c: Merge in changes from libc.
95864
95865         Avoid a link-time failure on some Linux systems.
95866         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95867         (otherwise).
95868         (__mon_yday): Declare with the STATIC attribute.
95869         (__mktime_internal): Likewise.
95870         Based on a report from Greg Schafer.
95871
95872 2002-11-23  Jim Meyering  <jim@meyering.net>
95873
95874         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95875         Use `unsigned', not `int', as type of index.
95876
95877         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95878
95879         * lib/fsusage.c: Remove unneeded parentheses around operands of
95880         `defined'.
95881
95882 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95883
95884         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95885         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95886         so that we can be included first.
95887         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95888         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95889         No need to include stddef.h or sys/types.h any more.
95890         Surround local include files with "", not "<>".
95891         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95892         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95893         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95894         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95895         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95896         (ISPRINT): Remove; no longer needed now that we assume C89.
95897
95898         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95899         Preserve errno.
95900
95901         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95902         quotearg_char): Use SIZE_MAX rather than
95903         (size_t) -1 when we are talking about "infinity".
95904
95905         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95906
95907 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95908
95909         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95910         hint that one should use `if (! x) abort ();' rather than `assert
95911         (x);', and anyway it's one less thing to worry about configuring.
95912         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95913         hash_rehash, hash_insert): Use abort rather than assert.
95914
95915 2002-11-22  Bruno Haible  <bruno@clisp.org>
95916
95917         * lib/safe-read.h: Assume C89. Add comments.
95918         (safe_read): Change return type to size_t.
95919         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95920         byte counts > SSIZE_MAX correctly.
95921         * lib/safe-write.h: New file.
95922         * lib/safe-write.c: New file.
95923         * lib/full-read.h: New file.
95924         * lib/full-read.c: New file.
95925         * lib/full-write.h: Assume C89. Add comments.
95926         * lib/full-write.c: Include safe-write.h.
95927         (full_write): Rewritten to use safe_write.
95928         Suggested by Jim Meyering and Paul Eggert.
95929
95930 2002-11-21  Jim Meyering  <jim@meyering.net>
95931
95932         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95933
95934         Merge in changes from the coreutils.
95935
95936         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95937         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95938         <stdint.h>.
95939         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95940         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95941         int.  Work more efficiently if X is the same width as uintmax_t.
95942         Do not compare X to -1, to avoid bogus compiler warning.
95943         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95944         Don't assume that f_frsize and f_bsize are the same type.
95945
95946         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95947         warning on FreeBSD.
95948
95949         * lib/makepath.c (make_path): Restore umask *before* creating the final
95950         component.
95951         (make_path): Minor reformatting.
95952
95953         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95954         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95955         HAVE_MALLOC/HAVE_REALLOC.
95956
95957         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95958         dummy ones.  At least on GNU/Linux systems, `auto' means something
95959         else.
95960         From Michael Stone.
95961
95962 2002-11-21  Bruno Haible  <bruno@clisp.org>
95963
95964         Remove case insensitive option matching.
95965         * lib/argmatch.h (argcasematch): Remove declaration.
95966         (ARGCASEMATCH): Remove macro.
95967         (__xargmatch_internal): Remove case_sensitive argument.
95968         (XARGMATCH): Update.
95969         (XARGCASEMATCH): Remove macro.
95970         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95971         case_sensitive argument.
95972         (argcasematch): Remove function.
95973         (__xargmatch_internal): Remove case_sensitive argument.
95974         (main): Use XARGMATCH instead of XARGCASEMATCH.
95975
95976         * lib/xmalloc.c: Change compile-time error message. Add comment about
95977         required autoconf version.
95978
95979 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95980
95981         Merge argmatch cleanups from Bison.  Assume C89.
95982
95983         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95984         Include stdlib.h, for EXIT_FAILURE.
95985         Always include <string.h>, since we assume C89.
95986         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95987         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95988         Include <stddef.h> instead, since it's all we need for size_t.
95989         (PARAMS): Remove.  All uses removed.
95990         (ARRAY_CARDINALITY): Do not bother to #undef.
95991         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95992         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95993         Remove unnecessary parentheses.
95994         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95995         Insert necessary parentheses.
95996         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95997         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95998
95999 2002-11-19  Bruno Haible  <bruno@clisp.org>
96000
96001         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96002         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96003
96004         * lib/mbswidth.h (PARAMS): Remove macro.
96005         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96006         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96007
96008         * lib/gcd.h (PARAMS): Remove macro.
96009         (gcd): Use ANSI C function declarations.
96010         * lib/gcd.c (gcd): Likewise.
96011
96012 2002-11-15  Bruno Haible  <bruno@clisp.org>
96013
96014         * lib/strcspn.c: Include <stddef.h>.
96015         (strcspn): Use ANSI C function declaration. Change return type to
96016         size_t. Use NULL.
96017         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96018         (strpbrk): Use NULL.
96019         * lib/strpbrk.h (PARAMS): Remove macro.
96020         (strpbrk): Use ANSI C function declaration.
96021         * lib/strstr.c: Don't include <sys/types.h>.
96022         * lib/strstr.h (PARAMS): Remove macro.
96023         (strstr): Use ANSI C function declarations.
96024
96025 2002-11-14  Karl Berry  <karl@gnu.org>
96026
96027         * config/mkinstalldirs: `do' on separate line, instead of
96028         `for var; do'.
96029
96030 2002-11-06  Bruno Haible  <bruno@clisp.org>
96031
96032         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96033         * lib/gcd.c (gcd): Likewise.
96034
96035 2002-11-05  Bruno Haible  <bruno@clisp.org>
96036
96037         * lib/gcd.h: New file, from gettext-0.11.5.
96038         * lib/gcd.c: New file, from gettext-0.11.5.
96039
96040 2002-11-05  Bruno Haible  <bruno@clisp.org>
96041
96042         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96043         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96044         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96045         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96046
96047         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96048         <libintl.h>.
96049         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96050         <libintl.h>.
96051
96052         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96053         * lib/human.c: Include gettext.h instead of <libintl.h>.
96054         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96055         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96056         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96057         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96058         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96059         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96060         (textdomain): Remove definition.
96061         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96062
96063         * lib/long-options.c: Remove include of <libintl.h> and definition of
96064         _.
96065         * lib/same.c: Remove include of <libintl.h> and definition of _.
96066
96067 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96068
96069         * lib/config.charset: A few additions for Solaris.
96070
96071 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96072
96073         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96074         * lib/localcharset.c (locale_charset): Declare as extern "C".
96075
96076 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96077
96078         * lib/config.charset: msdos in uk_UA uses CP1125.
96079
96080 2002-11-04  Bruno Haible  <bruno@clisp.org>
96081
96082         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96083         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96084         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96085         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96086         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96087
96088 2002-11-04  Bruno Haible  <bruno@clisp.org>
96089
96090         * lib/localcharset.c (locale_charset): Don't return an empty string.
96091
96092 2002-11-04  Bruno Haible  <bruno@clisp.org>
96093
96094         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96095         aliases.
96096
96097 2002-11-04  Bruno Haible  <bruno@clisp.org>
96098
96099         * lib/config.charset: Update for newest glibc. Add canonical names
96100         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96101
96102 2002-11-04  Bruno Haible  <bruno@clisp.org>
96103
96104         * lib/config.charset: Add support for NetBSD.
96105
96106 2002-11-04  Bruno Haible  <bruno@clisp.org>
96107
96108         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96109
96110 2002-11-01  Bruno Haible  <bruno@clisp.org>
96111
96112         * configure.in: Add AC_CONFIG_AUX_DIR call.
96113         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96114         test/Makefile.
96115         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96116
96117 2002-09-28  Karl Berry  <karl@gnu.org>
96118
96119         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96120         installed automake until the next release, since changes have been
96121         made.
96122
96123 2002-09-25  Karl Berry  <karl@gnu.org>
96124
96125         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96126         * lib/getopt*: copy from libc/posix.
96127         * lib/gettext.h: copy from gettext.
96128         * lib/.cppi-disable: add strdup.c, gettext.h.
96129
96130 2002-09-25  Karl Berry  <karl@gnu.org>
96131
96132         * config/srclist.txt: enable gettext.h check.
96133         * config/config.{guess,sub}: update from prep.
96134         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96135                 from automake 1.6.3.
96136         See srclist*.
96137
96138 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96139
96140         * regex.c (PATFETCH): Remove the translating fetch.
96141         (PATFETCH_RAW): Rename to PATFETCH.
96142         (set_image_of_range): New fun.
96143         (SET_RANGE_TABLE_WORK_AREA): Use it.
96144         (regex_compile): Don't translate the pattern chars so eagerly.
96145         Only do it when inserting an `exactn' bytecode or when handling
96146         a char-range.
96147         (mutually_exclusive_p): Avoid empty statement.
96148
96149 2002-07-06  Jim Meyering  <meyering@lucent.com>
96150
96151         * m4/README: Don't mention Makefile.am.in.
96152         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96153
96154 2002-07-01  Jim Meyering  <meyering@lucent.com>
96155
96156         * lib/c-stack.c: Include sys/time.h.
96157         From Volker Borchert.
96158
96159 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96160
96161         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96162
96163 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96164
96165         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96166         New macro.  Use it uniformly instead of
96167         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96168         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96169         reported by Vin Shelton.
96170
96171 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96172
96173         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96174         Do not assume SA_SIGINFO behavior.
96175         Bug reported by Jim Meyering on NetBSD 1.5.2.
96176
96177 2002-06-22  Jim Meyering  <meyering@lucent.com>
96178
96179         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96180         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96181
96182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96183         now that configure.ac uses AC_GNU_SOURCE.
96184         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96185         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96186
96187         Update to latest tools.  Suggestions from Paul Eggert.
96188         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96189         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96190         * m4/fnmatch.m4: Likewise.
96191         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96192         to AC_HEADER_STDBOOL
96193
96194 2002-06-22  Jim Meyering  <meyering@lucent.com>
96195
96196         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96197         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96198
96199 2002-06-22  Jim Meyering  <meyering@lucent.com>
96200
96201         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96202
96203         * lib/exitfail.c, exitfail.h: Likewise.
96204         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96205
96206         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96207         of fnmatch.h.
96208         (EXTRA_DIST): Add fnmatch_loop.c.
96209         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96210
96211         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96212         * lib/fnmatch.c: Update from diffutils-2.8.2.
96213         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96214         * lib/fnmatch.h: Remove file.
96215
96216 2002-06-21  Jim Meyering  <meyering@lucent.com>
96217
96218         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96219         * m4/mbrtowc.m4: Likewise.
96220
96221         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96222         * m4/mbswidth.m4: Reflect name change:
96223         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96224         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96225
96226         * m4/lib-link.m4: Update from gettext-0.11.2.
96227         * m4/gettext.m4: Likewise.
96228
96229         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96230         From Alfred M. Szmidt.
96231
96232 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96233
96234         * lib/file-type.h: Report an error if neither S_ISREG nor
96235         S_IFREG is defined, instead of using a test specific to glibc
96236         2.2.  This should be safe, since POSIX requires S_ISREG and
96237         Unix Version 7 had S_IFREG.  We don't need to check for
96238         <sys/types.h> since we don't use any symbols that it defines.
96239
96240 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96241
96242         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96243         $@-t, so that each temporary file name is unique and valid in the first
96244         8 characters, for operation under DOS.
96245
96246 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96247
96248         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96249
96250 2002-06-15  Jim Meyering  <meyering@lucent.com>
96251
96252         Work even with DJGPP 2.03, which lacks support for symlinks.
96253         From Richard Dawe.
96254         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96255         is defined.
96256         * lib/lchown.c (S_ISLNK): Likewise.
96257
96258 2002-06-15  Jim Meyering  <meyering@lucent.com>
96259
96260         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96261         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96262         have been included before this file.
96263
96264 2002-06-14  Jim Meyering  <meyering@lucent.com>
96265
96266         * lib/file-type.h: Use the version from diffutils-2.8.2.
96267         * lib/file-type.c: Likewise.
96268
96269 2002-06-07  Jim Meyering  <meyering@lucent.com>
96270
96271         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96272         They're needed at least for NetBSD 1.5.2.
96273         ($statxfs_includes): Include those same headers.
96274         ($statxfs_includes): Include sys/vfs.h if available.
96275         ($statxfs_includes): Likewise for sys/statvfs.h.
96276         Check for the following members in both structs statfs and statvfs:
96277         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96278
96279 2002-06-01  Jim Meyering  <meyering@lucent.com>
96280
96281         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96282         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96283
96284 2002-05-28  Jim Meyering  <meyering@lucent.com>
96285
96286         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96287         Reported by Volker Borchert.
96288
96289 2002-05-27  Jim Meyering  <meyering@lucent.com>
96290
96291         Fix a problem seen only on nonconforming systems whereby ls.c's
96292         use of localtime, and then of gettimeofday would cause trouble:
96293         the localtime call used to initialize rpl_gettimeofday's save
96294         mechanism would clobber ls's current local time information so
96295         that in any long listing the first file would always be listed
96296         with date 1970-01-01.  Analysis by Volker Borchert.
96297
96298         * lib/gettimeofday.c (localtime): Undefine.
96299         (rpl_localtime): New function.
96300
96301 2002-05-27  Jim Meyering  <meyering@lucent.com>
96302
96303         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96304         localtime.
96305
96306         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96307         use the replacement function; it wouldn't resolve at link time.
96308         Reported by Volker Borchert.
96309
96310 2002-05-22  Jim Meyering  <meyering@lucent.com>
96311
96312         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96313         file-type.h.
96314         * lib/file-type.h: New file.
96315         * lib/file-type.c (file_type): New file/function.  Extracted from
96316         diffutils.
96317
96318 2002-04-30  Jim Meyering  <meyering@lucent.com>
96319
96320         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96321
96322 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96323
96324         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96325
96326 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96327
96328         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96329         Do not check for alloca.h (no longer used) or stdbool.h (was never
96330         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96331
96332 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96333
96334         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96335
96336 2002-04-29  Jim Meyering  <meyering@lucent.com>
96337
96338         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96339         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96340         Use AC_FUNC_STRNLEN here instead.
96341
96342         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96343         With autoconf-2.53a, it's part of AC_PROG_CC.
96344
96345 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96346
96347         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96348         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96349
96350 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96351
96352         * lib/sig2str.h, lib/sig2str.c: New files.
96353         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96354
96355 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96356
96357         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96358         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96359         of 127, since 64 is the largest conceivable number for ancient
96360         nonstandard hosts.
96361         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96362
96363 2002-04-28  Jim Meyering  <meyering@lucent.com>
96364
96365         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96366
96367 2002-04-24  Jim Meyering  <meyering@lucent.com>
96368
96369         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96370         (jm_PREREQ): Use it.
96371
96372         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96373         mach/mach.h fcntl.h.
96374         Check for this function: setlocale.
96375
96376 2002-04-24  Jim Meyering  <meyering@lucent.com>
96377
96378         * lib/gettext.h: New file, from Gettext.
96379         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96380         (libfetish_a_SOURCES): Add gettext.h.
96381
96382 2002-04-16  Jim Meyering  <meyering@lucent.com>
96383
96384         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96385         ut_pid, ut_id, ut_exit.
96386
96387 2002-04-16  Jim Meyering  <meyering@lucent.com>
96388
96389         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96390         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96391         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96392
96393 2002-04-12  Jim Meyering  <meyering@lucent.com>
96394
96395         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96396         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96397         existence of the getmntinfo function.  Needed for Darwin 5.3.
96398
96399         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96400         This is necessary at least on Darwin 5.3.
96401
96402         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96403         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96404         strnlen.o in the library, and that makes some versions of ranlib
96405         object.
96406
96407 2002-04-12  Jim Meyering  <meyering@lucent.com>
96408
96409         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96410
96411 2002-04-09  Jim Meyering  <meyering@lucent.com>
96412
96413         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96414         to be more precise.  Rather than saying we're checking whether the
96415         function `works', say what we're testing.
96416         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96417         Reported by Bruno Haible.
96418
96419 2002-03-10  Jim Meyering  <meyering@lucent.com>
96420
96421         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96422         Suggestion from Santiago Vila.
96423
96424 2002-03-08  Jim Meyering  <meyering@lucent.com>
96425
96426         * lib/rename.c: Mention that this wrapper is needed also on
96427         mips-dec-ultrix4.4 systems.
96428
96429 2002-03-02  Jim Meyering  <meyering@lucent.com>
96430
96431         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96432         not HAVE_CLOCK_SETTIME.
96433
96434 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96435
96436         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96437         Check for clock_settime.
96438
96439 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96440
96441         * lib/nanosleep.h: Rename to....
96442         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96443
96444         * lib/gettime.c: New file.
96445         * lib/settime.c: New file.
96446         * lib/stime.c: Remove.
96447
96448         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96449         timespec.h.  Remove nanosleep.h.
96450
96451 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96452
96453         * m4/acl.m4: New file.
96454         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96455         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96456
96457 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96458
96459         * lib/acl.c, lib/acl.h: New files.
96460         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96461
96462 2002-02-24  Jim Meyering  <meyering@lucent.com>
96463
96464         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96465         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96466         cause trouble.  Reported by Nelson Beebe.
96467
96468 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96469
96470         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96471         compilers that don't know that xalloc_die never returns.
96472
96473 2002-02-20  Jim Meyering  <meyering@lucent.com>
96474
96475         * lib/getdate.c: Regenerate using bison-1.33.
96476
96477 2002-02-17  Jim Meyering  <meyering@lucent.com>
96478
96479         * config/config.guess (main): Don't use `head -1'; it's no longer
96480         portable. Use `sed 1q' instead.
96481
96482 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96483
96484         * m4/codeset.m4: Upgrade to gettext-0.11.
96485         * m4/gettext.m4: Upgrade to gettext-0.11.
96486         * m4/glibc21.m4: Upgrade to gettext-0.11.
96487         * m4/iconv.m4: Upgrade to gettext-0.11.
96488         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96489         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96490         * m4/lib-ld.m4: New file, from gettext-0.11.
96491         * m4/lib-link.m4: New file, from gettext-0.11.
96492         * m4/lib-prefix.m4: New file, from gettext-0.11.
96493         * m4/progtest.m4: Upgrade to gettext-0.11.
96494
96495 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96496
96497         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96498         (jm_PREREQ): Use it.
96499
96500 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96501
96502         * lib/posixver.c, lib/posixver.h: New files.
96503         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96504
96505 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96506             Bruno Haible  <bruno@clisp.org>
96507
96508         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96509         (fwrite_success_callback): New declaration.
96510         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96511         print_unicode_char. Call failure callback instead of error.
96512         (fwrite_success_callback): New function.
96513         (exit_failure_callback): New function.
96514         (fallback_failure_callback): New function.
96515         (print_unicode_char): Call unicode_to_mb.
96516
96517 2002-01-26  Jim Meyering  <meyering@lucent.com>
96518
96519         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96520         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96521
96522 2002-01-26  Jim Meyering  <meyering@lucent.com>
96523
96524         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96525
96526 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96527
96528         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96529
96530 2002-01-22  Jim Meyering  <meyering@lucent.com>
96531
96532         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96533         Otherwise, some versions of automake would omit the rule that makes
96534         Makefile from Makefile.in.
96535
96536 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96537
96538         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96539         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96540         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96541         (memcoll): Set errno to zero if there is no error.
96542
96543         * lib/quotearg.c (quotearg_buffer_restyled):
96544         Fix bug with quoting buffers containing NUL when backslashing escapes.
96545         This bug was exposed by the other changes in this patch.
96546         (quotearg_n_options): New arg ARGSIZE.
96547         All callers changed.
96548         (quoting_options_from_style): New function.
96549         (quotearg_n_style): Use it.
96550         (quotearg_n_style_mem): New function.
96551
96552         * lib/quotearg.h (quotearg_n_style_mem): New function.
96553
96554 2002-01-19  Jim Meyering  <meyering@lucent.com>
96555
96556         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96557         Remove useless quotes: DF_PROG="df".
96558         * m4/strnlen.m4: New file.
96559
96560 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96561
96562         * lib/backupfile.c (ISDIGIT): Comment fix.
96563         * lib/getdate.y (ISDIGIT): Likewise.
96564         * lib/posixtm.c (ISDIGIT, year): Likewise.
96565         * lib/strverscmp.c (ISDIGIT): Likewise.
96566         * lib/userspec.c (ISDIGIT): Likewise.
96567
96568 2002-01-16  Jim Meyering  <meyering@lucent.com>
96569
96570         * lib/getdate.y: Add three semicolons, each just before a closing
96571         brace. Bison (as of version 1.31) no longer papers over that mistake.
96572
96573 2002-01-05  Jim Meyering  <meyering@lucent.com>
96574
96575         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96576
96577 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96578
96579         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96580         not silently exit merely because the output buffer happens to
96581         have nothing pending.
96582
96583 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96584
96585         See the big note in ../ChangeLog.
96586         * lib/human.c (suffixes): Prefer K to k for 1024.
96587         (generate_suffix_backwards): New function.
96588         (human_readable_inexact): Use it.
96589         * lib/xstrtol.c (__xstrtol): If there is no number but there
96590         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96591         Accept 'K' as well as 'k'.
96592
96593 2001-12-15  Jim Meyering  <meyering@lucent.com>
96594
96595         * lib/regex.h (__restrict_arr): Update from libc.
96596
96597         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96598         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96599         (STREQ): Define.
96600
96601 2001-12-14  Jim Meyering  <meyering@lucent.com>
96602
96603         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96604         Suggestion from Bruno Haible.
96605
96606 2001-12-10  Jim Meyering  <meyering@lucent.com>
96607
96608         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96609         xrealloc, Instead, include "xalloc.h".
96610         (initbuffer): Don't cast xmalloc return value to char*.
96611         (readline): Reword comment.
96612         Don't cast xrealloc return value to char*
96613         Return NULL, not 0.
96614
96615 2001-12-09  Jim Meyering  <meyering@lucent.com>
96616
96617         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96618         about `signed and unsigned type in conditional expression'.
96619         * lib/posixtm.c (posix_time_parse): Likewise.
96620
96621         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96622
96623         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96624         to avoid a pedantic warning.
96625
96626         * lib/getstr.c: Don't include assert.h.
96627         (getstr): Remove warning-evoking assertions.
96628         Return -1 if offset parameter is out of bounds.
96629         Change the type of a local from int to size_t.
96630
96631         * lib/strftime.c (my_strftime_localtime_r): Include this function
96632         definition in the `#if ! HAVE_TM_GMTOFF' block.
96633
96634         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96635         Include xalloc.h instead.
96636
96637 2001-12-02  Jim Meyering  <meyering@lucent.com>
96638
96639         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96640         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96641         included.
96642
96643         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96644         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96645
96646 2001-11-30  Akim Demaille  <akim@epita.fr>
96647
96648         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96649         before being defined.
96650
96651 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96652
96653         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96654         First arg is int, not unsigned.
96655         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96656         (SIZE_MAX, UINT_MAX): New macros.
96657         (quotearg_n_options): Abort if N is negative.
96658         Avoid overflow check on hosts where size_t is 64 bits and int
96659         is 32 bits, as overflow is impossible there.
96660         Fix off-by-one typo that caused unnecessary reallocation.
96661
96662 2001-11-27  Jim Meyering  <meyering@lucent.com>
96663
96664         * lib/tempname.c: Merge with version from libc.
96665         * lib/regex.c: Likewise.
96666
96667         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96668         systems for which STDC_HEADERS is 0, it was not included, resulting in
96669         a warning about an integer-to-pointer conversion problem with getenv.
96670         Reported by Volker Borchert.
96671
96672 2001-11-26  Jim Meyering  <meyering@lucent.com>
96673
96674         * lib/gtod.h: Remove file.
96675         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96676         * lib/gettimeofday.c: Don't include gtod.h.
96677         (GTOD_init): Remove function.
96678         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96679         Suggestion from Volker Borchert.
96680
96681 2001-11-23  Jim Meyering  <meyering@lucent.com>
96682
96683         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96684         it.
96685         * lib/hash.c (struct hash_table): Define it here instead.
96686
96687 2001-11-22  Jim Meyering  <meyering@lucent.com>
96688
96689         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96690
96691 2001-11-20  Jim Meyering  <meyering@lucent.com>
96692
96693         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96694         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96695
96696 2001-11-19  Jim Meyering  <meyering@lucent.com>
96697
96698         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96699         directory.  Use "conftestXXXXXX" as the template.
96700         Suggestion from Paul Eggert.
96701
96702         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96703         immediately, so the test doesn't mistakenly hit the max-open-files
96704         limit.
96705
96706 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96707
96708         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96709         (TEMPORARIES): New macro.
96710         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96711         removes an artificial limitation (e.g. HP-UX 10.20, where
96712         TMP_MAX is 17576).
96713
96714 2001-11-18  Jim Meyering  <meyering@lucent.com>
96715
96716         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96717
96718 2001-11-18  Jim Meyering  <meyering@lucent.com>
96719
96720         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96721         on SunOS 4.
96722
96723         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96724         files will be created before anything else.
96725
96726 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96727
96728         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96729         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96730
96731 2001-11-17  Jim Meyering  <meyering@lucent.com>
96732
96733         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96734         Prompted by a report from Bob Proulx.
96735
96736         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96737         Instead, require UTILS_FUNC_MKSTEMP.
96738
96739 2001-11-17  Jim Meyering  <meyering@lucent.com>
96740
96741         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96742         Now, that's done as part of AC_FUNC_STRTOD.
96743
96744 2001-11-17  Jim Meyering  <meyering@lucent.com>
96745
96746         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96747         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96748         rather than group writable.  Patch by Juan F. Codagnone.
96749
96750         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96751         xrealloc, Instead, include "xalloc.h".
96752
96753         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96754         Remove explicit declarations of xmalloc, xrealloc,
96755         and xstrdup.  Instead, include "xalloc.h".
96756
96757         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96758         unlocked-io.h.
96759         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96760         Likewise.
96761         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96762
96763         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96764         Reported by Padraig Brady.
96765
96766         * lib/mkstemp.c: #undef mkstemp.
96767         Include config.h.
96768         (rpl_mkstemp): Rename from mkstemp.
96769         Protoize.
96770
96771 2001-11-16  Jim Meyering  <meyering@lucent.com>
96772
96773         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96774         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96775         determine the amount of total physical memory, use pstat_getstatic.
96776         HPUX-11 doesn't define _SC_PHYS_PAGES.
96777         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96778         If sysconf couldn't be used to determine the amount of available
96779         physical memory, use both pstat_getstatic and pstat_getdynamic.
96780         Based on a patch from Bob Proulx.
96781
96782 2001-11-10  Jim Meyering  <meyering@lucent.com>
96783
96784         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96785         (jm_PREREQ): Use it.
96786
96787 2001-11-09  Jim Meyering  <meyering@lucent.com>
96788
96789         * m4/jm-macros.m4: Require autoconf-2.52f.
96790         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96791         Use these AC_-prefixed names, not the AM_-prefixed ones.
96792
96793         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96794
96795 2001-11-05  Jim Meyering  <meyering@lucent.com>
96796
96797         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96798
96799 2001-11-04  Jim Meyering  <meyering@lucent.com>
96800
96801         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96802         $DEFS.
96803
96804 2001-11-03  Jim Meyering  <meyering@lucent.com>
96805
96806         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96807         of AC_DEFUN.
96808
96809         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96810         know the name of the variable in the macro definition.
96811
96812 2001-11-03  Jim Meyering  <meyering@lucent.com>
96813
96814         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96815         in argmatch_to_argument call.
96816
96817         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96818         argument.
96819
96820         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96821         e.g., a fault due to an attempt to free a NULL pointer.
96822
96823 2001-11-01  Jim Meyering  <meyering@lucent.com>
96824
96825         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96826         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96827
96828 2001-11-01  Jim Meyering  <meyering@lucent.com>
96829
96830         * lib/dirfd.c, lib/dirfd.h: New files.
96831         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96832
96833         * lib/hash.c (hash_print) [TESTING]: Clean up.
96834
96835 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96836
96837         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96838         to avoid a warning if -Wall.
96839
96840 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96841
96842         * README: New file
96843         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96844         (per RMS's instructions, this is now the canonical source)
96845         * lgpl/, gpl/: New directories.
96846
96847 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96848
96849         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96850
96851 2001-10-21  Jim Meyering  <meyering@lucent.com>
96852
96853         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96854         this code would end up calling gettext even in packages built
96855         with --disable-nls.
96856         * lib/getopt.c (_): Likewise.
96857         * lib/regex.c (_): Likewise.
96858
96859 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96860
96861         * m4/error.m4 (jm_PREREQ_ERROR):
96862         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96863         AC_FUNC_STRERROR_R does that.
96864         Check for strerror declaration.
96865
96866         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96867         are supposed to have them these days.
96868         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96869         Merge changes from latest Autoconf CVS.
96870         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96871         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96872         POSIX decided to standardize on the int flavor of strerror_r.
96873
96874 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96875
96876         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96877         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96878         Use strerror_r that is only a macro, even if it is not a function.
96879         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96880         (private_strerror): Use prototypes, not old-style function definition.
96881         (print_errno_message): New function.
96882         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96883         char*-flavored one.
96884         (error_tail, error, error_at_line): Use it.
96885
96886 2001-10-11  Jim Meyering  <meyering@lucent.com>
96887
96888         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96889         and quote_n (1, ... to avoid clobbering a buffer.
96890
96891 2001-10-05  Jim Meyering  <meyering@lucent.com>
96892
96893         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96894         hash-pjw.h.
96895         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96896         * lib/hash-pjw.h: New file.
96897
96898 2001-09-30  Jim Meyering  <meyering@lucent.com>
96899
96900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96901         `struct fsstat' has the `f_fstypename' member.
96902         Use that to define FS_TYPE, which is now used to make
96903         the getfsstat link test tighter.
96904
96905 2001-09-30  Jim Meyering  <meyering@lucent.com>
96906
96907         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96908         Include <sys/ucred.h>, for Apple Darwin.
96909         Include sys/mount.h and sys/fs_types.h only if available.
96910         (FS_TYPE): Define.
96911         (read_filesystem_list): Use FS_TYPE.
96912
96913 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96914
96915         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96916         a boolean context.
96917
96918 2001-09-29  Jim Meyering  <meyering@lucent.com>
96919
96920         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96921         [one-argument getmntent function]): Include stdio.h before mntent.h.
96922         SunOS 4.1.x needs it for the declaration of `FILE'.
96923         Patch by Volker Borchert.
96924
96925         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96926         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96927         sys/fs_types.h, and make the link-test for getfsstat guard #include
96928         directives with appropriate #if HAVE_*_H tests so that we can
96929         detect getfsstat on Apple Darwin1.3.7 systems.
96930         Reported by Nelson Beebe.
96931         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96932
96933 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96934
96935         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96936         #defines strtoimax.  Also treat the other strto* functions
96937         like strtoimax.
96938
96939         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96940         Check for strtoul and strtoumax,
96941         as those declarations are made even in the signed case.
96942         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96943         Likewise, for strtol and strtoimax.
96944
96945 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96946
96947         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96948         #defines strtoimax.  Also treat the other strto* functions
96949         like strtoimax.
96950
96951         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96952         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96953         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96954
96955 2001-09-26  Jim Meyering  <meyering@lucent.com>
96956
96957         Most macros in unlocked-io.h had the wrong number of arguments.
96958         * lib/gen-uio: New script.
96959         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96960         * lib/unlocked-io.hin: Remove file.
96961         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96962         rather than trying to embed it here.
96963         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96964         Reported by Padraig Brady.
96965
96966 2001-09-25  Volker Borchert  <bt@teknon.de>
96967
96968         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96969         `result'.
96970
96971 2001-09-24  Jim Meyering  <meyering@lucent.com>
96972
96973         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96974
96975 2001-09-23  Jim Meyering  <meyering@lucent.com>
96976
96977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96978         instead of the mere test for existence of mntent.h.  The latter
96979         would get a false-positive on AIX 3.4 systems.
96980         In the outer getmntent if-block, don't die if neither of the getmntent
96981         tests succeeds.  Instead, just fall through and continue with the
96982         remaining tests.
96983
96984 2001-09-23  Jim Meyering  <meyering@lucent.com>
96985
96986         * lib/mountlist.c: Remove useless parentheses in #if directives.
96987         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96988         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96989
96990 2001-09-22  Jim Meyering  <meyering@lucent.com>
96991
96992         * m4/gettext.m4: New file.  From gettext.
96993         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96994         * m4/progtest.m4: Likewise
96995         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96996         * m4/glibc21.m4: Likewise.
96997
96998         * m4/libintl.m4: Remove.  No longer used.
96999
97000 2001-09-22  Jim Meyering  <meyering@lucent.com>
97001
97002         * lib/localcharset.c: Update from latest gettext.
97003         * lib/config.charset: Likewise.
97004
97005 2001-09-20  Jim Meyering  <meyering@lucent.com>
97006
97007         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97008         strtoimax.
97009         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97010         strtoumax.
97011
97012 2001-09-20  Jim Meyering  <meyering@lucent.com>
97013
97014         * lib/xstrtol.c (strtoimax): Guard declaration with
97015         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97016         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97017         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97018         (strtoumax): Likewise, for completeness (it wasn't necessary).
97019
97020 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97021
97022         * lib/strtoimax.c (HAVE_LONG_LONG):
97023         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97024         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97025         to work around bug in IBM C compiler.
97026
97027 2001-09-17  Jim Meyering  <meyering@lucent.com>
97028
97029         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97030         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97031         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97032         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97033         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97034         whenever the right hand side need not be expanded by the shell.
97035
97036 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97037
97038         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97039         library.  It's not correct, as some older glibcs are buggy.
97040         fnmatch wasn't fixed until glibc 2.2.
97041
97042         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97043         special shell magic here.
97044
97045 2001-09-16  Jim Meyering  <meyering@lucent.com>
97046
97047         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97048         * m4/jm-macros.m4: Require it.
97049
97050 2001-09-16  Jim Meyering  <meyering@lucent.com>
97051
97052         * lib/mkdir.c: New file.
97053
97054 2001-09-15  Jim Meyering  <meyering@lucent.com>
97055
97056         * m4/jm-macros.m4: Check for help2man.
97057
97058 2001-09-11  Jim Meyering  <meyering@lucent.com>
97059
97060         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97061         The body, by Paul Eggert, was moved here from configure.in.
97062         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97063
97064 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97065
97066         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97067         (jm_PREREQ): Use it.
97068
97069 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97070
97071         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97072         Use ssize_t, not int, to store result of readlink.
97073         Check for ssize_t overflow as well as size_t overflow,
97074         as POSIX says the result of readlink is implementation-defined
97075         when ssize_t overflows.
97076         Remove unnecessary cast to char*.
97077         Use free+malloc instead of realloc, as the storage doesn't need
97078         to be preserved and it's clearer and can be more efficient that way.
97079         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97080         * lib/xreadlink.h (xreadlink): Update prototype.
97081
97082 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97083
97084         * lib/xgetcwd.c: Revert some of the previous change; intead,
97085         fix the HAVE_GETCWD_NULL code to behave more like the
97086         !HAVE_GETCWD_NULL code used to.
97087
97088         Include "xalloc.h".
97089         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97090         invoke xalloc_die.
97091
97092 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97093
97094         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97095         sys/param.h, as pathmax.h includes them.
97096
97097 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97098
97099         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97100         (jm_PREREQ_XGETCWD): New macro.
97101
97102         * m4/getcwd.m4: New file.
97103
97104 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97105
97106         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97107         like the HAVE_GETCWD_NULL code.
97108         Include pathmax.h if not HAVE_GETCWD.
97109         Do not include xalloc.h.
97110         (INITIAL_BUFFER_SIZE): New symbol.
97111         Do not use xmalloc / xrealloc, since the caller is responsible for
97112         handling errors.  Preserve errno around `free' during failure.
97113         Do not overrun buffer when using getwd.
97114
97115 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97116
97117         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97118         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97119         getcwd (NULL, 0).
97120
97121 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97122
97123         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97124         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97125         spotted by Jim Meyering.
97126
97127 2001-09-03  Jim Meyering  <meyering@lucent.com>
97128
97129         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97130         failure.
97131
97132 2001-09-02  Jim Meyering  <meyering@lucent.com>
97133
97134         * lib/error.c: Update from GNU libc.
97135
97136 2001-09-01  Jim Meyering  <meyering@lucent.com>
97137
97138         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97139         Used by df.
97140
97141 2001-09-01  Jim Meyering  <meyering@lucent.com>
97142
97143         * lib/xreadlink.c: New file.
97144         * lib/xreadlink.h: New file.
97145         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97146         xreadlink.h.
97147
97148         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97149         doesn't conflict with sparc Solaris 7's definition in
97150         /usr/include/sys/int_types.h.
97151
97152         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97153         files.
97154         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97155         and strncasecmp as r-values.  Unixware didn't have declarations.
97156
97157 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97158
97159         * lib/xstrtol.h: Add copyright notice.
97160         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97161         LONGINT_INVALID_SUFFIX_CHAR.
97162
97163 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97164
97165         * lib/xstrtol.c (strtoimax): New decl.
97166
97167 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97168
97169         * lib/xgetcwd.c: Don't include pathmax.h.
97170         Include stdlib.h and unistd.h if available.
97171         Include xalloc.h.
97172         (xmalloc, xstrdup, free): Remove decls.
97173         (xgetcwd): Don't assume sizes fit in unsigned.
97174         Check for overflow when computing sizes.
97175         Simplify reallocation code.
97176
97177 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97178
97179         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97180         a directory's st_size can have an arbitrary value, so the old
97181         usage could waste an arbitrary amount of memory.  All uses
97182         changed.
97183         * lib/savedir.h: Update prototype.
97184
97185 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97186
97187         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97188
97189         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97190         old strtoimax.c.
97191
97192         Also, make the following further changes to make this file's
97193         configuration more similar to that of strtol.c:
97194         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97195         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97196         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97197         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97198         changed to signed values.
97199
97200         And make the following changes as well:
97201         Fix copyright notice, as 1999 was missing.
97202         (verify): New macro.
97203         (strtoimax): Check sizes at compile-time, not run-time.
97204         Prefer strtol to strtoll if both work.
97205         (main): Remove; it was not that useful and was a pain to maintain.
97206
97207         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97208
97209 2001-08-31  Jim Meyering  <meyering@lucent.com>
97210
97211         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97212         Use an initial, malloc'd, buffer of length 128 rather than
97213         a statically allocated one of length 1024.
97214
97215 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97216
97217         Simplify code, partly by assuming autoconf 2.52 semantics.
97218
97219         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97220
97221         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97222         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97223         All uses removed.
97224         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97225         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97226         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97227         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97228         jm_AC_HEADER_INTTYPES_H.
97229         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97230
97231         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97232
97233         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97234         Quote first arg of AC_DEFUN.
97235         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97236         since they are needed to parse the include file even if we need
97237         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97238         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97239         but with opposite signedness.
97240
97241 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97242
97243         Merge 'exclude' changes from tar 1.13.22.
97244         This fixes one or two unlikely storage allocation overflow bugs,
97245         but doesn't change user-visible behavior otherwise.
97246
97247 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97248
97249         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97250         (jm_PREREQ_EXCLUDE): New macro.
97251
97252 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97253
97254         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97255         tm to be declared.
97256
97257 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97258
97259         * lib/hash.c: Remove '2001' from copyright notice.
97260
97261 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97262
97263         * lib/full-write.h: New file.
97264         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97265         * lib/full-write.c: Correct credits, as cccp.c no longer
97266         exists and anyway it was so heavily changed from the old cccp
97267         code as to be unrecognizable.  Include full-write.h.
97268         (full_write): Return size_t, with short writes meaning failure.
97269         All callers changed.  This fixes a bug with large buffers
97270         on 64-bit hosts.
97271         * lib/utime.c: Include full-write.h.
97272
97273 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97274
97275         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97276         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97277         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97278         Include if available.
97279         (<xalloc.h>): Include
97280         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97281         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97282         collide with FNM macros.
97283         (struct patopts): New struct.
97284         (struct exclude): Use it, as exclude patterns now come with options.
97285         (new_exclude): Support above changes.
97286         (new_exclude, add_exclude_file):
97287         Initial size must now be a power of two to simplify overflow checking.
97288         (free_exclude, fnmatch_no_wildcards): New function.
97289         (excluded_filename): No longer requires options arg, as the options
97290         are determined by add_exclude.  Now returns bool, not int.
97291         (excluded_filename, add_exclude):
97292         Add support for the fancy new exclusion options.
97293         (add_exclude, add_exclude_file): Now takes int options arg.
97294         Check for arithmetic overflow when computing sizes.
97295         (add_exclude_file): xrealloc might modify errno, so don't
97296         realloc until after errno might be used.
97297
97298         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97299         New macros.
97300         (free_exclude): New decl.
97301         (add_exclude, add_exclude_file): Now takes int options arg.
97302         (excluded_filename): No longer requires options arg, as the options
97303         are determined by add_exclude.  Now returns bool, not int.
97304
97305 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97306
97307         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97308
97309 2001-08-27  Jim Meyering  <meyering@lucent.com>
97310
97311         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97312
97313         * lib/version-etc.c (N_): Remove definition.
97314         Revert most of last change.
97315         Instead, simply don't mark the `Copyright...' string for translation.
97316         Based on advice from Paul Eggert.
97317
97318         * lib/strtoxmax.c: Tweak comment.
97319
97320 2001-08-26  Jim Meyering  <meyering@lucent.com>
97321
97322         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97323
97324         * m4/xstrtoimax.m4: New file.
97325         * m4/xstrtoumax.m4: Add comments explaining why we
97326         AC_REPLACE_FUNCS(strtol).
97327
97328 2001-08-26  Jim Meyering  <meyering@lucent.com>
97329
97330         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97331         of copyright with `%s' so translators don't get an untranslated
97332         message in 2002.
97333         (COPYRIGHT_YEAR): Define.
97334         (version_etc): Use fprintf rather than fputs.
97335         Suggestion from Ulrich Drepper.
97336
97337         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97338
97339         * lib/strtoll.c: New file, from GNU libc.
97340         * lib/xstrtoimax.c: New file.
97341
97342         * lib/xstrtol.h: Add xstrtoimax.
97343         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97344         * lib/strtoimax.c: New file.  Likewise, but first define
97345         STRTOUXMAX_SIGNED.
97346
97347         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97348         ...
97349         * lib/strtoxmax.c: ... then renamed to this.
97350
97351 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97352
97353         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97354         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97355         (jm_AC_TYPE_INTMAX_T): New macro.
97356         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97357
97358         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97359
97360         * m4/longlong.m4: Renamed from ulonglong.m4.
97361         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97362         * m4/uintmax_t.m4: Removed.
97363
97364 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97365
97366         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97367         Port to Solaris 8, where 'sed' requires a space after the 'r'
97368         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97369         Redirect output to $tmp just once.
97370
97371 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97372
97373         * lib/addext.c (<errno.h>): Include.
97374         (errno): Declare if not defined.
97375         (addext): Work correctly when pathconf returns -1 and leaves
97376         errno alone because there is no limit.  Also, work even if
97377         pathconf returns a value greater than SIZE_MAX.
97378
97379 2001-08-12  Jim Meyering  <meyering@lucent.com>
97380
97381         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97382         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97383         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97384         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97385         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97386         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97387         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97388         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97389         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97390         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97391         utime.m4, utimes.m4, xstrtoumax.m4:
97392         Quote the first argument in each use of AC_DEFUN.
97393
97394 2001-08-12  Jim Meyering  <meyering@lucent.com>
97395
97396         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97397         Simply `return getcwd (NULL, 0);'.
97398         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97399         Use 1300 as initial value for length, not PATH_MAX.
97400
97401         * lib/pathmax.h: Clean up cpp syntax.
97402
97403 2001-08-12  Jim Meyering  <meyering@lucent.com>
97404
97405         * lib/gettimeofday.c: New file.
97406         * lib/gtod.h: New file.
97407         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97408
97409 2001-08-05  Jim Meyering  <meyering@lucent.com>
97410
97411         * m4/jm-macros.m4: Require autoconf-2.52.
97412
97413 2001-08-04  Jim Meyering  <meyering@lucent.com>
97414
97415         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97416         stmt, to get in sync with glibc.
97417
97418 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97419
97420         The following changes are from gettext 0.10.39 as maintained by
97421         Bruno Haible.
97422
97423         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97424         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97425         with inverted sense.  All uses changed.
97426
97427         * lib/mbswidth.c: Don't include <limits.h>.
97428         Include <stdlib.h> and <string.h> unconditionally.
97429         (iswcntrl, mbsinit, ISCNTRL): New macros.
97430         (mbsnwidth): Use K&R style function declarations.
97431         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97432         can optimize it when MB_CUR_MAX == 1.
97433         The width of control characters is zero, not 1.
97434
97435 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97436
97437         The following changes are from gettext 0.10.39 as maintained by
97438         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97439
97440         * m4/codeset.m4: Upgrade to serial AM1.
97441         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97442         all uses changed.  Quote first arg of AC_DEFUN.
97443         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97444
97445         * m4/iconv.m4: Upgrade to serial AM2.
97446         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97447         Add --with-libconv-prefix.
97448         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97449         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97450         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97451         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97452         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97453
97454         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97455         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97456         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97457         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97458         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97459         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97460         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97461         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97462         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97463
97464         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97465         string.h any more.
97466
97467         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97468         not the default value.
97469
97470         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97471         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97472         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97473         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97474         Also check for iswcntrl, used for wcwidth fallback.
97475         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97476         to Autoconf 2.13.
97477
97478 2001-08-03  Jim Meyering  <meyering@lucent.com>
97479
97480         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97481         as it was in the original.  Reported by Paul Eggert.
97482
97483 2001-07-16  Jim Meyering  <meyering@lucent.com>
97484
97485         * m4/gettimeofday.m4: New file.
97486         Prompted by a report from Bernhard Baehr.
97487
97488 2001-07-15  Jim Meyering  <meyering@lucent.com>
97489
97490         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97491         stuff. Now it's in ../Makefile.cfg.
97492
97493 2001-07-15  Jim Meyering  <meyering@lucent.com>
97494
97495         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97496         (BUILT_SOURCES): Add unlocked-io.h.
97497         (io_functions): Define.
97498         (unlocked-io.h): New rule.
97499         (DISTCLEANFILES): Add unlocked-io.h.
97500         (all-local): Depend on unlocked-io.h, to ensure it is created.
97501
97502         * lib/unlocked-io.hin: New file
97503
97504         * lib/regex.c: Update from glibc.
97505
97506 2001-07-05  Jim Meyering  <meyering@lucent.com>
97507
97508         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97509         recommendation.
97510         (libfetish_a_SOURCES): Put all .h files here instead.
97511         Remove a thus-exposed (better checks in automake) duplicate and
97512         two unnecessary .h files.
97513
97514 2001-07-04  Jim Meyering  <meyering@lucent.com>
97515
97516         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97517         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97518         distcheck failure.
97519
97520 2001-07-02  Jim Meyering  <meyering@lucent.com>
97521
97522         The following changes were prompted by suggestions from Bruno Haible.
97523
97524         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97525         is now generated.
97526         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97527         definition of EXTRA_DIST.
97528         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97529         ensure that the generated file is created/updated whenever the list
97530         of $(unlocked_functions) is changed.
97531         (jm-glibc-io.m4): New rule.
97532         (unlocked-io.h): New rule -- currently unused.
97533
97534 2001-06-24  Jim Meyering  <meyering@lucent.com>
97535
97536         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97537         unmatched right bracket, rather than kludging it with an extra,
97538         falsely-matching quote in a comment.  Patch by Akim Demaille.
97539
97540 2001-06-11  Jim Meyering  <meyering@lucent.com>
97541
97542         * lib/regex.c: Update from GNU libc.
97543
97544 2001-05-27  Jim Meyering  <meyering@lucent.com>
97545
97546         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97547         Check for ut_type in struct utmp.
97548
97549 2001-05-27  Jim Meyering  <meyering@lucent.com>
97550
97551         * lib/readutmp.h (UT_TYPE): Define.
97552
97553 2001-05-24  Jim Meyering  <meyering@lucent.com>
97554
97555         * lib/argmatch.c: Include "quote.h".
97556         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97557         quote function.  Reported by Göran Uddeborg.
97558
97559 2001-05-22  Jim Meyering  <meyering@lucent.com>
97560
97561         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97562         now that we use the package-supplied version unconditionally.
97563         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97564
97565 2001-05-21  Jim Meyering  <meyering@lucent.com>
97566
97567         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97568         shell syntax errors.
97569
97570 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97571
97572         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97573
97574 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97575
97576         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97577         Don't bother to check library strftime, since
97578         we'll be using our own my_strftime function anyway.
97579         Define my_strftime instead of strftime.
97580
97581 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97582
97583         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97584         which is not yet declared.
97585
97586 2001-05-15  Jim Meyering  <meyering@lucent.com>
97587
97588         * m4/regex.m4: Use proper quoting so brackets appear in the test
97589         program.
97590         Reported by, and with help from, Bruno Haible.
97591
97592 2001-05-13  Jim Meyering  <meyering@lucent.com>
97593
97594         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97595         undefined.
97596
97597 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97598
97599         dirname code cleanup.  base_name now behaves more compatibly
97600         with POSIX basename when given file names that have trailing
97601         slashes, and similarly for dir_name.  Add new primitives
97602         base_len and dir_len.  Put the directory-name-related decls
97603         into dirname.h.
97604
97605         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97606         * lib/backupfile.c (base_name): Likewise.
97607         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97608         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97609         * lib/makepath.c (strip_trailing_slashes): Likewise.
97610         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97611         ISSLASH): Likewise.
97612         * lib/rename.c (strip_trailing_slashes): Likewise.
97613         * lib/same.c (base_name): Likewise.
97614         * lib/stripslash.c (ISSLASH): Likewise.
97615
97616         * lib/addext.c: Include <dirname.h> after size_t is defined.
97617         * lib/backupfile.c: Likewise.
97618
97619         * lib/addext.c (addext): Use base_len to trim redundant
97620         trailing slashes instead of doing it ourselves.
97621         But do not trim the last slash if it is not redundant.
97622
97623         * lib/backupfile.c (find_backup_file_name,
97624         max_backup_version): Use base_len instead of rolling it ourselves.
97625         Handle the case of "" and (on DOS) "C:" correctly.
97626
97627         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97628         needed. Include <string.h>, <dirname.h>.
97629         (base_name): Allow file names ending in slashes, other than names
97630         that are all slashes.  In this case, return the basename followed
97631         by the slashes.  This is more general, and can be used in places
97632         where the original base_name purposely had an assertion failure.
97633         (base_len): New function.
97634
97635         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97636         Do not include <assert.h>; no longer needed.
97637         Include xalloc.h.
97638         (memrchr): Remove decl.
97639         (dir_name_r): Remove.
97640         (dir_len): Renamed from dirlen.  All callers changed.
97641         Rewrite in terms of base_name, for simplicity and consistency.
97642         (dir_name): Never return NULL.  All callers changed.
97643         Do not include <stdlib.h> in test program; no longer needed.
97644         return 0; is fine for test program.
97645
97646         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97647         New macros.
97648         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97649
97650         * lib/path-concat.c (path_concat): Use base_len to compute
97651         base length, not strlen; this means we cannot rely on memcpy
97652         to null-terminate.
97653
97654         * lib/same.c (STREQ): Remove.
97655         (same_name): Handle the case where the basename ends in trailing '/'.
97656
97657         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97658         a slash was stripped.  Do not strip the last slash after a
97659         file system prefix.
97660
97661 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97662
97663         * lib/Makefile.am (libfetish_a_SOURCES):
97664         Add strftime.c, since we now compile it on all hosts.
97665
97666         * lib/strftime.c (my_strftime):
97667         Define to nstrftime if emacs, but only if my_strftime is not defined.
97668         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97669         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97670         Add one more extra argument: a nanoseconds value.
97671         All uses changed.
97672         (ns): New macro.
97673         (my_strftime function): Add %N format.
97674         (emacs_strftimeu): Renamed from emacs_strftime,
97675         with extra ut argument.
97676
97677 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97678
97679         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97680
97681 2001-04-21  Jim Meyering  <meyering@lucent.com>
97682
97683         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97684         doesn't interfere.
97685
97686 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97687
97688         * m4/ftruncate.m4: Check for chsize.
97689         Link with ftruncate.o unconditionally if ftruncate is missing.
97690         This was required when cross-compiling to i586-mingw32msvc.
97691
97692 2001-04-08  Jim Meyering  <meyering@lucent.com>
97693
97694         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97695         recomputed; that's necessary when the offset spans a DST transition.
97696         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97697
97698 2001-04-02  Jim Meyering  <meyering@lucent.com>
97699
97700         * lib/regex.h, regex.c: Update from GNU libc.
97701
97702 2001-03-24  Jim Meyering  <meyering@lucent.com>
97703
97704         * m4/jm-macros.m4: Require autoconf-2.49d.
97705
97706 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97707
97708         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97709
97710 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97711
97712         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97713
97714 2001-03-17  Jim Meyering  <meyering@lucent.com>
97715
97716         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97717         now that the version in autoconf is equivalent.
97718         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97719
97720         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97721         Suggestion from Akim Demaille.
97722
97723         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97724         (jm_PREREQ_TEMPNAME): New function.
97725
97726 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97727
97728         * lib/tempname.c (uint64_t): Define to uintmax_t if
97729         not defined, and if UINT64_MAX is not defined.
97730         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97731         Reported by John David Anglin.
97732
97733 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97734
97735         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97736         resolve alias if codeset is empty.
97737         * lib/config.charset (BeOS): Use wildcard syntax.
97738
97739 2001-03-13  Jim Meyering  <meyering@lucent.com>
97740
97741         * lib/path-concat.c (path_concat)
97742         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97743         concatenating e.g., `C:' and `foo'.
97744         From Bruno Haible.
97745
97746 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97747
97748         * lib/localcharset.c (locale_charset): Don't use
97749         setlocale(LC_CTYPE,NULL). Don't return NULL.
97750         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97751
97752 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97753
97754         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97755         support for DOS/DJGPP.
97756
97757 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97758
97759         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97760         lacks mkstemp.  Compile our own tempname.c if we compile our own
97761         mkstemp.c, as mkstemp relies on tempname.
97762
97763 2001-03-01  Jim Meyering  <meyering@lucent.com>
97764
97765         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97766         AH_VERBATIM really does output its argument verbatim.
97767
97768 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97769
97770         * lib/Makefile.am (libfetish_a_SOURCES):
97771         Add dup-safer.c, fopen-safer.c.
97772         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97773
97774         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97775         * lib/unistd-safer.h: New files.
97776
97777 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97778
97779         The mkstemp replacement is taken from glibc 2.2.2, with some
97780         portability fixes for use outside glibc, as follows:
97781
97782         * lib/tempname.c (struct_stat64): New macro.
97783         (direxists, __gen_tempname): Use it.
97784         This avoids a portability problem with Solaris 8.
97785
97786         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97787         (<stddef.h>, <stdint.h>, <string.h>):
97788         Include only if STDC_HEADERS || _LIBC.
97789         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97790         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97791         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97792         (__set_errno): Define this macro if <errno.h> doesn't.
97793         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97794         Define these macros if <stdio.h> doesn't.
97795         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97796         Define these macros if <sys/stat.h>
97797         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97798         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97799         __xstat64): Define if not _LIBC.
97800         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97801         (__gen_tempname): Invoke gettimeofday only if
97802         HAVE_GETTIMEOFDAY || _LIBC;
97803         otherwise, fall back on plain "time".
97804         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97805
97806         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97807
97808         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97809
97810 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97811
97812         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97813
97814 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97815
97816         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97817         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97818         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97819         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97820
97821 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97822
97823         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97824         Remove workaround macros for hosts that have mbrtowc but not
97825         mbstate_t, as we now insist on proper declarations for both
97826         before using mbrtowc.
97827
97828 2001-02-17  Jim Meyering  <meyering@lucent.com>
97829
97830         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97831         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97832         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97833         UnixWare 7.1.1.
97834
97835         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97836         rather than AC_CACHE_VAL.
97837
97838 2001-02-17  Jim Meyering  <meyering@lucent.com>
97839
97840         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97841         around included file name.
97842
97843         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97844
97845         * lib/strftime.c: Update from GNU libc (the only changes were to
97846         comments).
97847
97848 2001-02-17  Jim Meyering  <meyering@lucent.com>
97849
97850         * lib/regex.c: Update from libc.
97851
97852 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97853
97854         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97855         clash.
97856
97857 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97858
97859         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97860         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97861         Reported by Mark Hounschell via Paul Eggert.
97862
97863 2001-02-07  Jim Meyering  <meyering@lucent.com>
97864
97865         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97866
97867 2001-02-05  Jim Meyering  <meyering@lucent.com>
97868
97869         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97870         it includes the patch required for `large file' support with at least
97871         HP-UX's 10.20 /bin/cc.
97872
97873 2001-02-03  Jim Meyering  <meyering@lucent.com>
97874
97875         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97876         AS_IF, now that it works once again (mysteriously).
97877         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97878
97879 2001-01-30  Jim Meyering  <meyering@lucent.com>
97880
97881         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97882         * m4/chown.m4: Rename conftestchown to conftest.chown.
97883         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97884         s/conftestdir2/conftest.d2/.
97885         * m4/utimes.m4: s/conftestdata/conftest.data/
97886         Inspired by Pavel Roskin's change in autoconf.
97887
97888 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97889
97890         * lib/config.charset: Update for FreeBSD 4.2.
97891
97892 2001-01-27  Jim Meyering  <meyering@lucent.com>
97893
97894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97895         a use of AS_IF.
97896         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97897
97898 2001-01-26  Jim Meyering  <meyering@lucent.com>
97899
97900         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97901         quotearg.c includes it.
97902
97903 2001-01-26  Jim Meyering  <meyering@lucent.com>
97904
97905         * lib/quotearg.c: Include stddef.h.
97906         * lib/quote.c: Include stddef.h.
97907         Reported by Axel Kittenberger.
97908
97909         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97910         line in double quotes so that it evokes a better diagnostic.
97911         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97912         Reported by Axel Kittenberger.
97913
97914 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97915
97916         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97917         as if it was a `charset'.
97918
97919 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97920
97921         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97922         has const.
97923
97924 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97925
97926         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97927         to avoid a warning.  Add back 'const' to inptr.
97928
97929 2001-01-20  Jim Meyering  <meyering@lucent.com>
97930
97931         Be sure that headers are checked before used in code compiled
97932         for the type checks.
97933         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97934         In place of that, invoke jm_CHECK_ALL_TYPES.
97935         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97936         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97937         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97938         The check for ssize_t was mistakenly run before the test for unistd.h.
97939
97940         The configure-time check for stdbool.h was missing.
97941         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97942         (jm_PREREQ_HASH): New function.
97943
97944 2001-01-17  Jim Meyering  <meyering@lucent.com>
97945
97946         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97947         for autoconf-2.49c.
97948         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97949
97950 2001-01-16  Jim Meyering  <meyering@lucent.com>
97951
97952         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97953         From Bruno Haible.
97954
97955 2001-01-14  Jim Meyering  <meyering@lucent.com>
97956
97957         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97958         foo and bar.  Create conftestdir/ in the script, not in the C code.
97959         Remove directories in the script, not in the C code.
97960         Remove conftestdir{,2} before trying to create the directory.
97961         Make the entire configure script fail if the mkdir fails.
97962
97963 2001-01-14  Jim Meyering  <meyering@lucent.com>
97964
97965         * lib/rename.c: New file.  From Volker Borchert.
97966         Include stdlib.h, string.h or strings.h, and xalloc.h.
97967         Use strip_trailing_slashes rather than open-coding it.
97968
97969 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97970
97971         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97972
97973 2001-01-03  Jim Meyering  <meyering@lucent.com>
97974
97975         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97976         of local `inptr' to avoid warning with some system declarations of
97977         iconv.
97978
97979 2001-01-02  Volker Borchert  <bt@teknon.de>
97980
97981         * m4/rename.m4: New file.
97982         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97983
97984 2001-01-01  Jim Meyering  <meyering@lucent.com>
97985
97986         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97987         even on systems with utmpx.h.  It's necessary for the declaration of
97988         utmp's ut_user member.  Reported by Andreas Jaeger.
97989
97990         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97991         available. They are required for the declarations of getgrgid and
97992         getpwuid resp.
97993         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97994         Reported by Andreas Jaeger.
97995
97996 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97997
97998         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97999         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98000         so `make install' also works in VPATH builds.
98001
98002 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98003
98004         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98005         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98006         can be used in subdirectories.
98007
98008 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98009
98010         * lib/modechange.c: Do not assume that mode_t uses the
98011         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98012         the other-execute bit of FOO even if S_IXOTH != 1.
98013
98014         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98015         WOTH, XOTH, ALLM): New macros.
98016         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98017          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98018         Use them.
98019         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98020         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98021         (mode_compile):
98022         No need to use uintmax_t; unsigned long is long enough.
98023         Don't bother to get suffix since we don't use it.
98024
98025 2000-12-26  Jim Meyering  <meyering@lucent.com>
98026
98027         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98028         better with autoheader.
98029
98030 2000-12-24  Jim Meyering  <meyering@lucent.com>
98031
98032         * lib/hash.c (is_prime): Return explicit boolean values.
98033         (hash_get_first): Return NULL to appease Irix5.6's 89.
98034         Reported by Nelson Beebe.
98035
98036 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98037
98038         * lib/localcharset.c (locale_charset): Add support for Win32.
98039
98040 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98041
98042         * lib/physmem.h, lib/physmem.c: New files.
98043
98044         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98045         (noinst_HEADERS): Add physmem.h.
98046
98047         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98048         't' for compatibility with Solaris 8 sort.
98049
98050 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98051
98052         * lib/config.charset: Add support for BeOS.
98053
98054 2000-12-17  Jim Meyering  <meyering@lucent.com>
98055
98056         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98057         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98058
98059 2000-12-16  Jim Meyering  <meyering@lucent.com>
98060
98061         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98062         N and M) would have treated it like `chown N:N FILE'.
98063
98064         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98065
98066 2000-12-16  Jim Meyering  <meyering@lucent.com>
98067
98068         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98069         SHELLS_FILE to a file name that's useful on djgpp systems.
98070         Include stdlib.h.
98071         (ADDITIONAL_DEFAULT_SHELLS): Define.
98072         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98073         Based mostly on a patch from Prashant TR.
98074
98075 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98076
98077         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98078         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98079         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98080
98081 2000-12-08  Andreas Schwab  <schwab@suse.de>
98082
98083         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98084         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98085
98086 2000-12-07  Jim Meyering  <meyering@lucent.com>
98087
98088         * lib/stripslash.c (ISSLASH): Define.
98089         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98090         `/'.
98091         From Prashant TR.
98092
98093         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98094         (dir_name_r): Declare this function as static.
98095         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98096         manifest itself on a name containing a mix of slashes and
98097         backslashes.
98098         Make this function work with names starting with a DOS-style
98099         drive letter and colon prefix.
98100         (dir_name): Append `.' if necessary.
98101         Based mostly on patches from Prashant TR and Eli Zaretskii.
98102
98103         * lib/dirname.h (dir_name_r): Remove prototype.
98104
98105 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98106
98107         * m4/off_t-format.m4: Remove this file.
98108         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98109
98110 2000-12-06  Jim Meyering  <meyering@lucent.com>
98111
98112         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98113         replacement strtoull, we may well need the replacement strtoul, too.
98114         Check for declarations of strtoul and strtoull.
98115         Check for strtol.  Mainly as a cue to cause automake to include
98116         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98117         Check for limits.h -- strtol.c needs it.
98118
98119 2000-12-05  Jim Meyering  <meyering@lucent.com>
98120
98121         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98122
98123 2000-12-04  Jim Meyering  <meyering@lucent.com>
98124
98125         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98126         Also include memory.h, stdlib.h, unistd.h if appropriate.
98127         Reported by Andreas Jaeger (conflicting declaration of malloc).
98128
98129 2000-12-02  Jim Meyering  <meyering@lucent.com>
98130
98131         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98132         * m4/jm-macros.m4 (jm_MACROS): require it.
98133
98134 2000-12-02  Jim Meyering  <meyering@lucent.com>
98135
98136         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98137
98138 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98139
98140         * lib/memrchr.c: Include <config.h> before any system include file.
98141
98142 2000-11-30  Jim Meyering  <meyering@lucent.com>
98143
98144         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98145
98146 2000-11-30  Jim Meyering  <meyering@lucent.com>
98147
98148         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98149
98150 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98151
98152         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98153
98154 2000-11-26  Jim Meyering  <meyering@lucent.com>
98155
98156         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98157
98158 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98159
98160         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98161         size of (size_t) -1; it's not portable.
98162
98163 2000-11-17  Jim Meyering  <meyering@lucent.com>
98164
98165         * lib/strstr.c: Update from GNU libc.
98166
98167 2000-11-17  Akim Demaille  <akim@epita.fr>
98168
98169         * lib/obstack.h: Formatting changes.
98170         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98171         prevent type checking.
98172         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98173         cast the value to (void *): assigning a `foo *' to a `void *'
98174         variable is valid.
98175         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98176
98177 2000-11-16  Jim Meyering  <meyering@lucent.com>
98178
98179         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98180
98181 2000-11-11  Jim Meyering  <meyering@lucent.com>
98182
98183         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98184
98185 2000-11-10  Jim Meyering  <meyering@lucent.com>
98186
98187         * lib/obstack.h: Update from GNU libc.
98188         * lib/obstack.c: Likewise.
98189
98190 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98191
98192         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98193
98194 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98195
98196         * lib/getusershell.c (setusershell): Use rewind rather than
98197         fseek/fseeko, to avoid configuration hassles with fseeko.
98198         Don't bother opening SHELLS_FILE if shellstream is NULL;
98199         it's not necessary.
98200
98201 2000-11-05  Jim Meyering  <meyering@lucent.com>
98202
98203         * lib/makepath.h (make_dir): Declare.
98204         * lib/makepath.c (make_dir): Remove `static' attribute.
98205         Tweak a comment.
98206
98207 2000-11-04  Jim Meyering  <meyering@lucent.com>
98208
98209         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98210
98211 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98212
98213         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98214         last one in a bucket, advance to the next bucket.
98215
98216 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98217
98218         * lib/fnmatch.c: Do not comment out all the code if we are using
98219         the GNU C library, because in some cases we are replacing buggy
98220         code in the GNU C library itself.
98221
98222 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98223
98224         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98225         (regex_compile): Catch bogus \(\1\).
98226
98227 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98228
98229         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98230         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98231         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98232
98233 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98234
98235         * lib/error.h, getline.h, modechange.h:
98236         Remove "2000" from Copyright line, as the file hasn't been
98237         changed this year other than in the copyright notice.
98238
98239         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98240         was changed this year.
98241
98242 2000-10-29  Jim Meyering  <meyering@lucent.com>
98243
98244         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98245         renaming.
98246         * m4/ls-mntd-fs.m4: Likewise
98247
98248 2000-10-29  Jim Meyering  <meyering@lucent.com>
98249
98250         * lib/xstat.in: Fix grammar in comment.
98251
98252 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98253
98254         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98255         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98256         doesn't define __restrict_arr.
98257
98258 2000-10-28  Jim Meyering  <meyering@lucent.com>
98259
98260         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98261         (jm_PREREQ_MEMCHR): New function.
98262
98263 2000-10-28  Jim Meyering  <meyering@lucent.com>
98264
98265         * lib/memchr.c: Update from libc.
98266         Adjust for portability:
98267         [HAVE_STDLIB_H]: Include stdlib.h.
98268         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98269         Undef __memchr, too.
98270         [!weak_alias]: Define __memchr to memchr.
98271
98272         * lib/regex.c: Update from libc.
98273         * lib/regex.h: Likewise.
98274         * lib/getopt1.c: Likewise.
98275         * lib/memcmp.c: Likewise.
98276
98277         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98278         Avoid using fseek, when possible -- it's broken by design.
98279         Patch by Ulrich Drepper.
98280
98281 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98282
98283         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98284         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98285         Giving in to popular pressure to shut up the compiler with casts.
98286
98287 2000-10-26  Jim Meyering  <meyering@lucent.com>
98288
98289         * lib/strftime.c: Update from libc.
98290
98291 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98292
98293         * regex.c: More `unsigned char' -> `re_char' changes.
98294         Also change several `int' into `re_wchar_t'.
98295         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98296         (PUSH_FAILURE_POINTER): Don't cast any more.
98297         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98298         We want GCC to complain, since this piece of code makes
98299         re_match non-reentrant, which *should* be fixed.
98300         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98301         (EXTEND_BUFFER): Use RETALLOC.
98302         (SET_LIST_BIT): Don't cast.
98303         (re_wchar_t): New type.
98304         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98305         that those two functions will always properly return.
98306         (IMMEDIATE_QUIT_CHECK): Cast to void.
98307         (analyse_first): Use recursion rather than an explicit stack.
98308         (re_compile_fastmap): Can't fail anymore.
98309         (re_search_2): Don't check re_compile_fastmap for failure.
98310         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98311         Now also sets the new value (passed in a new argument).
98312         (re_match_2_internal): Use it.
98313         Also, use a new var `reg' of type size_t when looping through regs
98314         rather than reuse the inappropriate `mcnt'.
98315
98316 2000-10-25  Jim Meyering  <meyering@lucent.com>
98317
98318         * lib/obstack.c: Update from libc.
98319
98320 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98321
98322         * regex.c (regex_compile): Change the way of handling a range from
98323         a char less than 256 to a char not less than 256.
98324
98325 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98326
98327         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98328         NT-Emacs only.
98329         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98330         so that re_search functions only quit when callers expect them to.
98331
98332 2000-10-23  Jim Meyering  <meyering@lucent.com>
98333
98334         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98335         wrong.  That set_locale call must not have any side effects.
98336         From Paul Eggert.
98337
98338 2000-10-22  Jim Meyering  <meyering@lucent.com>
98339
98340         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98341         [CYCLIC]: Remove now-unused definition.
98342
98343         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98344         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98345         Suggestion from Ulrich Drepper.
98346
98347 2000-10-21  Jim Meyering  <meyering@lucent.com>
98348
98349         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98350         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98351         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98352
98353 2000-10-21  Jim Meyering  <meyering@lucent.com>
98354
98355         * lib/dirname.c (memrchr): Declare if necessary.
98356         (dir_name): Remove the restriction that there be no
98357         trailing slashes.  Now, this code skips past them, effectively
98358         ignoring them.
98359         [TEST_DIRNAME] (main): New unit tests.
98360
98361         * lib/memrchr.c: New file from GNU libc.
98362         Undef __memrchr, too.
98363         [!weak_alias]: Define __memrchr to memrchr.
98364         Guard weak_alias use with `#ifdef weak_alias'.
98365
98366 2000-10-21  Jim Meyering  <meyering@lucent.com>
98367
98368         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98369         (dir_name): Use dir_name_r.
98370         * lib/dirname.h (dir_name_r): Declare it.
98371
98372 2000-10-17  Jim Meyering  <meyering@lucent.com>
98373
98374         * lib/quote.h (PARAMS): Define and use.
98375         Reported by Akim Demaille.
98376
98377         * lib/getopt.c: Update from libc.
98378
98379 2000-10-16  Jim Meyering  <meyering@lucent.com>
98380
98381         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98382         setlocale.
98383         From Jan Fedak.
98384
98385 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98386
98387         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98388
98389 2000-09-25  Jim Meyering  <meyering@lucent.com>
98390
98391         * lib/md5.h (rol): Define (from GnuPG).
98392
98393         * lib/sha.c: Give credit (GnuPG) where due.
98394         (M): Use rol rather than open-coding it.
98395         Add a FIXME comment.
98396
98397 2000-09-21  Jim Meyering  <meyering@lucent.com>
98398
98399         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98400         Reported by Michael Stone.
98401
98402 2000-09-20  Jim Meyering  <meyering@lucent.com>
98403
98404         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98405         (noinst_HEADERS): Add sha.h.
98406         Based on code from Scott G. Miller and from GnuPG.
98407
98408 2000-09-18  Jim Meyering  <meyering@lucent.com>
98409
98410         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98411         LIBS. Otherwise, everyone ends up linking with -lelf for some
98412         configurations.
98413         Reported by Mike Stone.
98414
98415 2000-09-15  Jim Meyering  <meyering@lucent.com>
98416
98417         * lib/regex.c: Update from libc.
98418
98419 2000-09-10  Jim Meyering  <meyering@lucent.com>
98420
98421         * lib/getopt.c (_getopt_internal): Update from glibc.
98422
98423 2000-09-09  Jim Meyering  <meyering@lucent.com>
98424
98425         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98426         think it should be used as a general replacement for isascii.
98427         * lib/fnmatch.c: Likewise.
98428         * lib/mbswidth.c: Likewise
98429         * lib/regex.c: Likewise.
98430
98431         Don't use atoi.
98432         * lib/userspec.c: Include sys/param.h and limits.h.
98433         Include xstrtol.h.
98434         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98435         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98436         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98437         UID, GID.  Check range.
98438
98439 2000-09-06  Jim Meyering  <meyering@lucent.com>
98440
98441         * lib/getopt.c (_getopt_internal): Update from glibc.
98442
98443 2000-08-30  Jim Meyering  <meyering@lucent.com>
98444
98445         * lib/strftime.c: Merge in changes from GNU libc.
98446
98447 2000-08-26  Jim Meyering  <meyering@lucent.com>
98448
98449         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98450         * m4/fpending.m4: New file.
98451
98452 2000-08-26  Jim Meyering  <meyering@lucent.com>
98453
98454         * lib/closeout.c: Include "__fpending.h".
98455         (close_stdout_status): Return right away if there's nothing to flush.
98456
98457         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98458         * lib/__fpending.c: New file.
98459         * lib/__fpending.h: New file.
98460
98461 2000-08-20  Jim Meyering  <meyering@lucent.com>
98462
98463         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98464         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98465         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98466
98467 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98468
98469         Improve fileutils installation on systems where running
98470         programs (like install) can't be unlinked.
98471         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98472         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98473
98474 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98475
98476         Standardize on "memory exhausted" instead of "Memory exhausted"
98477         or "virtual memory exhausted".
98478         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98479         "virtual memory exhausted".
98480         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98481         our own message.
98482         * lib/userspec.c (parse_user_spec): Likewise.
98483         * lib/bumpalloc.h: comment fix
98484         * lib/same.c, userspec.c: Include xalloc.h.
98485
98486         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98487         not char *const and pointing to a constant array.
98488         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98489         (xrealloc): Comment fix.
98490
98491         * lib/userspec.c (parse_user_spec):
98492         Don't translate a message until just before returning,
98493         to avoid unnecessary translation.
98494
98495 2000-08-07  Jim Meyering  <meyering@lucent.com>
98496
98497         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98498         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98499         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98500         getgroups.c, gethostname.c, getopt.h, group-member.c,
98501         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98502         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98503         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98504         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98505         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98506         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98507         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98508         yesno.c: Back out Copyright date changes for each file with no change
98509         this year.  This eases coordination with other programs using the same
98510         source code modules.  From Paul Eggert.
98511
98512 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98513
98514         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98515         not char, for compatibility with glibc 2.1.3 strftime.c.
98516
98517 2000-08-03  Greg McGary  <greg@mcgary.org>
98518
98519         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98520         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98521         (EXTEND_BUFFER): Use them.
98522
98523 2000-08-01  Jim Meyering  <meyering@lucent.com>
98524
98525         * lib/dirname.c (ISSLASH): Define.
98526         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98527         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98528         both `\' and `/' may be use as path separators.
98529         Based on a patch from Prashant TR.
98530
98531 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98532
98533         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98534         slot vector a constant, since it might get modified.
98535
98536 2000-07-31  Jim Meyering  <meyering@lucent.com>
98537
98538         * lib/xmalloc.c: Use `virtual memory exhausted', not
98539         `Memory exhausted'.
98540         * lib/obstack.c (print_and_abort): Likewise.
98541
98542 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98543
98544         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98545         buffer, so that the caller can always quote one small
98546         component of a "memory exhausted" message in slot 0.
98547         From a suggestion by Jim Meyering.
98548
98549 2000-07-30  Jim Meyering  <meyering@lucent.com>
98550
98551         * lib/makepath.c (make_path): Quote the other instance, too.
98552
98553         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98554         (STATIC_BUF_SIZE): Define.
98555         (quotearg_n_options): Use only statically allocated storage when
98556         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98557         than STATIC_BUF_SIZE.
98558
98559 2000-07-29  Jim Meyering  <meyering@lucent.com>
98560
98561         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98562         * lib/dirname.c (dir_name): Likewise.
98563
98564         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98565         `/'.
98566
98567         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98568         (dir_name): Assert that there are no trailing slashes.
98569
98570 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98571
98572         * lib/mbswidth.h (mbswidth): Add a flags argument.
98573         (mbswidth): New declaration.
98574         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98575         * lib/mbswidth.c (mbswidth): Add a flags argument.
98576         (mbsnwidth): New function.
98577
98578 2000-07-24  Jim Meyering  <meyering@lucent.com>
98579
98580         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98581
98582 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98583
98584         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98585
98586 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98587
98588         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98589         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98590         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98591         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98592         invoke multibyte primitives.
98593
98594 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98595
98596         * lib/quotearg.c:
98597         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98598         so that mbstate_t is always defined.
98599
98600         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98601         be 1 in at least one GCC installation, and this configuration
98602         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98603         performance on hosts that have mbrtowc but have only unibyte
98604         locales, but I assume these hosts are rare.
98605
98606 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98607
98608         * lib/mbswidth.c (_XOPEN_SOURCE):
98609         Don't define; this causes problems on Solaris 7.
98610         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98611
98612 2000-07-23  Jim Meyering  <meyering@lucent.com>
98613
98614         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98615         too: getgrgid, getpwuid, getuid.
98616
98617 2000-07-23  Jim Meyering  <meyering@lucent.com>
98618
98619         * lib/basename.c (base_name): Add an assertion.
98620
98621 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98622
98623         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98624         shadow its mbsinit function.
98625
98626 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98627
98628         * lib/mbswidth.h: New file.
98629         * lib/mbswidth.c: New file.
98630         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98631         (noinst_HEADERS): Add mbswidth.h.
98632
98633 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98634
98635         * lib/config.charset: Add support for FreeBSD. Improve support for
98636         HP-UX and IRIX 6.
98637
98638 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98639
98640         * m4/mbswidth.m4: New file.
98641         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98642
98643 2000-07-15  Jim Meyering  <meyering@lucent.com>
98644
98645         * lib/makepath.c: Include quote.h.
98646         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98647         corresponding argument in a `quote (...)' call.
98648         Give better diagnostics.
98649
98650         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98651         (noinst_HEADERS): Add quote.h.
98652
98653         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98654         from tar's src/misc.c.
98655         * lib/quote.h: New file.  Prototypes for same.
98656
98657 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98658
98659         From a suggestion by Bruno Haible.
98660         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98661         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98662         to decide whether to define the BeOS workaround macro;
98663         this adjusts to the change to AC_MBSTATE_T.
98664
98665 2000-07-14  Jim Meyering  <meyering@lucent.com>
98666
98667         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98668         jm_AC_TYPE_UINTMAX_T.
98669
98670 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98671
98672         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98673
98674         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98675         quotearg_buffer_restyled): Add support for
98676         clocale_quoting_style.  Undo previous change to
98677         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98678         and "{RIGHT QUOTATION MARK}" msgids.
98679
98680 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98681
98682         From a suggestion by Bruno Haible.
98683         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98684         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98685         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98686         and mbstate_t, to a single-part test that simply defines mbstate_t.
98687         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98688         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98689
98690 2000-07-10  Jim Meyering  <meyering@lucent.com>
98691
98692         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98693
98694         * m4/gnu-source.m4: Output to confdefs.h directly.
98695         Suggestion from Akim Demaille.
98696
98697 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98698
98699         The old behavior of quoting `like this' doesn't look good with
98700         newer, ISO-style fonts.  See:
98701         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98702
98703         Instead, quote "like this" by default.  Let the translator
98704         tailor the locale-specific quoting behavior by providing
98705         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98706
98707         * lib/quotearg.c (N_): New macro.
98708         (gettext_default): New function.
98709         (quotearg_buffer_restyled): Use
98710         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98711         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98712
98713 2000-07-09  Jim Meyering  <meyering@lucent.com>
98714
98715         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98716         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98717
98718         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98719         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98720
98721 2000-07-09  Jim Meyering  <meyering@lucent.com>
98722
98723         * lib/Most files: Update copyright dates to include 2000.
98724
98725 2000-07-08  Jim Meyering  <meyering@lucent.com>
98726
98727         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98728         if not defined.
98729         (xgethostname): Remove now-unnecessary #ifdef.
98730         Move declaration of `err' into loop where it's used.
98731
98732 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98733         and Bruno Haible  <haible@clisp.cons.org>
98734
98735         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98736         only if the test for an object-type mbstate_t fails.  This
98737         prevents us from mistakenly reporting that mbstate_t is a
98738         system object type after we "#define mbstate_t int" to work
98739         around its lack.
98740
98741 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98742         and Bruno Haible  <haible@clisp.cons.org>
98743
98744         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98745
98746 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98747
98748         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98749         to strerror_r.
98750         Include <ctype.h> for use of isalpha.
98751
98752 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98753
98754         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98755         by allocating a larger buffer. Test the gethostname return value for
98756         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98757         returns an error and ENAMETOOLONG isn't defined.
98758
98759 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98760
98761         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98762         dimension.
98763
98764 2000-07-04  Jim Meyering  <meyering@lucent.com>
98765
98766         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98767         of the deprecated AC_CHECKING.
98768
98769 2000-07-04  Jim Meyering  <meyering@lucent.com>
98770
98771         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98772         Reported by Bruno Haible.
98773
98774 2000-07-04  Jim Meyering  <meyering@lucent.com>
98775
98776         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98777         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98778         lacks mbrtowc.
98779
98780 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98781
98782         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98783         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98784
98785 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98786         and Bruno Haible  <haible@clisp.cons.org>
98787
98788         * lib/quotearg.c (mbrtowc):
98789         Assign to *pwc, and return 1 only if result is nonzero.
98790         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98791
98792 2000-07-03  Jim Meyering  <meyering@lucent.com>
98793
98794         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98795
98796 2000-07-03  Jim Meyering  <meyering@lucent.com>
98797
98798         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98799         This is necessary to get a definition of e.g., UTMP_FILE on
98800         HP-UX 10.20.
98801         From Bob Proulx.
98802
98803 2000-07-02  Jim Meyering  <meyering@lucent.com>
98804
98805         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98806
98807         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98808         AC_LIBOBJ(function_name).
98809         * m4/chown.m4: Likewise.
98810         * m4/fnmatch.m4: Likewise.
98811         * m4/ftruncate.m4: Likewise.
98812         * m4/getgroups.m4: Likewise.
98813         * m4/getline.m4: Likewise.
98814         * m4/group-member.m4: Likewise.
98815         * m4/jm-macros.m4: Likewise.
98816         * m4/lstat.m4: Likewise.
98817         * m4/malloc.m4: Likewise.
98818         * m4/memcmp.m4: Likewise.
98819         * m4/nanosleep.m4: Likewise.
98820         * m4/putenv.m4: Likewise.
98821         * m4/realloc.m4: Likewise.
98822         * m4/regex.m4: Likewise.
98823         * m4/stat.m4: Likewise.
98824         * m4/strftime.m4: Likewise.
98825
98826 2000-07-02  Jim Meyering  <meyering@lucent.com>
98827
98828         * lib/quotearg.c (mbstate_t): Don't define here.
98829
98830 2000-07-02  Jim Meyering  <meyering@lucent.com>
98831
98832         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98833
98834 2000-07-01  Jim Meyering  <meyering@lucent.com>
98835
98836         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98837
98838 2000-07-01  Jim Meyering  <meyering@lucent.com>
98839
98840         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98841         problem.
98842
98843 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98844
98845         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98846         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98847
98848 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98849
98850         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98851         per change in ../m4/ls-mntd-fs.m4.
98852         (read_filesystem_list): Ignore symbolic links.
98853
98854 2000-06-29  Jim Meyering  <meyering@lucent.com>
98855
98856         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98857         for declaration of strcmp.
98858
98859         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98860
98861         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98862         Avoid warning by casting result to `char *' to remove `const'.
98863
98864 2000-06-28  Jim Meyering  <meyering@lucent.com>
98865
98866         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98867         included by quotearg.c, for which we perform this test.  From
98868         Bruno Haible.
98869
98870 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98871
98872         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98873         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98874         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98875
98876 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98877
98878         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98879
98880 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98881
98882         savedir now sets errno on failure and invokes xmalloc to get memory.
98883         Fix a couple of other minor bugs while we're at it.
98884
98885         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98886         (NAMLEN): Remove macro.
98887         (malloc, realloc): Remove decls.
98888         (stpcpy): Likewise.
98889         ("xalloc.h"): Include.
98890         (NAME_SIZE_DEFAULT): New macro.
98891         (savedir): Use xmalloc / xrealloc to allocate memory.
98892         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98893         Skip "" directory entries.
98894         Use strlen to calculate directory entry length, since the old method
98895         is rarely used these days and isn't worth supporting.
98896         Don't use a pointer after freeing it.
98897         Check for integer overflow when calculating allocation size.
98898         Use memcpy to copy entries, instead of stpcpy.
98899         Set errno properly when returning NULL.
98900         Check for readdir error.
98901
98902 2000-06-26  Jim Meyering  <meyering@lucent.com>
98903
98904         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98905
98906 2000-06-25  Jim Meyering  <meyering@lucent.com>
98907
98908         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98909         Linux header bug when _XOPEN_SOURCE is defined to 500.
98910
98911 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98912
98913         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98914         deficiency.
98915
98916 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98917
98918         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98919         Include xalloc.h.
98920         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98921
98922 2000-06-24  Jim Meyering  <meyering@lucent.com>
98923
98924         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98925         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98926         for which strerror does return char*, but which lacks a conveniently
98927         accessible declaration of the function.  If the compile-test says
98928         strerror_r doesn't work, then resort to a `run'-test that works on
98929         BeOS and segfaults on DEC Unix.
98930
98931 2000-06-24  Jim Meyering  <meyering@lucent.com>
98932
98933         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98934
98935 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98936
98937         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98938         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98939
98940 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98941
98942         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98943         (mbrtowc, mbstate_t): Define substitutes if
98944         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98945         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98946         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98947
98948 2000-06-23  Jim Meyering  <meyering@lucent.com>
98949
98950         * m4/afs.m4: Add missing AC_MSG_RESULT.
98951         Reported by Bruno Haible.
98952
98953         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98954         Suggestion from Bruno Haible.
98955
98956 2000-06-23  Jim Meyering  <meyering@lucent.com>
98957
98958         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98959
98960 2000-06-21  Jim Meyering  <meyering@lucent.com>
98961
98962         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98963
98964 2000-06-21  Jim Meyering  <meyering@lucent.com>
98965
98966         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98967         (noinst_HEADERS): Add getstr.h.
98968
98969         * lib/getline.c (getstr): Move into a separate file.
98970         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98971         the following changes: new parameter, delim2; both delim[12]
98972         parameters have type `int', not `char'.  The latter would lose
98973         with 8-bit delimiters.
98974         * lib/getstr.h: New file.
98975
98976 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98977
98978         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98979         than 1024, return a memory chunk of least possible size, instead
98980         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98981         Use free/xmalloc instead of xrealloc to avoid copying for very long
98982         paths.
98983
98984 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98985
98986         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98987         the empty string.
98988
98989 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98990
98991         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98992         address, not strdup.  Include <stdlib.h> and don't declare free().
98993
98994 2000-06-19  Jim Meyering  <meyering@lucent.com>
98995
98996         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98997
98998 2000-06-18  Jim Meyering  <meyering@lucent.com>
98999
99000         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99001
99002         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99003         `checking whether...' message to be consistent with that of the
99004         lstat test.
99005
99006 2000-06-18  Jim Meyering  <meyering@lucent.com>
99007
99008         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99009         Besides, these days every porting target provides a mkdir function.
99010
99011         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99012         needed. (this snippet comes from src/system.h).
99013
99014 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99015
99016         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99017
99018 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99019
99020         * lib/human.c (adjust_value): New function.
99021         (human_readable_inexact): Apply rounding style even when
99022         printing approximate values.
99023
99024 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99025
99026         * lib/human.c (human_readable_inexact): Allow an input block
99027         size that is not a multiple of the output block size, and vice versa.
99028         Reported by Piergiorgio Sartor.
99029
99030 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99031
99032         * lib/getdate.y (get_date): Apply relative times after time
99033         zone indicator, not before.  Reported by Todd A. Jacobs.
99034
99035 2000-06-13  Jim Meyering  <meyering@lucent.com>
99036
99037         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99038
99039         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99040
99041 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99042
99043         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99044
99045 2000-06-12  Jim Meyering  <meyering@lucent.com>
99046
99047         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99048         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99049         optional argument.
99050         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99051         the optional argument, `lib'.
99052
99053 2000-06-08  Jim Meyering  <meyering@lucent.com>
99054
99055         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99056
99057 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99058
99059         Rewrite largefile configuration so that we don't need to run
99060         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99061         AC_CANONICAL_HOST in configure.in -- jmm]
99062
99063         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99064         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99065         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99066         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99067         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99068         All uses changed.
99069         Instead of inspecting the output of getconf, try to compile the
99070         test program without and with the macro definition.
99071         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99072         for getconf.  Instead, check for the needed flags by compiling
99073         test programs.
99074
99075 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99076
99077         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99078
99079 2000-06-04  Jim Meyering  <meyering@lucent.com>
99080
99081         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99082         SunOS 4.1.4 for which gid_t is an unsigned type.
99083
99084 2000-06-03  Jim Meyering  <meyering@lucent.com>
99085
99086         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99087         now that autoconf requires that.
99088
99089         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99090         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99091         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99092
99093 2000-06-03  Jim Meyering  <meyering@lucent.com>
99094
99095         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99096
99097 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99098
99099         * m4/glibc21.m4: New file.
99100         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99101
99102 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99103
99104         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99105         newer, don't install charset.alias.
99106         * lib/config.charset: Change the Linux/glibc rules so they become empty
99107         on glibc-2.1 or newer.
99108
99109 2000-06-02  Jim Meyering  <meyering@lucent.com>
99110
99111         * lib/mountlist.c: Back out last change.  Instead, do this...
99112         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99113         me_dummy member using the same `ignore'-testing code.
99114         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99115         fs_type strings.
99116         From Mark D. Roth.
99117
99118 2000-05-29  Jim Meyering  <meyering@lucent.com>
99119
99120         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99121         mounts with the `ignore' attribute.  Based on a patch from
99122         Mark D. Roth.
99123
99124 2000-05-28  Jim Meyering  <meyering@lucent.com>
99125
99126         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99127         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99128         * m4/stat.m4: Likewise.
99129         * m4/lstat.m4: Likewise.
99130         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99131
99132         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99133         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99134
99135 2000-05-26  Jim Meyering  <meyering@lucent.com>
99136
99137         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99138
99139 2000-05-24  Jim Meyering  <meyering@lucent.com>
99140
99141         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99142         autoconf requires that.
99143         * m4/lib-check.m4: Likewise.
99144         * m4/jm-macros.m4: Likewise.
99145         * m4/strftime.m4: Likewise.
99146
99147         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99148         AC_CHECK_DECLS, now that autoconf requires that.
99149
99150 2000-05-22  Jim Meyering  <meyering@lucent.com>
99151
99152         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99153         * m4/lstat.m4: Likewise.
99154
99155 2000-05-22  Jim Meyering  <meyering@lucent.com>
99156
99157         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99158
99159 2000-05-20  Jim Meyering  <meyering@lucent.com>
99160
99161         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99162         (jm_PREREQ): Use it.
99163
99164 2000-05-18  Jim Meyering  <meyering@lucent.com>
99165
99166         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99167         back, too, since it may have been modified by allocate_entry.
99168         (hash_delete): Rewrite to use neither the assignment operator
99169         nor the comma operator in an if-expression.
99170
99171 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99172
99173         * lib/closeout.c:
99174         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99175         Remove; no longer needed.
99176         "quotearg.h": Add include.
99177         (file_name): Do not bother to explicitly initialize to NULL; it's less
99178         efficient on some hosts.
99179         (close_stdout_status): Remove test as to whether stdout was already
99180         closed; it breaks for the case "echo x | sort >&-".
99181         Quote file name colons.
99182         Do not assume that _("write error") lacks format strings.
99183
99184 2000-05-15  Jim Meyering  <meyering@lucent.com>
99185
99186         * lib/version-etc.c (version_etc_copyright): Update the copyright
99187         string used in all --version output.
99188
99189 2000-05-14  Jim Meyering  <meyering@lucent.com>
99190
99191         * lib/closeout.c (close_stdout_set_file_name): New function.
99192         (close_stdout_status): Use new file-scoped global.
99193         Return right away if fstat says the stdout file descriptor is invalid.
99194         * lib/closeout.h (close_stdout_set_file_name): Declare.
99195
99196 2000-05-10  Jim Meyering  <meyering@lucent.com>
99197
99198         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99199         (close_stdout_set_status): New function.
99200         * lib/closeout.h (close_stdout_set_status): Declare.
99201
99202 2000-05-09  Jim Meyering  <meyering@lucent.com>
99203
99204         * m4/gettext.m4: Rename this...
99205         * m4/libintl.m4: ...to this.
99206
99207 2000-05-08  Jim Meyering  <meyering@lucent.com>
99208
99209         * lib/long-options.c: Don't include closeout.h.
99210         (parse_long_options): Don't call close_stdout for --version.
99211
99212 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99213
99214         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99215         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99216         2.1.3 bug.  This avoids a clash when files like regex.c define
99217         _GNU_SOURCE.
99218
99219 2000-05-06  Jim Meyering  <meyering@lucent.com>
99220
99221         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99222         (AC_REPLACE_FUNCS): Add strnlen.
99223
99224         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99225         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99226
99227         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99228         AC_SEARCH_LIBS call for nanosleep.
99229         (LIB_NANOSLEEP): Set and AC_SUBST.
99230
99231 2000-05-06  Jim Meyering  <meyering@lucent.com>
99232
99233         * lib/strnlen.c: Undefine __strnlen and strnlen.
99234         [!weak_alias]: Define __strnlen to strnlen.
99235
99236         * lib/atexit.c: New file, from libiberty.
99237
99238 2000-05-06  Jim Meyering  <meyering@lucent.com>
99239
99240         * lib/closeout.c (close_stdout_status): Also check for errors on the
99241         stderr stream.
99242
99243 2000-05-05  Jim Meyering  <meyering@lucent.com>
99244
99245         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99246         AC_SEARCH_LIBS call for clock_gettime.
99247         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99248
99249         * m4/search-libs.m4: Update from autoconf.
99250
99251         su doesn't work on Solaris 2.6.
99252         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99253         <shadow.h>.  Reported by Dragos Harabor.
99254
99255 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99256
99257         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99258         memcpy instead of xmalloc, xrealloc, path_concat.
99259         (locale_charset): Treat empty environment variables as absent.
99260         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99261
99262 2000-05-04  Jim Meyering  <meyering@lucent.com>
99263
99264         * lib/getopt.c: Update from glibc.
99265         * lib/obstack.c: Likewise.
99266         * lib/obstack.h: Likewise.
99267         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99268         file
99269
99270         * lib/regex.h: Likewise.
99271         * lib/strndup.c: Likewise.
99272         * lib/strnlen.c: New file, from glibc.
99273
99274 2000-05-03  Jim Meyering  <meyering@lucent.com>
99275
99276         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99277
99278 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99279
99280         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99281         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99282         compile-time test, rather than inspecting host and OS, to
99283         decide whether to define _LARGEFILE_SOURCE.
99284
99285 2000-05-01  Jim Meyering  <meyering@lucent.com>
99286
99287         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99288
99289         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99290         Based on a patch from Bruno Haible.
99291
99292 2000-05-01  Jim Meyering  <meyering@lucent.com>
99293
99294         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99295
99296 2000-04-29  Jim Meyering  <meyering@lucent.com>
99297
99298         * lib/path-concat.c: Declare strdup only if it's not defined.
99299         * lib/canon-host.c: Likewise.
99300
99301 2000-04-28  Jim Meyering  <meyering@lucent.com>
99302
99303         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99304         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99305         is included first, then limits.h is included by locale.h by libintl.h.
99306         From John David Anglin.
99307
99308 2000-04-25  Jim Meyering  <meyering@lucent.com>
99309
99310         * lib/makepath.c (S_IRWXUGO): Define.
99311         (make_path): Always perform explicit chmod if MODE specifies any
99312         of the `special' permission bits.  Prompted by a bug report against
99313         install from Mate Wierdl and Joost van Baal.
99314
99315 2000-04-18  Jim Meyering  <meyering@lucent.com>
99316
99317         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99318         (jm_PREREQ): Use it.
99319
99320 2000-04-18  Jim Meyering  <meyering@lucent.com>
99321
99322         * lib/README: New file.
99323
99324         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99325         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99326
99327 2000-04-17  Jim Meyering  <meyering@lucent.com>
99328
99329         Get it right :-)
99330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99331         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99332         Suggestion from Akim Demaille.
99333
99334 2000-04-17  Jim Meyering  <meyering@lucent.com>
99335
99336         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99337         the definition of it to rpl_strftime also defined-away the system's
99338         declaration.
99339
99340 2000-04-15  Jim Meyering  <meyering@lucent.com>
99341
99342         Use `C' to denote so-called `contiguous' files, the same way
99343         that tar does.
99344         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99345         (ftypelet): Use S_ISCTG.
99346         From Michael Deutschmann.
99347
99348 2000-04-14  Jim Meyering  <meyering@lucent.com>
99349
99350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99351         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99352         clobbered.
99353
99354 2000-04-14  Jim Meyering  <meyering@lucent.com>
99355
99356         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99357
99358 2000-04-13  Jim Meyering  <meyering@lucent.com>
99359
99360         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99361         AH_VERBATIM to insert required #ifndef into config.h.in.
99362         Suggestion from Akim Demaille.
99363
99364 2000-04-12  Jim Meyering  <meyering@lucent.com>
99365
99366         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99367         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99368         Christian Krackowizer.
99369
99370         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99371         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99372         (AC_SYS_LARGEFILE): Require.
99373         (AM_C_PROTOTYPES): Require.
99374
99375 2000-04-08  Jim Meyering  <meyering@lucent.com>
99376
99377         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99378         names don't conflict.  Reported by Eli Zaretskii.
99379
99380 2000-04-07  Jim Meyering  <meyering@lucent.com>
99381
99382         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99383         sys/types.h, to work around system header problems on AIX 3.2.5.
99384         From Bruno Haible.
99385
99386 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99387
99388         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99389         bug.  Deal with the different error behavior of Irix iconv.
99390
99391 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99392
99393         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99394         IRIX if the installer said otherwise.
99395
99396 2000-04-05  Jim Meyering  <meyering@lucent.com>
99397
99398         Portability tweaks required for ultrix4.3.
99399         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99400         (jm_CHECK_DECLS): Add getutent to the list of functions.
99401         (_jm_DECL_HEADERS): Add utmpx.h.
99402         From John David Anglin.
99403
99404         * m4/strftime.m4: Back out the 2000-04-02 change.
99405         Instead of that change, simply undefine putenv in the test program.
99406
99407 2000-04-05  Jim Meyering  <meyering@lucent.com>
99408
99409         Portability tweaks required for ultrix4.3.
99410         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99411         getutent.
99412         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99413         * lib/canon-host.c: Declare strdup.
99414         * lib/path-concat.c: Likewise.
99415         From John David Anglin.
99416
99417 2000-04-04  Jim Meyering  <meyering@lucent.com>
99418
99419         Be more DOS 8.3-friendly.
99420         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99421         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99422         * lib/Makefile.am: Reflect renaming.
99423         Reported by Eli Zaretskii.
99424
99425         Use a temporary file name that won't clash with `charset.alias'
99426         in the DOS 8.3 name space.
99427         * lib/Makefile.am (charset_tmp): Define.
99428         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99429         (uninstall-local): Likewise.
99430         Reported by Eli Zaretskii.
99431
99432 2000-04-03  Jim Meyering  <meyering@lucent.com>
99433
99434         * m4/gettext.m4: Fix typo in comment.
99435
99436         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99437         textutils/configure.in).  Suggestion from Paul Eggert.
99438         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99439
99440 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99441
99442         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99443         variable in the shell rather than using putenv, which isn't
99444         portable.  This avoids the configure-time inter-test dependency
99445         on the potentially-renamed putenv function.
99446
99447 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99448
99449         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99450         before checking struct stat.st_blksize, so that
99451         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99452
99453 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99454
99455         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99456         since strftime.c uses HAVE_STRFTIME to decide whether to use
99457         the underlying strftime.
99458
99459 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99460
99461         * lib/time/strftime.c (my_strftime): Make sure we call the system
99462         strftime, not ourselves, when invoking the underlying strftime.
99463
99464 2000-03-24  Jim Meyering  <meyering@lucent.com>
99465
99466         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99467         (charset_alias): Define.
99468         (install-exec-local): Factor out common code.
99469         (uninstall-local): Split lines longer than 80.
99470         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99471         (SUFFIXES): Define.
99472         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99473         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99474
99475 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99476
99477         * lib/config.charset: Output a line containing "Packages using this
99478         file".
99479         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99480         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99481         ref-del.sed): New rules.
99482
99483 2000-03-17  Jim Meyering  <meyering@lucent.com>
99484
99485         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99486         Otherwise, include <strings.h>
99487
99488 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99489
99490         * lib/unicodeio.c (utf8_wctomb): New function.
99491         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99492         format instead of in UCS-4 with platform dependent endianness.
99493
99494 2000-03-10  Jim Meyering  <meyering@lucent.com>
99495
99496         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99497         From Marco Franzen.
99498
99499 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99500
99501         * lib/savedir.c (savedir): Work even if directory size is
99502         negative; this can happen with some screwy NFS configurations.
99503
99504 2000-03-06  Jim Meyering  <meyering@lucent.com>
99505
99506         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99507         if it's NULL (because we ran out of memory).  From Bruno Haible.
99508
99509 2000-03-05  Jim Meyering  <meyering@lucent.com>
99510
99511         * lib/localcharset.c ("path-concat.h"): Include.
99512         (get_charset_aliases): Use path_concat instead of ANSI string
99513         concatenation.
99514
99515         * lib/unicodeio.h (PARAMS): Define.
99516         Use it to guard prototype.
99517
99518 2000-03-04  Jim Meyering  <meyering@lucent.com>
99519
99520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99521         for lib/localcharset.c.
99522
99523 2000-03-04  Jim Meyering  <meyering@lucent.com>
99524
99525         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99526         installing into it.
99527         (uninstall-local): Uncomment this rule so `make distcheck' works
99528         once again.
99529
99530         * lib/unicodeio.c (<errno.h>): Include it.
99531         (errno): Declare if not defined.
99532
99533         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99534
99535         * lib/config.charset: New version, incorporating remarks from a linux
99536         i18n mailing list.  From Bruno Haible.
99537
99538 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99539
99540         * m4/codeset.m4: New file.
99541         * m4/iconv.m4: New file.
99542         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99543
99544 2000-03-03  Jim Meyering  <meyering@lucent.com>
99545
99546         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99547
99548 2000-03-02  Jim Meyering  <meyering@lucent.com>
99549
99550         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99551         the messages come out on separate lines.
99552
99553         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99554         rather than jm_CHECK_DECLARATIONS.
99555         * m4/decl.m4: Remove now-unused file.
99556
99557         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99558         geteuid.
99559
99560 2000-03-02  Jim Meyering  <meyering@lucent.com>
99561
99562         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99563
99564 2000-03-01  Jim Meyering  <meyering@lucent.com>
99565
99566         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99567         * lib/unicodeio.c: Likewise.
99568
99569 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99570
99571         * lib/config.charset: New file.
99572         * lib/localcharset.c: New file.
99573         * lib/unicodeio.h, lib/unicodeio.c: New files.
99574         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99575         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99576         (noinst_HEADERS): Add unicodeio.h.
99577         (all-local, install-exec-local, charset.alias): New targets.
99578
99579 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99580
99581         * lib/quotearg.c (ALERT_CHAR): New macro.
99582         (quotearg_buffer_restyled): Use it.
99583
99584 2000-02-27  Jim Meyering  <meyering@lucent.com>
99585
99586         * m4/check-decl.m4: Add getenv to the list.
99587
99588 2000-02-27  Jim Meyering  <meyering@lucent.com>
99589
99590         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99591         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99592
99593         * lib/backupfile.c: Guard inclusion of stdlib.h with
99594         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99595         Declare malloc if needed.
99596
99597         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99598         `#ifndef HAVE_DECL..'
99599         now that autoconf always defines the HAVE_DECL_ symbols.
99600         * lib/human.c: Likewise.
99601         * lib/same.c: Likewise.
99602         * lib/strtoumax.c: Likewise.
99603
99604         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99605         declaration check was not run.
99606         * lib/hash.c: Likewise.
99607         * lib/human.c: Likewise.
99608         * lib/same.c: Likewise.
99609         * lib/strtoumax.c: Likewise.
99610
99611         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99612         `.', then first look up the entire `.'-containing string as a login
99613         name.
99614
99615 2000-02-23  Jim Meyering  <meyering@lucent.com>
99616
99617         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99618         in place of my hack.
99619
99620 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99621
99622         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99623         (textint): New typedef.
99624         (parser_control): Member year changed from int to textint.
99625         All uses changed.
99626         (YYSTYPE): Removed; replaced by %union with int and textint members.
99627         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99628         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99629         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99630         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99631         (date, number, to_year): Use width of number in digits, not its value,
99632         to determine whether it's a 2-digit year, or a 2-digit time.
99633         (yylex): Store number of digits of numeric tokens.
99634         Reported by John Kendall.
99635
99636         (parser_control): Changed from struct parser_control to typedef (for
99637         consistency).  All uses changed.
99638
99639         (tID): Removed; not used.
99640         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99641
99642 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99643
99644         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99645         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99646
99647 2000-02-12  Jim Meyering  <meyering@lucent.com>
99648
99649         * lib/userspec.c (ISDIGIT): Define it.
99650         (isdigit): Remove definition.
99651         (is_number): Use ISDIGIT, not isdigit.
99652         <libintl.h>: Include.
99653         (_ and N_): Define.
99654         (parse_user_spec): Mark translatable strings.
99655
99656 2000-02-10  Jim Meyering  <meyering@lucent.com>
99657
99658         With these changes, nanosleep.[ch] are finally enough like the other
99659         lib/* replacement files to compile on a few more losing systems.
99660
99661         * lib/nanosleep.h: Don't include config.h.
99662         Remove prototype from declaration of nanosleep.
99663         (PARAMS): Remove now-unneeded definition.
99664         * lib/nanosleep.c: #undef nanosleep.
99665         (rpl_nanosleep): Rename from nanosleep.
99666
99667 2000-02-10  Jim Meyering  <meyering@lucent.com>
99668
99669         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99670         gnu_nanosleep to rpl_nanosleep.
99671
99672 2000-02-09  Jim Meyering  <meyering@lucent.com>
99673
99674         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99675         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99676
99677 2000-02-08  Akim Demaille  <akim@epita.fr>
99678
99679         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99680         `[' and `]' and remove uses of `changequote'.
99681         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99682         (AC_SYS_LARGEFILE): Likewise.
99683         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99684         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99685         of changequote.
99686         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99687         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99688         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99689         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99690
99691 2000-02-05  Jim Meyering  <meyering@lucent.com>
99692
99693         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99694         Remove explicit use of AC_HEADER_TIME.  It is required by
99695         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99696         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99697         in autoconf whereby the expansion of the latter ended up preceding
99698         the expansion of its prerequisite, AC_HEADER_TIME.
99699         Reported by Volker Borchert.
99700
99701 2000-02-03  Jim Meyering  <meyering@lucent.com>
99702
99703         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99704
99705 2000-02-03  Jim Meyering  <meyering@lucent.com>
99706
99707         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99708         rather than with `#if HAVE_UTMPNAME'.
99709
99710 2000-02-02  Jim Meyering  <meyering@lucent.com>
99711
99712         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99713         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99714         Reported by Eli Zaretskii.
99715
99716 2000-02-01  Jim Meyering  <meyering@lucent.com>
99717
99718         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99719
99720 2000-01-31  Jim Meyering  <meyering@lucent.com>
99721
99722         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99723         functions.  Add the time.h and sys/time.h headers along with the
99724         AC_REQUIRE'ment of AC_HEADER_TIME.
99725
99726 2000-01-31  Jim Meyering  <meyering@lucent.com>
99727
99728         * lib/nanosleep.h (nanosleep): Guard declaration with
99729         `#if ! HAVE_DECL_NANOSLEEP'.
99730         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99731         the declaration in that vendor's sys/timers.h.
99732         Reported by Christian Krackowizer.
99733
99734         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99735         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99736         (ISPRINT): Likewise.
99737         Reported by Tom Tromey.
99738
99739 2000-01-30  Jim Meyering  <meyering@lucent.com>
99740
99741         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99742
99743         * m4/prereq.m4 (utmp_includes): Define.
99744         Check for ut_user and ut_name members in both struct utmpx
99745         and struct utmp.
99746
99747 2000-01-30  Jim Meyering  <meyering@lucent.com>
99748
99749         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99750         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99751         header files where only utmpx.ut_user is declared.
99752
99753         * lib/readutmp.h (UT_USER): Define.
99754
99755 2000-01-29  Jim Meyering  <meyering@lucent.com>
99756
99757         * m4/lib-check.m4: New file containing library-related checks from
99758         fileutils and sh-utils (textutils had none).
99759
99760 2000-01-28  Jim Meyering  <meyering@lucent.com>
99761
99762         * m4/perl.m4: Change format of warning message to look more like that
99763         from the missing script.  Suggestion from François Pinard.
99764
99765 2000-01-25  Jim Meyering  <meyering@lucent.com>
99766
99767         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99768         well as time.h in the compile check.
99769         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99770         Fix typo in cross-compiling case: s/yes/no/.
99771
99772 2000-01-23  Jim Meyering  <meyering@lucent.com>
99773
99774         * m4/jm-macros.m4: Move df-related tests here from
99775         fileutils/configure.in
99776
99777         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99778         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99779
99780         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99781         s/space/ac_fsusage_space/.
99782         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99783
99784         * m4/ftruncate.m4: New file (derived from part of
99785         fileutils/configure.in).
99786         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99787         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99788
99789         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99790         AC_SUBST these here, rather than just in sh-util/configure.in, so
99791         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99792         all the same.
99793         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99794         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99795         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99796         (AC_SUBST(POW_LIBM)): Likewise.
99797         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99798
99799 2000-01-23  Jim Meyering  <meyering@lucent.com>
99800
99801         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99802         obstack.c.
99803
99804 2000-01-22  Jim Meyering  <meyering@lucent.com>
99805
99806         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99807
99808         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99809
99810         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99811         configure.in
99812         (AC_CHECK_HEADERS): Likewise for sh-utils.
99813         (AC_CHECK_HEADERS): Likewise for textutils.
99814         Merge the three lists of headers.
99815
99816         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99817         from fileutils' configure.in.
99818
99819         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99820         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99821         check-decl.m4.
99822
99823         * m4/check-decl.m4: Use #if rather than #ifdef.
99824         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99825         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99826         (_jm_DECL_HEADERS): Define new function.
99827         (jm_CHECK_DECLARATIONS): Require it.
99828
99829 2000-01-22  Jim Meyering  <meyering@lucent.com>
99830
99831         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99832         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99833         Required for some AIX systems.  Reported by Christian Krackowizer.
99834         [TESTING] (main): New function.
99835
99836         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99837         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99838         letters.
99839
99840         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99841         iswprint.
99842
99843         * lib/strverscmp.c (ISDIGIT): Define.
99844         (strverscmp): Use ISDIGIT, not isdigit.
99845
99846 2000-01-19  Jim Meyering  <meyering@lucent.com>
99847
99848         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99849         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99850         defines `struct timespec' in <sys/time.h>
99851
99852         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99853         Thanks to Akim for explaining.
99854
99855 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99856
99857         * lib/nanosleep.c (nanosleep):
99858         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99859         POSIX.1 doesn't require SA_INTERRUPT and some systems
99860         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99861         it's been part of POSIX.1 since day 1 (in 1988).
99862
99863 2000-01-17  Jim Meyering  <meyering@lucent.com>
99864
99865         * lib/interlock: Remove unused file.  Reported by François Pinard.
99866
99867 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99868
99869         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99870         alert, backslash, formfeed, and vertical tab unnecessarily in
99871         shell quoting style.
99872
99873 2000-01-16  Jim Meyering  <meyering@lucent.com>
99874
99875         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99876         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99877         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99878         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99879
99880 2000-01-16  Jim Meyering  <meyering@lucent.com>
99881
99882         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99883         because the latter didn't work.
99884
99885 2000-01-15  Jim Meyering  <meyering@lucent.com>
99886
99887         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99888         (AC_REPLACE_FUNCS): Add memcpy and memset.
99889         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99890         Add strpbrk.
99891         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99892
99893 2000-01-12  Jim Meyering  <meyering@lucent.com>
99894
99895         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99896         (jm_PREREQ): Use it.
99897         (jm_PREREQ_READUTMP): New macro.
99898         (jm_PREREQ): Use it.
99899
99900 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99901
99902         Quote multibyte characters correctly.
99903         * m4/c-bs-a.m4: New file.
99904         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99905         (jm_PREREQ): Use it.
99906
99907 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99908
99909         * m4/uintmax_t.m4: Port to autoconf 2.13.
99910
99911 2000-01-08  Jim Meyering  <meyering@ascend.com>
99912
99913         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99914         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99915
99916 2000-01-04  Jim Meyering  <meyering@ascend.com>
99917
99918         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99919         jm_STRUCT_DIRENT_D_TYPE.
99920         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99921         jm_STRUCT_DIRENT_D_INO.
99922         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99923         jm_STRUCT_UTIMBUF.
99924         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99925         renamings.
99926         * m4/utime.m4: Likewise.
99927
99928         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99929         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99930
99931 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99932
99933         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99934         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99935
99936 2000-01-02  Jim Meyering  <meyering@ascend.com>
99937
99938         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99939         remember if this is necessary.
99940
99941 1999-12-26  Jim Meyering  <meyering@ascend.com>
99942
99943         * m4/jm-macros.m4: Use it here.
99944         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99945
99946 1999-12-23  Jim Meyering  <meyering@ascend.com>
99947
99948         * m4/jm-macros.m4: Check for clock_gettime (moved from
99949         fileutils/configure.in)
99950         Check for gettimeofday.
99951
99952 1999-12-20  Jim Meyering  <meyering@ascend.com>
99953
99954         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99955         autoconf-2.14a-1999-12-20.
99956
99957 1999-12-19  Jim Meyering  <meyering@ascend.com>
99958
99959         * m4/lstat-slash.m4: New file.
99960         * m4/jm-macros.m4: Use the new macro:
99961         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99962
99963 1999-12-07  Jim Meyering  <meyering@ascend.com>
99964
99965         * m4/perl.m4: Require that File::Compare be available, too.
99966         Too many systems seem to lack it.
99967
99968         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99969         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99970
99971 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99972
99973         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99974         problem with the QNX 4.25 shell, which doesn't propagate exit
99975         status of failed commands inside shell assignments.
99976
99977 1999-11-17  Jim Meyering  <meyering@ascend.com>
99978
99979         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99980
99981 1999-11-07  Jim Meyering  <meyering@ascend.com>
99982
99983         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99984
99985 1999-11-06  Jim Meyering  <meyering@ascend.com>
99986
99987         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99988         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99989
99990 1999-11-05  Jim Meyering  <meyering@ascend.com>
99991
99992         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99993         configure.in of textutils, fileutils, and sh-utils into this one
99994         (shared between those packages) file.
99995         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99996         AC_STRUCT_ST_BLKSIZE.
99997
99998 1999-11-03  Jim Meyering  <meyering@ascend.com>
99999
100000         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100001         of AC_CHECK_TYPE checks includes unistd.h.
100002         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100003         Suggestion from Akim Demaille.
100004
100005 1999-10-30  Jim Meyering  <meyering@ascend.com>
100006
100007         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100008         m4-quoted string.
100009         * m4/ls-mntd-fs.m4: Likewise.
100010         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100011         * m4/jm-winsz1.m4: Likewise.
100012
100013         * m4/const.m4: Remove file, since the fix made it into the experimental
100014         version of autoconf.
100015         * m4/mktime.m4: Likewise.
100016
100017         * m4/check-type.m4: Remove file, now that the latest version of
100018         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100019
100020         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100021         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100022         AC_CHECK_TYPE.
100023
100024 1999-10-04  Jim Meyering  <meyering@ascend.com>
100025
100026         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100027
100028 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100029
100030         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100031         2.95.1 bug with HP-UX 10.20.
100032
100033 1999-09-17  Jim Meyering  <meyering@ascend.com>
100034
100035         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100036         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100037         due to missing strdup (against sh-utils-2.0).
100038
100039 1999-08-29  Jim Meyering  <meyering@ascend.com>
100040
100041         * m4/jm-macros.m4: Require jm_BISON.
100042         * m4/bison.m4: New file.
100043
100044 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100045
100046         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100047         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100048
100049 1999-08-05  Jim Meyering  <meyering@ascend.com>
100050
100051         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100052         to avoid conflicts with `conftest' on 8+3 filesystems.
100053         Suggestion from Eli Zaretskii.
100054
100055 1999-08-04  Jim Meyering  <meyering@ascend.com>
100056
100057         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100058         fileutils and sh-utils (textutils's getline test was inadequate).
100059         (AM_FUNC_GETLINE): Run this test.
100060         (AC_CHECK_FUNCS): Check for getdelim.
100061         Reported by Bob Proulx.
100062
100063 1999-08-02  Jim Meyering  <meyering@ascend.com>
100064
100065         * m4/jm-macros.m4: Add a comment.
100066
100067 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100068
100069         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100070         <inttypes.h> defines strtoumax as a macro (and not as a
100071         function).
100072
100073 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100074
100075         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100076         that we can shift, multiply and divide unsigned long long
100077         values; Ultrix cc can't do it.
100078
100079 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100080
100081         * m4/mktime.m4: New file, which is a preview of what should appear
100082         in the next public autoconf release.
100083
100084 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100085
100086         * m4/lfs.m4: Remove this file.
100087         * m4/largefile.m4: New file.  It contains the old contents of
100088         lfs.m4, except that all names with prefix AC_LFS have been
100089         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100090         compatible with future autoconf versions.  Also, some minor m4
100091         quoting problems have been fixed.
100092
100093 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100094
100095         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100096         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100097         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100098         and simplify the shell code.
100099
100100 1999-08-01  Jim Meyering  <meyering@ascend.com>
100101
100102         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100103         m4.
100104
100105 1999-07-20  Jim Meyering  <meyering@ascend.com>
100106
100107         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100108
100109 1999-07-15  Jim Meyering  <meyering@ascend.com>
100110
100111         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100112
100113 1999-05-22  Jim Meyering  <meyering@ascend.com>
100114
100115         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100116
100117 1999-05-20  Jim Meyering  <meyering@ascend.com>
100118
100119         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100120         Add a colon after each `then' in case $4 is empty.
100121
100122 1999-05-16  Jim Meyering  <meyering@ascend.com>
100123
100124         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100125
100126 1999-05-10  Jim Meyering  <meyering@ascend.com>
100127
100128         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100129
100130         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100131         AC_FUNC_MKTIME.
100132
100133 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100134
100135         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100136
100137 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100138
100139         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100140         not CPPFLAGS, so that linking works correctly in IRIX.
100141
100142 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100143
100144         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100145
100146 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100147
100148         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100149         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100150         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100151         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100152         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100153
100154         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100155
100156 1999-04-20  Jim Meyering  <meyering@ascend.com>
100157
100158         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100159         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100160         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100161
100162 1999-04-18  Jim Meyering  <meyering@ascend.com>
100163
100164         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100165         * m4/jm-macros.m4: Use it.
100166
100167 1999-04-06  Jim Meyering  <meyering@ascend.com>
100168
100169         * m4/strftime.m4: Remove test for %f.
100170
100171 1999-03-29  Jim Meyering  <meyering@ascend.com>
100172
100173         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100174         superset of the AC_TYPE_* checks in the textutils, fileutils,
100175         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100176         AC_TYPE_PID_T.
100177
100178 1999-03-28  Jim Meyering  <meyering@ascend.com>
100179
100180         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100181         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100182         replaced e.g., in the *.sh files of the sh-utils.
100183
100184 1999-03-20  Jim Meyering  <meyering@ascend.com>
100185
100186         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100187         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100188         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100189
100190 1999-03-19  Jim Meyering  <meyering@ascend.com>
100191
100192         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100193
100194 1999-03-12  Jim Meyering  <meyering@ascend.com>
100195
100196         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100197
100198 1999-03-07  Jim Meyering  <meyering@ascend.com>
100199
100200         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100201         declared.
100202
100203 1999-02-17  Jim Meyering  <meyering@ascend.com>
100204
100205         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100206         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100207
100208 1999-02-07  Jim Meyering  <meyering@ascend.com>
100209
100210         * m4/group-member.m4: New file -- extracted from sh-utils'
100211         configure.in.
100212
100213         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100214         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100215
100216 1999-02-06  Jim Meyering  <meyering@ascend.com>
100217
100218         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100219         * m4/fnmatch.m4: Likewise.
100220         * m4/getgroups.m4: Likewise.
100221         * m4/lstat.m4: Likewise.
100222         * m4/malloc.m4: Likewise.
100223         * m4/putenv.m4: Likewise.
100224         * m4/realloc.m4: Likewise.
100225         * m4/regex.m4: Likewise.
100226         * m4/stat.m4: Likewise.
100227         * m4/strftime.m4: Likewise.
100228         Suggestion from Alain Magloire.
100229
100230         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100231         * m4/fnmatch.m4: Likewise.
100232         * m4/getgroups.m4: Likewise.
100233         * m4/getline.m4: Likewise.
100234         * m4/lstat.m4: Likewise.
100235         * m4/malloc.m4: Likewise.
100236         * m4/memcmp.m4: Likewise.
100237         * m4/putenv.m4: Likewise.
100238         * m4/realloc.m4: Likewise.
100239         * m4/regex.m4: Likewise.
100240         * m4/stat.m4: Likewise.
100241         * m4/strftime.m4: Likewise.
100242         Suggestion from Alain Magloire.
100243
100244         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100245         an argument.
100246
100247         * m4/regex.m4: Add a run-time Test for proper operation of
100248         re_compile_pattern.
100249
100250 1999-01-31  Jim Meyering  <meyering@ascend.com>
100251
100252         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100253
100254 1999-01-30  Jim Meyering  <meyering@ascend.com>
100255
100256         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100257
100258         * m4/jm-mktime.m4: Make this a wrapper around the official
100259         AM_FUNC_MKTIME rather than my private copy, now that the official one
100260         is up to date.
100261         * m4/mktime.m4: Remove file.
100262
100263         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100264         * m4/uptime.m4: Likewise.
100265         * m4/uintmax_t.m4: Likewise.
100266
100267 1999-01-28  Jim Meyering  <meyering@ascend.com>
100268
100269         * m4/jm-macros.m4: Use jm_AFS.
100270         * m4/afs.m4: New file (from fileutils' configure.in).
100271
100272         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100273         * m4/chown.m4: Likewise.
100274         * m4/d-ino.m4: Likewise.
100275         * m4/d-type.m4: Likewise.
100276         * m4/fnmatch.m4: Likewise.
100277         * m4/getgroups.m4: Likewise.
100278         * m4/gettext.m4: Likewise.
100279         * m4/jm-mktime.m4: Likewise.
100280         * m4/jm-winsz2.m4: Likewise.
100281         * m4/lcmessage.m4: Likewise.
100282         * m4/ls-mntd-fs.m4: Likewise.
100283         * m4/malloc.m4: Likewise.
100284         * m4/memcmp.m4: Likewise.
100285         * m4/putenv.m4: Likewise.
100286         * m4/realloc.m4: Likewise.
100287         * m4/st_mtim.m4: Likewise.
100288         * m4/strftime.m4: Likewise.
100289
100290 1999-01-16  Jim Meyering  <meyering@ascend.com>
100291
100292         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100293         (ARGMATCH_DIE_DECL): Define.
100294
100295 1999-01-12  Jim Meyering  <meyering@ascend.com>
100296
100297         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100298         Reported by Lars Hecking.
100299
100300 1999-01-10  Jim Meyering  <meyering@ascend.com>
100301
100302         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100303         gross kludge.
100304         * m4/inttypes_h.m4: Likewise.
100305         * m4/lstat.m4: Likewise.
100306         * m4/malloc.m4: Likewise.
100307         * m4/readdir.m4: Likewise.
100308         * m4/realloc.m4: Likewise.
100309         * m4/st_dm_mode.m4: Likewise.
100310         * m4/stat.m4: Likewise.
100311         * m4/utimbuf.m4: Likewise.
100312         * m4/utimes.m4: Likewise.
100313
100314         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100315         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100316         comments in config.h.in are meaningful.
100317
100318         * m4/jm-macros.m4: Require autoconf-2.13 here.
100319
100320         * m4/regex.m4: By default, don't use the included regex.c on systems
100321         with glibc 2.  Suggestion from Uli Drepper.
100322
100323 1999-01-02  Jim Meyering  <meyering@ascend.com>
100324
100325         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100326
100327 1998-12-18  Jim Meyering  <meyering@ascend.com>
100328
100329         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100330         Based on a suggestion from Lars Hecking.
100331
100332 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100333
100334         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100335
100336 1998-11-16  Jim Meyering  <meyering@ascend.com>
100337
100338         * m4/lfs.m4: Double-quote the `uname...` expression.
100339
100340 1998-11-14  Jim Meyering  <meyering@ascend.com>
100341
100342         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100343         * m4/stat.m4: Likewise.
100344
100345 1998-11-03  Jim Meyering  <meyering@ascend.com>
100346
100347         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100348         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100349
100350 1998-10-18  Jim Meyering  <meyering@ascend.com>
100351
100352         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100353
100354 1998-10-17  Jim Meyering  <meyering@ascend.com>
100355
100356         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100357         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100358         calls for those previously hard-coded headers.  Instead, take a new
100359         parameter.
100360         (jm_CHECK_DECLARATIONS): Reflect interface change.
100361         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100362         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100363
100364         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100365
100366 1998-10-14  Jim Meyering  <meyering@ascend.com>
100367
100368         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100369         instead of "TZ=America/Vancouver".  From Paul Eggert.
100370
100371 1998-10-11  Jim Meyering  <meyering@ascend.com>
100372
100373         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100374         This adds a test for a recently added compatibility fix for mktime.c.
100375         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100376
100377 1998-09-27  Jim Meyering  <meyering@ascend.com>
100378
100379         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100380
100381         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100382         ../configure.in, including a change from Gordon Matzigkeit to allow
100383         cross-compiling for the Hurd.
100384
100385         * m4/glibc.m4: New file/macro to test for the GNU C Library
100386         versions 1 and 2.  From Gordon Matzigkeit.
100387         Indent.
100388
100389 1998-09-21  Jim Meyering  <meyering@ascend.com>
100390
100391         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100392
100393 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100394
100395         Port nanosecond-resolution times to UnixWare 2.1.2 and
100396         pedantic Solaris 2.6.
100397
100398         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100399         AC_STRUCT_ST_MTIM.
100400         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100401         Generate name of ns member, instead of just 1 or undef.
100402         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100403
100404 1998-08-15  Jim Meyering  <meyering@ascend.com>
100405
100406         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100407         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100408         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100409         instead of jm_TYPE_SSIZE_T.
100410
100411 1998-08-12  Jim Meyering  <meyering@ascend.com>
100412
100413         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100414
100415 1998-08-02  Jim Meyering  <meyering@ascend.com>
100416
100417         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100418         in acconfig.h manually.
100419
100420 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100421
100422         * m4/st_mtim.m4: New file.
100423
100424 1998-07-28  Jim Meyering  <meyering@ascend.com>
100425
100426         * m4/utimes.m4: Undef stat.
100427
100428 1998-07-25  Jim Meyering  <meyering@ascend.com>
100429
100430         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100431         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100432
100433 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100434
100435         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100436         uid and gid actually remain unchanged.
100437
100438 1998-07-07  Jim Meyering  <meyering@ascend.com>
100439
100440         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100441
100442 1998-07-04  Jim Meyering  <meyering@ascend.com>
100443
100444         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100445         to prove that this macro can be used in packages without regex.c.
100446
100447 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100448
100449         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100450         is to be used.
100451
100452 1998-07-03  Jim Meyering  <meyering@ascend.com>
100453
100454         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100455
100456         * m4/gettext.m4: New file -- from gettext-0.10.35.
100457         * m4/lcmessage.m4: Likewise.
100458         * m4/progtest.m4: Likewise.
100459
100460         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100461         * m4/jm-macros.m4: Require the new macro.
100462
100463 1998-06-29  Jim Meyering  <meyering@ascend.com>
100464
100465         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100466         for the definition of NGROUPS (used in a system header included
100467         by sys/mount.h).
100468
100469 1998-06-28  Jim Meyering  <meyering@ascend.com>
100470
100471         * m4/ls-mntd-fs.m4: New file.
100472         * m4/fstypename.m4: New file.
100473
100474         * m4/jm-macros.m4: Require the new macro.
100475         * m4/jm-glibc-io.m4: New file.
100476
100477 1998-05-19  Jim Meyering  <meyering@ascend.com>
100478
100479         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100480         * m4/lchown.m4: New file.
100481
100482         * m4/Makefile.am.in: New file.
100483         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100484
100485 1998-05-14  Jim Meyering  <meyering@ascend.com>
100486
100487         * m4/Makefile.am (EXTRA_DIST): Add them.
100488         * m4/jm-macros.m4: New file.
100489         * m4/utimbuf.m4: New file.
100490
100491 1998-05-12  Jim Meyering  <meyering@ascend.com>
100492
100493         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100494
100495 1998-05-11  Jim Meyering  <meyering@ascend.com>
100496
100497         * m4/isc-posix.m4: New file.
100498
100499 1998-05-10  Jim Meyering  <meyering@ascend.com>
100500
100501         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100502
100503 1998-05-09  Jim Meyering  <meyering@ascend.com>
100504
100505         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100506         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100507         with automake.
100508
100509         * m4/ssize_t.m4: New file.
100510         * m4/mktime.m4: Remove file -- the new automake has this now.
100511
100512 1998-04-26  Jim Meyering  <meyering@ascend.com>
100513
100514         * m4/assert.m4: New file.
100515         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100516
100517 1998-04-05  Jim Meyering  <meyering@ascend.com>
100518
100519         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100520         (jm_PREREQ): Use it here.
100521
100522 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100523
100524         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100525         in acconfig.h.
100526
100527 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100528
100529         * m4/prereq.m4: New file.
100530         * m4/error.m4: New file.
100531         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100532
100533 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100534
100535         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100536         cache-check for the same variable -- that defeated the purpose of
100537         the test; the test program was never run.  This was a problem only
100538         on systems with losing getline functions -- HP-UX 10.20 is one.
100539         Reported by Bjorn Helgaas.
100540
100541 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100542
100543         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100544
100545 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100546
100547         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100548
100549         * m4/const.m4: New file.  Use an initializer in this declaration
100550         typedef int charset[2]; const charset x;
100551         Reported by Bob Glickstein.
100552
100553 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100554
100555         * m4/chown.m4: Fix reversed types on -1 args to chown.
100556         From Kaveh Ghazi.
100557
100558 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100559
100560         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100561         Add lseek and memchr.
100562
100563         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100564         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100565         have a 20-character limit on names.
100566
100567 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100568
100569         * m4/inttypes_h.m4: New file.
100570         * m4/uintmax_t.m4: New file.
100571         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100572
100573
100574         -----
100575
100576         Local Variables:
100577         coding: utf-8
100578         End:
100579
100580         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100581
100582         Copying and distribution of this file, with or without
100583         modification, are permitted provided the copyright notice
100584         and this notice are preserved.